From 88c4bf23b45f807c9c4173ef24dc84c3e75b67bc Mon Sep 17 00:00:00 2001 From: Ji Sheng Teoh Date: Wed, 8 Nov 2023 22:21:51 +0800 Subject: include: configs: starfive-dubhe-fpga.h: Add NFS boot env Add env variable to support booting from NFS. Signed-off-by: Ji Sheng Teoh --- include/configs/starfive-dubhe-fpga.h | 19 ++++++++++++++++--- 1 file 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 */ -- cgit v1.2.3