Browse Source

Merge branch 'dev/dubhe' into 'dubhe_fpga_dev_v2023.10'

include: configs: starfive-dubhe-fpga.h: Add NFS boot env

See merge request starfive-tech/u-boot!67
WeiLiang Lim 6 months ago
parent
commit
cef715ce41
1 changed files with 16 additions and 3 deletions
  1. 16 3
      include/configs/starfive-dubhe-fpga.h

+ 16 - 3
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 */