[solved] Kernel panic on Raspi B+

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

[solved] Kernel panic on Raspi B+

Postby jeancf » Mon Oct 30, 2017 2:01 pm

I had arch running on my Raspberry Pi Model B Plus Rev 1.2 for a couple of years without trouble. After the latest pacman update that I ran however I am unable to boot. Here's the serial console output:

Code: Select all
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.57-1-ARCH (builduser@leming) (gcc version 7.2.0 (GCC) ) #1 SMP Sat Oct 21 02:34:50 UTC 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt:Machine model: Raspberry Pi Model B Plus Rev 1.2
[    0.000000] cma: Reserved 8 MiB at 0x1b000000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] percpu: Embedded 14 pages/cpu @9bb1a000 s25612 r8192 d23540 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113680
[    0.000000] Kernel command line: earlyprintk console=ttyAMA0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 dma.dmachans=0x7f35 bcm2708.boardrev=0x10 bcm2708.serial=0x12eff23a bcm2708.uart_clock=48000000 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  root=/dev/mmcblk0p2 rw rootwait console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 425288K/458752K available (9216K kernel code, 672K rwdata, 2936K rodata, 1024K init, 802K bss, 25272K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0x9c800000 - 0xff800000   (1584 MB)
[    0.000000]     lowmem  : 0x80000000 - 0x9c000000   ( 448 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x80a00000   (10208 kB)
[    0.000000]       .init : 0x80e00000 - 0x80f00000   (1024 kB)
[    0.000000]       .data : 0x80f00000 - 0x80fa8244   ( 673 kB)
[    0.000000]        .bss : 0x80faa000 - 0x81072910   ( 803 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]    Build-time adjustment of leaf fanout to 32.
[    0.000000]    RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000028] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000068] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000153] bcm2835: system timer (irq = 27)
[    0.000600] Console: colour dummy device 80x30
[    0.001579] console [tty1] enabled
[    0.001637] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060356] pid_max: default: 32768 minimum: 301
[    0.060801] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060868] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.062403] Disabling memory control group subsystem
[    0.062645] CPU: Testing write buffer coherency: ok
[    0.063244] CPU0: thread -1, cpu 0, socket -1, mpidr 410fb767
[    0.063374] Setting up static identity map for 0x100000 - 0x10004c
[    0.065903] Brought up 1 CPUs
[    0.065981] SMP: Total of 1 processors activated (697.95 BogoMIPS).
[    0.066025] CPU: All CPU(s) started in SVC mode.
[    0.067110] devtmpfs: initialized
[    0.078473] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.079009] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.079122] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.080361] xor: measuring software checksum speed
[    0.180703]    arm4regs  :   973.600 MB/sec
[    0.280919]    8regs     :   492.400 MB/sec
[    0.381131]    32regs    :   600.000 MB/sec
[    0.381189] xor: using function: arm4regs (973.600 MB/sec)
[    0.381475] pinctrl core: initialized pinctrl subsystem
[    0.382968] NET: Registered protocol family 16
[    0.392991] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.403511] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.403604] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.403888] Serial: AMBA PL011 UART driver
[    0.409031] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.410045] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    0.830451] console [ttyAMA0] enabled
[    1.052395] raid6: int32x1  gen()    46 MB/s
[    1.222455] raid6: int32x1  xor()    38 MB/s
[    1.392894] raid6: int32x2  gen()    78 MB/s
[    1.563226] raid6: int32x2  xor()    58 MB/s
[    1.733609] raid6: int32x4  gen()   108 MB/s
[    1.904452] raid6: int32x4  xor()    76 MB/s
[    2.075109] raid6: int32x8  gen()   116 MB/s
[    2.245355] raid6: int32x8  xor()    77 MB/s
[    2.249685] raid6: using algorithm int32x8 gen() 116 MB/s
[    2.255117] raid6: .... xor() 77 MB/s, rmw enabled
[    2.259990] raid6: using intx1 recovery algorithm
[    2.265312] bcm2835-dma 20007000.dma: DMA legacy API manager at 9c80f000, dmachans=0x1
[    2.276174] SCSI subsystem initialized
[    2.280507] usbcore: registered new interface driver usbfs
[    2.286285] usbcore: registered new interface driver hub
[    2.291863] usbcore: registered new device driver usb
[    2.307176] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-10-20 11:48
[    2.318614] clocksource: Switched to clocksource timer
[    2.414483] VFS: Disk quotas dquot_6.6.0
[    2.418745] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.426182] FS-Cache: Loaded
[    2.429554] CacheFiles: Loaded
[    2.454446] NET: Registered protocol family 2
[    2.460455] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    2.467663] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    2.474352] TCP: Hash tables configured (established 4096 bind 4096)
[    2.481062] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.486975] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.493741] NET: Registered protocol family 1
[    2.499114] RPC: Registered named UNIX socket transport module.
[    2.505109] RPC: Registered udp transport module.
[    2.509941] RPC: Registered tcp transport module.
[    2.514688] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.521796] Trying to unpack rootfs image as initramfs...
[    2.738681] random: fast init done
[    3.170124] Freeing initrd memory: 4876K
[    3.187163] Unable to handle kernel NULL pointer dereference at virtual address 0000000d
[    3.195367] pgd = 80004000
[    3.198101] [0000000d] *pgd=00000000
[    3.201719] Internal error: Oops: 17 [#1] SMP ARM
[    3.206452] Modules linked in:
[    3.209545] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.57-1-ARCH #1
[    3.216102] Hardware name: BCM2835
[    3.219528] task: 9a8b0000 task.stack: 9a8b8000
[    3.224104] PC is at __of_find_property+0x34/0x60
[    3.228847] LR is at __of_device_is_compatible+0xa0/0x10c
[    3.234278] pc : [<80899954>]    lr : [<8089a368>]    psr: 20000093
[    3.234278] sp : 9a8b9e28  ip : 00000061  fp : 00000000
[    3.245815] r10: 80e5a83c  r9 : 9bfeff20  r8 : 80f08774
[    3.251067] r7 : 80f08794  r6 : 00000000  r5 : 80c092b0  r4 : 0000000d
[    3.257623] r3 : 80f08774  r2 : 00000000  r1 : 80c092b0  r0 : 9bfeff20
[    3.264181] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[    3.271454] Control: 00c5387d  Table: 1aa60008  DAC: 00000055
[    3.277228] Process swapper/0 (pid: 1, stack limit = 0x9a8b8210)
[    3.283264] Stack: (0x9a8b9e28 to 0x9a8ba000)
[    3.287653] 9e20:                   00000061 00000000 80f087b4 8089a368 80f08774 00000000
[    3.295892] 9e40: 00000000 9bfeff20 80e05f80 80e68104 80e5a83c 8089abe4 80f08774 a0000013
[    3.304129] 9e60: 9bfeff20 80f0308c 80e05f80 8089ac5c 9a912a10 80f0872c 80724720 8072606c
[    3.312366] 9e80: 9a912a10 80f0872c 80724720 80724740 00000000 80f0872c 80724720 80722904
[    3.320604] 9ea0: 80e05f80 9a88435c 9a9119b4 00040939 80f78620 80f0872c 9aa07100 80f78620
[    3.328840] 9ec0: 00000000 80723b40 80c09884 00040939 80f0872c 80f0872c 00000000 ffffe000
[    3.337077] 9ee0: 80faa000 80724cd4 80f0308c 00000000 ffffe000 801017a4 00000110 9bfffbd8
[    3.345314] 9f00: 9bfffbc9 00000000 9bfffbc9 9a8b9f00 80148cac 80684bb0 20000053 ffffffff
[    3.353550] 9f20: 00000000 00000000 80a36e80 9bfffd1b 0000012a 80148ed8 00000000 80cdbb20
[    3.361786] 9f40: 80c7090c 00000006 00000006 00040939 80f0df50 00000007 80faa000 80e5a834
[    3.370023] 9f60: 80faa000 0000012a 80e68104 80e5a83c 00000000 80e00e9c 00000006 00000006
[    3.378259] 9f80: 00000000 80e005cc 00000000 809bc704 00000000 00000000 00000000 00000000
[    3.386494] 9fa0: 00000000 809bc70c 00000000 80107b28 00000000 00000000 00000000 00000000
[    3.394730] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.402966] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 12901200 00100000
[    3.411225] [<80899954>] (__of_find_property) from [<8089a368>] (__of_device_is_compatible+0xa0/0x10c)
[    3.420610] [<8089a368>] (__of_device_is_compatible) from [<8089abe4>] (__of_match_node.part.1+0x1c/0x68)
[    3.430250] [<8089abe4>] (__of_match_node.part.1) from [<8089ac5c>] (of_match_node+0x2c/0x48)
[    3.438848] [<8089ac5c>] (of_match_node) from [<8072606c>] (platform_match+0x38/0xbc)
[    3.446746] [<8072606c>] (platform_match) from [<80724740>] (__driver_attach+0x20/0xa8)
[    3.454830] [<80724740>] (__driver_attach) from [<80722904>] (bus_for_each_dev+0x5c/0xc0)
[    3.463084] [<80722904>] (bus_for_each_dev) from [<80723b40>] (bus_add_driver+0x174/0x208)
[    3.471419] [<80723b40>] (bus_add_driver) from [<80724cd4>] (driver_register+0x78/0xf4)
[    3.479495] [<80724cd4>] (driver_register) from [<801017a4>] (do_one_initcall+0x48/0x198)
[    3.487748] [<801017a4>] (do_one_initcall) from [<80e00e9c>] (kernel_init_freeable+0x1ac/0x270)
[    3.496529] [<80e00e9c>] (kernel_init_freeable) from [<809bc70c>] (kernel_init+0x8/0x114)
[    3.504789] [<809bc70c>] (kernel_init) from [<80107b28>] (ret_from_fork+0x14/0x2c)
[    3.512426] Code: e594400c e3540000 0a000007 e1a01005 (e5940000)
[    3.518565] ---    [ end trace 95dfd79d1b78acea ]---
[    3.523629] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    3.523629]
[    3.532882] ---    [ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b


I am stuck now as I don't know how to fix the issue. Can somebody point me to instruction on how to restore a working kernel?
Last edited by jeancf on Thu Nov 02, 2017 1:00 pm, edited 1 time in total.
jeancf
 
Posts: 10
Joined: Thu Feb 19, 2015 2:38 pm

Re: Kernel panic on Raspi B+

Postby haraldwithtwoehs » Mon Oct 30, 2017 2:25 pm

There have been at least three kernel releases since the one you're running; my Pi's upgraded to 4.9.59-1 this morning.

Anyway, 4.9.57-1 was broken. See this thread for recovery instructions:

https://archlinuxarm.org/forum/viewtopic.php?f=60&t=12161
haraldwithtwoehs
 
Posts: 6
Joined: Sat Oct 21, 2017 2:49 pm

Re: Kernel panic on Raspi B+

Postby jeancf » Thu Nov 02, 2017 12:59 pm

I copied the kernel files from the ISO image to /boot and the kernel modules to /usr/lib/modules and got it to boot. I then updated the system with pacman to the latest kernel and everything is back on track.

Thanks for your help.
jeancf
 
Posts: 10
Joined: Thu Feb 19, 2015 2:38 pm


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 1 guest