[BusyBox] RE: booting PPC 2.6.8-rc4 ppc board kernel panics when NFS mounti ngroot file system (/fadsroot residing on Red Hat 9 PC fileserver)

Povolotsky, Alexander Alexander.Povolotsky at marconi.com
Tue Oct 12 16:03:31 UTC 2004


I am making some progress on problem #1 (booting with ramdisk pivot_root)
"front"
but still facing problems (out of memory - see below )- will apreciate
further advise (as usually) !
********************
Trond Myklebust wrote:

>Actually that should be: pivot_root . tmp
>(and you have to make sure that /fadsroot/tmp does indeed exist).

Yes !

pivot_root . tmp  worked ! (no errors).

**********************************
... booted with ramdisk ...
# ps
  PID  Uid     Stat Command
    1 root     S    init
    2 root     R    [ksoftirqd/0]
    3 root     S    [events/0]
    4 root     S    [khelper]
    5 root     S    [kblockd/0]
    6 root     S    [pdflush]
    7 root     S    [pdflush]
    8 root     S    [kswapd0]
    9 root     S    [aio/0]
   15 root     S    /usr/sbin/xinetd -stayalive -reuse -pidfile
/tmp/xinetd.pid
  138 root     S    [rpciod]
  253 root     S    -sh
  254 root     S    /bin/sh /bin/application
  256 root     S    sleep 300
  258 root     R    ps

# mkdir /fadsroot 
# mount -o mountvers=2 -onolock 192.168.0.4:/fadsroot /fadsroot
nfs warning: mount version older than kernel
#cp /bin/application /fadsroot/bin/application
# cd fadsroot
# ls -l
-rw-r--r--    1 0        0               0 Jan  1  1970 XXX
drwxr-xr-x    3 0        0            4096 Oct  7  2004 apache2
drwxr-xr-x    3 0        0            4096 Oct  7  2004 apt
drwxrwxr-x    2 0        500          4096 Oct  7  2004 bin
drwxr-xr-x    2 0        0            4096 Sep 28  2004 boot
drwxr-xr-x    3 0        0            4096 Aug 16  2004 cardmgr
drwxr-xr-x    2 0        0            4096 Sep 28  2004 cdrom
drwxr-xr-x    3 0        0            4096 Oct  7  2004 cgi-bin
drwxrwxr-x    8 0        500          4096 Sep 29  2004 ctcs-1.3.0
drwxr-xr-x    2 0        0            4096 Oct 12  2004 dev
drwxr-xr-x    2 0        0            4096 Oct  7  2004 dpkg
drwxr-xr-x   41 0        0            4096 Sep 29  2004 etc
-rwxr-xr-x    1 500      500           315 Oct  9  2004 fadsroot.sh
drwxr-xr-x    2 0        0            4096 Sep 28  2004 floppy
drwxrwxr-x    2 0        500          4096 Oct  4  2004 gcc-3.4.1
drwxr-xr-x    2 0        0            4096 Oct  7  2004 gconv
-rwxr-xr-x    1 0        0          493696 Apr 19  2004 gdbserver
-rwxr-xr-x    1 0        0           16711 Jul  2  2004 hello
-rwxr--r--    1 0        0             281 Jul  2  2004 hello.c
drwxr-xr-x    5 0        0            4096 Apr 19  2004 home
drwxr-xr-x    4 0        0            4096 Sep 29  2004 initrd
-rw-r--r--    1 500      500       3461120 Sep 29  2004 initrd.tar
drwxr-xr-x    5 0        0            4096 Oct  9  2004 lib
drwxrwxr-x    9 0        500          4096 Sep 27  2004 lmbench-3.0-a4
drwxr-xr-x    2 0        0            4096 Oct  7  2004 locate
drwxrwxr-x    3 0        500          4096 Oct  9  2004 macbench
-rwxr--r--    1 0        0           22749 Jun 29  2004 main.elf
drwxr-xr-x    2 0        0            4096 Oct  4  2004 mkdir
drwxr-xr-x    4 0        0            4096 Sep 28  2004 mnt
drwxr-xr-x   15 8037     50           4096 Jul  5  2004 ncurses-5.4
drwxr-xr-x    2 0        0            4096 Sep 28  2004 opt
drwxr-xr-x    3 0        0            4096 Aug 16  2004 pciutils-2.1.10
drwxrwxr-x    3 0        500          4096 Oct  4  2004 perl
drwxr-xr-x    2 0        0            4096 Apr 19  2004 proc
crw-r--r--    1 0        0          2,   0 Apr 19  2004 ptyp0
drwxr-xr-x    3 0        0            4096 Oct  7  2004 python2.3
drwxr-xr-x    2 0        0            4096 Sep 28  2004 root
drwxr-xr-x    6 0        0            4096 Jul 16  2004 runin
drwxr-xr-x    2 0        0            4096 Oct  7  2004 sasl2
drwxr-xr-x    2 0        0            4096 Sep 28  2004 sbin
drwxr-xr-x    3 0        0            4096 Oct  7  2004 ssl
drwxr-xr-x    2 0        0            4096 Sep 28  2004 sys
drwxr-xr-t    2 0        0            4096 Sep 28  2004 tmp
crw-r--r--    1 0        0          3,   0 Apr 19  2004 ttyp0
drwxr-xr-x   11 0        0            4096 Sep 28  2004 usr
drwxr-xr-x   14 0        0            4096 Sep 28  2004 var
# ls -l | grep tmp
drwxr-xr-t    2 0        0            4096 Sep 28  2004 tmp
# chmod 775 tmp
# pivot_root . tmp
# ls
# pwd

