BeagleBone Black Kernel Panic

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

BeagleBone Black Kernel Panic

Postby Verequies » Sun Dec 23, 2018 2:23 am

Hey Guys,

I just updated my BeagleBone Black to the latest stuff. Was pretty outdated. Went from 4.14.8 to 4.19.10. However theres an issue. A kernel panic on boot time now.
$this->bbcode_second_pass_code('', '
[ 13.209110] l4_per_cm:clk:00d4:0: failed to enable
[ 13.209135] ------------[ cut here ]------------
[ 13.209176] WARNING: CPU: 0 PID: 197 at drivers/clk/clk.c:828 clk_core_disable+0x21c/0x290
[ 13.209181] l4_per_cm:clk:00d4:0 already disabled
[ 13.209185] Modules linked in: pruss_soc_bus(+) evdev joydev tps65218_pwrbutton uio_pdrv_genirq uio sch_fq_codel usb_f_ecm g_ether usb_f_rndis u_ether libcomposite ip_tables x_tables hid_logitech_hidpp hid_logitech_dj
[ 13.209255] CPU: 0 PID: 197 Comm: systemd-udevd Not tainted 4.19.10-1-ARCH #1
[ 13.209260] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 13.209294] [<c0111e10>] (unwind_backtrace) from [<c010e2f0>] (show_stack+0x20/0x24)
[ 13.209319] [<c010e2f0>] (show_stack) from [<c0c512ac>] (dump_stack+0x24/0x28)
[ 13.209335] [<c0c512ac>] (dump_stack) from [<c0135d4c>] (__warn.part.3+0xcc/0xe4)
[ 13.209346] [<c0135d4c>] (__warn.part.3) from [<c0135ddc>] (warn_slowpath_fmt+0x78/0x94)
[ 13.209358] [<c0135ddc>] (warn_slowpath_fmt) from [<c07c55d0>] (clk_core_disable+0x21c/0x290)
[ 13.209372] [<c07c55d0>] (clk_core_disable) from [<c07c64f4>] (clk_core_disable_lock+0x28/0x34)
[ 13.209384] [<c07c64f4>] (clk_core_disable_lock) from [<c07c652c>] (clk_disable+0x2c/0x30)
[ 13.209401] [<c07c652c>] (clk_disable) from [<c0124940>] (_disable_clocks+0x2c/0xc0)
[ 13.209415] [<c0124940>] (_disable_clocks) from [<c0127684>] (omap_hwmod_deassert_hardreset+0xe0/0x1ac)
[ 13.209429] [<c0127684>] (omap_hwmod_deassert_hardreset) from [<c012848c>] (omap_device_deassert_hardreset+0x44/0x60)
[ 13.209455] [<c012848c>] (omap_device_deassert_hardreset) from [<bf0ec24c>] (pruss_soc_bus_probe+0xbc/0x238 [pruss_soc_bus])
[ 13.209489] [<bf0ec24c>] (pruss_soc_bus_probe [pruss_soc_bus]) from [<c0892664>] (platform_drv_probe+0x58/0xa8)
[ 13.209510] [<c0892664>] (platform_drv_probe) from [<c088fd98>] (really_probe+0x244/0x3d8)
[ 13.209523] [<c088fd98>] (really_probe) from [<c0890234>] (driver_probe_device+0x174/0x1d0)
[ 13.209534] [<c0890234>] (driver_probe_device) from [<c0890398>] (__driver_attach+0x108/0x130)
[ 13.209544] [<c0890398>] (__driver_attach) from [<c088d7c0>] (bus_for_each_dev+0x84/0xc4)
[ 13.209556] [<c088d7c0>] (bus_for_each_dev) from [<c088f5ac>] (driver_attach+0x2c/0x30)
[ 13.209566] [<c088f5ac>] (driver_attach) from [<c088ee7c>] (bus_add_driver+0x170/0x260)
[ 13.209578] [<c088ee7c>] (bus_add_driver) from [<c0891148>] (driver_register+0x84/0x118)
[ 13.209592] [<c0891148>] (driver_register) from [<c08925b8>] (__platform_driver_register+0x50/0x58)
[ 13.209608] [<c08925b8>] (__platform_driver_register) from [<bf0f1028>] (pruss_soc_bus_driver_init+0x28/0x1000 [pruss_soc_bus])
[ 13.209627] [<bf0f1028>] (pruss_soc_bus_driver_init [pruss_soc_bus]) from [<c0102f9c>] (do_one_initcall+0x50/0x234)
[ 13.209652] [<c0102f9c>] (do_one_initcall) from [<c01c3ffc>] (do_init_module+0x74/0x250)
[ 13.209665] [<c01c3ffc>] (do_init_module) from [<c01c63ac>] (load_module+0x2108/0x2778)
[ 13.209674] [<c01c63ac>] (load_module) from [<c01c6be0>] (sys_init_module+0x1c4/0x1e8)
[ 13.209683] [<c01c6be0>] (sys_init_module) from [<c01011d8>] (__sys_trace_return+0x0/0x10)
[ 13.209690] Exception stack(0xdb08ffa8 to 0xdb08fff0)
[ 13.209700] ffa0: be885cbc b579e008 b579e008 00002098 b6d715cc 98a66600
[ 13.209710] ffc0: be885cbc b579e008 00020000 00000080 00b6c120 00000003 00000000 00b6dcf8
[ 13.209717] ffe0: b6d81fac be885c38 b6d68420 b6c544b0
[ 13.209723] ---[ end trace 7e395ffd8d1acfda ]---
')
Does anyone know how to solve this?
Verequies
 
