Unable to handle kernel paging request for data at address 0x00000000

Burton Samograd bsamograd at Interalia.com
Fri May 20 07:52:06 EST 2011


Reply to myself,

 

Looked like I had HIMEM enabled.  Disabling it caused the problem to go
away.

 

Sorry for the noise.

 

--

Burton Samograd

 

 

________________________________

From: linuxppc-dev-bounces+bsamograd=interalia.com at lists.ozlabs.org
[mailto:linuxppc-dev-bounces+bsamograd=interalia.com at lists.ozlabs.org]
On Behalf Of Burton Samograd
Sent: May 19, 2011 2:12 PM
To: linuxppc-dev at lists.ozlabs.org
Subject: Unable to handle kernel paging request for data at address
0x00000000

 

Hello,

 

I'm trying to get 2.6.38.6 up and running on my ppc880 board and I've
run into a problem when the kernel is attempting to perform it's first
exec (/sbin/init).  I've tried to debug it as much as I can so I thought
I would post this to see if anybody has any ideas or suggestions about
what might be going wrong.

 

Following is a full output of the board bootup messages from U-boot and
the kernel:

 

------------------------------------------------------------------------
-----------------------------------------------

U-Boot 1.3.1 (May 19 2011 - 09:55:57)

 

CPU:   MPC885ZPnn at 131.666 MHz [40.0...133.0 MHz]

       8 kB I-Cache 8 kB D-Cache FEC present

DRAM:  64 MB

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Net:   FEC ETHERNET, FEC2 ETHERNET

IDE:   Hit any key to stop autoboot:  0

Using FEC ETHERNET device

TFTP from server 192.168.0.6; our IP address is 192.168.0.4

Filename 'uImage'.

Load address: 0xe00000

Loading: T
#################################################################

         ##############

done

Bytes transferred = 1155044 (119fe4 hex)

## Booting image at 00e00000 ...

   Image Name:   Linux-2.6.38.6sbx-dirty

   Image Type:   PowerPC Linux Kernel Image (gzip compressed)

   Data Size:    1154980 Bytes =  1.1 MB

   Load Address: 00400000

   Entry Point:  0040055c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

## Current stack ends at 0x03F91AB8 => set upper limit to 0x00800000

## cmdline at 0x007FFF00 ... 0x007FFF79

memstart    = 0x00000000

memsize     = 0x04000000

flashstart  = 0x00000000

flashsize   = 0x00000000

flashoffset = 0x00000000

sramstart   = 0x00000000

sramsize    = 0x00000000

immr_base   = 0xFF000000

bootflags   = 0x00000001

intfreq     = 131.666 MHz

busfreq     = 65.833 MHz

ethaddr     = 00:07:07:00:4C:64

IP addr     = 192.168.0.4

baudrate    =  38400 bps

No initrd

## Transferring control to Linux (at address 0040055c) ...

Kernel Command Line: console=ttyCPM0,38400 root=/dev/nfs,rw
nfsroot=192.168.0.6:/sbx ip=192.168.0.15:192.168.0.6:::sbx:eth0:off
init=/bin/bash

Memory <- <0x0 0x4000000> (64MB)

ENET0: local-mac-address <- 00:07:07:00:4c:64

ENET1: local-mac-address <- 00:3b:f5:21:63:6f

CPU clock-frequency <- 0x7d912de (132MHz)

CPU timebase-frequency <- 0x3ec896 (4MHz)

CPU bus-frequency <- 0x3ec896f (66MHz)

 

zImage starting: loaded at 0x00400000 (sp: 0x03f91978)

Allocating 0x251480 bytes for kernel ...

gunzipping (0x00000000 <- 0x0040c000:0x0068b948)...done 0x23cde0 bytes

 

Linux/PowerPC load: console=ttyCPM0,38400 root=/dev/nfs,rw
nfsroot=192.168.0.6:/sbx ip=192.168.0.15:192.168.0.6:::sbx:eth0:off
init=/bin/bash

Finalizing device tree... flat tree at 0x698300

Using Freescale MPC885 ADS machine description

Linux version 2.6.38.6sbx-dirty (root at burton-fedora-14.interalia.com)
(gcc version 4.2.2) #43 Thu May 19 13:55:22 MDT 2011

Zone PFN ranges:

  DMA      0x00000000 -> 0x00000800

  Normal   empty

  HighMem  0x00000800 -> 0x00004000

Movable zone start PFN for each node

early_node_map[1] active PFN ranges

    0: 0x00000000 -> 0x00004000

MMU: Allocated 72 bytes of context maps for 16 contexts

Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
16256

Kernel command line: console=ttyCPM0,38400 root=/dev/nfs,rw
nfsroot=192.168.0.6:/sbx ip=192.168.0.15:192.168.0.6:::sbx:eth0:off
init=/bin/bash

PID hash table entries: 32 (order: -5, 128 bytes)

Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)

Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)

Memory: 62544k/65536k available (2212k kernel code, 2992k reserved, 80k
data, 81k bss, 96k init)

