Hi,
I'm working with a custom 7z020 board, and am trying to port the digilent 13.01 (kernel 3.6) version linux. The issue is that when I compile the kernel w/o adding networking or USB support it boots up fine. But if I add either, the kernel boot up fails with lots of errors. I have not yet tried adding both support at the same time. I have modified the ETH device tree entry to suit the phy used on the board along with the phyad setting.
The boot up log is as follows ::
## Starting application at 0x00008000 ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.6.0-digilent-13.01 (root@Ashish.localhost) (gcc version 4.7.2 (Source
ry CodeBench Lite 2012.09-105) ) #2 SMP PREEMPT Thu Oct 31 12:34:48 IST 2013
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Xilinx Zynq Platform, model: Xilinx Zynq Zed
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] phys_initrd_start == 0x800000, phys_initrd_size = 0x1000000
[ 0.000000] INITRD: 0x00800000+0x01000000 overlaps in-use memory region - disabling initrd
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] PERCPU: Embedded 7 pages/cpu @c1814000 s6912 r8192 d13568 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
[ 0.000000] Kernel command line: console=ttyPS0,115200n8 root=/dev/ram rw initrd=0x00800000,16M e
arlyprintk rootfstype=ext4 rootwait devtmpfs.mount=0
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 1024MB = 1024MB total
[ 0.000000] Memory: 1030324k/1030324k available, 18252k reserved, 303104K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xee000000 - 0xfd000000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xed800000 ( 728 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc02dc600 (2898 kB)
[ 0.000000] .init : 0xc02dd000 - 0xc0305b00 ( 163 kB)
[ 0.000000] .data : 0xc0306000 - 0xc03409a0 ( 235 kB)
[ 0.000000] .bss : 0xc03409c4 - 0xc08e3f24 (5774 kB)
[ 0.000000] Slab corruption (Not tainted): size-64 start=e8001140, len=64
[ 0.000000] 030: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk
[ 0.000000] Next obj: start=e8001180, len=64
[ 0.000000] 000: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk
[ 0.000000] 010: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk
[ 0.000000] Slab corruption (Not tainted): size-128 start=e80020c0, len=128
[ 0.000000] 070: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk
[ 0.000000] Next obj: start=e8002140, len=128
[ 0.000000] 000: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk
[ 0.000000] 010: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk
[ 0.000000] Slab corruption (Not tainted): size-512 start=e8004000, len=512
[ 0.000000] 1f0: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk
[ 0.000000] Next obj: start=e8004200, len=512
[ 0.000000] 000: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk
[ 0.000000] 010: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: at kernel/mutex.c:312 __mutex_unlock_slowpath+0xec/0x19c()
[ 0.000000] Modules linked in:
[ 0.000000] [<c0014a00>] (unwind_backtrace+0x0/0xe0) from [<c0020e50>] (warn_slowpath_common+0x4c
/0x64)
[ 0.000000] [<c0020e50>] (warn_slowpath_common+0x4c/0x64) from [<c0020e80>] (warn_slowpath_null+0
x18/0x1c)
[ 0.000000] [<c0020e80>] (warn_slowpath_null+0x18/0x1c) from [<c0204018>] (__mutex_unlock_slowpat
h+0xec/0x19c)
[ 0.000000] [<c0204018>] (__mutex_unlock_slowpath+0xec/0x19c) from [<c0093f38>] (kmem_cache_creat
e+0x18/0x7c)
[ 0.000000] [<c0093f38>] (kmem_cache_create+0x18/0x7c) from [<c02ee9ac>] (idr_init_cache+0x1c/0x3
0)
[ 0.000000] [<c02ee9ac>] (idr_init_cache+0x1c/0x30) from [<c02dd630>] (start_kernel+0x184/0x2fc)
[ 0.000000] [<c02dd630>] (start_kernel+0x184/0x2fc) from [<00008040>] (0x8040)
[ 0.000000] ---[ end trace 1b75b31a2719ed1c ]---
[ 0.000000] Unable to handle kernel paging request at virtual address 61636372
[ 0.000000] pgd = c0004000
[ 0.000000] [61636372] *pgd=00000000
[ 0.000000] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 Tainted: G W (3.6.0-digilent-13.01 #2)
[ 0.000000] PC is at do_raw_spin_lock+0x8/0x168
[ 0.000000] LR is at _raw_spin_lock_irqsave+0x48/0x54
[ 0.000000] pc : [<c016d7f0>] lr : [<c0205c58>] psr: 600001d3
[ 0.000000] sp : c0307f00 ip : c004877c fp : c0307f7c
[ 0.000000] r10: 6163636e r9 : 413fc090 r8 : 6163636e
[ 0.000000] r7 : c0298bbb r6 : c004877c r5 : 900001d3 r4 : 6163636e
[ 0.000000] r3 : c0328390 r2 : 00000000 r1 : 00000000 r0 : 6163636e
[ 0.000000] Flags: nZCv IRQs off FIQs off Mode SVC_32 ISA ARM Segment kernel
[ 0.000000] Control: 18c5387d Table: 0000404a DAC: 00000015
[ 0.000000] Process swapper/0 (pid: 0, stack limit = 0xc03062f0)
[ 0.000000] Stack: (0xc0307f00 to 0xc0308000)
[ 0.000000] 7f00: 6163636e 00000000 00000000 6163636e 900001d3 c004877c c0298bbb 6163636e
[ 0.000000] 7f20: 413fc090 00000000 c0307f7c c0205c58 00000002 00000000 c004877c 5f726469
[ 0.000000] 7f40: 61635f72 0000000f 00000000 c004877c 2719ed1c 1b75b31a c0307f74 c0307f74
[ 0.000000] 7f60: c0307f78 600001d3 c0298bbb 0000406a 413fc090 00000000 00000000 c020405c
[ 0.000000] 7f80: 00000001 c0298bbb 00040000 c0307f70 00000000 c0093f38 c0298bbb 00000094
[ 0.000000] 7fa0: 00000000 00000001 c0340a00 c0307fa0 c18110c0 c02ee9ac 00000000 00000001
[ 0.000000] 7fc0: 00000000 c02dd630 ffffffff ffffffff c02dd284 00000000 00000000 c02f4c44
[ 0.000000] 7fe0: 00000000 18c5387d c032644c c02f483c c0329834 00008040 00000000 00000000
[ 0.000000] [<c016d7f0>] (do_raw_spin_lock+0x8/0x168) from [<c0205c58>] (_raw_spin_lock_irqsave+0
x48/0x54)
[ 0.000000] [<c0205c58>] (_raw_spin_lock_irqsave+0x48/0x54) from [<c004877c>] (try_to_wake_up+0x2
8/0x2e0)
[ 0.000000] [<c004877c>] (try_to_wake_up+0x28/0x2e0) from [<c020405c>] (__mutex_unlock_slowpath+0
x130/0x19c)
[ 0.000000] [<c020405c>] (__mutex_unlock_slowpath+0x130/0x19c) from [<c0093f38>] (kmem_cache_crea
te+0x18/0x7c)
[ 0.000000] [<c0093f38>] (kmem_cache_create+0x18/0x7c) from [<c02ee9ac>] (idr_init_cache+0x1c/0x3
0)
[ 0.000000] [<c02ee9ac>] (idr_init_cache+0x1c/0x30) from [<c02dd630>] (start_kernel+0x184/0x2fc)
[ 0.000000] [<c02dd630>] (start_kernel+0x184/0x2fc) from [<00008040>] (0x8040)
[ 0.000000] Code: e8bd8070 dead4ead e92d4ff7 e1a0a000 (e5902004)
[ 0.000000] ---[ end trace 1b75b31a2719ed1d ]---
[ 0.000000] Kernel panic - not syncing: Fatal exception