Posts: 14
Joined: Mon Feb 20, 2017 11:55 am

Re: BeagleBone Black Kernel Panic

Postby summers » Mon Dec 24, 2018 9:58 am

I havn't updated my BBB in a week or so, but seem to recall I'm on the 4.19 kernel series. For me its worked smoothly, systemd changed behaviour slightly in last few months, but not enough to make the kernel barf.

From you log, guessing a bit, looks like the pru system isn't starting property. I've never got round to enabling and using the pru cpus on my BBB, not enough time. So suggests if you have set anything up with those arm m processes, it probably worth looking at that.

Is your OS on eMMC, or on and sD card? If on the eMMC suggest write a fresh arch install to an sD card, then you can boot from the sD card, and mount the eMMC and look for faults.

Anyway when I get home, I'll update my BBB to latest version - to see if there is a very recent problem.
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: BeagleBone Black Kernel Panic

Postby Verequies » Mon Dec 24, 2018 11:01 am

That would be great if you could check that out! Yeah, I haven't looked at it in that much detail, but this is happening on that install, plus I tested booting off an SD Card with a fresh install. Still got the kernel panic. So not sure where to go from here.

Which kernel are you running? I might be able to downgrade and check it out. Maybe you could upload the package from you pacman cache if possible?

EDIT: I've tested earlier 4.19.x kernels. The kernel panic does not happen on 4.19.2, it occurs on versions after that.
Verequies
 
Posts: 14
Joined: Mon Feb 20, 2017 11:55 am

Re: BeagleBone Black Kernel Panic

Postby summers » Wed Dec 26, 2018 1:47 pm