Kernel virtual memory layout:

  * 0xfffcf000..0xfffff000  : fixmap

  * 0xff800000..0xffc00000  : highmem PTEs

  * 0xff600000..0xff800000  : consistent mem

  * 0xff5f8000..0xff600000  : early ioremap

  * 0xc1000000..0xff5f8000  : vmalloc & ioremap

SLUB: Genslabs=14, HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

NR_IRQS:512 nr_irqs:512 16

Decrementer Frequency = 0x7d912d

clocksource: timebase mult[1e61377e] shift[22] registered

console [ttyCPM0] enabled

pid_max: default: 4096 minimum: 301

Mount-cache hash table entries: 512

NET: Registered protocol family 16

bio: create slab <bio-0> at 0

Switching to clocksource timebase

NET: Registered protocol family 2

Switched to NOHz mode on CPU #0

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 512 (order: 0, 4096 bytes)

TCP bind hash table entries: 512 (order: -1, 2048 bytes)

TCP: Hash tables configured (established 512 bind 512)

TCP reno registered

NET: Registered protocol family 1

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

highmem bounce pool size: 64 pages

msgmni has been set to 16

io scheduler noop registered

io scheduler deadline registered (default)

ff000a80.serial: ttyCPM0 at MMIO 0xc1010a80 (irq = 19) is a CPM UART

ff000a90.serial: ttyCPM1 at MMIO 0xc1018a90 (irq = 24) is a CPM UART

Generic RTC Driver v1.07

Uniform Multi-Platform E-IDE driver

ide-gd driver 1.18

eth0: fs_enet: 00:07:07:00:4c:64

eth1: fs_enet: 00:3b:f5:21:63:6f

FEC MII Bus: probed

mdio_bus ff000e00: error probing PHY at address 3

TCP cubic registered

NET: Registered protocol family 17

IP-Config: Guessing netmask 255.255.255.0

IP-Config: Complete:

     device=eth0, addr=192.168.0.15, mask=255.255.255.0,
gw=255.255.255.255,

     host=sbx, domain=, nis-domain=(none),

     bootserver=192.168.0.6, rootserver=192.168.0.6, rootpath=

VFS: Mounted root (nfs filesystem) readonly on device 0:10.

Freeing unused kernel memory: 96k init

Failed to execute /bin/bash.  Attempting defaults...

Unable to handle kernel paging request for data at address 0x00000000

Faulting instruction address: 0xc000b77c