However after that I have the next problem - I am not getting any output
from commands (ls, pwd, etc. ) ...
and after a while I am starting to get errors:

oom-killer: gfp_mask=0x1d2
DMA per-cpu:
cpu 0 hot: low 4, high 12, batch 2
cpu 0 cold: low 0, high 4, batch 2
Normal per-cpu: empty
HighMem per-cpu: empty

Free pages:         360kB (0kB HighMem)
Active:4298 inactive:672 dirty:0 writeback:0 unstable:0 free:90 slab:740
mapped:
3850 pagetables:992
DMA free:360kB min:180kB low:360kB high:540kB active:17192kB inactive:2688kB
pre
sent:32768kB
protections[]: 90 90 90
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB
protections[]: 0 0 0
HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB
present:
0kB
protections[]: 0 0 0
DMA: 0*4kB 1*8kB 2*16kB 0*32kB 1*64kB 0*128kB 1*256kB 0*512kB 0*1024kB
0*2048kB
0*4096kB = 360kB
Normal: empty
HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
Out of Memory: Killed process 995 (sh).
oom-killer: gfp_mask=0x1d2
DMA per-cpu:
cpu 0 hot: low 4, high 12, batch 2
cpu 0 cold: low 0, high 4, batch 2
Normal per-cpu: empty
HighMem per-cpu: empty

Free pages:         352kB (0kB HighMem)
Active:4092 inactive:904 dirty:0 writeback:0 unstable:0 free:88 slab:742
mapped:
3850 pagetables:992
DMA free:352kB min:180kB low:360kB high:540kB active:16368kB inactive:3616kB
pre
sent:32768kB
protections[]: 90 90 90
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB
protections[]: 0 0 0
HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB
present:
0kB
protections[]: 0 0 0
DMA: 0*4kB 0*8kB 2*16kB 0*32kB 1*64kB 0*128kB 1*256kB 0*512kB 0*1024kB
0*2048kB
0*4096kB = 352kB
Normal: empty
HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
Out of Memory: Killed process 15 (xinetd).
oom-killer: gfp_mask=0x1d2
DMA per-cpu:
cpu 0 hot: low 4, high 12, batch 2
cpu 0 cold: low 0, high 4, batch 2
Normal per-cpu: empty
HighMem per-cpu: empty

