summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeiLiang Lim <weiliang.lim@starfivetech.com>2023-11-14 06:29:45 +0300
committerWeiLiang Lim <weiliang.lim@starfivetech.com>2023-11-14 06:29:45 +0300
commitcef715ce412e97f17acab08529540c9fa317a923 (patch)
tree4a38c35a49875313154b48579045ae3136f45c9d
parent85c7554283547d5ab9dca94427a74a691132cebf (diff)
parent88c4bf23b45f807c9c4173ef24dc84c3e75b67bc (diff)
downloadu-boot-dubhe_fpga_dev_v2023.10.tar.xz
Merge branch 'dev/dubhe' into 'dubhe_fpga_dev_v2023.10'REL_DUBHE_MAR2024REL_DUBHE_DEC2023dubhe_fpga_dev_v2023.10
include: configs: starfive-dubhe-fpga.h: Add NFS boot env See merge request starfive-tech/u-boot!67
-rw-r--r--include/configs/starfive-dubhe-fpga.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/include/configs/starfive-dubhe-fpga.h b/include/configs/starfive-dubhe-fpga.h
index 68604c4f66..05ac969383 100644
--- a/include/configs/starfive-dubhe-fpga.h
+++ b/include/configs/starfive-dubhe-fpga.h
@@ -4,9 +4,22 @@
#define CFG_EXTRA_ENV_SETTINGS \
"ipaddr=192.168.152.100\0" \
"netmask=255.255.255.0\0" \
- "serverip=192.168.152.85\0" \
+ "serverip=192.168.153.221\0" \
+ "gatewayip=192.168.152.1\0" \
+ "rootpath=/tftpboot/nfs\0" \
"dubhe_boot=booti 0xa1000000 - 0xa0000000;\0" \
- "tftp_boot=tftp 0xa1000000 Image; tftp 0xa0000000 dubhe_fpga.dtb; \
- run dubhe_boot;\0" \
+ "tftp_boot=tftp 0xa1000000 Image; tftp 0xa0000000 dubhe_fpga.dtb;" \
+ "run dubhe_boot;\0" \
+ "set_tty=setenv bootargs ${bootargs} " \
+ "console=ttySIF0,115200 earlycon=sbi\0" \
+ "set_ip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:" \
+ "${gatewayip}:${netmask}:${hostname}:eth0:off\0" \
+ "bootargs_nfs=setenv bootargs root=/dev/nfs rw rootwait " \
+ "nfsroot=${serverip}:${rootpath},rw,tcp,v3," \
+ "hard,sec=sys,local_lock=none," \
+ "rsize=65536,wsize=65536," \
+ "timeo=600,retrans=5\0" \
+ "nfs_boot=run bootargs_nfs set_tty set_ip;" \
+ "run tftp_boot;\0"
#endif /* __CONFIG_H */