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.

TDA4VM: Linux kernel hangs after INIT process is executed

Part Number: TDA4VM
Other Parts Discussed in Thread: LM5141

Hello TI experts, I'm working on a custom hardware that has been designed using as reference the SK-TDA4VM reference card. The differences are minimal and mainly refers to a different DDR configuration and different serial interface used as console. I'm trying to setup the Linux platform running on a72 cores. The linux kernel is getting executed through the u-boot. For bot U-boot and Linux SDK I'm currently using version 8.06. The system bootstrap properly and reach almost the final stage but hangs just after the /sbin/init process is executed and I cannot see ny addition print out to the console nor reach the login prompt. I also tried, for debug purposes, to spawn a bash insted od the init process wuth same result

The following are the U-boot and kernel print on the console. The same kernel with a different Dervice Tree is perfectly working on the SK-TDA4VM reference card. I'm struggling since a few days in order to understand the issue and find a solution. Thanks for your support

U-Boot SPL 2021.01-00002-gb3d802e186-dirty (Sep 01 2023 - 15:13:12 +0000)
Model: Texas Instruments J721E SK A72
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
Trying to boot from MMC2


U-Boot 2021.01-00002-gb3d802e186-dirty (Oct 10 2023 - 13:30:27 +0000)

SoC: J721E SR1.1 GP
Model: Texas Instruments J721E SK A72
DRAM: 4 GiB
MMC: sdhci@4fb0000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In: serial@2830000
Out: serial@2830000
Err: serial@2830000
am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
Net: eth0: ethernet@46000000port@1
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
Failed to load 'boot.scr'
Failed to load 'uEnv.txt'
19079680 bytes read in 791 ms (23 MiB/s)
99186 bytes read in 12 ms (7.9 MiB/s)
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 000000008fee4000, end 000000008fffffff ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
[ 0.000000] Linux version 5.10.162-dirty (inxpect@8e5d8a231b02) (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) #33 SMP PREEMPT Tue Oct 10 12:18:29 UTC 2023
[ 0.000000] Machine model: Texas Instruments J721E SK
[ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002830000 (options '')
[ 0.000000] printk: bootconsole [ns16550a0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a2000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a2100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a3000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a3000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a3100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a3100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a4000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a4100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a5000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a5000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a5100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a5100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node c66-dma-memory@a6000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node c66-memory@a6100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node c66-dma-memory@a7000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node c66-memory@a7100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node c71-dma-memory@a8000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node c71-memory@a8100000, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000000100000000-0x00000008ffffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x000000009e7fffff]
[ 0.000000] node 0: [mem 0x000000009e800000-0x00000000a8ffffff]
[ 0.000000] node 0: [mem 0x00000000a9000000-0x00000000a9ffffff]
[ 0.000000] node 0: [mem 0x00000000aa000000-0x00000000abbfffff]
[ 0.000000] node 0: [mem 0x00000000abc00000-0x00000000ffffffff]
[ 0.000000] node 0: [mem 0x0000000880000000-0x00000008ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
[ 0.000000] cma: Reserved 512 MiB at 0x00000000e0000000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 22 pages/cpu s50392 r8192 d31528 u90112
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: EL2 vector hardening
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.000000] CPU features: detected: Spectre-BHB
[ 0.000000] CPU features: detected: ARM erratum 1742098
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1032192
[ 0.000000] Kernel command line: console=ttyS5,115200n8 earlycon=ns16550a,mmio32,0x02830000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),1m(ospi.sysfw),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) panic=-1 nosmp init=/bin/bash root=PARTUUID=cc2029f6-02 rw rootfstype=ext4 rootwait
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x00000000dc000000-0x00000000e0000000] (64MB)
[ 0.000000] Memory: 3304076K/4194304K available (11200K kernel code, 1160K rwdata, 4280K rodata, 1856K init, 433K bss, 365940K reserved, 524288K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 960 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
[ 0.000000] ITS [mem 0x01820000-0x0182ffff]
[ 0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
[ 0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
[ 0.000000] ITS@0x0000000001820000: allocated 524288 Devices @880800000 (flat, esz 8, psz 64K, shr 0)
[ 0.000000] ITS: using cache flushing for cmd queue
[ 0.000000] GICv3: using LPI property table @0x0000000880030000
[ 0.000000] GIC: using cache flushing for LPI property table
[ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880040000
[ 0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[ 0.000002] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[ 0.008406] Console: colour dummy device 80x25
[ 0.012968] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[ 0.023638] pid_max: default: 32768 minimum: 301
[ 0.028393] LSM: Security Framework initializing
[ 0.033147] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.040723] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.049538] rcu: Hierarchical SRCU implementation.
[ 0.054601] Platform MSI: msi-controller@1820000 domain created
[ 0.060819] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
[ 0.070118] EFI services will not be available.
[ 0.074832] smp: Bringing up secondary CPUs ...
[ 0.079463] smp: Brought up 1 node, 1 CPU
[ 0.083556] SMP: Total of 1 processors activated.
[ 0.088364] CPU features: detected: 32-bit EL0 Support
[ 0.093613] CPU features: detected: CRC32 instructions
[ 0.107626] CPU: All CPU(s) started at EL2
[ 0.111819] alternatives: patching kernel code
[ 0.116765] init_mount: ret=0, dev_name=devtmpfs, dir_name=/, type_page=devtmpfs, flags=8000
[ 0.125424] devtmpfs: initialized
[ 0.133757] KASLR disabled due to lack of seed
[ 0.138401] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.148364] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.160993] pinctrl core: initialized pinctrl subsystem
[ 0.166655] DMI not present or invalid.
[ 0.170895] NET: Registered protocol family 16
[ 0.176093] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[ 0.183393] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.191447] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.199739] thermal_sys: Registered thermal governor 'step_wise'
[ 0.199742] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.206302] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.219922] ASID allocator initialised with 65536 entries
[ 0.238799] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.245670] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.252546] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.259394] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.266839] cryptd: max_cpu_qlen set to 1000
[ 0.272655] k3-chipinfo 43000014.chipid: Family:J721E rev:SR2.0 JTAGID[0x1bb6402f] Detected
[ 0.281466] vsys_3v3: supplied by vusb-main5v0
[ 0.286530] iommu: Default domain type: Translated
[ 0.291678] SCSI subsystem initialized
[ 0.295720] mc: Linux media interface: v0.10
[ 0.300090] videodev: Linux video capture interface: v2.00
[ 0.305716] pps_core: LinuxPPS API ver. 1 registered
[ 0.310786] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.320123] PTP clock support registered
[ 0.324143] EDAC MC: Ver: 3.0.0
[ 0.327866] FPGA manager framework
[ 0.331379] Advanced Linux Sound Architecture Driver Initialized.
[ 0.337982] clocksource: Switched to clocksource arch_sys_counter
[ 0.344327] VFS: Disk quotas dquot_6.6.0
[ 0.348358] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.357644] NET: Registered protocol family 2
[ 0.362380] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.371027] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 0.379817] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.388017] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[ 0.395814] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.402609] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.409511] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.416918] NET: Registered protocol family 1
[ 0.421604] RPC: Registered named UNIX socket transport module.
[ 0.427665] RPC: Registered udp transport module.
[ 0.432467] RPC: Registered tcp transport module.
[ 0.437271] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.443851] NET: Registered protocol family 44
[ 0.448396] PCI: CLS 0 bytes, default 64
[ 0.452741] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[ 0.462965] Initialise system trusted keyrings
[ 0.467598] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[ 0.475845] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.482064] NFS: Registering the id_resolver key type
[ 0.487249] Key type id_resolver registered
[ 0.491521] Key type id_legacy registered
[ 0.495637] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.502485] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.510118] 9p: Installing v9fs 9p2000 file system support
[ 0.535855] Key type asymmetric registered
[ 0.540053] Asymmetric key parser 'x509' registered
[ 0.545065] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 0.552633] io scheduler mq-deadline registered
[ 0.557265] io scheduler kyber registered
[ 0.562708] pinctrl-single 4301c000.pinctrl: 94 pins, size 376
[ 0.568899] pinctrl-single 11c000.pinctrl: 173 pins, size 692
[ 0.577222] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
[ 0.583689] debugfs: Directory '31010000.pat' with parent 'regmap' already present!
[ 0.591667] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
[ 0.598083] debugfs: Directory '31011000.pat' with parent 'regmap' already present!
[ 0.606009] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
[ 0.612425] debugfs: Directory '31012000.pat' with parent 'regmap' already present!
[ 0.620343] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
[ 0.626667] debugfs: Directory '31013000.pat' with parent 'regmap' already present!
[ 0.634620] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
[ 0.640944] debugfs: Directory '31014000.pat' with parent 'regmap' already present!
[ 0.650318] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[ 0.658386] arm-smmu-v3 36600000.iommu: ias 48-bit, oas 48-bit (features 0x00001faf)
[ 0.666596] arm-smmu-v3 36600000.iommu: allocated 65536 entries for cmdq
[ 0.673637] arm-smmu-v3 36600000.iommu: allocated 32768 entries for evtq
[ 0.682105] arm-smmu-v3 36600000.iommu: msi_domain absent - falling back to wired irqs
[ 0.694679] brd: module loaded
[ 0.700987] loop: module loaded
[ 0.704668] megasas: 07.714.04.00-rc1
[ 0.710216] tun: Universal TUN/TAP device driver, 1.6
[ 0.715652] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 0.722066] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.728144] sky2: driver version 1.30
[ 0.732431] VFIO - User Level meta-driver version: 0.3
[ 0.738128] i2c /dev entries driver
[ 0.742426] sdhci: Secure Digital Host Controller Interface driver
[ 0.748742] sdhci: Copyright(c) Pierre Ossman
[ 0.753406] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.759671] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.765971] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 0.773231] optee: probing for conduit method.
[ 0.777802] optee: revision 3.20 (2d0762ee)
[ 0.794218] optee: dynamic shared memory is enabled
[ 0.845753] optee: initialized driver
[ 0.850506] NET: Registered protocol family 17
[ 0.855138] 9pnet: Installing 9P2000 support
[ 0.859545] Key type dns_resolver registered
[ 0.864012] Loading compiled-in X.509 certificates
[ 0.875675] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0008 '8.6.3--v08.06.03 (Chill Capybar')
[ 0.915290] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
[ 0.921398] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
[ 0.927426] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
[ 0.933926] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created
[ 0.943895] ti-sci-intr bus@100000:interrupt-controller0: Interrupt Router 131 domain created
[ 0.952699] ti-sci-intr bus@100000:main-navss:interrupt-controller1: Interrupt Router 213 domain created
[ 0.962550] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created
[ 0.974725] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
[ 0.984623] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
[ 0.991384] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
[ 1.000422] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
[ 1.010573] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
[ 1.017332] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
[ 1.025299] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 15, base_baud = 6000000) is a 8250
[ 1.034705] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 25, base_baud = 3000000) is a 8250
[ 1.043887] 2830000.serial: ttyS5 at MMIO 0x2830000 (irq = 26, base_baud = 3000000) is a 8250
[ 1.052643] printk: console [ttyS5] enabled
[ 1.052643] printk: console [ttyS5] enabled
[ 1.061089] printk: bootconsole [ns16550a0] disabled
[ 1.061089] printk: bootconsole [ns16550a0] disabled
[ 1.075322] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
[ 1.121988] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[ 1.129961] ****** kernel_execve BEGIN
[ 1.133791] ****** kernel_execve out_free
[ 1.137819] ****** kernel_execve out_ret: retval=-2
[ 1.142841] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver unknown
[ 1.150886] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
[ 1.163700] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
[ 1.170913] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
[ 1.177198] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
[ 1.187314] davinci_mdio c000f00.mdio: Configuring MDIO in manual mode
[ 1.233987] davinci_mdio c000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[ 1.241540] davinci_mdio c000f00.mdio: no live phy, scanning all
[ 1.248484] ****** kernel_execve BEGIN
[ 1.252283] ****** kernel_execve out_free
[ 1.256308] ****** kernel_execve out_ret: retval=-2
[ 1.270438] davinci_mdio c000f00.mdio: phy[2]: device c000f00.mdio:02, driver TI DP83867
[ 1.278559] am65-cpsw-nuss c000000.ethernet: initializing am65 cpsw nuss version 0x6BA01901, cpsw version 0x6BA80101 Ports: 9 quirks:00000000
[ 1.291237] am65-cpsw-nuss c000000.ethernet: /bus@100000/ethernet@c000000/ethernet-ports/port@1 error retrieving port phy: -19
[ 1.303730] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
[ 1.415364] vdd_mmc1: supplied by vsys_3v3
[ 1.420309] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
[ 1.427188] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
[ 1.434015] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
[ 1.440830] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
[ 1.447633] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
[ 1.454762] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
[ 1.465344] ti-udma 31150000.dma-controller: Channels: 122 (tchan: 61, rchan: 61, gp-rflow: 16)
[ 1.477006] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
[ 1.521989] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[ 1.529998] ****** kernel_execve BEGIN
[ 1.533800] ****** kernel_execve out_free
[ 1.537835] ****** kernel_execve out_ret: retval=-2
[ 1.542854] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver unknown
[ 1.550904] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
[ 1.563720] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
[ 1.570935] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
[ 1.577185] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
[ 1.587838] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
[ 1.596519] mmc0: CQHCI version 5.10
[ 1.600318] debugfs: Directory 'pd:27' with parent 'pm_genpd' already present!
[ 1.607960] debugfs: Directory 'pd:26' with parent 'pm_genpd' already present!
[ 1.616363] debugfs: Directory 'pd:242' with parent 'pm_genpd' already present!
[ 1.623701] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present!
[ 1.631019] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present!
[ 1.638329] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present!
[ 1.655588] ALSA device list:
[ 1.658551] No soundcards found.
[ 1.662124] ***************** console_on_rootfs
[ 2.662685] mmc0: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
[ 2.670812] *********** ROOT_DEV=0, root_wait=1
[ 2.675528] Waiting for root device PARTUUID=cc2029f6-02...
[ 2.743349] mmc0: new ultra high speed DDR50 SDHC card at address 59b4
[ 2.750202] mmcblk0: mmc0:59b4 AF UD 14.9 GiB
[ 2.755546] mmcblk0: p1 p2
[ 2.774031] init_mount: ret=0, dev_name=/dev/root, dir_name=/root, type_page=ext4, flags=8000
[ 2.788167] EXT4-fs (mmcblk0p2): recovery complete
[ 2.792966] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.801075] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.808646] init_mount: ret=0, dev_name=devtmpfs, dir_name=dev, type_page=devtmpfs, flags=8000
[ 2.817259] devtmpfs: mounted
[ 2.820220] init_mount: ret=0, dev_name=., dir_name=/, type_page=(null), flags=2000
[ 2.828639] Freeing unused kernel memory: 1856K
[ 2.833261] Run /bin/bash as init process
[ 2.837288] with arguments:
[ 2.840245] /bin/bash
[ 2.842857] HOME=/
[ 2.845203] TERM=linux
[ 2.847900] ****** kernel_execve BEGIN
[ 2.860645] ****** kernel_execve out_free
[ 2.864658] ****** kernel_execve out_ret: retval=0
[ 2.869472] ******** execute_command: ret=0

 

