root file system mounted via NFS - retry?
Randy Smith
rsmith at imagemap.com
Thu Apr 13 00:01:51 EST 2006
Brent Cook wrote:
> On Wednesday 12 April 2006 07:35, Randy Smith wrote:
>
>> Hello,
>>
>> I have a general question regarding having a root file system mounted
>> via NFS. Our system consists of a linux PC that acts as the NFS server
>> and two embedded ppc boards running linux that mount their file systems
>> via NFS. The problem is that the embedded boards boot much faster than
>> the PC, and when they attempt to mount the root file system, the NFS
>> server is not up yet. The embedded boards hang and it takes quite a
>> long time before the watchdog timer reboots them. The next time round,
>> they come up just fine.
>> What I would like for them to do is keep trying until the NFS server
>> appears and then continue to boot.
>>
>>
>
> Sorry to try the obvious, but could you make the firmware's auto-boot timeout
> longer? I know that u-boot and several others support this.
>
We are using U-boot and yes, I can set the delay. This does work around
the problem, but I was hoping for a more 'elegant' solution.
> Also, you could try, instead of mounting root NFS directly from the kernel, an
> initrd or embedding an initramfs that does the mount using a script. They you
> could retry as much as you wanted without having to teach the kernel
> anything.
>
Another possibility. Thanks!
> Or, just hook up some GPIOs from your PC to the reset lines on those PPC's.
> Then reset them once your PC is up.
>
This is not possible with our current design, but it would solve the
problem.
> Or rather than running the PPC kernel from flash, tftp it to RAM from your
> PC - that way your PPCs can't even load the kernel until the PC is up
> (assuming your firmware knows how to do this and handles faults gracefully.)
>
The way our system was initially designed, it worked this way. We are
modifying the design to remove the dependency on NFS by embedding the
boot loader, kernel and root file system on the flash. We aren't quite
there yet so in the meantime we moved the kernel to the flash and now we
are seeing this problem.
And in fact, the problem may not be as I described. I have been running
some other tests and I am getting indications that the problem may be in
the hardware that our ppc boards are talking to. I stripped a ppc board
down to just the computer part and hooked up a serial line to it.
Cold-boot and the stripped down ppc reached the mount nfs part and
waited for a little while, and then continued on, so I am discounting
the theory that the NFS mount was failing due to timeout. The other ppc
board hung with the same behavior, but I cannot put a serial line on it.
The question remains though, does the NFS timeo and retrans parameters
on the nfsroot kernel command line apply to the 2.4.25 kernel supplied
by DENX' ELDK?
Thanks,
-Randy
> - Brent
>
>
More information about the Linuxppc-embedded
mailing list