Tool/software:
Hello Team,
I am working on AM335x based custom board bring-up activity. I am using 5.10 linux kernel from this link.
I configured dts file as per our custom board schematic and used tisdk_am335x-evm_defconfig as a base configuration.
I enabled early-printk related settings using menuconfig and certain drivers related to mmc.
I used rootfs and uboot image from old 3.2 kernel as it was already developed and available for that board.
My goal is to upgrade kernel and rootfs for my custom board to 5.10 version keeping uboot as it is from old kernel 3.2 version
When I try to boot my new kernel with new dtb file, booting halted at below point.
I am suspecting that kernel not able to read dtb file as there are no any logs related to pinmux.
Also no any mmc / usb device related log is found. Detailed log is attached with this post.
Please help me to root cause this issue.
[Note :There is no any h/w related issue as board is currently running perfectly with linux 3.2 kernel version ]
U-Boot 2013.10-00189-g78d8ebd-dirty (Aug 24 2020 - 11:09:05) I2C: ready DRAM: 1 GiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Card did not respond to voltage select! MMC init failed Using default environment Net: <ethaddr> not set. Validating first E-fuse MAC cpsw SF: Detected MX25L12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB fm->bootpartition :2 fm->processFlag :0 fm->tryflag :0 fm->u16CRC :573c Calculated CRC: 573c: Image-2 is booting....by default Hit any key to stop autoboot: 0 custom-U-Boot# load mmc 0:2 0x80200000 boot/zImage_1510_01 5464144 bytes read in 324 ms (16.1 MiB/s) custom-U-Boot# load mmc 0:2 0x80F80000 boot/dtb/ti/omap/am335x-custom_1510_06.dtb 65473 bytes read in 50 ms (1.2 MiB/s) custom-U-Boot# setenv bootargs 'console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 earlyprintk loglevel=7 debug' custom-U-Boot# bootz 0x80200000 - 0x80F80000 Kernel image @ 0x80200000 [ 0x000000 - 0x536050 ] ## Flattened Device Tree blob at 80f80000 Booting using the fdt blob at 0x80f80000 Loading Device Tree to 9ffed000, end 9fffffc0 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.10.168-dirty (custom@custom-Latitude-7400) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU To4 [ 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 EVM [ 0.000000] printk: bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writeback [ 0.000000] cma: Reserved 24 MiB at 0xbe800000 [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000080000000-0x00000000afdfffff] [ 0.000000] HighMem [mem 0x00000000afe00000-0x00000000bfffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080000000-0x00000000afdfffff] [ 0.000000] node 0: [mem 0x00000000b0000000-0x00000000bfffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000bfffffff] [ 0.000000] On node 0 totalpages: 261632 [ 0.000000] Normal zone: 1532 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 196096 pages, LIFO batch:63 [ 0.000000] HighMem zone: 65536 pages, LIFO batch:15 [ 0.000000] CPU: All CPU(s) started in SVC mode. [ 0.000000] AM335X ES2.1 (sgx neon) [ 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: 260100 [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 earlyprintk loglevel=7 debug [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 999592K/1046528K available (8192K kernel code, 545K rwdata, 2136K rodata, 1024K init, 257K bss, 22360K reserved, 24576K cma-reserved, 237568K highmem) [ 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.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns [ 0.008047] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.018049] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000 [ 0.029442] Console: colour dummy device 80x30 [ 0.034029] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0' [ 0.040797] This ensures that you still see kernel messages. Please [ 0.047223] update your kernel commandline. [ 0.051569] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736) [ 0.094446] pid_max: default: 32768 minimum: 301 [ 0.099320] LSM: Security Framework initializing [ 0.104148] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.111684] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.120454] CPU: Testing write buffer coherency: ok [ 0.125529] CPU0: Spectre v2: using BPIALL workaround [ 0.131532] Setting up static identity map for 0x80100000 - 0x80100078 [ 0.139028] devtmpfs: initialized [ 0.154631] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3 [ 0.162907] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.173053] futex hash table entries: 256 (order: -1, 3072 bytes, linear) [ 0.182093] pinctrl core: initialized pinctrl subsystem [ 0.189442] NET: Registered protocol family 16 [ 0.196376] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.220990] l3-aon-clkctrl:0000:0: failed to disable [ 0.227408] thermal_sys: Registered thermal governor 'fair_share' [ 0.227418] thermal_sys: Registered thermal governor 'step_wise' [ 0.233719] thermal_sys: Registered thermal governor 'user_space' [ 0.240192] cpuidle: using governor ladder [ 0.250669] cpuidle: using governor menu [ 1.220619] No ATAGs? [ 1.222970] hw-breakpoint: debug architecture 0x4 unsupported. [ 1.246713] Kprobes globally optimized [ 1.256939] reg-fixed-voltage fixedregulator@0: GPIO lookup for consumer (null) [ 1.264536] reg-fixed-voltage fixedregulator@0: using device tree for GPIO lookup [ 1.272290] of_get_named_gpiod_flags: can't parse 'gpios' property of node '/fixedregulator@0[0]' [ 1.281419] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@0[0]' [ 1.290447] reg-fixed-voltage fixedregulator@0: using lookup tables for GPIO lookup [ 1.298309] reg-fixed-voltage fixedregulator@0: No GPIO consumer (null) found [ 1.308470] vgaarb: loaded [ 1.311796] SCSI subsystem initialized [ 1.316003] libata version 3.00 loaded. [ 1.320264] usbcore: registered new interface driver usbfs [ 1.325944] usbcore: registered new interface driver hub [ 1.331464] usbcore: registered new device driver usb [ 1.337214] mc: Linux media interface: v0.10 [ 1.341661] videodev: Linux video capture interface: v2.00 [ 1.347336] pps_core: LinuxPPS API ver. 1 registered [ 1.352436] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 1.361830] PTP clock support registered [ 1.367827] clocksource: Switched to clocksource dmtimer [ 1.373680] VFS: Disk quotas dquot_6.6.0 [ 1.377789] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.392738] NET: Registered protocol family 2 [ 1.397704] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 1.406439] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) [ 1.415119] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 1.423151] TCP bind hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 1.430545] TCP: Hash tables configured (established 8192 bind 8192) [ 1.437274] UDP hash table entries: 512 (order: 1, 8192 bytes, linear) [ 1.444008] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes, linear) [ 1.451331] NET: Registered protocol family 1 [ 1.456476] RPC: Registered named UNIX socket transport module. [ 1.462597] RPC: Registered udp transport module. [ 1.467417] RPC: Registered tcp transport module. [ 1.472250] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.478873] PCI: CLS 0 bytes, default 64 [ 1.483735] NetWinder Floating Point Emulator V0.97 (double precision) [ 1.491058] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available [ 1.502125] Initialise system trusted keyrings [ 1.507099] workingset: timestamp_bits=30 max_order=18 bucket_order=0 [ 1.514898] NFS: Registering the id_resolver key type [ 1.520215] Key type id_resolver registered [ 1.524503] Key type id_legacy registered [ 1.528679] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 1.536299] NET: Registered protocol family 38 [ 1.540965] Key type asymmetric registered [ 1.545168] Asymmetric key parser 'x509' registered [ 1.550251] bounce: pool size: 64 pages [ 1.554203] io scheduler mq-deadline registered [ 1.558865] io scheduler kyber registered