Simple method for the NFS
xiao.han at powercore.com.cn
xiao.han at powercore.com.cn
Fri Jan 12 19:35:37 AEDT 2018
Dear All:
I fount a simple method for the NFS:
Enable nfs in the kernel. (CONFIG_NFS_FS,CONFIG_ROOT_NFS ...)
Prepare the fitimage, it will be generated at .\build\tmp\deploy\images\palmetto\fitImage.
Prepare the the rootfs on NFS server.
sudo unsquashfs -f -d <nfsroot-dir> image-rofs
in the uboot command environment :
## configure network
setenv ethaddr ea:80:ed:0a:68:d6
setenv ipaddr 192.168.0.60
setenv serverip 192.168.0.10
## set bootargs,boot from nfs
setenv bootargs root=/dev/nfs rw nfsroot=192.168.0.10:/nfsroot/obmc-rofs,nolock console=ttyS4,115200n8 ip=192.168.0.60:192.168.0.10:192.168.0.10:255.255.255.0 nfsrootdebug
# load kernel/dtb to memory
tftp 0x43000000 fitImage
# boot from memory
bootm 0x43000000
Best Regards
*********************************************
Xiao Han(韩 笑)
System Department(系统部)
Suzhou Powercore Technology Co., Ltd.
Rm.202, Building 3B, No.9 XueSen Rd.,
SSTT, SND, Suzhou, Jiangsu, China
中国江苏省苏州市高新区科技城学森路9号3A楼3楼313室
e-mail: xiao.han at powercore.com.cn
Tel: +86-0512-68316328-8136 (China)
Cellphone: +86-158-5025-8592 (China)
*********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20180112/42b2e061/attachment.html>
More information about the openbmc
mailing list