Hi3536 Mount NFS root filesystem tips
来源:互联网 发布:个人数据交易平台 编辑:程序博客网 时间:2024/05/23 01:25
This is my first time to write blog article.If there is something wrong with it,please tell me,thanks.
Recently,we have one project that will uses Hi3536 and do some labs on the demo board with the newest Hisilicon SDK.
In order to debug the demo board,we want to mount the kernel to network filesystem and we run into problem with mounting NFS.
we find the followings should be enabled in linux kernel:
1.The network driver should be built in to the kernel;
2.Enable the root file system on NFS
Finally, recompile the kernel
make -j8 LOADADDR=0x40008000 uImage
and download the kernel to ram and run:
tftp 42000000 uImage
bootm
after these we get "IP-Config: Incomplete network configuration information" message and kernel panic.
We try to find where the information is printed,and get the following information:
net/ipv4/ipconfig.c
1166 /*
1167 * If none of DHCP/BOOTP/RARP was selected, return with an error.
1168 * This routine gets only called when some pieces of information
1169 * are missing, and without DHCP/BOOTP/RARP we are unable to get it.
1170 */
and enable the DHCP/bootp/RARP in kernel.
redo make and download,the kernel can't get the IP info configured by using DHCP and very slowly(why this happen?Now I have no idea about this.)
So try to use static ip address and adjust the boot cmd:
setenv bootargs mem=128M console=ttyAMA0,115200 root=/dev/nfs rw nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:none init=/linuxrc
saveenv
and reset, redo download and run,the kernel mount to NFS root.
Download the kernel to flash and set up the bootcmd and reset,we get it worked.
Expect this will help you to a certain extend.
Thanks.
- Hi3536 Mount NFS root filesystem tips
- How to NFS Mount a cdrom Filesystem
- How to NFS Mount a cdrom Filesystem
- mount root filesystem的三种方式
- 2.6.32.2新内核编译 mounting root filesystem. mount missing mount point error mounting /sys:
- mount:nfs
- NFS & mount
- mount NFS
- NFS mount
- nfs mount
- mount nfs
- mount of filesystem failed
- mount of filesystem failed
- linux升级内核,出现:mount:could not find filesystem‘/dev/root’的解决方法
- linux升级内核,出现:mount:could not find filesystem‘/dev/root’的解决方法
- No filesystem could mount root, tried: ext2 cramfs vfat msdos romfs
- 升级内核报错mount: could not find filesystem '/dev/root'
- mini2440烧录内核时重启出错:No filesystem could mount root, tried: ext3 cramfs vfa
- 使用gulp+browser-sync搭建Sass自动化编译以及自动刷新
- 欢迎使用CSDN-markdown编辑器
- CStatic控件的Notify属性
- maven的jstl-api的jar包与Tomcat的jar包依赖冲突
- 2.简单工厂
- Hi3536 Mount NFS root filesystem tips
- 将数据转成JSON
- oracle常用命令--更新/修改表数据之alter命令
- u-boot分析之Makefile
- PAT_1063. Set Similarity(1个case超时)
- validateform在提交form表单时,手动触发validateform校验
- spring cloud eureka
- STL algorithm -2
- 美国地质调查局DEM,需账户密码