Unable to handle kernel paging request at vitual address

I am using Linux kernel 2.6.28 on at91sam9263, using arm-none-eabi-gcc (also tried arm-linux-gcc-4.3.3). when I load kernel its show me following message and kernel get crash.

I do remember that i have applied patch from linux4sam to kernel and made filesystem(jffs2) with correct erase block size.

error message is as follows.

U-Boot 1.3.4-svn24220 (Jul 18 2009 - 18:33:01)

U-Boot code: 21000000 -> 21028DD8 BSS: -> 2103D418 RAM Configuration: Bank #0: 20000000 32 MB Flash: 32 MB

*** Warning - bad CRC, using default environment

In: serial Out: serial Err: serial Net: macb0 Reset Ethernet PHY macb0: Starting autonegotiation... macb0: Autonegotiation timed out (status=0x7849) macb0: link down (status: 0x7849) Hit any key to stop autoboot: 3  2  1  0 ## Booting kernel from Legacy Image at 22000000 ... Image Name: Linux-2.6.28 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 731452 Bytes = 714.3 kB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK

Starting kernel ...

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

Linux version 2.6.28 (nirav@niravrabara) (gcc version 4.1.1 (CodeSourcery Sourcery G++ 2006q3-27)) #6 Mon Jul 20 20:54:59 IST 2009

CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: Atmel AT91SAM9263-EK Ignoring unrecognised tag 0x54410008 Memory policy: ECC disabled, Data cache writeback Clocks: CPU 199 MHz, master 99 MHz, main 16.367 MHz Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 Kernel command line: console=ttyS0,115200 root=/dev/mtdblock5 mtdparts=physmap-flash.0:128k(bootstrap)ro,256k(uboot)ro,128k(env1)ro,128k(env2)ro,2816k(linux),-(root);rw rootfstype=jffs2

AT91: 160 gpio irqs in 5 banks PID hash table entries: 128 (order: 7, 512 bytes) Console: colour dummy device 80x30 console [ttyS0] enabled Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 32MB = 32MB total Memory: 30924KB available (1336K code, 115K data, 60K init) Calibrating delay loop... 99.73 BogoMIPS (lpj=498688) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NetWinder Floating Point Emulator V0.97 (double precision) JFFS2 version 2.2. © 2001-2006 Red Hat, Inc. msgmni has been set to 60 io scheduler noop registered io scheduler anticipatory registered (default) atmel_usart.0: ttyS0 at MMIO 0xfeffee00 (irq = 1) is a ATMEL_SERIAL atmel_usart.1: ttyS1 at MMIO 0xfff8c000 (irq = 7) is a ATMEL_SERIAL physmap platform flash device: 02000000 at 10000000 physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu Extended Query Table at 0x0040 physmap-flash.0: CFI does not contain boot bank location. Assuming top. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. mtd: no mtd-id

