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.

AM6412: Kernel Issue and configuration changes

Part Number: AM6412

Hi Experts

1. I am using am6412 soc in my custom board,i have booted upto u-boot using usb boot method (dfu-utils),then using dfu-utils i have flashed emmc from u-boot,while loading kernel it got stucked, i am attaching the logs and snap also 

[2023-08-29 19:39:51] => setenv mmcdev 0
[2023-08-29 19:39:59] => setenv bootpart 0
[2023-08-29 19:40:04] => boot
[2023-08-29 19:40:05] switch to partitions #0, OK
[2023-08-29 19:40:05] mmc0(part 0) is current device
[2023-08-29 19:40:05] SD/MMC found on device 0
[2023-08-29 19:40:05] Failed to load 'boot.scr'
[2023-08-29 19:40:05] ** Unrecognized filesystem type **
[2023-08-29 19:40:05] 19147264 bytes read in 128 ms (142.7 MiB/s)
[2023-08-29 19:40:05] 56961 bytes read in 2 ms (27.2 MiB/s)
[2023-08-29 19:40:05] ## Flattened Device Tree blob at 88000000
[2023-08-29 19:40:05]    Booting using the fdt blob at 0x88000000
[2023-08-29 19:40:06]    Loading Device Tree to 000000008feef000, end 000000008fffffff ... OK
[2023-08-29 19:40:06] 
[2023-08-29 19:40:06] Starting kernel ...
[2023-08-29 19:40:06] 
[2023-08-29 19:40:06] [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[2023-08-29 19:40:06] [    0.000000] Linux version 5.10.168-g2c23e6c538 (oe-user@oe-host) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile
 Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1
 SMP PREEMPT Tue Aug 22 07:40:33 UTC 2023
[2023-08-29 19:40:06] [    0.000000] Machine model: Texas Instruments AM642 EVM
[2023-08-29 19:40:06] [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[2023-08-29 19:40:06] [    0.000000] printk: bootconsole [ns16550a0] enabled
[2023-08-29 19:40:06] [    0.000000] efi: UEFI not found.
[2023-08-29 19:40:06] [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
[2023-08-29 19:40:06] [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
[2023-08-29 19:40:06] [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
[2023-08-29 19:40:06] [    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
[2023-08-29 19:40:06] [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
[2023-08-29 19:40:06] [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
[2023-08-29 19:40:06] [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
[2023-08-29 19:40:06] [    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
[2023-08-29 19:40:06] [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
[2023-08-29 19:40:06] [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
[2023-08-29 19:40:06] [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
[2023-08-29 19:40:06] [    0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
[2023-08-29 19:40:06] [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
[2023-08-29 19:40:06] [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
[2023-08-29 19:40:06] [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
[2023-08-29 19:40:06] [    0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
[2023-08-29 19:40:06] [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
[2023-08-29 19:40:06] [    0.000000] OF: reserved mem: initialized node m4f-dma-memory@a4000000, compatible id shared-dma-pool
[2023-08-29 19:40:06] [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB
[2023-08-29 19:40:06] [    0.000000] OF: reserved mem: initialized node m4f-memory@a4100000, compatible id shared-dma-pool
[2023-08-29 19:40:06] [    0.000000] Zone ranges:
[2023-08-29 19:40:06] [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[2023-08-29 19:40:06] [    0.000000]   DMA32    empty
[2023-08-29 19:40:06] [    0.000000]   Normal   empty
[2023-08-29 19:40:06] [    0.000000] Movable zone start for each node
[2023-08-29 19:40:06] [    0.000000] Early memory node ranges
[2023-08-29 19:40:06] [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009e7fffff]
[2023-08-29 19:40:06] [    0.000000]   node   0: [mem 0x000000009e800000-0x00000000a57fffff]
[2023-08-29 19:40:06] [    0.000000]   node   0: [mem 0x00000000a5800000-0x00000000ffffffff]
[2023-08-29 19:40:06] [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000ffffffff]
[2023-08-29 19:40:06] [    0.000000] cma: Reserved 512 MiB at 0x00000000dd000000
[2023-08-29 19:40:06] [    0.000000] psci: probing for conduit method from DT.
[2023-08-29 19:40:06] [    0.000000] psci: PSCIv1.1 detected in firmware.
[2023-08-29 19:40:06] [    0.000000] psci: Using standard PSCI v0.2 function IDs
[2023-08-29 19:40:06] [    0.000000] psci: Trusted OS migration not required
[2023-08-29 19:40:06] [    0.000000] psci: SMC Calling Convention v1.2
[2023-08-29 19:40:06] [    0.000000] percpu: Embedded 22 pages/cpu s51288 r8192 d30632 u90112
[2023-08-29 19:40:06] [    0.000000] Detected VIPT I-cache on CPU0
[2023-08-29 19:40:06] [    0.000000] CPU features: detected: ARM erratum 845719
[2023-08-29 19:40:06] [    0.000000] CPU features: detected: GIC system register CPU interface
[2023-08-29 19:40:06] [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096
[2023-08-29 19:40:06] [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=fc40000.spi.0:1m(ospi.ti
boot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern);omap2-nand.0:2m(NAND.tiboot3),
2m(NAND.tispl),2m(NAND.tiboot3.backup),4m(NAND.u-boot),256k(NAND.u-boot-env),256k(NAND.u-boot-env.backup),-(NAND.file-system) root=PARTUUID=5ca24813-3
ba3-4da8-999c-db9833cc368d rw rootfstype=ext4 rootwait
[2023-08-29 19:40:06] [    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[2023-08-29 19:40:06] [    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[2023-08-29 19:40:06] [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[2023-08-29 19:40:06] [    0.000000] Memory: 1398780K/2097152K available (11200K kernel code, 1162K rwdata, 4308K rodata, 1920K init, 431K bss, 174084
K reserved, 524288K cma-reserved)
[2023-08-29 19:40:06] [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[2023-08-29 19:40:06] [    0.000000] rcu: Preemptible hierarchical RCU implementation.
[2023-08-29 19:40:06] [    0.000000] rcu:       RCU event tracing is enabled.
[2023-08-29 19:40:06] [    0.000000] rcu:       RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[2023-08-29 19:40:06] [    0.000000]    Trampoline variant of Tasks RCU enabled.
[2023-08-29 19:40:06] [    0.000000]    Tracing variant of Tasks RCU enabled.
[2023-08-29 19:40:06] [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[2023-08-29 19:40:06] [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[2023-08-29 19:40:06] [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[2023-08-29 19:40:06] [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[2023-08-29 19:40:06] [    0.000000] GICv3: 256 SPIs implemented
[2023-08-29 19:40:06] [    0.000000] GICv3: 0 Extended SPIs implemented
[2023-08-29 19:40:06] [    0.000000] GICv3: Distributor has no Range Selector support
[2023-08-29 19:40:06] [    0.000000] GICv3: 16 PPIs implemented
[2023-08-29 19:40:06] [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001840000
[2023-08-29 19:40:06] [    0.000000] ITS [mem 0x01820000-0x0182ffff]
[2023-08-29 19:40:06] [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
[2023-08-29 19:40:06] [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
[2023-08-29 19:40:06] [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @80800000 (flat, esz 8, psz 64K, shr 0)
[2023-08-29 19:40:06] [    0.000000] ITS: using cache flushing for cmd queue
[2023-08-29 19:40:06] [    0.000000] GICv3: using LPI property table @0x0000000080030000
[2023-08-29 19:40:06] [    0.000000] GIC: using cache flushing for LPI property table
[2023-08-29 19:40:06] [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000080040000
[2023-08-29 19:40:06] [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[2023-08-29 19:40:06] [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[2023-08-29 19:40:06] [    0.000006] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[2023-08-29 19:40:06] [    0.008612] Console: colour dummy device 80x25
[2023-08-29 19:40:06] [    0.013210] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[2023-08-29 19:40:06] [    0.023889] pid_max: default: 32768 minimum: 301
[2023-08-29 19:40:06] [    0.028721] LSM: Security Framework initializing
[2023-08-29 19:40:06] [    0.033513] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[2023-08-29 19:40:06] [    0.041091] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[2023-08-29 19:40:06] [    0.051191] rcu: Hierarchical SRCU implementation.
[2023-08-29 19:40:06] [    0.056486] Platform MSI: msi-controller@1820000 domain created
[2023-08-29 19:40:06] [    0.062923] PCI/MSI: /bus@f4000/interrupt-controller@1800000/msi-controller@1820000 domain created
[2023-08-29 19:40:06] [    0.072235] EFI services will not be available.
[2023-08-29 19:40:06] [    0.077175] smp: Bringing up secondary CPUs ...
[2023-08-29 19:40:06] I/TC: Secondary CPU 1 initializing
[2023-08-29 19:40:06] I/TC: Secondary CPU 1 switching to normal world boot
[2023-08-29 19:40:06] [    0.090812] Detected VIPT I-cache on CPU1
[2023-08-29 19:40:06] [    0.090857] GICv3: CPU1: found redistributor 1 region 0:0x0000000001860000
[2023-08-29 19:40:06] [    0.090873] GICv3: CPU1: using allocated LPI pending table @0x0000000080050000
[2023-08-29 19:40:06] [    0.090945] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[2023-08-29 19:40:06] [    0.091094] smp: Brought up 1 node, 2 CPUs
[2023-08-29 19:40:06] [    0.120480] SMP: Total of 2 processors activated.
[2023-08-29 19:40:06] [    0.125294] CPU features: detected: 32-bit EL0 Support
[2023-08-29 19:40:06] [    0.130568] CPU features: detected: CRC32 instructions
[2023-08-29 19:40:07] [    0.144308] CPU: All CPU(s) started at EL2
[2023-08-29 19:40:07] [    0.148518] alternatives: patching kernel code
[2023-08-29 19:40:07] [    0.154385] devtmpfs: initialized
[2023-08-29 19:40:07] [    0.166650] KASLR disabled due to lack of seed
[2023-08-29 19:40:07] [    0.171479] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[2023-08-29 19:40:07] [    0.181458] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[2023-08-29 19:40:07] [    0.207035] pinctrl core: initialized pinctrl subsystem
[2023-08-29 19:40:07] [    0.213163] DMI not present or invalid.
[2023-08-29 19:40:07] [    0.217939] NET: Registered protocol family 16
[2023-08-29 19:40:07] [    0.224447] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[2023-08-29 19:40:07] [    0.231852] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[2023-08-29 19:40:07] [    0.239955] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[2023-08-29 19:40:07] [    0.248780] thermal_sys: Registered thermal governor 'step_wise'
[2023-08-29 19:40:07] [    0.248788] thermal_sys: Registered thermal governor 'power_allocator'
[2023-08-29 19:40:07] [    0.255444] cpuidle: using governor menu
[2023-08-29 19:40:07] [    0.266426] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[2023-08-29 19:40:07] [    0.273447] ASID allocator initialised with 65536 entries
[2023-08-29 19:40:07] [    0.310246] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[2023-08-29 19:40:07] [    0.317132] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[2023-08-29 19:40:07] [    0.323984] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[2023-08-29 19:40:07] [    0.330833] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[2023-08-29 19:40:07] [    0.339138] cryptd: max_cpu_qlen set to 1000
[2023-08-29 19:40:07] [    0.347263] k3-chipinfo 43000014.chipid: Family:AM64X rev:SR2.0 JTAGID[0x1bb3802f] Detected
[2023-08-29 19:40:07] [    0.356535] vsys_5v0: supplied by evm_12v0
[2023-08-29 19:40:07] [    0.361335] vsys_3v3: supplied by evm_12v0
[2023-08-29 19:40:07] [    0.366274] vddb_3v3_display: supplied by vsys_3v3
[2023-08-29 19:40:07] [    0.372641] iommu: Default domain type: Translated 
[2023-08-29 19:40:07] [    0.378103] SCSI subsystem initialized
[2023-08-29 19:40:07] [    0.382712] mc: Linux media interface: v0.10
[2023-08-29 19:40:07] [    0.387115] videodev: Linux video capture interface: v2.00
[2023-08-29 19:40:07] [    0.392820] pps_core: LinuxPPS API ver. 1 registered
[2023-08-29 19:40:07] [    0.397893] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[2023-08-29 19:40:07] [    0.407235] PTP clock support registered
[2023-08-29 19:40:07] [    0.411284] EDAC MC: Ver: 3.0.0
[2023-08-29 19:40:07] [    0.415521] omap-mailbox 29020000.mailbox: omap mailbox rev 0x66fc9100
[2023-08-29 19:40:07] [    0.422458] omap-mailbox 29040000.mailbox: omap mailbox rev 0x66fc9100
[2023-08-29 19:40:07] [    0.429282] omap-mailbox 29060000.mailbox: omap mailbox rev 0x66fc9100
[2023-08-29 19:40:07] [    0.436921] FPGA manager framework
[2023-08-29 19:40:07] [    0.440526] Advanced Linux Sound Architecture Driver Initialized.
[2023-08-29 19:40:07] [    0.448050] clocksource: Switched to clocksource arch_sys_counter
[2023-08-29 19:40:07] [    0.454548] VFS: Disk quotas dquot_6.6.0
[2023-08-29 19:40:07] [    0.458656] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[2023-08-29 19:40:07] [    0.472339] NET: Registered protocol family 2
[2023-08-29 19:40:07] [    0.477129] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[2023-08-29 19:40:07] [    0.486210] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[2023-08-29 19:40:07] [    0.495027] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[2023-08-29 19:40:07] [    0.503260] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[2023-08-29 19:40:07] [    0.511066] TCP: Hash tables configured (established 16384 bind 16384)
[2023-08-29 19:40:07] [    0.518040] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[2023-08-29 19:40:07] [    0.524946] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[2023-08-29 19:40:07] [    0.532471] NET: Registered protocol family 1
[2023-08-29 19:40:07] [    0.537606] RPC: Registered named UNIX socket transport module.
[2023-08-29 19:40:07] [    0.543687] RPC: Registered udp transport module.
[2023-08-29 19:40:07] [    0.548498] RPC: Registered tcp transport module.
[2023-08-29 19:40:07] [    0.553312] RPC: Registered tcp NFSv4.1 backchannel transport module.
[2023-08-29 19:40:07] [    0.559904] NET: Registered protocol family 44
[2023-08-29 19:40:07] [    0.564461] PCI: CLS 0 bytes, default 64
[2023-08-29 19:40:07] [    0.569350] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[2023-08-29 19:40:07] [    0.582509] Initialise system trusted keyrings
[2023-08-29 19:40:07] [    0.587468] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[2023-08-29 19:40:07] [    0.598616] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[2023-08-29 19:40:07] [    0.605543] NFS: Registering the id_resolver key type
[2023-08-29 19:40:07] [    0.610797] Key type id_resolver registered
[2023-08-29 19:40:07] [    0.615088] Key type id_legacy registered
[2023-08-29 19:40:07] [    0.619267] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[2023-08-29 19:40:07] [    0.626120] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[2023-08-29 19:40:07] [    0.633937] 9p: Installing v9fs 9p2000 file system support
[2023-08-29 19:40:07] [    0.682964] Key type asymmetric registered
[2023-08-29 19:40:07] [    0.687178] Asymmetric key parser 'x509' registered
[2023-08-29 19:40:07] [    0.692243] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[2023-08-29 19:40:07] [    0.699806] io scheduler mq-deadline registered
[2023-08-29 19:40:07] [    0.704442] io scheduler kyber registered
[2023-08-29 19:40:07] [    0.711217] pinctrl-single 4084000.pinctrl: 33 pins, size 132
[2023-08-29 19:40:07] [    0.717719] pinctrl-single f4000.pinctrl: 180 pins, size 720
[2023-08-29 19:40:07] [    0.724710] pinctrl-single a40000.timesync-router: 512 pins, size 2048
[2023-08-29 19:40:07] [    0.742276] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[2023-08-29 19:40:07] [    0.766448] brd: module loaded
[2023-08-29 19:40:07] [    0.778581] loop: module loaded
[2023-08-29 19:40:07] [    0.783005] megasas: 07.714.04.00-rc1
[2023-08-29 19:40:07] [    0.791801] tun: Universal TUN/TAP device driver, 1.6
[2023-08-29 19:40:07] [    0.797857] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[2023-08-29 19:40:07] [    0.804286] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[2023-08-29 19:40:07] [    0.810417] sky2: driver version 1.30

2. i want to change kernel configurations and need to add as patch, i will change tisdk_am64xx-evm_defconfig this file,not able to add as patch,it does not show the changes i have made.

Please share you valuable inputs expecting early reply 

Thank you