Free pages:         240kB (0kB HighMem)
Active:4271 inactive:753 dirty:0 writeback:0 unstable:0 free:60 slab:743
mapped:
3878 pagetables:992
DMA free:240kB min:180kB low:360kB high:540kB active:17084kB inactive:3012kB
pre
sent:32768kB
protections[]: 90 90 90
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB
protections[]: 0 0 0
HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB
present:
0kB
protections[]: 0 0 0
DMA: 0*4kB 0*8kB 1*16kB 1*32kB 1*64kB 1*128kB 0*256kB 0*512kB 0*1024kB
0*2048kB
0*4096kB = 240kB
Normal: empty
HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
Out of Memory: Killed process 994 (application).
nfs: server 192.168.0.4 not responding, still trying
swapper: page allocation failure. order:0, mode:0x20
Call trace: [c000b428]  [c00358c4]  [c0035954]  [c00398c0]  [c003a798]
[c003aa8
4]  [c003b0ac]  [c0114e1c]  [c0110334]  [c01101f8]  [c000950c]  [c00095dc]
[c00
07e6c]  [c00113c4]  [c01168b8]
eth0: Memory squeeze, dropping packet.
swapper: page allocation failure. order:0, mode:0x20
Call trace: [c000b428]  [c00358c4]  [c0035954]  [c00398c0]  [c003a798]
[c003aa8
4]  [c003b0ac]  [c0114e1c]  [c0110334]  [c01101f8]  [c000950c]  [c00095dc]
[c00
07e6c]  [c00113c4]  [c01168b8]
eth0: Memory squeeze, dropping packet.
swapper: page allocation failure. order:0, mode:0x20
Call trace: [c000b428]  [c00358c4]  [c0035954]  [c00398c0]  [c003a798]
[c003aa8
4]  [c003b0ac]  [c0114e1c]  [c0110334]  [c01101f8]  [c000950c]  [c00095dc]
[c00
07e6c]  [c00113c4]  [c01168b8]
eth0: Memory squeeze, dropping packet.
swapper: page allocation failure. order:0, mode:0x20
Call trace: [c000b428]  [c00358c4]  [c0035954]  [c00398c0]  [c003a798]
[c003aa8
4]  [c003b0ac]  [c0114e1c]  [c0110334]  [c01101f8]  [c000950c]  [c00095dc]
[c00
07e6c]  [c00113c4]  [c01168b8]
eth0: Memory squeeze, dropping packet.
swapper: page allocation failure. order:0, mode:0x20
Call trace: [c000b428]  [c00358c4]  [c0035954]  [c00398c0]  [c003a798]
[c003aa8
4]  [c003b0ac]  [c0114e1c]  [c0110334]  [c01101f8]  [c000950c]  [c00095dc]
[c00
07e6c]  [c00113c4]  [c01168b8]
eth0: Memory squeeze, dropping packet.
nfs: server 192.168.0.4 OK
nfs: server 192.168.0.4 OK
nfs: server 192.168.0.4 not responding, still trying
nfs: server 192.168.0.4 OK
oom-killer: gfp_mask=0x1d2
DMA per-cpu:
cpu 0 hot: low 4, high 12, batch 2
cpu 0 cold: low 0, high 4, batch 2
Normal per-cpu: empty
HighMem per-cpu: empty

Free pages:         368kB (0kB HighMem)
Active:4137 inactive:779 dirty:0 writeback:0 unstable:0 free:92 slab:745
mapped:
3839 pagetables:1000
DMA free:368kB min:180kB low:360kB high:540kB active:16548kB inactive:3116kB
pre
sent:32768kB
protections[]: 90 90 90
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB
protections[]: 0 0 0
HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB
present:
0kB
protections[]: 0 0 0
DMA: 2*4kB 1*8kB 2*16kB 2*32kB 2*64kB 1*128kB 0*256kB 0*512kB 0*1024kB
0*2048kB
0*4096kB = 368kB
Normal: empty
HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
Out of Memory: Killed process 1004 (sh).
nfs: server 192.168.0.4 not responding, still trying
nfs: server 192.168.0.4 OK
nfs: server 192.168.0.4 not responding, still trying
nfs: server 192.168.0.4 OK


Thanks,
Alex
-----Original Message-----
From: Zwane Mwaikambo [mailto:zwane at linuxpower.ca]
Sent: Tuesday, October 12, 2004 11:04 AM
To: Povolotsky, Alexander
Subject: RE: booting PPC 2.6.8-rc4 ppc board kernel panics when NFS
mounti ngroot file system (/fadsroot residing on Red Hat 9 PC
fileserver)


On Tue, 12 Oct 2004, Povolotsky, Alexander wrote:

> >Try setting init=/bin/sh
> 
> Isn't kernel panic message I get: "Attempted to kill init!"
> 
> implies that init has been executed ? or ? 

It probably failed to execute init for some reason or other.
> 
> > how are the binaries on that filesystem?
> 
> That is a good question - what I do I need to check there ?

cd /fadsroot/bin
stat init
file init



More information about the busybox mailing list