A question about Kernel panic

Discussion about U-Boot and the kernel.

A question about Kernel panic

Postby djman » Thu Apr 24, 2014 9:38 am

Hi!

I'm so sorry because I'm not good at English, so it will be a little difficult to read :( .

I have a board of samsung4412, when I boot the kernel, it will show "<0>Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b"

My kernel version is 3.5.0, here are some start information
$this->bbcode_second_pass_code('', '<5>Linux version 3.5.0-rc6-g115bae7-dirty (root@lenovo) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #9 SMP PREEMPT Mon Apr 21 15:50:49 CST 2014
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: SMDK4412
')

And it show a Oops, too:

wm8994 1-001a: Failed to read ID register
<1>Unable to handle kernel NULL pointer dereference at virtual address 00000508
<1>pgd = c0004000
<1>[00000508] *pgd=00000000
<0>Internal error: Oops: 5 [#1] PREEMPT SMP ARM
<d>Modules linked in:
CPU: 0 Not tainted (3.5.0-rc6-g115bae7-dirty #9)
PC is at mfd_remove_devices_fn+0x28/0x48
LR is at device_for_each_child+0x58/0x84
pc : [<c0281328>] lr : [<c0261704>] psr: 60000053
sp : ee043db0 ip : ee043dc0 fp : ee043dbc
r10: ee216800 r9 : c04f9234 r8 : ee216820
r7 : fffffffa r6 : c0281300 r5 : 00000000 r4 : ee043dec
r3 : 00000500 r2 : 00000000 r1 : ee043dec r0 : ec10ac70
Flags: nZCv IRQs on FIQs off Mode SVC_32 ISA ARM Segment kernel
Control: 10c5387d Table: 4000404a DAC: 00000015

And I find some other problems:

My board have 2G RAM, and the uboot already read 2G RAM, but the kernel only read 728MB:
$this->bbcode_second_pass_code('', '<6>Memory: 384MB 344MB = 728MB total
<5>Memory: 713188k/713188k available, 65052k reserved, 0K highmem')

I try my best but it still no work :cry:

Can anyone could help me with this question?

Thank you!
djman
 
Posts: 7
Joined: Tue Apr 22, 2014 2:00 am

Re: A question about Kernel panic

Postby WarheadsSE » Thu Apr 24, 2014 1:52 pm

Please supply a complete kernel panic, and preferably, boot log, so that we can actually see what happened.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: A question about Kernel panic

Postby djman » Fri Apr 25, 2014 1:28 am

This is the whole start information:
$this->bbcode_second_pass_code('', 'OK

U-Boot 2010.12 (Nov 04 2013 - 01:29:04) for SMDK4412


CPU: S5PC220 [Samsung SOC on SMP Platform Base on ARM CortexA9]
APLL = 1000MHz, MPLL = 800MHz
DRAM: 2047 MiB
TrustZone Enabled BSP
BL1 version: 20120823


Checking Boot Mode ...[00000007] EMMC4.41
-------REVISION: 1.1
NAME: S5P_MSHC4
MMC Device 0: 7456 MB [00e90000][00000200]
MMC Device 1: 3724 MB [00746000][00000200]
MMC Device 2 not found
utmodel=s901.
chrg_det:1, 00000088
Battery ADC:2288
LCD_turnon();
env lcd panel: ut9gm. [1]
reset_mode: 0x0 [0x0]
key info = [3, 3, 80] b_info=0.
=>[1]
=>[boot]
key info = [3, 3, 80] b_info=0.
reading Logo..device 0 Count 49152, Start 6144, pic_index=0
MMC read: dev # 0, block # 49152, count 6144 ... 6144 blocks read: OK
completed
Logo info W[1024]H[768]C[24]

logo 768x1024
do_draw_logo(), w1024, h768
Hit any key to stop autoboot: 0
do_setddrV enter !

reading kernel..device 0 Start 1063, Count 12288
MMC read: dev # 0, block # 1063, count 12288 ... 12288 blocks read: OK
completed
reading RFS..device 0 Count 13351, Start 2048
MMC read: dev # 0, block # 13351, count 2048 ... 2048 blocks read: OK
completed
Boot with zImage
## Loading init Ramdisk from Legacy Image at 41000000 ...
Image Name: ramdisk
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 170000 Bytes = 170000 Load Address: 40800000
Entry Point: 40800000

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
<6>Booting Linux on physical CPU 0
<6>Initializing cgroup subsys cpu
<5>Linux version 3.5.0-rc6-g115bae7-dirty (root@lenovo) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #9 SMP PREEMPT Mon Apr 21 15:50:49 CST 2014
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: SMDK4412
<5>Truncating RAM at 60000000-6fffffff to -6f7fffff (vmalloc region overlap).
<5>Ignoring RAM at 70000000-7fffffff (vmalloc region overlap).
<5>Ignoring RAM at 80000000-8fffffff (vmalloc region overlap).
<5>Ignoring RAM at 90000000-9fffffff (vmalloc region overlap).
<5>Ignoring RAM at a0000000-afffffff (vmalloc region overlap).
<5>Ignoring RAM at b0000000-bfefffff (vmalloc region overlap).
<6>cma: CMA: reserved 16 MiB at 6e800000
Memory policy: ECC disabled, Data cache writealloc
CPU EXYNOS4412 (id 0xe4412011)
<7>exynos4_init_clocks: initializing clocks
<6>S3C24XX Clocks, Copyright 2004 Simtec Electronics
<3>s3c_register_clksrc: clock armclk has no registers set
<3>s3c_register_clksrc: clock audiocdclk has no registers set
<3>audiocdclk: no parent clock specified
<7>exynos4_setup_clocks: registering clocks
<7>exynos4_setup_clocks: xtal is 24000000
<6>EXYNOS4: PLL settings, A=1000000000, M=800000000, E=96000000 V=350000000<6>EXYNOS4: ARMCLK=1000000000, DMC=400000000, ACLK200=160000000
ACLK100=100000000, ACLK160=160000000, ACLK133=133333333
<6>sclk_pwm: source is ext_xtal (0), rate is 24000000
<6>sclk_csis: source is xusbxti (1), rate is 1500000
<6>sclk_csis: source is xusbxti (1), rate is 1500000
<6>sclk_cam0: source is xusbxti (1), rate is 1500000
<6>sclk_cam1: source is xusbxti (1), rate is 1500000
<6>sclk_fimc: source is xusbxti (1), rate is 1500000
<6>sclk_fimc: source is xusbxti (1), rate is 1500000
<6>sclk_fimc: source is xusbxti (1), rate is 1500000
<6>sclk_fimc: source is xusbxti (1), rate is 1500000
<6>sclk_fimd: source is mout_mpll_user (6), rate is 66666666
<6>sclk_jpeg: source is mout_jpeg0 (0), rate is 50000000
<6>sclk_fimg2d: source is mout_g2d0 (0), rate is 200000000
<6>sclk_g3d: source is mout_g3d0 (0), rate is 50000000
<6>sclk_mfc: source is mout_mfc0 (0), rate is 50000000
<7>On node 0 totalpages: 186368
<7>free_area_init_node: node 0, pgdat c07c6f00, node_mem_map c086c000
<7> Normal zone: 1520 pages used for memmap
<7> Normal zone: 0 pages reserved
<7> Normal zone: 184848 pages, LIFO batch:31
<6>PERCPU: Embedded 8 pages/cpu @c0e66000 s11392 r8192 d13184 u32768
<7>pcpu-alloc: s11392 r8192 d13184 u32768 alloc=8*4096<c>
<7>pcpu-alloc: <c>[0] <c>0 <c>[0] <c>1 <c>[0] <c>2 <c>[0] <c>3 <c>
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 184848
<5>Kernel command line: ddr=77 tmu=no macID= dock=n tp= umsvor= umspct= battery= plug= bltype=no amp= motor_value= utmodel=s901 lcd=ut9gm came= codec=wm8978 bt= wifi= gps= eth= fm= gsmd= nfc= ls= motor= lcdRGB= oem= E serialno=ExynosMID macw= macb= E
<6>PID hash table entries: 4096 (order: 2, 16384 bytes)
<6>Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
<6>Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
<6>Memory: 384MB 344MB = 728MB total
<5>Memory: 713188k/713188k available, 65052k reserved, 0K highmem
<5>Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0706304 (7161 kB)
.init : 0xc0707000 - 0xc074ec80 ( 288 kB)
.data : 0xc0750000 - 0xc07fa968 ( 683 kB)
.bss : 0xc07fa98c - 0xc086b610 ( 452 kB)
<6>SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
<6>Preemptible hierarchical RCU implementation.
<6>NR_IRQS:549
<6>sched_clock: 32 bits at 200 Hz, resolution 5000000ns, wraps every 4294967291ms
<6>Console: colour dummy device 80x30
<6>console [tty0] enabled
<6>Calibrating delay loop... <c>1992.29 BogoMIPS (lpj=4980736)
<6>pid_max: default: 32768 minimum: 301
<6>Mount-cache hash table entries: 512
<6>Initializing cgroup subsys cpuacct
<6>Initializing cgroup subsys freezer
<6>CPU: Testing write buffer coherency: ok
<6>ftrace: allocating 18777 entries in 56 pages
<6>CPU0: thread -1, cpu 0, socket 10, mpidr 80000a00
<6>Setting up static identity map for 0x4050ab18 - 0x4050ab70
<6>L310 cache controller enabled
<6>l2x0: 16 ways, CACHE_ID 0x4100c4c8, AUX_CTRL 0x7e470001, Cache size: 1048576 B
CPU1: Booted secondary processor
<6>CPU1: thread -1, cpu 1, socket 10, mpidr 80000a01
<2>CPU1: Unknown IPI message 0x1
CPU2: Booted secondary processor
<6>CPU2: thread -1, cpu 2, socket 10, mpidr 80000a02
<2>CPU2: Unknown IPI message 0x1
CPU3: Booted secondary processor
<6>CPU3: thread -1, cpu 3, socket 10, mpidr 80000a03
<2>CPU3: Unknown IPI message 0x1
<6>Brought up 4 CPUs
<6>SMP: Total of 4 processors activated (7969.17 BogoMIPS).
<6>dummy:
<6>NET: Registered protocol family 16
<6>DMA: preallocated 256 KiB pool for atomic coherent allocations
<3>Camera port A setup failed
S3C Power Management, Copyright 2004 Simtec Electronics
<6>EXYNOS4x12 PMU Initialize
<6>EXYNOS: Initializing architecture
s3c24xx-pwm s3c24xx-pwm.1: tin at 100000000, tdiv at 100000000, tin=divclk, base 8
<6>bio: create slab <bio-0> at 0
<6>VDD_1.8V: 1800 mV
<6>DC_5V: 5000 mV
<6>VDD_3.3V: 3300 mV
exynos_ion_heap_create: 34
exynos_ion_heap_create: 34
exynos_ion_heap_create: 34
<5>SCSI subsystem initialized
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
s3c-i2c s3c2440-i2c.0: slave address 0x10
s3c-i2c s3c2440-i2c.0: bus frequency set to 97 KHz
s5m87xx 0-0066: Failed to read interrupt register: -6
<3>vdd_ldo8 range: failed to enable
s5m8767-pmic s5m8767-pmic: regulator init failed for 7
s3c-i2c s3c2440-i2c.0: i2c-0: S3C I2C adapter
s3c-i2c s3c2440-i2c.1: slave address 0x10
s3c-i2c s3c2440-i2c.1: bus frequency set to 97 KHz
s3c-i2c s3c2440-i2c.1: i2c-1: S3C I2C adapter
s3c-i2c s3c2440-i2c.2: slave address 0x10
s3c-i2c s3c2440-i2c.2: bus frequency set to 97 KHz
s3c-i2c s3c2440-i2c.2: i2c-2: S3C I2C adapter
s3c-i2c s3c2440-i2c.3: slave address 0x10
s3c-i2c s3c2440-i2c.3: bus frequency set to 97 KHz
s3c-i2c s3c2440-i2c.3: i2c-3: S3C I2C adapter
s3c-i2c s3c2440-i2c.7: slave address 0x10
s3c-i2c s3c2440-i2c.7: bus frequency set to 97 KHz
s3c-i2c s3c2440-i2c.7: i2c-7: S3C I2C adapter
s3c-i2c s3c2440-hdmiphy-i2c: slave address 0x10
s3c-i2c s3c2440-hdmiphy-i2c: bus frequency set to 390 KHz
s3c-i2c s3c2440-hdmiphy-i2c: i2c-8: S3C I2C adapter
<6>Linux media interface: v0.10
<6>Linux video capture interface: v2.00
<6>Advanced Linux Sound Architecture Driver Version 1.0.25.
<6>Switching to clocksource mct-frc
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
<6>TCP bind hash table entries: 65536 (order: 8, 1572864 bytes)
<6>TCP: Hash tables configured (established 131072 bind 65536)
<6>TCP: reno registered
<6>UDP hash table entries: 512 (order: 3, 32768 bytes)
<6>UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
<6>NET: Registered protocol family 1
<6>Trying to unpack rootfs image as initramfs...
<6>Freeing initrd memory: 164K
<6>Attached IOMMU controller to exynos4-fimc.0 device.
<6>Attached IOMMU controller to exynos4-fimc.1 device.
<6>Attached IOMMU controller to exynos4-fimc.2 device.
<6>Attached IOMMU controller to exynos4-fimc.3 device.
<6>Attached IOMMU controller to s5p-mfc-l device.
<6>Attached IOMMU controller to s5p-mfc-r device.
<6>Attached IOMMU controller to s5p-mixer device.
<6>Attached IOMMU controller to s5p-fimg2d device.
<6>Attached IOMMU controller to s5p-jpeg.0 device.
platform exynos-fimc-lite.0: No SYSMMU found
<6>Attached IOMMU controller to exynos-fimc-lite.0 device.
platform exynos-fimc-lite.1: No SYSMMU found
<6>Attached IOMMU controller to exynos-fimc-lite.1 device.
<3>Failed to declare coherent memory for MFC device (0 bytes at 0x43000000)
<6>ROMFS MTD (C) 2007 Red Hat, Inc.
<6>fuse init (API version 7.19)
<6>msgmni has been set to 1425
<6>io scheduler noop registered
<6>io scheduler deadline registered
<6>io scheduler cfq registered (default)
<6>start plist test
<6>end plist test
s3c-fb exynos4-fb.0: start latency exceeded, new value 834 ns
s3c-fb exynos4-fb.0: state restore latency exceeded, new value 34500 ns
s3c-fb exynos4-fb.0: stop latency exceeded, new value 500 ns
s3c-fb exynos4-fb.0: window 0: fb
s3c-fb exynos4-fb.0: window 1: fb
s3c-fb exynos4-fb.0: window 2: fb
s3c-fb exynos4-fb.0: window 3: fb
s3c-fb exynos4-fb.0: window 4: fb
dma-pl330 dma-pl330.0: Loaded driver for PL330 DMAC-267056
dma-pl330 dma-pl330.0: DBUFF-32x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
dma-pl330 dma-pl330.1: Loaded driver for PL330 DMAC-267056
dma-pl330 dma-pl330.1: DBUFF-32x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
<6>Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
<6>exynos4210-uart.0: ttySAC0 at MMIO 0x13800000 (irq = 84) is a S3C6400/10
<6>exynos4210-uart.1: ttySAC1 at MMIO 0x13810000 (irq = 85) is a S3C6400/10
<6>exynos4210-uart.2: ttySAC2 at MMIO 0x13820000 (irq = 86) is a S3C6400/10
<6>exynos4210-uart.3: ttySAC3 at MMIO 0x13830000 (irq = 87) is a S3C6400/10
mali-utgard mali-utgard.0: start latency exceeded, new value 791 ns
mali-utgard mali-utgard.0: state restore latency exceeded, new value 3583 ns
mali-utgard mali-utgard.0: stop latency exceeded, new value 458 ns
Mali: init_mali_clock mali_clock c077b608
Mali: MALI Error : failed to get vdd_g3d
mali-utgard mali-utgard.0: stop latency exceeded, new value 625 ns
mali-utgard mali-utgard.0: state save latency exceeded, new value 3458 ns
<4>pd-g3d: Power-off latency exceeded, new value 249834 ns
Mali: Mali device driver loaded
<6>brd: module loaded
<6>loop: module loaded
<6>AVDD1:
<6>DCVDD:
wm8994 1-001a: Failed to read ID register
<1>Unable to handle kernel NULL pointer dereference at virtual address 00000508
<1>pgd = c0004000
<1>[00000508] *pgd=00000000
<0>Internal error: Oops: 5 [#1] PREEMPT SMP ARM
<d>Modules linked in:
CPU: 0 Not tainted (3.5.0-rc6-g115bae7-dirty #9)

PC is at mfd_remove_devices_fn+0x28/0x48
LR is at device_for_each_child+0x58/0x84
pc : [<c0281328>] lr : [<c0261704>] psr: 60000053
sp : ee043db0 ip : ee043dc0 fp : ee043dbc
r10: ee216800 r9 : c04f9234 r8 : ee216820
r7 : fffffffa r6 : c0281300 r5 : 00000000 r4 : ee043dec
r3 : 00000500 r2 : 00000000 r1 : ee043dec r0 : ec10ac70
Flags: nZCv IRQs on FIQs off Mode SVC_32 ISA ARM Segment kernel
Control: 10c5387d Table: 4000404a DAC: 00000015

PC: 0xc02812a8:
12a8 0a000012 e1a03006 e4869004 e5843008 e1a02004 e99b1008 e1a00008 e1a0100a
12c8 e2855001 e2844030 e58dc000 ebfffefb e3500000 0afffff0 e1a03000 e1a00008
12e8 e50b3030 ebffffc1 e51b3030 eaffffdc e1a03000 eaffffda e1a0c00d e92dd800
1308 e24cb004 e92d4000 e8bd4000 e1a03000 e5912000 e2400008 e59331c4 e3520000
1328 e5933008 0a000001 e1520003 9a000000 e5813000 ebff96b1 e3a00000 e89da800
1348 e1a0c00d e92dd830 e24cb004 e92d4000 e8bd4000 e59051cc e5953008 f57ff05f
1368 e1932f9f e2422001 e1831f92 e3310000 1afffffa f57ff05f e3520000 13a04000
1388 0a000005 e5953008 e5933000 e3530000 ba00000c e1a00004 e89da830 e5953010

LR: 0xc0261684:
1684 e24b0024 eb0a5162 e1a00005 e24bd018 e89da870 e1a00005 ebfffe43 e3500000
16a4 0afffff1 eafffff5 e1a0c00d e92dd870 e24cb004 e24dd00c e92d4000 e8bd4000
16c4 e5900004 e1a04001 e1a06002 e3500000 01a05000 0a000011 e24b1024 e3a05000
16e4 eb0a5022 ea000006 e590003c e3500000 0a000008 e3550000 1a000006 e12fff36
1704 e1a05000 e24b0024 eb0a50db e1a01004 e3500000 1afffff3 e24b0024 eb0a513c
1724 e1a00005 e24bd018 e89da870 e1a0c00d e92dd9f8 e24cb004 e92d4000 e8bd4000
1744 e2805008 e1a07002 e1a03005 ea000002 e593300c e3530000 0a000033 e5934010
1764 e3540000 0afffff9 e5943040 e3530000 0a00002d e5932008 e3520000 0a000032

SP: 0xee043d30:
3d30 ee0f0300 ee042000 c0772ef8 c0772ef8 ee043d6c ee043d50 c0281328 60000053
3d50 ffffffff ee043d9c ee043dbc ee043d68 c000e298 c00083cc ec10ac70 ee043dec
3d70 00000000 00000500 ee043dec 00000000 c0281300 fffffffa ee216820 c04f9234
3d90 ee216800 ee043dbc ee043dc0 ee043db0 c0261704 c0281328 60000053 ffffffff
3db0 ee043de4 ee043dc0 c0261704 c028130c ee30c400 ee117c24 ee043dfc ee117990
3dd0 c0783950 ee216820 ee043dfc ee043de8 c0281228 c02616b8 ee216820 00000000
3df0 ee043e2c ee043e00 c04f9810 c0281204 00000000 00000000 c052d690 c052d660
3e10 c052d678 ee216804 ee216820 ee216800 ee043e5c ee043e30 c02fd050 c04f9240

IP: 0xee043d40:
3d40 ee043d6c ee043d50 c0281328 60000053 ffffffff ee043d9c ee043dbc ee043d68
3d60 c000e298 c00083cc ec10ac70 ee043dec 00000000 00000500 ee043dec 00000000
3d80 c0281300 fffffffa ee216820 c04f9234 ee216800 ee043dbc ee043dc0 ee043db0
3da0 c0261704 c0281328 60000053 ffffffff ee043de4 ee043dc0 c0261704 c028130c
3dc0 ee30c400 ee117c24 ee043dfc ee117990 c0783950 ee216820 ee043dfc ee043de8
3de0 c0281228 c02616b8 ee216820 00000000 ee043e2c ee043e00 c04f9810 c0281204
3e00 00000000 00000000 c052d690 c052d660 c052d678 ee216804 ee216820 ee216800
3e20 ee043e5c ee043e30 c02fd050 c04f9240 c02fcf80 ee216820 c0853814 ee216854

FP: 0xee043d3c:
3d3c c0772ef8 ee043d6c ee043d50 c0281328 60000053 ffffffff ee043d9c ee043dbc
3d5c ee043d68 c000e298 c00083cc ec10ac70 ee043dec 00000000 00000500 ee043dec
3d7c 00000000 c0281300 fffffffa ee216820 c04f9234 ee216800 ee043dbc ee043dc0
3d9c ee043db0 c0261704 c0281328 60000053 ffffffff ee043de4 ee043dc0 c0261704
3dbc c028130c ee30c400 ee117c24 ee043dfc ee117990 c0783950 ee216820 ee043dfc
3ddc ee043de8 c0281228 c02616b8 ee216820 00000000 ee043e2c ee043e00 c04f9810
3dfc c0281204 00000000 00000000 c052d690 c052d660 c052d678 ee216804 ee216820
3e1c ee216800 ee043e5c ee043e30 c02fd050 c04f9240 c02fcf80 ee216820 c0853814

R0: 0xec10abf0:
abf0 00000000 00000000 00000000 00000000 c0529a78 00000000 00000000 00000000
ac10 ee135010 ee3a4010 ec10ac18 ec10ac18 00000000 00000000 00000000 dead4ead
ac30 ffffffff ffffffff ec10ac38 ec10ac38 00000000 00000001 00000000 00000000
ac50 dead4ead ffffffff ffffffff ec10ac5c ec10ac5c 00000000 00000000 ec10ac44
ac70 00000000 00000000 ee216820 ee117c00 ee3bb5c0 ee15a414 ebc0e014 ee3bb600
ac90 ee034880 c07a7c58 ee3bb740 00000003 00000007 00000000 00000000 00000001
acb0 00000000 00000000 dead4ead ffffffff ffffffff ec10acc4 ec10acc4 00000000
acd0 00000000 ec10acac 00000000 00000000 00000000 00000000 00000000 00000000

R1: 0xee043d6c:
3d6c ee043dec 00000000 00000500 ee043dec 00000000 c0281300 fffffffa ee216820
3d8c c04f9234 ee216800 ee043dbc ee043dc0 ee043db0 c0261704 c0281328 60000053
3dac ffffffff ee043de4 ee043dc0 c0261704 c028130c ee30c400 ee117c24 ee043dfc
3dcc ee117990 c0783950 ee216820 ee043dfc ee043de8 c0281228 c02616b8 ee216820
3dec 00000000 ee043e2c ee043e00 c04f9810 c0281204 00000000 00000000 c052d690
3e0c c052d660 c052d678 ee216804 ee216820 ee216800 ee043e5c ee043e30 c02fd050
3e2c c04f9240 c02fcf80 ee216820 c0853814 ee216854 00000000 c07a8d34 c074b7b0
3e4c c07fa9c0 ee043e84 ee043e60 c0265118 c02fcf8c 00000000 ee216820 c07a8d34

R4: 0xee043d6c:
3d6c ee043dec 00000000 00000500 ee043dec 00000000 c0281300 fffffffa ee216820
3d8c c04f9234 ee216800 ee043dbc ee043dc0 ee043db0 c0261704 c0281328 60000053
3dac ffffffff ee043de4 ee043dc0 c0261704 c028130c ee30c400 ee117c24 ee043dfc
3dcc ee117990 c0783950 ee216820 ee043dfc ee043de8 c0281228 c02616b8 ee216820
3dec 00000000 ee043e2c ee043e00 c04f9810 c0281204 00000000 00000000 c052d690
3e0c c052d660 c052d678 ee216804 ee216820 ee216800 ee043e5c ee043e30 c02fd050
3e2c c04f9240 c02fcf80 ee216820 c0853814 ee216854 00000000 c07a8d34 c074b7b0
3e4c c07fa9c0 ee043e84 ee043e60 c0265118 c02fcf8c 00000000 ee216820 c07a8d34

R6: 0xc0281280:
1280 ebf98b52 e2506000 0afffff6 e3570000 01a03007 0afffff4 e3a05000 e1a09005
12a0 ea000001 e1550007 0a000012 e1a03006 e4869004 e5843008 e1a02004 e99b1008
12c0 e1a00008 e1a0100a e2855001 e2844030 e58dc000 ebfffefb e3500000 0afffff0
12e0 e1a03000 e1a00008 e50b3030 ebffffc1 e51b3030 eaffffdc e1a03000 eaffffda
1300 e1a0c00d e92dd800 e24cb004 e92d4000 e8bd4000 e1a03000 e5912000 e2400008
1320 e59331c4 e3520000 e5933008 0a000001 e1520003 9a000000 e5813000 ebff96b1
1340 e3a00000 e89da800 e1a0c00d e92dd830 e24cb004 e92d4000 e8bd4000 e59051cc
1360 e5953008 f57ff05f e1932f9f e2422001 e1831f92 e3310000 1afffffa f57ff05f

R8: 0xee2167a0:
67a0 00000000 00000000 00000000 00000000 00000000 00000000 c0266a80 00000000
67c0 00000000 00000010 00000000 ee30d0c0 2d6d3573 00637472 00000000 00000000
67e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6800 001a0000 39386d77 00003439 00000000 00000000 00000000 ee135868 c07a8d0c
6820 ee1358b8 ee30c400 ee30dd80 ee135cc4 ee1358c4 ee1358c0 ee034880 c07a7c58
6840 ee30de00 0000000a 00000007 00000000 c07b15d0 00000000 00000000 00000000
6860 dead4ead ffffffff ffffffff ee21686c ee21686c ee044000 00000000 ee216854
6880 c07b1650 c07a8d34 c0783950 00000000 00000000 00000000 00000000 dead4ead

R9: 0xc04f91b4:
91b4 e5943038 e50b6034 e50b20a4 e50b30b0 ebf52144 e2503000 aa00000b e594c008
91d4 e3a02000 e58d2004 e1a00006 e1a02005 e59f1044 e58dc000 e594c00c e58d300c
91f4 e58dc008 e5943000 ebf5a413 e2844040 e2855001 e3540000 e1a00007 0a000002
9214 e5943020 e3530000 1affffc1 e3a00000 e24bd020 e89da9f0 c0852cf0 c06302ec
9234 e1a0c00d e92dddf0 e24cb004 e24dd008 e2806020 e1a05000 e1a07001 e3a020d0
9254 e1a00006 e3a01064 ebf5bb95 e2504000 0a00016a e1a01004 e1a00006 ebf5adfb
9274 e5846038 e59531d8 e1a00005 e59f159c e584304c e5973014 e584302c ebf60468
9294 e3700a01 e584003c 9a000005 e1a07000 e59f157c e5940038 e1a02007 ebf5a3e6

R10: 0xee216780:
6780 00000000 00000000 00000000 dead4ead ffffffff ffffffff ee216798 ee216798
67a0 00000000 00000000 00000000 00000000 00000000 00000000 c0266a80 00000000
67c0 00000000 00000010 00000000 ee30d0c0 2d6d3573 00637472 00000000 00000000
67e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
6800 001a0000 39386d77 00003439 00000000 00000000 00000000 ee135868 c07a8d0c
6820 ee1358b8 ee30c400 ee30dd80 ee135cc4 ee1358c4 ee1358c0 ee034880 c07a7c58
6840 ee30de00 0000000a 00000007 00000000 c07b15d0 00000000 00000000 00000000
6860 dead4ead ffffffff ffffffff ee21686c ee21686c ee044000 00000000 ee216854
<0>Process swapper/0 (pid: 1, stack limit = 0xee0422f0)
<0>Stack: (0xee043db0 to 0xee044000)
<0>3da0: ee043de4 ee043dc0 c0261704 c028130c
<0>3dc0: ee30c400 ee117c24 ee043dfc ee117990 c0783950 ee216820 ee043dfc ee043de8
<0>3de0: c0281228 c02616b8 ee216820 00000000 ee043e2c ee043e00 c04f9810 c0281204
<0>3e00: 00000000 00000000 c052d690 c052d660 c052d678 ee216804 ee216820 ee216800
<0>3e20: ee043e5c ee043e30 c02fd050 c04f9240 c02fcf80 ee216820 c0853814 ee216854
<0>3e40: 00000000 c07a8d34 c074b7b0 c07fa9c0 ee043e84 ee043e60 c0265118 c02fcf8c
<0>3e60: 00000000 ee216820 c07a8d34 ee216854 00000000 c07072b8 ee043ea4 ee043e88
<0>3e80: c0265340 c0265084 c02652a4 c07a8d34 00000000 c02652a4 ee043ecc ee043ea8
<0>3ea0: c0263678 c02652b0 ee11f880 ee30c444 c01ef3d0 c07a8d34 c07b1650 ee117880
<0>3ec0: ee043edc ee043ed0 c0264c10 c0263618 ee043f0c ee043ee0 c0264814 c0264bf0
<0>3ee0: c063454c c07fa9c0 c07a8d34 00000006 00000000 c07fa9c0 c07072b8 c07fa9c0
<0>3f00: ee043f34 ee043f10 c0265884 c0264690 c07b1650 c07a8d0c 00000006 00000000
<0>3f20: c07fa9c0 c07072b8 ee043f4c ee043f38 c02ff0f4 c0265808 ee042000 00000006
<0>3f40: ee043f5c ee043f50 c0720a30 c02ff0c4 ee043fb4 ee043f60 c0008758 c0720a24
<0>3f60: ee043fb4 ee043f70 c0720a18 00000000 00000000 00000006 00000006 c069a494
<0>3f80: 00000000 c0641300 ee043fb4 c072e400 00000006 c072e3e0 c07fa9c0 c07072b8
<0>3fa0: c074b7b0 000000d2 ee043ff4 ee043fb8 c0707970 c0008640 00000006 00000006
<0>3fc0: c07072b8 c070786c c000f984 00000000 c070786c c000f984 00000013 00000000
<0>3fe0: 00000000 00000000 00000000 ee043ff8 c000f984 c0707878 ffffffff 00000000
[<c0281328>] (mfd_remove_devices_fn+0x28/0x48) from [<c0261704>] (device_for_each_child+0x58/0x84)
[<c0261704>] (device_for_each_child+0x58/0x84) from [<c0281228>] (mfd_remove_devices+0x30/0x40)
[<c0281228>] (mfd_remove_devices+0x30/0x40) from [<c04f9810>] (wm8994_i2c_probe+0x5dc/0x660)
[<c04f9810>] (wm8994_i2c_probe+0x5dc/0x660) from [<c02fd050>] (i2c_device_probe+0xd0/0x10c)
[<c02fd050>] (i2c_device_probe+0xd0/0x10c) from [<c0265118>] (driver_probe_device+0xa0/0x22c)
[<c0265118>] (driver_probe_device+0xa0/0x22c) from [<c0265340>] (__driver_attach+0x9c/0xa0)
[<c0265340>] (__driver_attach+0x9c/0xa0) from [<c0263678>] (bus_for_each_dev+0x6c/0x98)
[<c0263678>] (bus_for_each_dev+0x6c/0x98) from [<c0264c10>] (driver_attach+0x2c/0x30)
[<c0264c10>] (driver_attach+0x2c/0x30) from [<c0264814>] (bus_add_driver+0x190/0x258)
[<c0264814>] (bus_add_driver+0x190/0x258) from [<c0265884>] (driver_register+0x88/0x13c)
[<c0265884>] (driver_register+0x88/0x13c) from [<c02ff0f4>] (i2c_register_driver+0x3c/0xc4)
[<c02ff0f4>] (i2c_register_driver+0x3c/0xc4) from [<c0720a30>] (wm8994_i2c_driver_init+0x18/0x20)
[<c0720a30>] (wm8994_i2c_driver_init+0x18/0x20) from [<c0008758>] (do_one_initcall+0x124/0x18c)
[<c0008758>] (do_one_initcall+0x124/0x18c) from [<c0707970>] (kernel_init+0x104/0x1c4)
[<c0707970>] (kernel_init+0x104/0x1c4) from [<c000f984>] (kernel_thread_exit+0x0/0x8)
<0>Code: e5912000 e2400008 e59331c4 e3520000 (e5933008)
<4>---[ end trace 38395ceb6f97bbd8 ]---
<0>Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

<2>CPU1: stopping
[<c00160c0>] (unwind_backtrace+0x0/0x104) from [<c05023cc>] (dump_stack+0x20/0x24)
[<c05023cc>] (dump_stack+0x20/0x24) from [<c00143b4>] (handle_IPI+0x1f0/0x228)
[<c00143b4>] (handle_IPI+0x1f0/0x228) from [<c00085b4>] (gic_handle_irq+0x6c/0x74)
[<c00085b4>] (gic_handle_irq+0x6c/0x74) from [<c000e300>] (__irq_svc+0x40/0x70)
Exception stack(0xee09bf60 to 0xee09bfa8)
bf60: ffffffed 00000001 00722000 00000000 ee09a000 c07faa88 c077201c c050d398
bf80: c077a158 413fc090 ee09a000 ee09bfb4 ee09bfb8 ee09bfa8 c000fa30 c000fa34
bfa0: 60000053 ffffffff
[<c000e300>] (__irq_svc+0x40/0x70) from [<c000fa34>] (default_idle+0x38/0x40)
[<c000fa34>] (default_idle+0x38/0x40) from [<c000fe38>] (cpu_idle+0x110/0x13c)
[<c000fe38>] (cpu_idle+0x110/0x13c) from [<c04ff6f4>] (secondary_start_kernel+0xf8/0x118)
[<c04ff6f4>] (secondary_start_kernel+0xf8/0x118) from [<404ff0d4>] (0x404ff0d4)
<2>CPU2: stopping
[<c00160c0>] (unwind_backtrace+0x0/0x104) from [<c05023cc>] (dump_stack+0x20/0x24)
[<c05023cc>] (dump_stack+0x20/0x24) from [<c00143b4>] (handle_IPI+0x1f0/0x228)
[<c00143b4>] (handle_IPI+0x1f0/0x228) from [<c00085b4>] (gic_handle_irq+0x6c/0x74)
[<c00085b4>] (gic_handle_irq+0x6c/0x74) from [<c000e300>] (__irq_svc+0x40/0x70)
Exception stack(0xee09df60 to 0xee09dfa8)
df60: ffffffed 00000002 0072a000 00000000 ee09c000 c07faa88 c077201c c050d398
df80: c077a158 413fc090 ee09c000 ee09dfb4 ee09dfb8 ee09dfa8 c000fa30 c000fa34
dfa0: 60000053 ffffffff
[<c000e300>] (__irq_svc+0x40/0x70) from [<c000fa34>] (default_idle+0x38/0x40)
[<c000fa34>] (default_idle+0x38/0x40) from [<c000fe38>] (cpu_idle+0x110/0x13c)
[<c000fe38>] (cpu_idle+0x110/0x13c) from [<c04ff6f4>] (secondary_start_kernel+0xf8/0x118)
[<c04ff6f4>] (secondary_start_kernel+0xf8/0x118) from [<404ff0d4>] (0x404ff0d4)
<2>CPU3: stopping
[<c00160c0>] (unwind_backtrace+0x0/0x104) from [<c05023cc>] (dump_stack+0x20/0x24)
[<c05023cc>] (dump_stack+0x20/0x24) from [<c00143b4>] (handle_IPI+0x1f0/0x228)
[<c00143b4>] (handle_IPI+0x1f0/0x228) from [<c00085b4>] (gic_handle_irq+0x6c/0x74)
[<c00085b4>] (gic_handle_irq+0x6c/0x74) from [<c000e300>] (__irq_svc+0x40/0x70)
Exception stack(0xee09ff60 to 0xee09ffa8)
ff60: ffffffed 00000003 00732000 00000000 ee09e000 c07faa88 c077201c c050d398
ff80: c077a158 413fc090 ee09e000 ee09ffb4 ee09ffb8 ee09ffa8 c000fa30 c000fa34
ffa0: 60000153 ffffffff
[<c000e300>] (__irq_svc+0x40/0x70) from [<c000fa34>] (default_idle+0x38/0x40)
[<c000fa34>] (default_idle+0x38/0x40) from [<c000fe38>] (cpu_idle+0x110/0x13c)
[<c000fe38>] (cpu_idle+0x110/0x13c) from [<c04ff6f4>] (secondary_start_kernel+0xf8/0x118)
[<c04ff6f4>] (secondary_start_kernel+0xf8/0x118) from [<404ff0d4>] (0x404ff0d4)
')
Last edited by djman on Fri Apr 25, 2014 2:27 am, edited 1 time in total.
djman
 
Posts: 7
Joined: Tue Apr 22, 2014 2:00 am

Re: A question about Kernel panic

Postby kmihelich » Fri Apr 25, 2014 1:44 am

An OOPS can sometimes be ignored as it will plow through. You're not specifying any location for a root filesystem, which is what is ultimately stopping the boot.
$this->bbcode_second_pass_code('', '<0>Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b')
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: A question about Kernel panic

Postby djman » Fri Apr 25, 2014 2:33 am

Hi kmihelich,

I think the boot stop at
$this->bbcode_second_pass_code('', '<1>Unable to handle kernel NULL pointer dereference at virtual address 00000508')

The boot information show:
$this->bbcode_second_pass_code('', 'PC is at mfd_remove_devices_fn+0x28/0x48
LR is at device_for_each_child+0x58/0x84')

So when the kernel call the mfd_remove_devices_fn, the panic happen.

I use objdump the dump the vmlinux, and I find where the mfd_remove_devices_fn is:
$this->bbcode_second_pass_code('', ' c0281300 <mfd_remove_devices_fn>:
c0281300: e1a0c00d mov ip, sp
c0281304: e92dd800 push {fp, ip, lr, pc}
c0281308: e24cb004 sub fp, ip, #4
c028130c: e92d4000 push {lr}
c0281310: ebf6353d bl c000e80c <__gnu_mcount_nc>
c0281314: e1a03000 mov r3, r0
c0281318: e5912000 ldr r2, [r1]
c028131c: e2400008 sub r0, r0, #8
c0281320: e59331c4 ldr r3, [r3, #452] ; 0x1c4
c0281324: e3520000 cmp r2, #0
[color=#FF0000]c0281328: e5933008 ldr r3, [r3, #8][/color]
c028132c: 0a000001 beq c0281338 <mfd_remove_devices_fn+0x38>
c0281330: e1520003 cmp r2, r3
c0281334: 9a000000 bls c028133c <mfd_remove_devices_fn+0x3c>
c0281338: e5813000 str r3, [r1]
c028133c: ebff96b1 bl c0266e08 <platform_device_unregister>
c0281340: e3a00000 mov r0, #0
c0281344: e89da800 ldm sp, {fp, sp, pc}
')

The red line is what the kernel do for the r3.

Now the value of r3 is 00000508, and the kernel can't handle the null poniter, I think the error is here.

It's the first for me to do the system migration, I still need to learn a lot of things.

Sorry for my poor English.
djman
 
Posts: 7
Joined: Tue Apr 22, 2014 2:00 am

Re: A question about Kernel panic

Postby kmihelich » Fri Apr 25, 2014 2:35 am

Given that it's getting to looking for a root filesystem that hasn't been specified, you should troubleshoot that first as it's the easiest. It has nothing to boot into, so it's not going to boot, and the kernel is going to panic every time because of that. The panic isn't in the oops, it's from not finding a root filesystem.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: A question about Kernel panic

Postby djman » Fri Apr 25, 2014 2:54 am

Thank you, kmihelich

I never thought that the problem is from the root filesystem! I try to find the error from the kernel for two days...

The I use the ramdisk for my filesystem, but I don't make the filesystem by myself, I use others. And the name of the filesystem is "ramdisk-uboot", I check some datum, and I konw the ramdisk-uboot is make by mkimage tool.

It looks like I have to take a long time to make the filesystem.

Thank you for your answer!
djman
 
Posts: 7
Joined: Tue Apr 22, 2014 2:00 am

Re: A question about Kernel panic

Postby kmihelich » Fri Apr 25, 2014 3:00 am

I don't see it jumping into an initramfs, or its failing trying to somewhere in there. You could just grab one of our armv7 root filesystems and extract that onto whatever media you have access to from the board, then point it to that partition via a 'root=/dev/whatever' in your bootargs from U-Boot. Easy way to see if the kernel oops is really what is causing it to crap out, or if it will boot into something.

Booting into Arch (which uses systemd), you want to ensure your kernel is configured with the needed options:
http://cgit.freedesktop.org/systemd/sys ... README#n39

If it's not, systemd might crap itself, but if you get that far you at least know that's the issue and not the MFD driver that's causing the problem.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: A question about Kernel panic

Postby djman » Fri Apr 25, 2014 3:08 am

Thank you for your suggestion, kmihelich, I will try my best to let the kernel start :D

If I have some problem in the debug, can I send a message to you?
djman
 
Posts: 7
Joined: Tue Apr 22, 2014 2:00 am

Re: A question about Kernel panic

Postby kmihelich » Fri Apr 25, 2014 3:09 am

You can post here, we'll all see it.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Next

Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 13 guests