Ok back home. before I left I updated the 4.19.8-1 and that is running fine. The boot message:
$this->bbcode_second_pass_code('', '[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.8-1-ARCH (builduser@leming) (gcc version 8.2.0 (GCC)) #1 PREEMPT Wed Dec 12 00:34:52 UTC 2018
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 48 MiB at 0x9d000000
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] Normal zone: 1152 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.0 (sgx neon)
[ 0.000000] random: get_random_bytes called from start_kernel+0xa0/0x4e4 with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: console=ttyS0 console=ttyO0,115200n8 root=PARTUUID=8bcfc095-01 rw rootwait
[ 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: 444896K/524288K available (12288K kernel code, 1065K rwdata, 3820K rodata, 1024K init, 293K bss, 30240K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0x(ptrval) - 0x(ptrval) (13280 kB)
.init : 0x(ptrval) - 0x(ptrval) (1024 kB)
.data : 0x(ptrval) - 0x(ptrval) (1066 kB)
.bss : 0x(ptrval) - 0x(ptrval) ( 294 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 38396 entries in 113 pages
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000037] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000048] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000489] timer_probe: no matching timers found
[ 0.000697] Console: colour dummy device 80x30
[ 0.000769] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[ 0.047058] pid_max: default: 32768 minimum: 301
[ 0.047345] Security Framework initialized
[ 0.047450] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.047465] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.048482] CPU: Testing write buffer coherency: ok
[ 0.048551] CPU0: Spectre v2: using BPIALL workaround
[ 0.049536] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.049703] rcu: Hierarchical SRCU implementation.
[ 0.053773] devtmpfs: initialized
[ 0.063974] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.064474] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.064499] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.068393] xor: measuring software checksum speed
[ 0.107102] arm4regs : 1219.000 MB/sec
[ 0.147051] 8regs : 1092.000 MB/sec
[ 0.187050] 32regs : 1089.000 MB/sec
[ 0.227050] neon : 1651.000 MB/sec
[ 0.227059] xor: using function: neon (1651.000 MB/sec)
[ 0.227077] pinctrl core: initialized pinctrl subsystem
[ 0.228304] NET: Registered protocol family 16
[ 0.230979] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.253270] l4_wkup_cm:clk:0010:0: failed to disable
[ 0.305252] audit: initializing netlink subsys (disabled)
[ 0.306328] cpuidle: using governor menu
[ 0.311160] audit: type=2000 audit(0.300:1): state=initialized audit_enabled=0 res=1
[ 0.312195] OMAP GPIO hardware version 0.1
[ 0.322365] No ATAGs?
[ 0.322386] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.399193] raid6: neonx2 gen() 1880 MB/s
[ 0.467057] raid6: neonx2 xor() 1503 MB/s
[ 0.467067] raid6: using algorithm neonx2 gen() 1880 MB/s
[ 0.467075] raid6: .... xor() 1503 MB/s, rmw enabled
[ 0.467084] raid6: using neon recovery algorithm
[ 0.473111] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.475444] SCSI subsystem initialized
[ 0.475524] libata version 3.00 loaded.
[ 0.475764] usbcore: registered new interface driver usbfs
[ 0.475819] usbcore: registered new interface driver hub
[ 0.475964] usbcore: registered new device driver usb
[ 0.476688] pps_core: LinuxPPS API ver. 1 registered
[ 0.476701] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.476724] PTP clock support registered
[ 0.477241] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.477921] Advanced Linux Sound Architecture Driver Initialized.
[ 0.478592] NetLabel: Initializing
[ 0.478608] NetLabel: domain hash size = 128
[ 0.478615] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.478707] NetLabel: unlabeled traffic allowed by default
[ 0.479541] clocksource: Switched to clocksource timer1
[ 0.630533] VFS: Disk quotas dquot_6.6.0
[ 0.630633] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.640934] NET: Registered protocol family 2
[ 0.641850] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.641885] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.641926] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.641965] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.642093] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.642113] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.642345] NET: Registered protocol family 1
[ 0.643120] RPC: Registered named UNIX socket transport module.
[ 0.643138] RPC: Registered udp transport module.
[ 0.643146] RPC: Registered tcp transport module.
[ 0.643153] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.643847] Unpacking initramfs...
[ 0.968688] Freeing initrd memory: 5044K
[ 0.969256] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.972439] Initialise system trusted keyrings
[ 0.972808] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.978675] zbud: loaded
[ 0.981541] NFS: Registering the id_resolver key type
[ 0.981600] Key type id_resolver registered
[ 0.981609] Key type id_legacy registered
[ 0.981630] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.981953] fuse init (API version 7.27)
[ 0.982496] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[ 0.990928] Key type asymmetric registered
[ 0.990953] Asymmetric key parser 'x509' registered
[ 0.991041] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.991281] io scheduler noop registered
[ 0.991295] io scheduler deadline registered
[ 0.991781] io scheduler cfq registered (default)
[ 0.991796] io scheduler mq-deadline registered
[ 0.991806] io scheduler kyber registered
[ 0.993210] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[ 0.995829] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 0.996994] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[ 1.000240] console [ttyS0] disabled
[ 1.000345] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
[ 1.491582] random: fast init done
[ 9.558448] console [ttyS0] enabled
[ 9.602933] omap_rng 48310000.rng: Random Number Generator ver. 20
[ 9.683509] libphy: Fixed MDIO Bus: probed
[ 9.733942] CAN device driver interface
[ 9.831640] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 9.924195] libphy: 4a101000.mdio: probed
[ 9.981743] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 10.093147] cpsw 4a100000.ethernet: Detected MACID = 90:59:af:54:e1:eb
[ 10.172241] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 10.249116] cpsw 4a100000.ethernet: ALE Table size 1024
[ 10.312282] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
[ 10.401634] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 10.480687] ehci-platform: EHCI generic platform driver
[ 10.544019] ehci-omap: OMAP-EHCI Host Controller driver
[ 10.607310] usbcore: registered new interface driver uas
[ 10.671569] usbcore: registered new interface driver usb-storage
[ 10.744157] usbcore: registered new interface driver ums-cypress
[ 10.819124] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
[ 10.938139] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0
[ 11.032909] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
[ 11.151926] am335x-phy-driver 47401b00.usb-phy: Linked as a consumer to regulator.0
[ 11.255064] mousedev: PS/2 mouse device common for all mice
[ 11.323693] omap_rtc 44e3e000.rtc: already running
[ 11.382168] omap_rtc 44e3e000.rtc: registered as rtc0
[ 11.443872] i2c /dev entries driver
[ 11.487940] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 11.571436] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=1)
[ 11.675381] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[ 11.780594] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 11.836869] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
[ 11.944901] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
[ 12.053185] ledtrig-cpu: registered to indicate activity on CPUs
[ 12.126353] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 12.196122] omap-aes 53500000.aes: will run requests pump with realtime priority
[ 12.287446] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 12.359988] hidraw: raw HID events driver (C) Jiri Kosina
[ 12.426023] usbcore: registered new interface driver usbhid
[ 12.493562] usbhid: USB HID core driver
[ 12.540346] remoteproc remoteproc0: wkup_m3 is available
[ 12.609253] NET: Registered protocol family 10
[ 12.679137] mmc1: new high speed MMC card at address 0001
[ 12.745938] mmcblk1: mmc1:0001 MMC02G 1.79 GiB
[ 12.809017] mmcblk1boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
[ 12.888338] mmcblk1boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
[ 12.960263] Segment Routing with IPv6
[ 13.004831] mip6: Mobile IPv6
[ 13.041028] mmcblk1rpmb: mmc1:0001 MMC02G partition 3 128 KiB, chardev (244:0)
[ 13.128383] NET: Registered protocol family 17
[ 13.182112] can: controller area network core (rev 20170425 abi 9)
[ 13.258085] NET: Registered protocol family 29
[ 13.312064] mmcblk1: p1
[ 13.342735] Key type dns_resolver registered
[ 13.397206] mpls_gso: MPLS GSO support
[ 13.442717] ThumbEE CPU extension supported.
[ 13.494340] Registering SWP/SWPB emulation handler
[ 13.552265] omap_voltage_late_init: Voltage driver support not added
[ 13.630471] registered taskstats version 1
[ 13.679983] Loading compiled-in X.509 certificates
[ 13.737972] zswap: loaded using pool lzo/zbud
[ 13.792493] Btrfs loaded, crc32c=crc32c-generic
[ 13.894672] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 13.959734] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 14.042885] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 14.224256] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 14.292930] remoteproc remoteproc0: powering up wkup_m3
[ 14.356170] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[ 14.459875] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 14.459892] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x193
[ 14.622822] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 14.687046] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 14.776684] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 14.876729] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 14.964063] usb usb1: Product: MUSB HDRC host driver
[ 15.024059] usb usb1: Manufacturer: Linux 4.19.8-1-ARCH musb-hcd
[ 15.096676] usb usb1: SerialNumber: musb-hdrc.1
[ 15.152204] hub 1-0:1.0: USB hub found
[ 15.197566] hub 1-0:1.0: 1 port detected
[ 15.246260] cpu cpu0: Linked as a consumer to regulator.3
[ 15.311686] cpu cpu0: Dropping the link to regulator.3
[ 15.374182] cpu cpu0: Linked as a consumer to regulator.3
[ 15.442584] omap_rtc 44e3e000.rtc: setting system clock to 2018-12-13 07:26:02 UTC (1544685962)
[ 15.548730] ALSA device list:
[ 15.584678] No soundcards found.
[ 15.631363] Freeing unused kernel memory: 1024K
[ 15.686806] Run /init as init process
[ 18.517298] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)')

