This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM335X: linux kernel rebooted after "printk: bootconsole [earlycon0] disabled" message

Part Number: PROCESSOR-SDK-AM335X

Hi,

porting linux kernel from 4.9 to 5.10 on am335x bonegreen custome board with dts changes.

after this "[    0.040280] printk: bootconsole [earlycon0] disabled" line kernel get rebooted, no crash seen;

Attached is kernel log.

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.153-gc384a4b071 (oe-user@oe-host) (arm-poky-linux-gnueabi-gcc (GCC) 9.5.0, GNU ld (GNU Binutils) 2.34.0.20200910) #1 PREEMPT Mon Nov 7 12:48:21 UTC 2022
[    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 Green Wireless
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 48 MiB at 0x8b800000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000008fefffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000008fefffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fefffff]
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (neon)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64706
[    0.000000] Kernel command line: console=ttyO0,115200n8 earlyprintk console=tty0 root=/dev/mmcblk1p1 rootfstype=ext4 rootwait coherent_pool=1M cape_universal=enable panic=1
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 193720K/261120K available (9216K kernel code, 677K rwdata, 3160K rodata, 1024K init, 279K bss, 18248K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 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] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[    0.000023] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.008116] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.018464] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[    0.031315] Console: colour dummy device 80x30
[    0.035925] printk: console [tty0] enabled
[    0.040280] printk: bootconsole [earlycon0] disabled

  • Hi,

    Thanks for your query, i have assigned the query to the expert. please allow some time to get back.

    Regards

    Anshu

  • adding more information to above post;

    [ 0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [ 0.000023] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.008116] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.018464] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [ 0.031315] Console: colour dummy device 80x30
    [ 0.035925] printk: console [tty0] enabled
    [ 0.040280] printk: bootconsole [earlycon0] disabled

    further debugging found that; kernel is rebooting while "calibrating delay loop...", inside this function;

    calibrate_delay_converge()->calibrate_delay(void)->main()


    any help on the same is appreciable.