[U-Boot] [U-BOOT PATCH v1] set serial environment variable
Sagar Shrikant Kadam
sagar.kadam at sifive.com
Mon Aug 12 14:57:39 UTC 2019
This patch sets serial environment variable by reading the OTP memory
region of FU540-C000 SoC which is mounted on HiFive Unleashed A00 board.
The patch is based on master branch of[1]
[1] https://gitlab.denx.de/u-boot/custodians/u-boot-riscv
Following is the result:
U-Boot 2019.10-rc1-03748-gab38b00-dirty (Aug 11 2019 - 23:14:27 -0700)
CPU: rv64imafdc
Model: SiFive HiFive Unleashed A00
DRAM: 8 GiB
MMC: spi at 10050000:mmc at 0: 0
In: serial at 10010000
Out: serial at 10010000
Err: serial at 10010000
Net: eth0: ethernet at 10090000
Hit any key to stop autoboot: 0
=> env print serial#
serial#=000000d0
Change history against base patch:
V1:
-Reduced buf size by 2 bytes as suggested by Bin Meng.
-Used true as argument to WARN message instead of 1.
-Terminated the WARN message with newline.
Sagar Shrikant Kadam (1):
riscv: sifive: fu540: set serial environment variable from otp
board/sifive/fu540/fu540.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
--
2.7.4
More information about the U-Boot
mailing list