No additional print after this point

  • Hi,

    By the logs it appears that the console uart is different on your board as compared with the sk board.

    Are you using main_uart3 as the console uart?

    If yes what are the bootargs that you have used ?

    Best Regards,

    Keerthy 

  • Hii Keerthy. I confirm we're using on our hardware a different serial interface, precisely main_uart3. Just as addition information let me add I'm currently using the precompiled filesystem exported in the Linux SDK as tisdk-default-image-j7-evm.tar.xz. The kernel is getting configured by U-Boot and this is the env variable I have define in teh bootloader:

    => printenv
    addr_fit=0x90000000
    arch=arm
    args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02830000 ${mtdparts} panic=-1 nosmp init=/bin/bash
    args_mmc=run finduuid;setenv bootargs console=${console} ${optargs} root=PARTUUID=${uuid} rw rootfstype=${mmcrootfstype}
    args_ufs=setenv devtype scsi;setenv bootpart 1:1;run ufs_finduuid;setenv bootargs console = ${console} ${optargs}root=PARTUUID=${uuid} rw rootfstype=${scsirootfstype};setenv devtype scsi;setenv bootpart 1:1
    baudrate=115200
    board=sauron
    board_name=sauron
    boot=mmc
    boot_fdt=try
    boot_fit=0
    boot_rprocs=if test ${dorprocboot} -eq 1 && test ${boot} = mmc; then rproc init;run boot_rprocs_mmc;fi;
    boot_rprocs_mmc=env set rproc_id;env set rproc_fw;env set secure_suffix;if test ${boot_fit} -eq 1; then env set secure_suffix -sec;fi;for i in ${rproc_fw_binaries}; do if test -z "${rproc_id}" ; then env set rproc_id $i;else env set rproc_fw $i${secure_suffix};run rproc_load_and_boot_one;env set rproc_id;env set rproc_fw;fi;done
    bootcmd=run findfdt; run envboot; run init_${boot}; run main_cpsw0_qsgmii_phyinit; run boot_rprocs; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern
    bootdelay=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    bootm_size=0x10000000
    bootpart=1:2
    bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr}
    console=ttyS5,115200n8
    cpu=armv8
    default_device_tree=k3-j721e-sauron.dtb
    dfu_alt_info_emmc=rawemmc raw 0 0x800000 mmcpart 1;rootfs part 0 1 mmcpart 0;tiboot3.bin.raw raw 0x0 0x400 mmcpart 1;tispl.bin.raw raw 0x400 0x1000 mmcpart 1;u-boot.img.raw raw 0x1400 0x2000 mmcpart 1;u-env.raw raw 0x3400 0x100 mmcpart 1;sysfw.itb.raw raw 0x3600 0x800 mmcpart 1
    dfu_alt_info_mmc=boot part 1 1;rootfs part 1 2;tiboot3.bin fat 1 1;tispl.bin fat 1 1;u-boot.img fat 1 1;uEnv.txt fat 1 1;sysfw.itb fat 1 1
    dfu_alt_info_ospi=tiboot3.bin raw 0x0 0x080000;tispl.bin raw 0x080000 0x200000;u-boot.img raw 0x280000 0x400000;u-boot-env raw 0x680000 0x020000;sysfw.itb raw 0x6c0000 0x100000;rootfs raw 0x800000 0x3800000
    dfu_alt_info_ram=tispl.bin ram 0x80080000 0x200000;u-boot.img ram 0x81000000 0x400000
    dorprocboot=0
    dtboaddr=0x89000000
    envboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootscript; then run bootscript;else if run loadbootenv; then echo Loaded env from ${bootenvfile};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;fi;fi;
    ethaddr=24:76:25:a4:04:1e
    fdt_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontroladdr=fffb3c70
    fdtoverlay_addr_r=0x80200000
    findfdt=setenv name_fdt ${default_device_tree};if test $board_name = sauron_dbe; then setenv name_fdt k3-sauron_dbe.dtb; fi;setenv fdtfile ${name_fdt}
    finduuid=part uuid ${boot} ${bootpart} uuid
    get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
    get_fdt_ufs=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    get_fit_mmc=load mmc ${bootpart} ${addr_fit} ${bootdir}/${name_fit}
    get_kern_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
    get_kern_ufs=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
    get_overlay_mmc=fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $name_overlays;do;load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && fdt apply ${dtboaddr};done;
    get_overlay_ufs=fdt address ${fdtaddr};fdt resize 0x100000;for overlay in $name_overlays;do;load scsi ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && fdt apply ${dtboaddr};done;
    get_overlaystring=for overlay in $name_overlays;do;setenv overlaystring ${overlaystring}'#'${overlay};done;
    importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize}
    init_main_cpsw0_qsgmii_phy=gpio set gpio@22_17;gpio clear gpio@22_16
    init_mmc=run args_all args_mmc
    init_ufs=ufs init; scsi scan; run args_ufs
    kernel_addr_r=0x82000000
    loadaddr=0x82000000
    loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
    loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
    loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
    loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
    main_cpsw0_qsgmii_phyinit=if test test $board_name = sauron; then do_main_cpsw0_qsgmii_phyinit=1; else do_main_cpsw0_qsgmii_phyinit=0; fi;if test ${do_main_cpsw0_qsgmii_phyinit} -eq 1 && test ${dorprocboot} -eq 1 && test ${boot} = mmc; then run init_main_cpsw0_qsgmii_phy;fi;
    mmcboot=mmc dev ${mmcdev}; devnum=${mmcdev}; devtype=mmc; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadimage; then run args_mmc; if test ${boot_fit} -eq 1; then run run_fit; else run mmcloados;fi;fi;fi;
    mmcdev=1
    mmcloados=if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
    mmcrootfstype=ext4 rootwait
    mtdids=nor0=47040000.spi.0,nor0=47034000.hyperbus
    mtdparts=mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),1m(ospi.sysfw),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs)
    name_fit=fitImage
    name_kern=Image
    partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
    pxefile_addr_r=0x80100000
    ramdisk_addr_r=0x88080000
    rd_spec=-
    rdaddr=0x88080000
    rproc_fw_binaries=2 /lib/firmware/j7-main-r5f0_0-fw 3 /lib/firmware/j7-main-r5f0_1-fw 4 /lib/firmware/j7-main-r5f1_0-fw 5 /lib/firmware/j7-main-r5f1_1-fw 6 /lib/firmware/j7-c66_0-fw 7 /lib/firmware/j7-c66_1-fw 8 /lib/firmware/j7-c71_0-fw
    rproc_load_and_boot_one=if load mmc ${bootpart} $loadaddr ${rproc_fw}; then if rproc load ${rproc_id} ${loadaddr} ${filesize}; then rproc start ${rproc_id};fi;fi
    run_fit=bootm ${addr_fit}#${fdtfile}${overlaystring}
    run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
    scriptaddr=0x80000000
    scsirootfstype=ext4 rootwait
    soc=k3
    stderr=serial@2830000
    stdin=serial@2830000
    stdout=serial@2830000
    ufs_finduuid=part uuid scsi ${bootpart} uuid
    update_to_fit=setenv loadaddr ${addr_fit}; setenv bootfile ${name_fit}
    vendor=inxpect

  • let me add also teh DT I'm currently using:

    // SPDX-License-Identifier: GPL-2.0
    /*
    * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/
    */

    /dts-v1/;

    #include "k3-j721e.dtsi"
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/input/input.h>
    #include <dt-bindings/net/ti-dp83867.h>

    / {
    compatible = "ti,j721e-sk", "ti,j721e";
    model = "Texas Instruments J721E SK";

    chosen {
    stdout-path = "serial5:115200n8";
    bootargs = "console=ttyS5,115200n8 earlycon=ns16550a,mmio32,0x02830000 nosmp panic=-1 init=/bin/bash";
    };

    memory@80000000 {
    device_type = "memory";
    /* 4G RAM */
    reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
    <0x00000008 0x80000000 0x00000000 0x80000000>;
    };

    reserved_memory: reserved-memory {
    #address-cells = <2>;
    #size-cells = <2>;
    ranges;

    secure_ddr: optee@9e800000 {
    reg = <0x00 0x9e800000 0x00 0x01800000>;
    alignment = <0x1000>;
    no-map;
    };

    mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa0000000 0x00 0x100000>;
    no-map;
    };

    mcu_r5fss0_core0_memory_region: r5f-memory@a0100000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa0100000 0x00 0xf00000>;
    no-map;
    };

    mcu_r5fss0_core1_dma_memory_region: r5f-dma-memory@a1000000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa1000000 0x00 0x100000>;
    no-map;
    };

    mcu_r5fss0_core1_memory_region: r5f-memory@a1100000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa1100000 0x00 0xf00000>;
    no-map;
    };

    main_r5fss0_core0_dma_memory_region: r5f-dma-memory@a2000000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa2000000 0x00 0x100000>;
    no-map;
    };

    main_r5fss0_core0_memory_region: r5f-memory@a2100000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa2100000 0x00 0xf00000>;
    no-map;
    };

    main_r5fss0_core1_dma_memory_region: r5f-dma-memory@a3000000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa3000000 0x00 0x100000>;
    no-map;
    };

    main_r5fss0_core1_memory_region: r5f-memory@a3100000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa3100000 0x00 0xf00000>;
    no-map;
    };

    main_r5fss1_core0_dma_memory_region: r5f-dma-memory@a4000000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa4000000 0x00 0x100000>;
    no-map;
    };

    main_r5fss1_core0_memory_region: r5f-memory@a4100000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa4100000 0x00 0xf00000>;
    no-map;
    };

    main_r5fss1_core1_dma_memory_region: r5f-dma-memory@a5000000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa5000000 0x00 0x100000>;
    no-map;
    };

    main_r5fss1_core1_memory_region: r5f-memory@a5100000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa5100000 0x00 0xf00000>;
    no-map;
    };

    c66_1_dma_memory_region: c66-dma-memory@a6000000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa6000000 0x00 0x100000>;
    no-map;
    };

    c66_0_memory_region: c66-memory@a6100000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa6100000 0x00 0xf00000>;
    no-map;
    };

    c66_0_dma_memory_region: c66-dma-memory@a7000000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa7000000 0x00 0x100000>;
    no-map;
    };

    c66_1_memory_region: c66-memory@a7100000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa7100000 0x00 0xf00000>;
    no-map;
    };

    c71_0_dma_memory_region: c71-dma-memory@a8000000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa8000000 0x00 0x100000>;
    no-map;
    };

    c71_0_memory_region: c71-memory@a8100000 {
    compatible = "shared-dma-pool";
    reg = <0x00 0xa8100000 0x00 0xf00000>;
    no-map;
    };

    rtos_ipc_memory_region: ipc-memories@aa000000 {
    reg = <0x00 0xaa000000 0x00 0x01c00000>;
    alignment = <0x1000>;
    no-map;
    };
    };

    vusb_main: fixedregulator-vusb-main5v0 {
    /* USB MAIN INPUT 5V DC */
    compatible = "regulator-fixed";
    regulator-name = "vusb-main5v0";
    regulator-min-microvolt = <5000000>;
    regulator-max-microvolt = <5000000>;
    regulator-always-on;
    regulator-boot-on;
    };

    vsys_3v3: fixedregulator-vsys3v3 {
    /* Output of LM5141 */
    compatible = "regulator-fixed";
    regulator-name = "vsys_3v3";
    regulator-min-microvolt = <3300000>;
    regulator-max-microvolt = <3300000>;
    vin-supply = <&vusb_main>;
    regulator-always-on;
    regulator-boot-on;
    };

    vdd_mmc1: fixedregulator-sd {
    compatible = "regulator-fixed";
    pinctrl-names = "default";
    pinctrl-0 = <&vdd_mmc1_en_pins_default>;
    regulator-name = "vdd_mmc1";
    regulator-min-microvolt = <3300000>;
    regulator-max-microvolt = <3300000>;
    regulator-boot-on;
    enable-active-high;
    vin-supply = <&vsys_3v3>;
    gpio = <&wkup_gpio0 8 GPIO_ACTIVE_HIGH>;
    };

    vdd_sd_dv_alt: gpio-regulator-tps659411 {
    compatible = "regulator-gpio";
    pinctrl-names = "default";
    pinctrl-0 = <&vdd_sd_dv_alt_pins_default>;
    regulator-name = "tps659411";
    regulator-min-microvolt = <1800000>;
    regulator-max-microvolt = <3300000>;
    regulator-boot-on;
    vin-supply = <&vsys_3v3>;
    gpios = <&wkup_gpio0 9 GPIO_ACTIVE_HIGH>;
    states = <1800000 0x0>,
    <3300000 0x1>;
    };

    transceiver1: can-phy0 {
    status = "disabled";
    };

    transceiver2: can-phy1 {
    status = "disabled";
    };

    transceiver3: can-phy2 {
    status = "disabled";
    };

    transceiver4: can-phy3 {
    status = "disabled";
    };

    dp_pwr_3v3: fixedregulator-dp-prw {
    compatible = "regulator-fixed";
    regulator-name = "dp-pwr";
    regulator-min-microvolt = <3300000>;
    regulator-max-microvolt = <3300000>;
    pinctrl-names = "default";
    pinctrl-0 = <&dp_pwr_en_pins_default>;
    gpio = <&main_gpio0 111 0>; /* DP0_3V3 _EN */
    enable-active-high;
    };

    dp0: connector {
    status = "disabled";
    };

    hdmi-connector {
    status = "disabled";
    };

    dvi-bridge {
    status = "disabled";
    };
    };

    &main_pmx0 {
    main_mmc1_pins_default: main-mmc1-pins-default {
    pinctrl-single,pins = <
    J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
    J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
    J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
    J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
    J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
    J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
    J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
    J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
    >;
    };

    main_uart3_pins_default: main-uart0-pins-default {
    pinctrl-single,pins = <
    J721E_IOPAD(0xb8, PIN_INPUT, 8) /* (AE27) PRG0_PRU0_GPO2.UART3_RXD */
    J721E_IOPAD(0xbc, PIN_OUTPUT, 8) /* (AD26) PRG0_PRU0_GPO3.UART3_TXD */
    >;
    };

    dp_pwr_en_pins_default: dp-pwr-en-pins-default {
    pinctrl-single,pins = <
    J721E_IOPAD(0x1c0, PIN_INPUT, 7) /* (AA2) SPI0_CS0.GPIO0_111 */
    >;
    };

    dss_vout0_pins_default: dss-vout0-pins-default {
    pinctrl-single,pins = <
    J721E_IOPAD(0x58, PIN_OUTPUT, 10) /* (AE22) PRG1_PRU1_GPO0.VOUT0_DATA0 */
    J721E_IOPAD(0x5c, PIN_OUTPUT, 10) /* (AG23) PRG1_PRU1_GPO1.VOUT0_DATA1 */
    J721E_IOPAD(0x60, PIN_OUTPUT, 10) /* (AF23) PRG1_PRU1_GPO2.VOUT0_DATA2 */
    J721E_IOPAD(0x64, PIN_OUTPUT, 10) /* (AD23) PRG1_PRU1_GPO3.VOUT0_DATA3 */
    J721E_IOPAD(0x68, PIN_OUTPUT, 10) /* (AH24) PRG1_PRU1_GPO4.VOUT0_DATA4 */
    J721E_IOPAD(0x6c, PIN_OUTPUT, 10) /* (AG21) PRG1_PRU1_GPO5.VOUT0_DATA5 */
    J721E_IOPAD(0x70, PIN_OUTPUT, 10) /* (AE23) PRG1_PRU1_GPO6.VOUT0_DATA6 */
    J721E_IOPAD(0x74, PIN_OUTPUT, 10) /* (AC21) PRG1_PRU1_GPO7.VOUT0_DATA7 */
    J721E_IOPAD(0x78, PIN_OUTPUT, 10) /* (Y23) PRG1_PRU1_GPO8.VOUT0_DATA8 */
    J721E_IOPAD(0x7c, PIN_OUTPUT, 10) /* (AF21) PRG1_PRU1_GPO9.VOUT0_DATA9 */
    J721E_IOPAD(0x80, PIN_OUTPUT, 10) /* (AB23) PRG1_PRU1_GPO10.VOUT0_DATA10 */
    J721E_IOPAD(0x84, PIN_OUTPUT, 10) /* (AJ25) PRG1_PRU1_GPO11.VOUT0_DATA11 */
    J721E_IOPAD(0x88, PIN_OUTPUT, 10) /* (AH25) PRG1_PRU1_GPO12.VOUT0_DATA12 */
    J721E_IOPAD(0x8c, PIN_OUTPUT, 10) /* (AG25) PRG1_PRU1_GPO13.VOUT0_DATA13 */
    J721E_IOPAD(0x90, PIN_OUTPUT, 10) /* (AH26) PRG1_PRU1_GPO14.VOUT0_DATA14 */
    J721E_IOPAD(0x94, PIN_OUTPUT, 10) /* (AJ27) PRG1_PRU1_GPO15.VOUT0_DATA15 */
    J721E_IOPAD(0x30, PIN_OUTPUT, 10) /* (AF24) PRG1_PRU0_GPO11.VOUT0_DATA16 */
    J721E_IOPAD(0x34, PIN_OUTPUT, 10) /* (AJ24) PRG1_PRU0_GPO12.VOUT0_DATA17 */
    J721E_IOPAD(0x38, PIN_OUTPUT, 10) /* (AG24) PRG1_PRU0_GPO13.VOUT0_DATA18 */
    J721E_IOPAD(0x3c, PIN_OUTPUT, 10) /* (AD24) PRG1_PRU0_GPO14.VOUT0_DATA19 */
    J721E_IOPAD(0x40, PIN_OUTPUT, 10) /* (AC24) PRG1_PRU0_GPO15.VOUT0_DATA20 */
    J721E_IOPAD(0x44, PIN_OUTPUT, 10) /* (AE24) PRG1_PRU0_GPO16.VOUT0_DATA21 */
    J721E_IOPAD(0x24, PIN_OUTPUT, 10) /* (AJ20) PRG1_PRU0_GPO8.VOUT0_DATA22 */
    J721E_IOPAD(0x28, PIN_OUTPUT, 10) /* (AG20) PRG1_PRU0_GPO9.VOUT0_DATA23 */
    J721E_IOPAD(0x9c, PIN_OUTPUT, 10) /* (AC22) PRG1_PRU1_GPO17.VOUT0_DE */
    J721E_IOPAD(0x98, PIN_OUTPUT, 10) /* (AJ26) PRG1_PRU1_GPO16.VOUT0_HSYNC */
    J721E_IOPAD(0xa4, PIN_OUTPUT, 10) /* (AH22) PRG1_PRU1_GPO19.VOUT0_PCLK */
    J721E_IOPAD(0xa0, PIN_OUTPUT, 10) /* (AJ22) PRG1_PRU1_GPO18.VOUT0_VSYNC */
    >;
    };
    };

    &wkup_pmx0 {
    mcu_cpsw_pins_default: mcu-cpsw-pins-default {
    pinctrl-single,pins = <
    J721E_WKUP_IOPAD(0x84, PIN_INPUT, 0) /* (B24) MCU_RGMII1_RD0 */
    J721E_WKUP_IOPAD(0x80, PIN_INPUT, 0) /* (A24) MCU_RGMII1_RD1 */
    J721E_WKUP_IOPAD(0x7c, PIN_INPUT, 0) /* (D24) MCU_RGMII1_RD2 */
    J721E_WKUP_IOPAD(0x78, PIN_INPUT, 0) /* (A25) MCU_RGMII1_RD3 */
    J721E_WKUP_IOPAD(0x74, PIN_INPUT, 0) /* (C24) MCU_RGMII1_RXC */
    J721E_WKUP_IOPAD(0x5c, PIN_INPUT, 0) /* (C25) MCU_RGMII1_RX_CTL */
    J721E_WKUP_IOPAD(0x6c, PIN_OUTPUT, 0) /* (B25) MCU_RGMII1_TD0 */
    J721E_WKUP_IOPAD(0x68, PIN_OUTPUT, 0) /* (A26) MCU_RGMII1_TD1 */
    J721E_WKUP_IOPAD(0x64, PIN_OUTPUT, 0) /* (A27) MCU_RGMII1_TD2 */
    J721E_WKUP_IOPAD(0x60, PIN_OUTPUT, 0) /* (A28) MCU_RGMII1_TD3 */
    J721E_WKUP_IOPAD(0x70, PIN_OUTPUT, 0) /* (B26) MCU_RGMII1_TXC */
    J721E_WKUP_IOPAD(0x58, PIN_OUTPUT, 0) /* (B27) MCU_RGMII1_TX_CTL */
    >;
    };

    mcu_mdio_pins_default: mcu-mdio1-pins-default {
    pinctrl-single,pins = <
    J721E_WKUP_IOPAD(0x8c, PIN_OUTPUT, 0) /* (F23) MCU_MDIO0_MDC */
    J721E_WKUP_IOPAD(0x88, PIN_INPUT, 0) /* (E23) MCU_MDIO0_MDIO */
    >;
    };

    vdd_mmc1_en_pins_default: vdd-mmc1-en-pins-default {
    pinctrl-single,pins = <
    J721E_WKUP_IOPAD(0xd0, PIN_OUTPUT, 7) /* (G27) WKUP_GPIO0_8 */
    >;
    };

    vdd_sd_dv_alt_pins_default: vdd-sd-dv-alt-pins-default {
    pinctrl-single,pins = <
    J721E_WKUP_IOPAD(0xd4, PIN_OUTPUT, 7) /* (G26) WKUP_GPIO0_9 */
    >;
    };
    };

    &wkup_uart0 {
    /* Wakeup UART is used by System firmware */
    status = "reserved";
    };

    &main_uart0 {
    status = "reserved ";
    };

    &main_uart2 {
    /* Brought out on RPi header */
    status = "disabled";
    };

    &main_uart3 {
    pinctrl-names = "default";
    pinctrl-0 = <&main_uart3_pins_default>;
    };

    &main_uart4 {
    status = "disabled";
    };

    &main_uart5 {
    /* UART not brought out */
    status = "disabled";
    };

    &main_uart6 {
    /* UART not brought out */
    status = "disabled";
    };

    &main_uart7 {
    /* UART not brought out */
    status = "disabled";
    };

    &main_uart8 {
    /* UART not brought out */
    status = "disabled";
    };

    &main_uart9 {
    /* Brought out on M.2 E Key */
    status = "disabled";
    };

    &main_sdhci0 {
    /* Unused */
    status = "disabled";
    };

    &main_sdhci1 {
    /* SD Card */
    vmmc-supply = <&vdd_mmc1>;
    vqmmc-supply = <&vdd_sd_dv_alt>;
    pinctrl-names = "default";
    pinctrl-0 = <&main_mmc1_pins_default>;
    ti,driver-strength-ohm = <50>;
    disable-wp;
    };

    &main_sdhci2 {
    /* Unused */
    status = "disabled";
    };

    &ospi0 {
    status = "disabled";
    };

    &ospi1 {
    /* Unused */
    status = "disabled";
    };

    &main_i2c0 {
    status = "disabled";
    };

    &main_i2c1 {
    status = "disabled";
    };

    &main_i2c2 {
    /* Unused */
    status = "disabled";
    };

    &main_i2c3 {
    status = "disabled";
    };

    &main_i2c4 {
    /* Unused */
    status = "disabled";
    };

    &main_i2c5 {
    status = "disabled";
    };

    &main_i2c6 {
    /* Unused */
    status = "disabled";
    };

    &main_gpio2 {
    status = "disabled";
    };

    &main_gpio3 {
    status = "disabled";
    };

    &main_gpio4 {
    status = "disabled";
    };

    &main_gpio5 {
    status = "disabled";
    };

    &main_gpio6 {
    status = "disabled";
    };

    &main_gpio7 {
    status = "disabled";
    };

    &wkup_gpio1 {
    status = "disabled";
    };

    &usb_serdes_mux {
    status = "disabled";
    };

    &serdes_ln_ctrl {
    status = "disabled";
    };

    &serdes_wiz0 {
    status = "disabled";
    };

    &serdes_wiz1 {
    status = "disabled";
    };

    &serdes_wiz2 {
    status = "disabled";
    };

    &serdes_wiz3 {
    status = "disabled";
    };

    &serdes3 {
    status = "disabled";
    };

    &usbss0 {
    status = "disabled";
    };

    &usb0 {
    status = "disabled";
    };

    &serdes2 {
    status = "disabled";
    };

    &usbss1 {
    status = "disabled";
    };

    &usb1 {
    status = "disabled";
    };

    &tscadc0 {
    /* Unused */
    status = "disabled";
    };

    &tscadc1 {
    /* Unused */
    status = "disabled";
    };

    &mcu_cpsw {
    pinctrl-names = "default";
    pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
    };

    &davinci_mdio {
    phy0: ethernet-phy@0 {
    reg = <0>;
    ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
    ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
    };
    };

    &cpsw_port1 {
    phy-mode = "rgmii-rxid";
    phy-handle = <&phy0>;
    };

    &dss {
    status = "disabled";
    };

    &dss_ports {
    status = "disabled";
    };

    &mhdp {
    status = "disabled";
    };

    &dp0_ports {
    status = "disabled";
    };

    &mcasp0 {
    /* Unused */
    status = "disabled";
    };

    &mcasp1 {
    /* Unused */
    status = "disabled";
    };

    &mcasp2 {
    /* Unused */
    status = "disabled";
    };

    &mcasp3 {
    /* Unused */
    status = "disabled";
    };

    &mcasp4 {
    /* Unused */
    status = "disabled";
    };

    &mcasp5 {
    /* Unused */
    status = "disabled";
    };

    &mcasp6 {
    /* Brought out on RPi header */
    status = "disabled";
    };

    &mcasp7 {
    /* Unused */
    status = "disabled";
    };

    &mcasp8 {
    /* Unused */
    status = "disabled";
    };

    &mcasp9 {
    /* Unused */
    status = "disabled";
    };

    &mcasp10 {
    /* Unused */
    status = "disabled";
    };

    &mcasp11 {
    /* Brought out on M.2 E Key */
    status = "disabled";
    };

    &serdes0 {
    status = "disabled";
    };

    &serdes1 {
    status = "disabled";
    };

    &pcie0_rc {
    status = "disabled";
    };

    &pcie1_rc {
    status = "disabled";
    };

    &pcie2_rc {
    /* Unused */
    status = "disabled";
    };

    &pcie0_ep {
    status = "disabled";
    };

    &pcie1_ep {
    status = "disabled";
    };

    &pcie2_ep {
    /* Unused */
    status = "disabled";
    };

    &pcie3_rc {
    /* Unused */
    status = "disabled";
    };

    &pcie3_ep {
    /* Unused */
    status = "disabled";
    };

    &mcu_mcan0 {
    status = "disabled";
    };

    &mcu_mcan1 {
    status = "disabled";
    };

    &main_mcan0 {
    status = "disabled";
    };

    &main_mcan1 {
    status = "disabled";
    };

    &main_mcan2 {
    status = "disabled";
    };

    &main_mcan3 {
    status = "disabled";
    };

    &main_mcan4 {
    status = "disabled";
    };

    &main_mcan5 {
    status = "disabled";
    };

    &main_mcan6 {
    status = "disabled";
    };

    &main_mcan7 {
    status = "disabled";
    };

    &main_mcan8 {
    status = "disabled";
    };

    &main_mcan9 {
    status = "disabled";
    };

    &main_mcan10 {
    status = "disabled";
    };

    &main_mcan11 {
    status = "disabled";
    };

    &main_mcan12 {
    status = "disabled";
    };

    &main_mcan13 {
    status = "disabled";
    };

    &ufs_wrapper {
    status = "disabled";
    };

    &main_r5fss0_core0{
    status = "disabled";
    };

    &mailbox0_cluster0 {
    interrupts = <436>;

    mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
    ti,mbox-rx = <0 0 0>;
    ti,mbox-tx = <1 0 0>;
    };

    mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
    ti,mbox-rx = <2 0 0>;
    ti,mbox-tx = <3 0 0>;
    };
    };

    &mailbox0_cluster1 {
    interrupts = <432>;

    mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 {
    ti,mbox-rx = <0 0 0>;
    ti,mbox-tx = <1 0 0>;
    };

    mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 {
    ti,mbox-rx = <2 0 0>;
    ti,mbox-tx = <3 0 0>;
    };
    };

    &mailbox0_cluster2 {
    interrupts = <428>;

    mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 {
    ti,mbox-rx = <0 0 0>;
    ti,mbox-tx = <1 0 0>;
    };

    mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 {
    ti,mbox-rx = <2 0 0>;
    ti,mbox-tx = <3 0 0>;
    };
    };

    &mailbox0_cluster3 {
    interrupts = <424>;

    mbox_c66_0: mbox-c66-0 {
    ti,mbox-rx = <0 0 0>;
    ti,mbox-tx = <1 0 0>;
    };

    mbox_c66_1: mbox-c66-1 {
    ti,mbox-rx = <2 0 0>;
    ti,mbox-tx = <3 0 0>;
    };
    };

    &mailbox0_cluster4 {
    interrupts = <420>;

    mbox_c71_0: mbox-c71-0 {
    ti,mbox-rx = <0 0 0>;
    ti,mbox-tx = <1 0 0>;
    };
    };

    &mailbox0_cluster5 {
    status = "disabled";
    };

    &mailbox0_cluster6 {
    status = "disabled";
    };

    &mailbox0_cluster7 {
    status = "disabled";
    };

    &mailbox0_cluster8 {
    status = "disabled";
    };

    &mailbox0_cluster9 {
    status = "disabled";
    };

    &mailbox0_cluster10 {
    status = "disabled";
    };

    &mailbox0_cluster11 {
    status = "disabled";
    };

    &mcu_r5fss0_core0 {
    mboxes = <&mailbox0_cluster0 &mbox_mcu_r5fss0_core0>;
    memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
    <&mcu_r5fss0_core0_memory_region>;
    };

    &mcu_r5fss0_core1 {
    mboxes = <&mailbox0_cluster0 &mbox_mcu_r5fss0_core1>;
    memory-region = <&mcu_r5fss0_core1_dma_memory_region>,
    <&mcu_r5fss0_core1_memory_region>;
    };

    &main_r5fss0_core0 {
    mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core0>;
    memory-region = <&main_r5fss0_core0_dma_memory_region>,
    <&main_r5fss0_core0_memory_region>;
    };

    &main_r5fss0_core1 {
    mboxes = <&mailbox0_cluster1 &mbox_main_r5fss0_core1>;
    memory-region = <&main_r5fss0_core1_dma_memory_region>,
    <&main_r5fss0_core1_memory_region>;
    };

    &main_r5fss1_core0 {
    mboxes = <&mailbox0_cluster2 &mbox_main_r5fss1_core0>;
    memory-region = <&main_r5fss1_core0_dma_memory_region>,
    <&main_r5fss1_core0_memory_region>;
    };

    &main_r5fss1_core1 {
    mboxes = <&mailbox0_cluster2 &mbox_main_r5fss1_core1>;
    memory-region = <&main_r5fss1_core1_dma_memory_region>,
    <&main_r5fss1_core1_memory_region>;
    };

    &c66_0 {
    mboxes = <&mailbox0_cluster3 &mbox_c66_0>;
    memory-region = <&c66_0_dma_memory_region>,
    <&c66_0_memory_region>;
    };

    &c66_1 {
    mboxes = <&mailbox0_cluster3 &mbox_c66_1>;
    memory-region = <&c66_1_dma_memory_region>,
    <&c66_1_memory_region>;
    };

    &c71_0 {
    mboxes = <&mailbox0_cluster4 &mbox_c71_0>;
    memory-region = <&c71_0_dma_memory_region>,
    <&c71_0_memory_region>;
    };

    &main_ehrpwm0 {
    status = "disabled";
    };

    &main_ehrpwm1 {
    status = "disabled";
    };

    &main_ehrpwm2 {
    status = "disabled";
    };

    &main_ehrpwm3 {
    status = "disabled";
    };

    &main_ehrpwm4 {
    status = "disabled";
    };

    &main_ehrpwm5 {
    status = "disabled";
    };

    &main_gpio0 {
    status = "disabled";
    };

    &main_gpio1 {
    status = "disabled";
    };

  • Hi,

    Are you able to press enter and check if RX is working during the hang?

    - Keerthy

  • Hi Keerthy, after the last trace I post nothing else is printed and no echo from the keyboard is displayed on the console. I'm not able to understand if the serial is blocked or the kernel is hang. But no pèanic condition is generated. 

  • It seems like the file system does not have the main_uart3 tty enabled and so you are not seeing prints once the filesystem is mounted.

    Best  Regards,

    Keerthy 

  • Keerthy thanks. In fact this is what I see about enabled tty

    echo $(grep -v "unknown" "/proc/tty/driver/serial")
    serinfo:1.0 driver revision: 1: uart:8250 mmio:0x40A00000 irq:15 tx:0 rx:0 CTS|DSR 2: uart:8250 mmio:0x02800000 irq:29 tx:124886 rx:4431 RTS|DTR 3: uart:8250 mmio:0x02810000 irq:30 tx:0 rx:0 DSR 6: uart:8250 mmio:0x02840000 irq:31 tx:0 rx:0 DSR

    Claerly tty for main_uart3 is not there. How can I add my serial tty in the FS?

  • BTW I don't think this is the only problem. The traces of a working scenario shows this:

    INIT: version 2.96 booting
    [ 5.630980] *************** ext4_remount
    [ 5.634993] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Tue May 2 15:54:43 UTC 2023
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    [ 5.739154] random: dd: uninitialized urandom read (512 bytes read)
    INIT: Entering runlevel: 5
    Configuring network interfaces... [ 5.800795] am65-cpsw-nuss 46000000.ethernet eth0: PHY [46000f00.mdio:00] driver [TI DP83867] (irq=POLL)
    [ 5.810273] am65-cpsw-nuss 46000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    udhcpc: started, v1.31.1
    udhcpc: sending discover
    udhcpc: sending discover
    udhcpc: sending discover
    udhcpc: no lease, forking to background
    done.
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Starting syslogd/klogd: done

    _____ _____ _ _
    | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
    | | _| .'| . | . | | __| _| . | | | -_| _| _|
    |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
    |___| |___|

    Arago Project j7-evm /dev/ttyS1

    Arago 2021.09 j7-evm /dev/ttyS1

    j7-evm login: root

    On my hardware instead the last trace is 

    INIT: version 2.96 booting

    It seems that ext4 is not getting remounted. At least I don't see relevant traces. I giess this operation is still done in kernel space so I should see traces

  • Hi Sergio,

    Typically when there are issues mounting file system you would see a crash. It seems like uart is no longer able to send characters on the console.

    Regards,

    Keerthy

  • Hi Keerthy . Thanks for all support. I finally resolved ny issue that was die to several root cause. Beyond the configuration of UART there was also a problem in the configuration of RAM. On our hrdware we had only 2GiB RAM equipped but I was still configuring 4GiB. After correcting the memory map configuration the problem was gone