public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexander Clouter <alex@digriz.org.uk>
To: linux-kernel@vger.kernel.org
Subject: Re: Request For Help - Embedded x86, Kernel 2.6.33 boots, Mounts ?JFFS2 rootfs, Stops at init
Date: Thu, 29 Apr 2010 09:01:46 +0100	[thread overview]
Message-ID: <a0rna7-rem.ln1@chipmunk.wormnet.eu> (raw)
In-Reply-To: y2zd66caabb1004281614qe5af7fa7i6d9d5ac957ea6520@mail.gmail.com

Graeme Russ <graeme.russ@gmail.com> wrote:
>
> On Thu, Apr 29, 2010 at 1:37 AM, Alexander Clouter <alex@digriz.org.uk> wrote:
>
>> What does you /dev directory look like?  You need to have at least the
>> following:
>> ----
>> mknod console c 5 1
>> mknod null c 1 3
>> mknod ttyS0 c 4 64
>> ----
> 
> tick, tick, tick
> 
> A little further background (should have included this last night but it
> was late and I thought the problem must be trivial)...
> 
> I had originally mounted this root fs using NFS with (very) limited
> success. After mounting and performing a few NFS requests (observed using
> wireshark) the NFS activity would simply stop with 'server not responding'
> messages. I turned on debugging in the 8139too and NFS drivers. With
> debugging output enabled I was still getting 'server not responding'
> messages, but (eventually) the boot sequence would continue. This even
> resulted in logs in /var/log of the NFS share for the device (filled with
> raw network packet data).
>
I got this behaviour when setting up a PXE booting workstation network 
registration system.  My issue was that the IP changed and was running
running TCP based NFS; I think the kernel continues to try to use the 
old IP, same socket, but as it is no longer there...Game Over.   
Depending on how your boot up worked, at the PXE booting phase (or 
just where the kernel uses DHCP to get a lease) things work, however 
then you get to the network configuring part of the boot up, dhclient 
uses a different identifier so you get a different IP.
 
Well...that's what happened to us and the simpliest fix was to move to 
UDP for NFS.

> But no console...
>
...instead of LFS, have you looked at buildroot[1]?

> What if I init with the following:
> 
> #!/bin/bash
> echo hello > /hello.txt
> 
....put a 'while (true); do sleep 1; done' on the end of that.  Although 
you should see a 'attempted to kill init' without it there.

> and then rebooted and checked the root fs in U-Boot? How long will it
> take for hello.txt to be flushed? Can I force the flush?
> 
Have a look at:

http://www.spinics.net/lists/mips/msg37361.html

Especially my 'readelf' bit, I'm guessing you might have forgotten a 
library or two in your keenness to trim your root mountpoint.

Cheers

[1] http://buildroot.uclibc.org/

-- 
Alexander Clouter
.sigmonster says: Time to be aggressive.  Go after a tattooed Virgo.


  reply	other threads:[~2010-04-30 18:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-28 14:08 Request For Help - Embedded x86, Kernel 2.6.33 boots, Mounts JFFS2 rootfs, Stops at init Graeme Russ
2010-04-28 15:32 ` Mike Rapoport
2010-04-28 15:37 ` Alexander Clouter
2010-04-28 23:14   ` Graeme Russ
2010-04-29  8:01     ` Alexander Clouter [this message]
2010-04-29 13:15     ` Graeme Russ

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=a0rna7-rem.ln1@chipmunk.wormnet.eu \
    --to=alex@digriz.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox