Simple method for the NFS

Joel Stanley joel at jms.id.au
Tue Jan 16 07:41:14 AEDT 2018


On Fri, Jan 12, 2018 at 2:35 AM, xiao.han at powercore.com.cn
<xiao.han at powercore.com.cn> wrote:
> Dear All:
>
>
>    I fount a simple method for the NFS:

Thanks for sharing this!

Cheers,

Joel

>
> 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)
> *********************************************


More information about the openbmc mailing list