Kernel panic / page fault help

Started by roboman152 May 25, 2006
Hi, Im a newb to working at this level with the kernel. (mainly a hardware
Anyways im trying to get 2.6.14 to run on my custom board. Ive got 16MB
of SDRAM and 2MB of Dataflash, it enters the kernel but page faults,
is the whole nitty gritty, any suggestions on what could cause this/ were
look for a solution?

U-Boot 1.1.2 (May 17 2006 - 15:46:16)

U-Boot code: 20F00000 -> 20F144FC  BSS: -> 20F18DC8
RAM Configuration:
Bank #0: 20000000 16 MB
Atmel: Flash:  0 kB
Nb pages:   4096
Page Size:    528
Size= 2162688 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C0007FFF (RO)
Area 1: C0008000 to C001FFFF (RO)
Area 2: C0020000 to C0027FFF
Area 3: C0028000 to C020FFFF
In:    serial
Out:   serial
Err:   serial
U-Boot> loadb
## Ready for binary (kermit) download to 0x20800000 at 115200 bps...
### Send (K) uImage: 726640 bytes, 1:35 elapsed, 7642 cps, 66%
## Total Size      = 0x000b1670 = 726640 Bytes
## Start Addr      = 0x20800000
U-Boot> bootm
## Booting image at 20800000 ...
   Image Name:   Linux-2.6.14
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    726576 Bytes = 709.5 kB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK

Starting kernel ... leaving uBoot land to kernel! --->

Uncompressing Linux................................................. done,
booting the kernel.

20008000: E321F0D3 EB0000B1 E1B0A005 0A00005A  EB0000C6 E1B08005 0A000068
20008020: E59FD004 E28FE068 E28AF00C C0008050  C0142000 C0142000 C0172960
20008040: C017572C C01756FC C0145924 C0143FF8  E24F3028 E8B300F0 E1540005
20008060: 1494B004 1485B004 1AFFFFFB E3A0B000  E1560007 3486B004 3AFFFFFC
20008080: E5849000 E5851000 E3C04002 E8860011  EA0001D8 E3800002 E3A0501F
200080A0: EE024F10 EA000005 00000000 00000000  00000000 00000000 00000000
200080C0: E1A00000 EE010F10 EE103F10 E1A03003  E1A03003 E1A0F00D E5985004
200080E0: E2444901 E1A00004 E3A03000 E2806901  E4803004 E4803004 E4803004
Linux version 2.6.14 (roboman@gooseProduction) (gcc version 3.4.5) #4 Wed
May 24 22:12:27 EDT 2006
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: Atmel AT91RM9200-DK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 179 MHz, master 59 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: console=ttyS0,115200n8 mem=16M@0x20000000
root=/dev/ram rw
PID hash table entries: 128 (order: 7, 2048 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
emory: 16MB = 16MB total
Memory: 14628KB available (1177K code, 286K data, 76K init)
SLAB: cache with size 0 has lost its name
Unable to handle kernel paging request at virtual address fffffffc
pgd = c0004000
[fffffffc] *pgd=20002031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in:
CPU: 0
PC is at kmem_cache_create+0x500/0x66c
LR is at 0x1
pc : [<c00563a0>]    lr : [<00000001>]    Not tainted
sp : c0143f5c  ip : ffffffb4  fp : c0143f9c
r10: c017d8e4  r9 : c0142000  r8 : c017d8f4
r7 : 00000000  r6 : c018ac00  r5 : fffffffd  r4 : 00000000
r3 : c014654c  r2 : 00000000  r1 : 00000473  r0 : 0000002d
Flags: nzcv  IRQs on  FIQs off  Mode SVC_32  Segment kernel
Control: C000717F  Table: 20004000  DAC: 00000017
Process swapper (pid: 0, stack limit = 0xc0142194)
Stack: (0xc0143f5c to 0xc0144000)
3f60: c018ac1c 00000000 c012ad3c 00000008 c00563cc c017da98 c0186200
3f80: c0189a84 200181f0 41129200 200181c0 c0143fc0 c0143fa0 c00adf44
3fa0: c00adeec 00000000 c0051f5c c0007175 c01731bc c0143fd0 c0143fc4
3fc0: c00adf14 c0143ff4 c0143fd4 c000894c c0013d24 c0008464 c0175788
3fe0: c01756fc c0145924 00000000 c0143ff8 20008094 c0008808 00000000
[<c0055ea0>] (kmem_cache_create+0x0/0x66c) from [<c00adf44>]
[<c00adf04>] (idr_init+0x0/0x64) from [<c0013d28>]
 r5 = C01731BC  r4 = C0007175
[<c0013d14>] (unnamed_dev_init+0x0/0x1c) from [<c000894c>]
[<c00087f8>] (start_kernel+0x0/0x1bc) from [<20008094>] (0x20008094)
 r6 = C0145924  r5 = C01756FC  r4 = C0007175
Code: e5984000 e1540008 0a00001f e244c04c (e59c0048)
 <0>Kernel panic - not syncing: Attempted to kill the idle task!
It seems there is problem in memory mapping....check up the mtd
configuration, drivers/mtd/map/ur-mapping.c file