[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
Following is the result:
U-Boot 2019.10-rc1-03748-gab38b00-dirty (Aug 11 2019 - 23:14:27 -0700)
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#
Change history against base patch:
-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(-)
More information about the U-Boot