[Soekris] build a kernel help
Frank Kujawski
frank at kujawski.org
Tue Sep 14 22:32:18 UTC 2004
I found the problem, it is with the kernel!
kernel 2.6.8 has a problem with an nfs boot. kernel 2.6.7 and 2.6.8.1
work fine. Go figure, it was my first try,
Frank
On Sun, 2004-09-12 at 17:37, Frank Kujawski wrote:
> I am trying to build my own kernel. I have used Mike Machado
> environment and it does work.
> I have built a kernel, copied it to my /tftpboot area, used pxe and
> dhcp to run the kernel. When the kernel tries to load /sbin/init it
> fails. I have created a new binary that is statically linked that does
> run on Mikes kernel. But every one of my kernels that I have built does
> the below. I am using 2.6.8 and I have used ethereal to see that the
> kernel does find '/sbin/init', but does not load it.
> I presume I am forgetting something, but I seem not to be able to find
> it. Any suggestions?
> Frank
>
>
> Ref:
> eth0: DSPCFG accepted after 0 usec.
> eth0: link up.
> eth0: Setting full-duplex based on negotiated link capability.
> IP-Config: Complete:
> device=eth0, addr=192.168.11.7, mask=255.255.255.240, gw=192.168.11.1,
> host=soekris, domain=, nis-domain=(none),
> bootserver=192.168.11.4, rootserver=192.168.11.4, rootpath=
> Looking up port of RPC 100003/2 on 192.168.11.4
> Looking up port of RPC 100005/1 on 192.168.11.4
> VFS: Mounted root (nfs filesystem) readonly.
> Freeing unused kernel memory: 336k freed
> Unable to handle kernel NULL pointer dereference at virtual address 00000014
> printing eip:
> c017f873
> *pde = 00000000
> Oops: 0000 [#1]
> PREEMPT
> CPU: 0
> EIP: 0060:[<c017f873>] Not tainted
> EFLAGS: 00010246 (2.6.8-bear-1)
> EIP is at nfs_request_init+0x13/0x1c
> eax: 00000000 ebx: c7e4f620 ecx: c7e4b57c edx: c7e40920
> esi: c10fcc80 edi: c7e4b57c ebp: c7fcc000 esp: c7fcca64
> ds: 007b es: 007b ss: 0068
> Process swapper (pid: 1, threadinfo=c7fcc000 task=c7f91670)
> Stack: c7e4f620 c017dff4 c7e4f620 c7e40920 c7fd77c0 c7e4b57c 00000000 00000001
> 00000004 c10fcc80 00001000 c7e4b57c c7e4b57c c01806a1 c7e40920 c7e4b57c
> c10fcc80 00000000 00001000 c10fcc98 c7fccb48 c10fcc98 c10fcc80 c7fccbf8
> Call Trace:
> [<c017dff4>] nfs_create_request+0x9c/0xd4
> [<c01806a1>] readpage_async_filler+0x59/0xf8
> [<c012c48d>] read_cache_pages+0xb1/0x130
> [<c018078a>] nfs_readpages+0x4a/0x98
> [<c0180648>] readpage_async_filler+0x0/0xf8
> [<c012c60f>] read_pages+0x103/0x10c
> [<c0129d85>] buffered_rmqueue+0xf9/0x1b0
> [<c0129eef>] __alloc_pages+0xb3/0x32c
> [<c012a07a>] __alloc_pages+0x23e/0x32c
> [<c012c8d7>] do_page_cache_readahead+0xef/0x178
> [<c012ca47>] page_cache_readahead+0xe7/0x1c4
> [<c01268ef>] do_generic_mapping_read+0xa7/0x3f4
> [<c0126f2d>] __generic_file_aio_read+0x1c5/0x1fc
> [<c0126c3c>] file_read_actor+0x0/0x12c
> [<c0126fa6>] generic_file_aio_read+0x42/0x54
> [<c017a4b3>] nfs_file_read+0x7f/0xb0
> [<c013c378>] do_sync_read+0x74/0xa4
> [<c013c433>] vfs_read+0x8b/0xd0
> [<c014504d>] kernel_read+0x39/0x44
> [<c0145ab0>] prepare_binprm+0xb4/0xd4
> [<c0145e38>] do_execve+0x13c/0x224
> [<c0104037>] sys_execve+0x2b/0x5c
> [<c01058ef>] syscall_call+0x7/0xb
> [<c0100298>] run_init_process+0x1c/0x2c
> [<c01002a8>] init+0x0/0x12c
> [<c0100370>] init+0xc8/0x12c
> [<c01038ad>] kernel_thread_helper+0x5/0xc
> Code: ff 40 14 89 43 18 5b c3 90 8b 4c 24 04 8b 51 0c 3b 54 24 08
> <0>Kernel panic: Attempted to kill init!
> <0>Rebooting in 10 seconds..
>
>
> _______________________________________________
> Soekris-tech mailing list
> Soekris-tech at lists.soekris.com
> http://lists.soekris.com/mailman/listinfo/soekris-tech
More information about the Soekris-tech
mailing list