From b972d349aa891d47f8c7b9194acf1504a822b736 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Mon, 6 Jan 2020 20:29:08 -0500 Subject: [PATCH] Add leed beep boop at start --- README.md | 4 +++ ...g-LEDs-signal-at-boot-on-pinebook-pr.patch | 25 +++++++++++++++++++ u-boot/default.nix | 1 + 3 files changed, 30 insertions(+) create mode 100644 u-boot/0001-HACK-Add-changing-LEDs-signal-at-boot-on-pinebook-pr.patch diff --git a/README.md b/README.md index 47b34e5..4a340aa 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ booting, no need burn u-boot to it. The required modules (and maybe a bit more) are present in stage-1 so the display should start early enough in the boot process. +The LED should start up "amber, red, amber, green, amber" with this u-boot +configuration, as a way to show activity early. The kernel should set it to +green as soon as it can. + ## Note about cross-compilation This will automatically detect the need for cross-compiling or not. diff --git a/u-boot/0001-HACK-Add-changing-LEDs-signal-at-boot-on-pinebook-pr.patch b/u-boot/0001-HACK-Add-changing-LEDs-signal-at-boot-on-pinebook-pr.patch new file mode 100644 index 0000000..9715d9b --- /dev/null +++ b/u-boot/0001-HACK-Add-changing-LEDs-signal-at-boot-on-pinebook-pr.patch @@ -0,0 +1,25 @@ +From a737fd023f4f98d7789e9aafbe938acb78e4c191 Mon Sep 17 00:00:00 2001 +From: Samuel Dionne-Riel +Date: Mon, 6 Jan 2020 20:16:27 -0500 +Subject: [PATCH] HACK: Add changing LEDs signal at boot on pinebook pro + +--- + include/configs/pinebook_pro_rk3399.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/configs/pinebook_pro_rk3399.h b/include/configs/pinebook_pro_rk3399.h +index f383becbf8..749713c025 100644 +--- a/include/configs/pinebook_pro_rk3399.h ++++ b/include/configs/pinebook_pro_rk3399.h +@@ -9,6 +9,8 @@ + #define __PINEBOOKPRO_RK3399_H + + #define ROCKCHIP_DEVICE_SETTINGS \ ++ "beep_boop=led work on; led standby on; sleep 0.1; led work off; sleep 0.1; led work on; sleep 0.1; led standby off; sleep 0.1; led standby on\0" \ ++ "bootcmd=run beep_boop; run distro_bootcmd\0" \ + "stdin=serial,usbkbd\0" \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" +-- +2.23.0 + diff --git a/u-boot/default.nix b/u-boot/default.nix index 08d3f75..ed37739 100644 --- a/u-boot/default.nix +++ b/u-boot/default.nix @@ -38,6 +38,7 @@ in (pw "1194524" "071rval4r683d1wxh75nbf22qs554spq8rk0499z6zac0x8q1qvc") (pw "1194525" "0biiwimjp25abxqazqbpxx2wh90zgy3k786h484x9wsdvnv4yjl6") (pw "1203678" "0l3l88cc9xkxkraql82pfgpx6nqn4dj7cvfaagh5pzfwkxyw0n3p") + ./0001-HACK-Add-changing-LEDs-signal-at-boot-on-pinebook-pr.patch ]; }) .overrideAttrs(oldAttrs: {