Now for the update - bit of a hassle - I only have a 2GB BBB, so very short on eMMC size - i really need to clean this distribution of arch to trim it down to 2GB ... [my BBB is headless so don't need any of the graphics bits ....]

Ok - finally got all updates on. I'm on linunx 4.19.12-1 and it boots fine. So suggest you check my boot log above against yours - I guess we are doing something different. Have to say in my BBB have have disabled alot of stuff I don't use ....

Oh yes - should have also said that the modules that come up on boot (so are probably in the initrd) are:
$this->bbcode_second_pass_code('', 'Module Size Used by
usb_f_ecm 20480 2
u_ether 20480 1 usb_f_ecm
usb_f_acm 16384 2
u_serial 20480 3 usb_f_acm
pru_rproc 20480 0
pruss_intc 16384 1 pru_rproc
pruss 16384 1 pru_rproc
evdev 24576 1
pruss_soc_bus 16384 0
spidev 20480 0
tps65218_pwrbutton 16384 0
uio_pdrv_genirq 16384 0
uio 20480 1 uio_pdrv_genirq
sch_fq_codel 20480 3
libcomposite 49152 12 usb_f_ecm,usb_f_acm
ip_tables 24576 0
x_tables 24576 1 ip_tables')
Looking carefully at the boot there is an error reported : $this->bbcode_second_pass_code('', 'l4_per_cm:clk:00d4:0: failed to enable') but the machine stays up - doesn't look like a full kernel panic, more of a warning ....

Digging - looks like its a clock issue, these are enabled in the kernel by the omap2plus and am33xx config options - so should be set up correctly on the BBB set up. So question is why the default set up is giving the warning. I'm just doing my own home brew 4.20 kernel - I'll see what that gives. Last change to the relevant code was back in August ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: BeagleBone Black Kernel Panic

Postby summers » Sun Dec 30, 2018 7:35 pm

Hi. Alas havnen't been able to get the 4.20 kernel to compile. I tend to do do raw kernels, but arch applies patches. Alas the raw kernel fails to compile due to some power management code - I'll keep working. When i get it to compile should be able to dig into whats giving the error.

Alas compiling the kernel with the arch config is very slow, took over a day on a pocket beagle. Had I known would have done it on my panderboard - at least that has two cpu ...

Anyway, seem odd ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: BeagleBone Black Kernel Panic

Postby coroner21 » Mon Dec 31, 2018 4:34 pm

I have also the 4.19 kernel on my BBB wireless producing some fault message seemingly related to the PRUs:

$this->bbcode_second_pass_code('', ' 16.949699] l4_per_cm:clk:00d4:0: failed to enable
[ 16.954582] ------------[ cut here ]------------
[ 16.959257] WARNING: CPU: 0 PID: 183 at drivers/clk/clk.c:828 clk_core_disable+0x21c/0x290
[ 16.967573] l4_per_cm:clk:00d4:0 already disabled
[ 16.972304] Modules linked in: pruss_soc_bus(+) ecdh_generic wlcore_sdio tps65218_pwrbutton uio_pdrv_genirq uio sch_fq_codel ip_tables x_tables
[ 16.985290] CPU: 0 PID: 183 Comm: systemd-udevd Not tainted 4.19.12-1-ARCH #1
[ 16.992466] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 16.998624] [<c0111dc8>] (unwind_backtrace) from [<c010e464>] (show_stack+0x20/0x24)
[ 17.006434] [<c010e464>] (show_stack) from [<c0c62028>] (dump_stack+0x24/0x28)
[ 17.013712] [<c0c62028>] (dump_stack) from [<c0135b0c>] (__warn+0xf0/0x108)
[ 17.020721] [<c0135b0c>] (__warn) from [<c0135b7c>] (warn_slowpath_fmt+0x58/0x74)
[ 17.028256] [<c0135b7c>] (warn_slowpath_fmt) from [<c07d2228>] (clk_core_disable+0x21c/0x290)
[ 17.036842] [<c07d2228>] (clk_core_disable) from [<c07d3168>] (clk_core_disable_lock+0x28/0x34)
[ 17.045601] [<c07d3168>] (clk_core_disable_lock) from [<c07d31a0>] (clk_disable+0x2c/0x30)
[ 17.053928] [<c07d31a0>] (clk_disable) from [<c01247e0>] (_disable_clocks+0x2c/0xb8)
[ 17.061727] [<c01247e0>] (_disable_clocks) from [<c01275c8>] (omap_hwmod_deassert_hardreset+0xe0/0x1b0)
[ 17.071187] [<c01275c8>] (omap_hwmod_deassert_hardreset) from [<c01283dc>] (omap_device_deassert_hardreset+0x44/0x60)
[ 17.081883] [<c01283dc>] (omap_device_deassert_hardreset) from [<bf11d24c>] (pruss_soc_bus_probe+0xbc/0x228 [pruss_soc_bus])
[ 17.093199] [<bf11d24c>] (pruss_soc_bus_probe [pruss_soc_bus]) from [<c089f9f8>] (platform_drv_probe+0x58/0xa8)
[ 17.103359] [<c089f9f8>] (platform_drv_probe) from [<c089d1bc>] (really_probe+0x288/0x3d8)
[ 17.111682] [<c089d1bc>] (really_probe) from [<c089d64c>] (driver_probe_device+0x1ac/0x1d8)
[ 17.120091] [<c089d64c>] (driver_probe_device) from [<c089d784>] (__driver_attach+0x10c/0x134)
[ 17.128760] [<c089d784>] (__driver_attach) from [<c089ab88>] (bus_for_each_dev+0x84/0xc4)
[ 17.136995] [<c089ab88>] (bus_for_each_dev) from [<c089c978>] (driver_attach+0x2c/0x30)
[ 17.145053] [<c089c978>] (driver_attach) from [<c089c238>] (bus_add_driver+0x168/0x268)
[ 17.153113] [<c089c238>] (bus_add_driver) from [<c089e554>] (driver_register+0x8c/0x124)
[ 17.161260] [<c089e554>] (driver_register) from [<c089f948>] (__platform_driver_register+0x50/0x58)
[ 17.170372] [<c089f948>] (__platform_driver_register) from [<bf122028>] (pruss_soc_bus_driver_init+0x28/0x1000 [pruss_soc_bus])
[ 17.181933] [<bf122028>] (pruss_soc_bus_driver_init [pruss_soc_bus]) from [<c01030dc>] (do_one_initcall+0x50/0x228)
[ 17.192452] [<c01030dc>] (do_one_initcall) from [<c01c65c0>] (do_init_module+0x74/0x230)
[ 17.200603] [<c01c65c0>] (do_init_module) from [<c01c51e4>] (load_module+0x2108/0x2730)
[ 17.208663] [<c01c51e4>] (load_module) from [<c01c59d4>] (sys_init_module+0x1c8/0x1ec)
[ 17.216634] [<c01c59d4>] (sys_init_module) from [<c01011d8>] (__sys_trace_return+0x0/0x10)
[ 17.224950] Exception stack(0xd9093fa8 to 0xd9093ff0)
[ 17.230037] 3fa0: bebaed1c b5726008 b5726008 00002124 b6ced5cc 5f481c00
[ 17.238270] 3fc0: bebaed1c b5726008 00020000 00000080 00f2b348 00000003 00000000 00f16928
[ 17.246500] 3fe0: b6cfdfac bebaec98 b6ce4420 b6bd04b0
[ 17.251582] ---[ end trace eb0d585dc8d716e2 ]---')

Since the kernel still runs fine and I am not using PRUs I do not care too much about the error, although it is odd that this happens with the stock default kernel / installation.

A hint regarding kernel compilation: If you want to use a powerful x86 desktop machine with Archlinux installed, it is enough to install https://aur.archlinux.org/packages/arm- ... inaro-bin/ and then edit the PKGBUILD of the linux-am33x image to use this toolchain: $this->bbcode_second_pass_code('', 'make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-') in the respective places (you can also hardcode some -j setting there)... Just make sure you always run $this->bbcode_second_pass_code('', 'CARCH=armv7h makepkg -A') to make sure the correct architecture is coded into the final package.

This builds the full default kernel package in below half an hour on my 8 threads i7 machine.
coroner21
 
Posts: 8
Joined: Mon Dec 31, 2018 4:23 pm

Re: BeagleBone Black Kernel Panic

Postby summers » Tue Jan 01, 2019 9:48 am

Ta. Yes i have cross compilers on my desktop.

Alas desktop is an AMD E350 machine, so processing power equivalent to something like a 10 year old atom. Also its currently 24/7 h265 encoding the Millennium Series, at something like 1 fps ...

Usually try and compile on the target machine if possible, with cross compilers its hard to get an hermetic seal (think that is whats Rob Landley calls it). Anyway hermetic seal isn't so important for kernel compilations, as kernels are by their nature monolithic. Still though with my AMD E350 suspect a kernel compilation is still several hours, on the pocket beagle (equivalent to BBB) it compiles in something like 24 hours - so I just leave it going in the background.

Oh yes, the problem seems to be a clock problem, not a pru problem - I was mistaken over that. For me I'm treating it as a sideline, would be good if we could find and cure the problem - but I'm not busting a gut to fix it ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: BeagleBone Black Kernel Panic

Postby Verequies » Wed Jan 02, 2019 12:06 am

Interesting that you don't seem to have the issue. I updated to Kernel 4.20 and its still apparent, here is my boot log:
$this->bbcode_second_pass_code('', '
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.20.0-1-ARCH (builduser@leming) (gcc version 8.2.0 (GCC)) #1 PREEMPT Mon Dec 31 22:39:49 UTC 2018
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 48 MiB at 0x9d000000
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] Normal zone: 1152 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] random: get_random_bytes called from start_kernel+0x98/0x4dc with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: console=tty0 console=ttyO0,115200n8 root=PARTUUID=b70943ba-01 rw rootwait
[ 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: 440704K/524288K available (12288K kernel code, 1018K rwdata, 2964K rodata, 1024K init, 296K bss, 34432K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0x(ptrval) - 0x(ptrval) (13280 kB)
.init : 0x(ptrval) - 0x(ptrval) (1024 kB)
.data : 0x(ptrval) - 0x(ptrval) (1019 kB)
.bss : 0x(ptrval) - 0x(ptrval) ( 297 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 38547 entries in 76 pages
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[ 0.000035] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000045] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000430] timer_probe: no matching timers found
[ 0.000632] Console: colour dummy device 80x30
[ 0.001152] printk: console [tty0] enabled
[ 0.001183] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.001202] This ensures that you still see kernel messages. Please
[ 0.001219] update your kernel commandline.
[ 0.001277] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[ 0.047159] pid_max: default: 32768 minimum: 301
[ 0.047460] LSM: Security Framework initializing
[ 0.047565] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.047592] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.048589] CPU: Testing write buffer coherency: ok
[ 0.048679] CPU0: Spectre v2: using BPIALL workaround
[ 0.049605] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.049783] rcu: Hierarchical SRCU implementation.
[ 0.053576] devtmpfs: initialized
[ 0.062504] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.063014] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.063065] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.066837] xor: measuring software checksum speed
[ 0.103208] arm4regs : 1222.000 MB/sec
[ 0.143143] 8regs : 1095.000 MB/sec
[ 0.183143] 32regs : 1175.000 MB/sec
[ 0.223143] neon : 1701.000 MB/sec
[ 0.223161] xor: using function: neon (1701.000 MB/sec)
[ 0.223192] pinctrl core: initialized pinctrl subsystem
[ 0.224397] NET: Registered protocol family 16
[ 0.227067] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.247774] l4_wkup_cm:clk:0010:0: failed to disable
[ 0.287590] audit: initializing netlink subsys (disabled)
[ 0.288640] cpuidle: using governor menu
[ 0.293840] audit: type=2000 audit(0.284:1): state=initialized audit_enabled=0 res=1
[ 0.294095] OMAP GPIO hardware version 0.1
[ 0.303851] No ATAGs?
[ 0.303862] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.379295] raid6: neonx2 gen() 1904 MB/s
[ 0.447162] raid6: neonx2 xor() 1545 MB/s
[ 0.447182] raid6: using algorithm neonx2 gen() 1904 MB/s
[ 0.447200] raid6: .... xor() 1545 MB/s, rmw enabled
[ 0.447218] raid6: using neon recovery algorithm
[ 0.452563] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.455013] SCSI subsystem initialized
[ 0.455108] libata version 3.00 loaded.
[ 0.455435] usbcore: registered new interface driver usbfs
[ 0.455503] usbcore: registered new interface driver hub
[ 0.455631] usbcore: registered new device driver usb
[ 0.456332] pps_core: LinuxPPS API ver. 1 registered
[ 0.456364] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.456404] PTP clock support registered
[ 0.456896] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.457583] Advanced Linux Sound Architecture Driver Initialized.
[ 0.458237] NetLabel: Initializing
[ 0.458268] NetLabel: domain hash size = 128
[ 0.458283] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.458382] NetLabel: unlabeled traffic allowed by default
[ 0.459078] clocksource: Switched to clocksource timer1
[ 0.598356] VFS: Disk quotas dquot_6.6.0
[ 0.598481] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.607854] NET: Registered protocol family 2
[ 0.608735] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.608797] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.608851] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.608901] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.609029] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.609062] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.609300] NET: Registered protocol family 1
[ 0.610036] RPC: Registered named UNIX socket transport module.
[ 0.610074] RPC: Registered udp transport module.
[ 0.610091] RPC: Registered tcp transport module.
[ 0.610107] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.610651] Unpacking initramfs...
[ 0.696420] Freeing initrd memory: 10364K
[ 0.696978] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 0.699043] Initialise system trusted keyrings
[ 0.699489] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.705458] zbud: loaded
[ 0.708178] NFS: Registering the id_resolver key type
[ 0.708255] Key type id_resolver registered
[ 0.708274] Key type id_legacy registered
[ 0.708302] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.708626] fuse init (API version 7.28)
[ 0.709165] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[ 0.915653] Key type asymmetric registered
[ 0.915711] Asymmetric key parser 'x509' registered
[ 0.915832] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 0.916131] io scheduler noop registered
[ 0.916161] io scheduler deadline registered
[ 0.916548] io scheduler cfq registered (default)
[ 0.916578] io scheduler mq-deadline registered
[ 0.916595] io scheduler kyber registered
[ 0.917913] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[ 0.920526] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 0.921595] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[ 0.924473] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
[ 1.162840] random: fast init done
[ 1.664135] printk: console [ttyS0] enabled
[ 1.670551] omap_rng 48310000.rng: Random Number Generator ver. 20
[ 1.680431] libphy: Fixed MDIO Bus: probed
[ 1.685479] CAN device driver interface
[ 1.743158] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[ 1.750931] libphy: 4a101000.mdio: probed
[ 1.762734] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 1.772903] cpsw 4a100000.ethernet: Detected MACID = b0:d5:cc:f9:c6:6d
[ 1.779733] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 1.786274] cpsw 4a100000.ethernet: ALE Table size 1024
[ 1.791614] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
[ 1.800745] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.807461] ehci-platform: EHCI generic platform driver
[ 1.812920] ehci-omap: OMAP-EHCI Host Controller driver
[ 1.818375] usbcore: registered new interface driver uas
[ 1.823815] usbcore: registered new interface driver usb-storage
[ 1.829908] usbcore: registered new interface driver ums-cypress
[ 1.838233] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
[ 1.848387] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0
[ 1.858234] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
[ 1.868368] am335x-phy-driver 47401b00.usb-phy: Linked as a consumer to regulator.0
[ 1.885981] mousedev: PS/2 mouse device common for all mice
[ 1.892752] omap_rtc 44e3e000.rtc: already running
[ 1.898172] omap_rtc 44e3e000.rtc: registered as rtc0
[ 1.903928] i2c /dev entries driver
[ 1.909276] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.916626] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=1)
[ 1.927015] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[ 1.935874] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.941031] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
[ 1.974549] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
[ 2.008405] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.014987] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 2.021069] omap-aes 53500000.aes: will run requests pump with realtime priority
[ 2.067623] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 2.078588] mmc1: new high speed MMC card at address 0001
[ 2.088337] mmcblk1: mmc1:0001 S10004 3.56 GiB
[ 2.099985] mmcblk1boot0: mmc1:0001 S10004 partition 1 4.00 MiB
[ 2.108247] mmcblk1boot1: mmc1:0001 S10004 partition 2 4.00 MiB
[ 2.119667] mmcblk1rpmb: mmc1:0001 S10004 partition 3 4.00 MiB, chardev (244:0)
[ 2.131420] mmcblk1: p1
[ 2.174000] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.180162] usbcore: registered new interface driver usbhid
[ 2.185883] usbhid: USB HID core driver
[ 2.190210] remoteproc remoteproc0: wkup_m3 is available
[ 2.200668] NET: Registered protocol family 10
[ 2.249093] Segment Routing with IPv6
[ 2.253190] mip6: Mobile IPv6
[ 2.256325] NET: Registered protocol family 17
[ 2.260867] can: controller area network core (rev 20170425 abi 9)
[ 2.267252] NET: Registered protocol family 29
[ 2.271854] Key type dns_resolver registered
[ 2.276177] mpls_gso: MPLS GSO support
[ 2.280098] ThumbEE CPU extension supported.
[ 2.284429] Registering SWP/SWPB emulation handler
[ 2.289271] omap_voltage_late_init: Voltage driver support not added
[ 2.297114] registered taskstats version 1
[ 2.301337] Loading compiled-in X.509 certificates
[ 2.306299] zswap: loaded using pool lzo/zbud
[ 2.312463] Btrfs loaded, crc32c=crc32c-generic
[ 2.361784] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 2.367991] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[ 2.497484] tda998x 0-0070: found TDA19988
[ 2.504837] tilcdc 4830e000.lcdc: bound 0-0070 (ops 0xc0d7defc)
[ 2.510911] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 2.517591] [drm] No driver support for vblank timestamp query.
[ 2.523906] [drm] Cannot find any crtc or sizes
[ 2.529213] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
[ 2.536880] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 2.657058] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 2.664017] remoteproc remoteproc0: powering up wkup_m3
[ 2.669430] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[ 2.683385] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 2.683402] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x193
[ 2.698125] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 2.703555] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[ 2.711393] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[ 2.719801] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.727119] usb usb1: Product: MUSB HDRC host driver
[ 2.732187] usb usb1: Manufacturer: Linux 4.20.0-1-ARCH musb-hcd
[ 2.738273] usb usb1: SerialNumber: musb-hdrc.1
[ 2.743585] hub 1-0:1.0: USB hub found
[ 2.747503] hub 1-0:1.0: 1 port detected
[ 2.752639] cpu cpu0: Linked as a consumer to regulator.3
[ 2.758258] cpu cpu0: Dropping the link to regulator.3
[ 2.763861] cpu cpu0: Linked as a consumer to regulator.3
[ 2.771826] asoc-simple-card sound: i2s-hifi <-> 48038000.mcasp mapping ok
[ 2.780295] omap_rtc 44e3e000.rtc: setting system clock to 2019-01-01 23:33:04 UTC (1546385584)
[ 2.789879] ALSA device list:
[ 2.792953] #0: TI BeagleBone Black
[ 2.801330] Freeing unused kernel memory: 1024K
[ 2.807687] Run /init as init process
[ 3.559654] [drm] Cannot find any crtc or sizes
[ 5.055662] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
')

I do notice that on mine, DRM and ALSA devices come up. Did you disable yours somehow?
Perhaps if you're willing, you could share your image so we can test to see if your image works on ours.
Verequies
 
Posts: 14
Joined: Mon Feb 20, 2017 11:55 am

Re: BeagleBone Black Kernel Panic

Postby summers » Wed Jan 02, 2019 9:01 am

No - I get the same error on my machine, but it doesn't take the machine down, the machine stays up.

I don't get drm and alsa messages about them coming up because:
$this->bbcode_second_pass_code('', '/etc/systemd/system/default.target -> /usr/lib/systemd/system/multi-user.target
$ systemctl get-default
multi-user.target')
So my default boot target is multi user which doesn't bring up the graphics ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: BeagleBone Black Kernel Panic

Postby Verequies » Wed Jan 02, 2019 9:32 am

Ah okay, yeah mine doesn't crash either, just a bit annoying to have the issue in the logs.

I tried setting the default to multi-user.target but the drm and alsa messages still came up.
Verequies
 
Posts: 14
Joined: Mon Feb 20, 2017 11:55 am


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 4 guests