[uClinux-dev] NFS rooting issues

Allon Stern allon.stern at argonst.com
Wed Feb 6 17:41:40 EST 2008


On Feb 6, 2008, at 3:15 PM, Allon Stern wrote:
> The error I get with 2.6.24 is:
> Unable to mmap process text, errno 12
> Unable to mmap process text, errno 12
> Kernel panic - not syncing: No init found. Try passing init= option  
> to kernel.

Still have no resolution on this.
I turned on DEBUG in fs/binfmt_flat, and in mm/nommu.c on both the  
working (2.6.19-uc1) and nonworking (2.6.24-uc0) kernels to see if  
anyone who understands it more than I will glean a clue. Note that in  
the failure case, it first tries to load /bin/init (I turned on the  
debugging flags), then /bin/sh (I didn't turn on the debugging flag  
in that file, so the second do_mmap is for /bin/sh.

Failure first:
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 60k freed (0x163000 - 0x171000)
BINFMT_FLAT: Loading file: /bin/init
do_mmap:
Process blocks 1: 0026df40: 00000000 -> 00248960: 001f6360 (0 @0 #1).
Unable to mmap process text, errno 12
Exit_mmap:
Process blocks 1: 0026dde0: 00000000.
do_mmap:
Process blocks 1: 0026dde0: 00000000 -> 00248960: 001f6360 (0 @0 #1).
Unable to mmap process text, errno 12
Kernel panic - not syncing: No init found.  Try passing init= option  
to kernel.

Working:
VFS: Mounted root (nfs filesystem) readonly.
Freeing unused kernel memory: 64k freed (0x147000 - 0x156000)
BINFMT_FLAT: Loading file: /bin/init
do_mmap:
Process blocks 1: 00154f2a: 00000000 -> 0029b9a0: 002cc810 (32768  
@1d8000 #1).
do_mmap:
Process blocks 1: 00154f2a: 00000000 -> 0029b9a0: 002cc810 (32768  
@1d8000 #1) ->
  002e2920: 002cc7b0 (131072 @300000 #1).
Mapping is 1d8000, Entry point is 44, data_start is 6980
Load /bin/init: TEXT=1d8040-1de980 DATA=300004-300434 BSS=300434-311e94

Thanks!
-
allon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20080206/df098223/attachment.html


More information about the uClinux-dev mailing list