Add leed beep boop at start

This commit is contained in:
Samuel Dionne-Riel 2020-01-06 20:29:08 -05:00
parent b5e85308ee
commit b972d349aa
3 changed files with 30 additions and 0 deletions

View File

@ -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.

View File

@ -0,0 +1,25 @@
From a737fd023f4f98d7789e9aafbe938acb78e4c191 Mon Sep 17 00:00:00 2001
From: Samuel Dionne-Riel <samuel@dionne-riel.com>
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

View File

@ -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: {