Oops: Kernel access of bad area, sig: 11 [#1]

Freescale MPC885 ADS

last sysfs file:

NIP: c000b77c LR: c000deb0 CTR: 00000100

REGS: c02e7cc0 TRAP: 0300   Not tainted  (2.6.38.6sbx-dirty)

MSR: 00009032 <EE,ME,IR,DR>  CR: 22248042  XER: 0000f800

DAR: 00000000, DSISR: c0000000

TASK = c02e4000[1] 'swapper' THREAD: c02e6000

GPR00: c000deac c02e7d70 c02e4000 00000000 00000100 c03ecffc 00000000
c022e8ec

GPR08: c02445a0 c02445a0 00009032 000005e0 22248042 10000900 22242044
22242044

GPR16: 22248044 00000000 00000000 00000001 c03e1000 c02e7e38 00000030
00000022

GPR24: c03e1000 c03e27fc c0240000 7ffffff1 c03ecffc 7ffffff1 03c05d21
c02cd0a0

NIP [c000b77c] __flush_dcache_icache+0x14/0x40

LR [c000deb0] flush_dcache_icache_page+0x14/0x24

Call Trace:

[c02e7d70] [c000deac] flush_dcache_icache_page+0x10/0x24 (unreliable)

[c02e7d80] [c000e0c8] set_pte_at+0x50/0x7c

[c02e7da0] [c0060548] handle_pte_fault+0x228/0x3ac

[c02e7dd0] [c00617d8] __get_user_pages+0x2a4/0x3cc

[c02e7e30] [c007536c] get_arg_page+0x40/0xb8

[c02e7e50] [c00755dc] copy_strings+0x114/0x2e8

[c02e7ea0] [c0075ca0] do_execve+0x120/0x254

[c02e7ee0] [c000719c] sys_execve+0x50/0x7c

[c02e7f00] [c000be6c] ret_from_syscall+0x0/0x38

[c02e7fc0] [00001032] 0x1032

[c02e7fd0] [c0002404] init_post+0x88/0xb8

[c02e7fe0] [c0211424] kernel_init+0x144/0x15c

[c02e7ff0] [c000b994] kernel_thread+0x4c/0x68

Instruction dump:

4d820020 7c8903a6 7c001bac 38630010 4200fff8 7c0004ac 4e800020 60000000

54630026 38800100 7c8903a6 7c661b78 <7c00186c> 38630010 4200fff8
7c0004ac

---[ end trace 5e2c5aac0577498f ]---

note: swapper[1] exited with preempt_count 1

BUG: scheduling while atomic: swapper/1/0x00000001

Call Trace:

[c02e7950] [c0006908] show_stack+0x50/0x154 (unreliable)

[c02e7990] [c0016b54] __schedule_bug+0x54/0x68

[c02e79a0] [c01b6560] schedule+0x60/0x344

[c02e7a90] [c01b6d84] schedule_timeout+0x148/0x17c

[c02e7ac0] [c00247c0] msleep_interruptible+0x1c/0x54

[c02e7ad0] [c01139d4] __uart_wait_until_sent+0x90/0xec

[c02e7af0] [c01156c0] uart_close+0x19c/0x2c4

[c02e7b40] [c0109cfc] tty_release+0x1b4/0x45c

[c02e7be0] [c00713ac] fput+0xa8/0x14c

[c02e7c00] [c006e77c] filp_close+0x78/0x90

[c02e7c20] [c001c18c] put_files_struct+0x88/0xe8

[c02e7c40] [c001d640] do_exit+0x168/0x544

[c02e7c80] [c0009528] die+0x184/0x19c

[c02e7ca0] [c000d7c0] bad_page_fault+0xe8/0xfc

[c02e7cb0] [c000c30c] handle_page_fault+0x7c/0x80

[c02e7d70] [c000deac] flush_dcache_icache_page+0x10/0x24

[c02e7d80] [c000e0c8] set_pte_at+0x50/0x7c

[c02e7da0] [c0060548] handle_pte_fault+0x228/0x3ac

[c02e7dd0] [c00617d8] __get_user_pages+0x2a4/0x3cc

[c02e7e30] [c007536c] get_arg_page+0x40/0xb8

[c02e7e50] [c00755dc] copy_strings+0x114/0x2e8

[c02e7ea0] [c0075ca0] do_execve+0x120/0x254

[c02e7ee0] [c000719c] sys_execve+0x50/0x7c

[c02e7f00] [c000be6c] ret_from_syscall+0x0/0x38

[c02e7fc0] [00001032] 0x1032

[c02e7fd0] [c0002404] init_post+0x88/0xb8

[c02e7fe0] [c0211424] kernel_init+0x144/0x15c

[c02e7ff0] [c000b994] kernel_thread+0x4c/0x68

BUG: scheduling while atomic: swapper/1/0x00000001

Call Trace:

[c02e7950] [c0006908] show_stack+0x50/0x154 (unreliable)

[c02e7990] [c0016b54] __schedule_bug+0x54/0x68

[c02e79a0] [c01b6560] schedule+0x60/0x344

[c02e7a90] [c01b6d84] schedule_timeout+0x148/0x17c

[c02e7ac0] [c00247c0] msleep_interruptible+0x1c/0x54

[c02e7ad0] [c01139d4] __uart_wait_until_sent+0x90/0xec

[c02e7af0] [c01156fc] uart_close+0x1d8/0x2c4

[c02e7b40] [c0109cfc] tty_release+0x1b4/0x45c

[c02e7be0] [c00713ac] fput+0xa8/0x14c

[c02e7c00] [c006e77c] filp_close+0x78/0x90

[c02e7c20] [c001c18c] put_files_struct+0x88/0xe8

[c02e7c40] [c001d640] do_exit+0x168/0x544

[c02e7c80] [c0009528] die+0x184/0x19c

[c02e7ca0] [c000d7c0] bad_page_fault+0xe8/0xfc

[c02e7cb0] [c000c30c] handle_page_fault+0x7c/0x80

[c02e7d70] [c000deac] flush_dcache_icache_page+0x10/0x24

[c02e7d80] [c000e0c8] set_pte_at+0x50/0x7c

[c02e7da0] [c0060548] handle_pte_fault+0x228/0x3ac

[c02e7dd0] [c00617d8] __get_user_pages+0x2a4/0x3cc

[c02e7e30] [c007536c] get_arg_page+0x40/0xb8

[c02e7e50] [c00755dc] copy_strings+0x114/0x2e8

[c02e7ea0] [c0075ca0] do_execve+0x120/0x254

[c02e7ee0] [c000719c] sys_execve+0x50/0x7c

[c02e7f00] [c000be6c] ret_from_syscall+0x0/0x38

[c02e7fc0] [00001032] 0x1032

[c02e7fd0] [c0002404] init_post+0x88/0xb8

[c02e7fe0] [c0211424] kernel_init+0x144/0x15c

[c02e7ff0] [c000b994] kernel_thread+0x4c/0x68

Kernel panic - not syncing: Attempted to kill init!

Rebooting in 180 seconds..

------------------------------------------------------------------------
-----------------------------------------------

 

Note: I specify /bin/bash for init on the command line (which currently
isn't present on my current root file system), but it's defaulting to
/sbin/init, which is present in my root filesystem.  This problem
occurred whether /bin/bash or /sbin/init were set.

 

Any advice or help appreciated.

 

--

Burton Samograd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20110519/38501abb/attachment-0001.html>


More information about the Linuxppc-dev mailing list