Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had compiled kernel linux-4.2. and got the uImage.bin. I setup the tftp and nfs services on the server machine. Below are the env settings on the target board,
yes, i had enabled the CONFIG_NFS_ROOT in .config. The nfs directory to be mounted is also fine, i can mount it independently. When you mentioned that "it needs to be build in" how exactly this has to be enabled ??
To elaborate: <M> means the kernel will load the NFS subsystem as a module from a separate file. <*> means that NFS is included in the kernel; no loading required. Since the kernel can't access any files at this very early stage, NFS must be included.
i added the nfsrootdebug parameter in the bootargs, now the below errors are thrown. Is this some NFS server side issue ??
[ 14.557953] Root-NFS: nfsroot=/home/tftp/kernel_fs
[ 14.563221] NFS: nfs mount opts='vers=2,udp,rsize=4096,wsize=4096,nolock,addr=10.12.7.69'
[ 14.571392] NFS: parsing nfs mount option 'vers=2'
[ 14.576345] NFS: parsing nfs mount option 'udp'
[ 14.581025] NFS: parsing nfs mount option 'rsize=4096'
[ 14.586315] NFS: parsing nfs mount option 'wsize=4096'
[ 14.591602] NFS: parsing nfs mount option 'nolock'
[ 14.596542] NFS: parsing nfs mount option 'addr=10.12.7.69'
[ 14.602272] NFS: MNTPATH: '/home/tftp/kernel_fs'
[ 14.606871] NFS: sending MNT request for 10.12.7.69:/home/tftp/kernel_fs
[ 14.614100] NFS: failed to create MNT RPC client, status=-128
[ 14.619834] NFS: unable to mount server 10.12.7.69, error -128
i have enabled all the NFS configurations in the menuconfig now. After doing some search around i found that errno 128 is "network unreachable".. looks bit weird, as i downloaded the kernel from the same nfs server. Apparently after booting the kernel somehow the network goes down or something
Last edited by gauravnaik; 11-18-2015 at 12:50 AM.
When you tested the ntfs root mount did you do it from the same subnet the booting machine is in? They are in different subnets maybe the gateway is not working...
Did you check the logs of ntfs around the time the client booted? Any connection attempts at all? Maybe user credentials?
is it mandatory to have initrd while booting the kernel and file systems from nfs ? as of now i have not given any initrd option while booting the kernel.
This looks peculiar.
Your target board is assigned the static IP address 10.12.27.24.
The NFS server has the IP address 10.12.7.69.
But you have assigned a netmask of 255.255.255.0, which means that the NFS server is not in the same subnet as your target.
That could explain the "network unreachable" message.
Simplify your network, and don't rely on a gateway.
when i boot the kernel i think my interface eth0 is not up or something. Is there any way to check this during boot. If eth0 itself is not UP & RUNNING than ip parameters will not be applied.
Instead of "...eth0ff", I used to use "on" for the autoconf even though there was a static IP address assignment.
Quote:
Originally Posted by gauravnaik
Is there any way to check this during boot.
There should be driver messages for eth0 in the syslog.
I haven't used the "ip=..." kernel parameter in a while, but in 2.6 kernels there would be an "IP-Config" message in the syslog like:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.