uboot-sifiveu: add bootloader package for SiFive Ux40 boards
[openwrt/staging/hauke.git] / package / boot / uboot-sifiveu / patches / 0004-board-sifive-Set-LED-s-color-to-blue-before-jumping-.patch
1 From 6ef7023c0dcfde320015ab19e0e0d423921be77d Mon Sep 17 00:00:00 2001
2 From: Vincent Chen <vincent.chen@sifive.com>
3 Date: Mon, 15 Nov 2021 03:39:07 -0800
4 Subject: [PATCH 1/2] board: sifive: Set LED's color to blue before jumping to
5 Linux
6
7 The LED's color wil be changed from purple to blue before executing
8 the sysboot command. Because the sysboot command includes the image loading
9 from the boot partition, It means the LED's color is blue when executing
10 "Retrieving file: /Image.gz".
11 ---
12 include/configs/sifive-unmatched.h | 7 ++++++-
13 1 file changed, 6 insertions(+), 1 deletion(-)
14
15 --- a/include/configs/sifive-unmatched.h
16 +++ b/include/configs/sifive-unmatched.h
17 @@ -49,7 +49,12 @@
18 "type_guid_gpt_system=" TYPE_GUID_SYSTEM "\0" \
19 "partitions=" PARTS_DEFAULT "\0" \
20 "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
21 - BOOTENV
22 + "setled_blue=mw.l 0x10020024 0x0000ffff; mw.l 0x10020028 0x0000ffff; mw.l 0x1002002c 0x0\0" \
23 + BOOTENV \
24 + "boot_extlinux=" \
25 + "run setled_blue; " \
26 + "sysboot ${devtype} ${devnum}:${distro_bootpart} any " \
27 + "${scriptaddr} ${prefix}${boot_syslinux_conf};\0"
28
29 #define CONFIG_SYS_EEPROM_BUS_NUM 0
30