All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Buildroot root fs over NFS bug
Date: Tue, 28 Jun 2011 16:33:15 +0200	[thread overview]
Message-ID: <20110628163315.7f9a2527@skate> (raw)
In-Reply-To: <4E09C8A0.8000808@labri.fr>

Hello,

Le Tue, 28 Jun 2011 14:27:12 +0200,
Jigar SOLANKI <jigar.solanki@labri.fr> a ?crit :

> I'm trying to build a full Linux environment on a Virtex4 FPGA board.
> I'm actually using a sparc's clone (LEON).
> I've successfully built and run the system using grmon
> grmon> load image.ram
> grmon> run
> 
> But when it comes to mount the root filesystem over NFS, i get the
> following error :

According to the following log, you are not mounting your root
filesystem over NFS.

> ...
> IP-Config: Complete:
>      device=eth0, addr=10.10.10.1, mask=255.255.255.0,
> gw=10.10.10.254, host=houat, domain=, nis-domain=(none),
>      bootserver=10.10.10.254, rootserver=10.10.10.254, rootpath=
> Freeing unused kernel memory: 5060k freed

This is the last line from the kernel.

> Initializing random number generator... done.

This is the first line from the userspace initialization scripts. So I
guess your root filesystem is in an initramfs.

> Starting network...
> ip: RTNETLINK answers: File exists
> Starting NFS statd: touch: /var/lock/subsys/nfslock: No such file or
> directory

presumably the nfs-utils init script forgets to create this subsys
directory.

> done
> Starting NFS services: *** invalid open64 call: O_CREAT without mode
> ***: /usr/sbin/exportfs terminated
> ======= Backtrace: =========
> /lib/libc.so.6(__open64_2+0x28)[0x50133790]
> /usr/sbin/exportfs[0x15ca8]
> /usr/sbin/exportfs[0x13d90]
> /usr/sbin/exportfs[0x11f3c]
> /lib/libc.so.6(__libc_start_main+0x10c)[0x50079674]
> /usr/sbin/exportfs[0x11154]
> ======= Memory map: ========
> 00010000-00019000 r-xp 000000

Looks like a bug in exportfs.

But if your goal is to mount a root filesystem over NFS, then the
nfs-utils package is useless. The kernel contains all the necessary
bits to mount a NFS filesystem as the root filesystem.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2011-06-28 14:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-28 12:27 [Buildroot] Buildroot root fs over NFS bug Jigar SOLANKI
2011-06-28 14:33 ` Thomas Petazzoni [this message]
     [not found]   ` <4E0B2562.9090208@labri.fr>
2011-06-29 14:57     ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110628163315.7f9a2527@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.