6 cmdlinepart partitions found on MTD device physmap-flash.0 Creating 6 MTD partitions on "physmap-flash.0": 0x00000000-0x00020000 : "bootstrap" mtd: Giving out device 0 to bootstrap 0x00020000-0x00060000 : "uboot" mtd: Giving out device 1 to uboot 0x00060000-0x00080000 : "env1" mtd: Giving out device 2 to env1 0x00080000-0x000a0000 : "env2" mtd: Giving out device 3 to env2 0x000a0000-0x00360000 : "linux" mtd: Giving out device 4 to linux 0x00360000-0x02000000 : "root" mtd: Giving out device 5 to root slram: not enough parameters. mice: PS/2 mouse device common for all mice Empty flash at 0x0000fffc ends at 0x00010000 Empty flash at 0x0002fffc ends at 0x00030000 Empty flash at 0x0004ff70 ends at 0x00050000 Empty flash at 0x0006fffc ends at 0x00070000 Empty flash at 0x0008fffc ends at 0x00090000 Empty flash at 0x000afffc ends at 0x000b0000 Empty flash at 0x000cff74 ends at 0x000d0000 Empty flash at 0x000efffc ends at 0x000f0000 Empty flash at 0x0010fffc ends at 0x00110000 Empty flash at 0x0012fffc ends at 0x00130000 Empty flash at 0x0014ffa4 ends at 0x00150000 Empty flash at 0x0016fffc ends at 0x00170000 Empty flash at 0x0018fffc ends at 0x00190000 Empty flash at 0x001afffc ends at 0x001b0000 Empty flash at 0x001cfffc ends at 0x001d0000 Empty flash at 0x001efffc ends at 0x001f0000 Empty flash at 0x0020fffc ends at 0x00210000 Empty flash at 0x0022fffc ends at 0x00230000 Empty flash at 0x0024fffc ends at 0x00250000 Empty flash at 0x0026fffc ends at 0x00270000 Empty flash at 0x0028fffc ends at 0x00290000 Empty flash at 0x002afffc ends at 0x002b0000 Empty flash at 0x002cfffc ends at 0x002d0000 Empty flash at 0x002efffc ends at 0x002f0000 Empty flash at 0x0030fffc ends at 0x00310000 Empty flash at 0x0032fffc ends at 0x00330000 Empty flash at 0x0034fffc ends at 0x00350000 Empty flash at 0x0036fffc ends at 0x00370000 Empty flash at 0x0038fffc ends at 0x00390000 Empty flash at 0x003afffc ends at 0x003b0000 Empty flash at 0x003cfffc ends at 0x003d0000 Empty flash at 0x003efffc ends at 0x003f0000 VFS: Mounted root (jffs2 filesystem). Freeing init memory: 60K Warning: unable to open an initial console. Unable to handle kernel paging request at virtual address e0822402 pgd = c0004000 [e0822402] *pgd=00000000 Internal error: Oops: 1 [#1] Modules linked in: CPU: 0 Not tainted (2.6.28 #6) PC is at kfree+0x78/0xbc LR is at jffs2_read_dnode+0x3f8/0x458 pc : [] lr : [] psr: 00000093 sp : c1c15bf0 ip : c1c15c10 fp : c1c15c0c r10: c1400000 r9 : c1d00c68 r8 : 00000000 r7 : c1c99000 r6 : c1c99000 r5 : a0000013 r4 : e0822402 r3 : 00000080 r2 : 00021c99 r1 : 00000000 r0 : c1c00420 Flags: nzcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel Control: 0005317f Table: 20004000 DAC: 00000017 Process swapper (pid: 1, stack limit = 0xc1c14268) Stack: (0xc1c15bf0 to 0xc1c16000) 5be0: 00000000 c1d84528 00000000 c1400000 5c00: c1c15c5c c1c15c10 c00b93d0 c007188c c1400000 00000a71 00001000 c1c00ea0

5c20: c18066d8 c1c5f400 000000d0 00000a71 c1c15c74 00001000 00000000 c1d0cdb8

5c40: c1400000 00000004 c18066d8 00001000 c1c15c9c c1c15c60 c00b953c c00b8fe8

5c60: 00000000 00001000 c1c15c94 c1c5f400 c0071fe0 c01ac000 c18066d8 c1806798

5c80: 00000000 00000004 c1d359e0 00000103 c1c15cbc c1c15ca0 c00b77e8 c00b9440

5ca0: 00001000 00000103 c1c15cd4 c01ac000 c1c15cd4 c1c15cc0 c00b7894 c00b7790

5cc0: c01ac000 c18066d8 c1c15cec c1c15cd8 c00b78dc c00b7890 c01ac000 00000004

5ce0: c1c15d24 c1c15cf0 c005b9b8 c00b78b8 c01ac078 c01ac038 c0083448 c1d35a28

5d00: 00000004 00000000 c1806798 c1d359e0 c1d359e0 c1806798 c1c15d54 c1c15d28

5d20: c005bcb0 c005b82c 00000003 c00845f0 00000000 00000001 00000000

00000000

5d40: 00000000 00000000 c1c15d6c c1c15d58 c005bda4 c005bb78 00000000

00000001

5d60: c1c15dec c1c15d70 c0055414 c005bd80 00000001 c1c15d80 c0057b24 c0057978

5d80: 00000000 c1c15e48 00000fff 00000001 c1d35a28 c1806700 c1c15e88 00000000

5da0: ffffffff 00000001 c1c15ddc 00000000 00000080 c1d80780 00000000

00000080

5dc0: 20000013 c1c15df8 c1d359e0 c1c15ed8 00000080 c0169a04 00000000 c1c15f50

5de0: c1c15eac c1c15df0 c0075318 c0055224 00000000 00000000 00000000 00000001

5e00: 00000000 00000001 ffffffff c1d359e0 00000000 00000000 00000000

00000000

5e20: c1c12c40 c1c12c40 00000000 00000000 c1c15e9c c1c12c40 c0041ea4 c1c15e3c

5e40: c1c15e3c c0175e20 00000000 00000000 c1c15e74 c1c15e60 c0028df8 c00dae34

5e60: 00000080 c0175e20 c1c15e8c c1c15e78 c0028e20 c0028dd0 c0175e20 c1c12c70

5e80: c1c15ea4 c1c15e90 c1d80780 00000080 c1d359e0 c1d359e0 c1d80780 c1c15ed8

5ea0: c1c15ed4 c1c15eb0 c0075c60 c0075278 c0169a08 7fffffff 00000000

00000000

5ec0: c1c15ed8 c0169978 c1c15efc c1c15ed8 c00795f0 c0075bbc 00000000

00000000

5ee0: c011aa90 c1d80780 00000000 000081ed c1c15f1c c1c15f00 c00796f4 c00795a8

5f00: c01481d0 00000002 c1d80780 c01481d0 c1c15f4c c1c15f20 c007a4dc c0079634

5f20: c002f230 00000000 c01481d0 c0169a04 c0169978 c1c15f50 00000000

00000000

5f40: c1c15fb4 c1c15f50 c001afa0 c007a430 00000000 00000000 00000000

00000000

5f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000

00000000

5f80: 00000000 00000000 00000000 00000000 00000000 00000000 c0175ba4 c0014c70

5fa0: 00000000 00000000 c1c15fc4 c1c15fb8 c001744c c001af70 c1c15fdc c1c15fc8

5fc0: c001750c c001743c c0175ba8 c0175ba8 c1c15ff4 c1c15fe0 c0008920 c0017468

5fe0: 00000000 00000000 00000000 c1c15ff8 c0030fe0 c000887c 00000000 0250a016

Backtrace: [] (kfree+0x0/0xbc) from [] (jffs2_read_dnode+0x3f8/0x458)

r6:c1400000 r5:00000000 r4:c1d84528 [] (jffs2_read_dnode+0x0/0x458) from [] (jffs2_read_inode_range+0x10c/0x158)

[] (jffs2_read_inode_range+0x0/0x158) from [] (jffs2_do_readpage_nolock+0x68/0x100) [] (jffs2_do_readpage_nolock+0x0/0x100) from [] (jffs2_do_readpage_unlock+0x14/0x28)

r4:c01ac000 [] (jffs2_do_readpage_unlock+0x0/0x28) from [] (jffs2_readpage+0x34/0x48)

r5:c18066d8 r4:c01ac000 [] (jffs2_readpage+0x0/0x48) from [] (__do_page_cache_readahead+0x19c/0x1ec)

r5:00000004 r4:c01ac000 [] (__do_page_cache_readahead+0x0/0x1ec) from [] (ondemand_readahead+0x148/0x158)

[] (ondemand_readahead+0x0/0x158) from [] (page_cache_sync_readahead+0x34/0x3c)

r8:00000000 r7:00000000 r6:00000000 r5:00000000 r4:00000001 [] (page_cache_sync_readahead+0x0/0x3c) from [] (generic_file_aio_read+0x200/0x604)

[] (generic_file_aio_read+0x0/0x604) from [] (do_sync_read+0xb0/0x100) [] (do_sync_read+0x0/0x100) from [] (vfs_read+0xb4/0x144)

r6:c1c15ed8 r5:c1d80780 r4:c1d359e0 [] (vfs_read+0x0/0x144) from [] (kernel_read+0x58/0x8c)

r7:c0169978 r6:c1c15ed8 r5:00000000 r4:00000000 [] (kernel_read+0x0/0x8c) from [] (prepare_binprm+0xd0/0xe0)

r6:000081ed r5:00000000 r4:c1d80780 [] (prepare_binprm+0x0/0xe0) from [] (do_execve+0xbc/0x1d0)

r6:c01481d0 r5:c1d80780 r4:00000002 [] (do_execve+0x0/0x1d0) from [] (kernel_execve+0x40/0x88)

[] (kernel_execve+0x0/0x88) from [] (run_init_process+0x20/0x2c)

r7:00000000 r6:00000000 r5:c0014c70 r4:c0175ba4 [] (run_init_process+0x0/0x2c) from [] (init_post+0xb4/0x104)

[] (init_post+0x0/0x104) from [] (kernel_init+0xb4/0xd8)

r4:c0175ba8 [] (kernel_init+0x0/0xd8) from [] (do_exit+0x0/0x6e0) r5:00000000 r4:00000000 Code: e59f1048 ebfea7ca e5900018 e5904000 (e894000a)

---[ end trace 4b45c02f1414db66 ]--- Kernel panic - not syncing: Attempted to kill init!

Can anybody suggest me what is going wrong ?? Linux kernel or kernel config or Filesystem or crosscompiler tool chain what????

Reply to
nrabara
Loading thread data ...

g
,
28k( env2)ro,2816k(linux),-(root);rw

I would suspect the section locations placed in the built image.

Reply to
Neo

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.