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.

SK-TDA4VM: kernel panic - not syncing: no working init found.

Part Number: SK-TDA4VM

Hi,

I was trying to build sdk using the top level makefile from this link: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/08_05_00_08/exports/docs/linux/Overview_Top_Level_Makefile.html and installed the files(both rootfs and boot) to sd card using command :

sudo -E BOOTFS=/media/$USER/boot DESTDIR=/media/$USER/rootfs make install

While booting I was facing this issue 'kernel panic - not syncing: no working init found. try passing init= option to kernel'. Attaching screenshot of the error.
Can you please tell me what might be the issue. After installing to sd card using the above command, I noticed /bin, /sbin folders are absent.
Why these folders are absent even after succesful build using top level makefile. Can you please tell what might be the issue or any possible step i missed.

  • Hi,

    Can you check the Kernel command line and see if the root parameter is populated?

    The kernel command line should be printed in the logs before you see the panic.

    Regards

    Karan

  • This is the bootlog:

    Welcome to minicom 2.7.1

    OPTIONS: I18n
    Compiled on Aug 13 2017, 15:25:34.
    Port /dev/ttyUSB2, 15:19:08

    Press CTRL-A Z for help on special keys


    U-Boot SPL 2021.01-dirty (Mar 17 2023 - 15:05:50 +0530)
    Model: Texas Instruments J721E SK R5
    Board: J721EX-EAIK rev E1
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.2--v08.05.02 (Chill Capybar')
    Trying to boot from MMC2
    Starting ATF on ARM64 core...

    NOTICE: BL31: v2.7(release):v2.7.0-359-g1309c6c805-dirty
    NOTICE: BL31: Built : 07:46:16, Dec 18 2022
    I/TC:
    I/TC: OP-TEE version: 3.19.0 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Sun Dec 18 07:46:21 UTC 2022 aarch64
    I/TC: WARNING: This OP-TEE configuration might be insecure!
    I/TC: WARNING: Please check optee.readthedocs.io/.../porting_guidelines.html
    I/TC: Primary CPU initializing
    I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.2--v08.05.02 (Chill Capybar')
    I/TC: HUK Initialized
    I/TC: Activated SA2UL device
    I/TC: Fixing SA2UL firewall owner for GP device
    I/TC: Enabled firewalls for SA2UL TRNG device
    I/TC: SA2UL TRNG initialized
    I/TC: SA2UL Drivers initialized
    I/TC: Primary CPU switching to normal world boot

    U-Boot SPL 2021.01-dirty (Mar 17 2023 - 15:04:01 +0530)
    Model: Texas Instruments J721E SK A72
    Board: J721EX-EAIK rev E1
    SYSFW ABI: 3.1 (firmware rev 0x0008 '8.5.2--v08.05.02 (Chill Capybar')
    Trying to boot from MMC2


    U-Boot 2021.01-dirty (Mar 17 2023 - 15:04:01 +0530)

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

    In: serial@2800000
    Out: serial@2800000
    Err: serial@2800000
    am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    cdns,sierra serdes@5000000: sierra probed
    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'
    18608640 bytes read in 773 ms (23 MiB/s)
    108803 bytes read in 14 ms (7.4 MiB/s)
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 000000008fee2000, end 000000008fffffff ... OK

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [ 0.000000] Linux version 5.10.153-g90c3a58fd2 (ignitarium@IGN-BLR-LP-0402) (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 (GN3
    [ 0.000000] Machine model: Texas Instruments J721E SK
    [ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (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] Reserved memory: created DMA memory pool at 0x00000000ac000000, size 2 MiB
    [ 0.000000] OF: reserved mem: initialized node r5f-virtual-eth-queues@ac000000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000ac200000, size 30 MiB
    [ 0.000000] OF: reserved mem: initialized node r5f-virtual-eth-buffers@ac200000, 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-0x00000000abffffff]
    [ 0.000000] node 0: [mem 0x00000000ac000000-0x00000000adffffff]
    [ 0.000000] node 0: [mem 0x00000000ae000000-0x00000000ffffffff]
    [ 0.000000] node 0: [mem 0x0000000880000000-0x00000008ffffffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [ 0.000000] cma: Reserved 400 MiB at 0x00000000e7000000
    [ 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 s50008 r8192 d31912 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=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),1m(ospi.sysfw),256kt
    [ 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 0x00000000e3000000-0x00000000e7000000] (64MB)
    [ 0.000000] Memory: 3386460K/4194304K available (10880K kernel code, 1148K rwdata, 4212K rodata, 1792K init, 432K bss, 398244K reserved, 409600K 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] 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.008410] Console: colour dummy device 80x25
    [ 0.012972] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [ 0.023642] pid_max: default: 32768 minimum: 301
    [ 0.028399] LSM: Security Framework initializing
    [ 0.033153] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [ 0.040730] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [ 0.049487] rcu: Hierarchical SRCU implementation.
    [ 0.054535] Platform MSI: msi-controller@1820000 domain created
    [ 0.060761] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [ 0.070065] EFI services will not be available.
    [ 0.074794] smp: Bringing up secondary CPUs ...
    I/TC: Secondary CPU 1 initializing
    I/TC: Secondary CPU 1 switching to normal world boot
    [ 0.088061] Detected PIPT I-cache on CPU1
    [ 0.088086] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [ 0.088097] GICv3: CPU1: using allocated LPI pending table @0x0000000880050000
    [ 0.088131] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [ 0.088181] smp: Brought up 1 node, 2 CPUs
    [ 0.117527] SMP: Total of 2 processors activated.
    [ 0.122331] CPU features: detected: 32-bit EL0 Support
    [ 0.127585] CPU features: detected: CRC32 instructions
    [ 0.141387] CPU: All CPU(s) started at EL2
    [ 0.145582] alternatives: patching kernel code
    [ 0.150580] devtmpfs: initialized
    [ 0.159264] KASLR disabled due to lack of seed
    [ 0.163903] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [ 0.173866] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    [ 0.185415] pinctrl core: initialized pinctrl subsystem
    [ 0.191048] DMI not present or invalid.
    [ 0.195288] NET: Registered protocol family 16
    [ 0.200478] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [ 0.207780] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [ 0.215826] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [ 0.224118] thermal_sys: Registered thermal governor 'step_wise'
    [ 0.224120] thermal_sys: Registered thermal governor 'power_allocator'
    [ 0.230690] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [ 0.244327] ASID allocator initialised with 65536 entries
    [ 0.268328] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
    [ 0.275184] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
    [ 0.282030] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [ 0.288875] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
    [ 0.296315] cryptd: max_cpu_qlen set to 1000
    [ 0.302328] k3-chipinfo 43000014.chipid: Family:J721E rev:SR2.0 JTAGID[0x1bb6402f] Detected
    [ 0.311130] vsys_3v3: supplied by vusb-main5v0
    [ 0.316135] iommu: Default domain type: Translated
    [ 0.321255] SCSI subsystem initialized
    [ 0.325389] mc: Linux media interface: v0.10
    [ 0.329764] videodev: Linux video capture interface: v2.00
    [ 0.335400] pps_core: LinuxPPS API ver. 1 registered
    [ 0.340470] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.349808] PTP clock support registered
    [ 0.353827] EDAC MC: Ver: 3.0.0
    [ 0.357639] FPGA manager framework
    [ 0.361152] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.367742] clocksource: Switched to clocksource arch_sys_counter
    [ 0.374077] VFS: Disk quotas dquot_6.6.0
    [ 0.378107] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [ 0.387667] NET: Registered protocol family 2
    [ 0.392397] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [ 0.400965] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [ 0.409717] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [ 0.417916] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
    [ 0.425715] TCP: Hash tables configured (established 32768 bind 32768)
    [ 0.432505] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [ 0.439398] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [ 0.446795] NET: Registered protocol family 1
    [ 0.451503] RPC: Registered named UNIX socket transport module.
    [ 0.457565] RPC: Registered udp transport module.
    [ 0.462369] RPC: Registered tcp transport module.
    [ 0.467172] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.473755] PCI: CLS 0 bytes, default 64
    [ 0.478124] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [ 0.488526] Initialise system trusted keyrings
    [ 0.493152] workingset: timestamp_bits=46 max_order=20 bucket_order=0
    [ 0.501349] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.507554] NFS: Registering the id_resolver key type
    [ 0.512738] Key type id_resolver registered
    [ 0.517012] Key type id_legacy registered
    [ 0.521129] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [ 0.527979] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [ 0.535618] 9p: Installing v9fs 9p2000 file system support
    [ 0.560432] Key type asymmetric registered
    [ 0.564617] Asymmetric key parser 'x509' registered
    [ 0.569614] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
    [ 0.577172] io scheduler mq-deadline registered
    [ 0.581797] io scheduler kyber registered
    [ 0.587490] pinctrl-single 4301c000.pinctrl: 94 pins, size 376
    [ 0.593688] pinctrl-single 11c000.pinctrl: 173 pins, size 692
    [ 0.602565] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
    [ 0.608838] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
    [ 0.615183] ti-pat 31010000.pat: Found PAT Rev 1.0 with 16384 pages
    [ 0.621597] debugfs: Directory '31010000.pat' with parent 'regmap' already present!
    [ 0.629581] ti-pat 31011000.pat: Found PAT Rev 1.0 with 16384 pages
    [ 0.635998] debugfs: Directory '31011000.pat' with parent 'regmap' already present!
    [ 0.643931] ti-pat 31012000.pat: Found PAT Rev 1.0 with 16384 pages
    [ 0.650352] debugfs: Directory '31012000.pat' with parent 'regmap' already present!
    [ 0.658284] ti-pat 31013000.pat: Found PAT Rev 1.0 with 2048 pages
    [ 0.664610] debugfs: Directory '31013000.pat' with parent 'regmap' already present!
    [ 0.672551] ti-pat 31014000.pat: Found PAT Rev 1.0 with 2048 pages
    [ 0.678875] debugfs: Directory '31014000.pat' with parent 'regmap' already present!
    [ 0.688569] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [ 0.696893] arm-smmu-v3 36600000.iommu: ias 48-bit, oas 48-bit (features 0x00001faf)
    [ 0.705106] arm-smmu-v3 36600000.iommu: allocated 65536 entries for cmdq
    [ 0.712135] arm-smmu-v3 36600000.iommu: allocated 32768 entries for evtq
    [ 0.720604] arm-smmu-v3 36600000.iommu: msi_domain absent - falling back to wired irqs
    [ 0.733785] brd: module loaded
    [ 0.740194] loop: module loaded
    [ 0.743921] megasas: 07.714.04.00-rc1
    [ 0.749639] tun: Universal TUN/TAP device driver, 1.6
    [ 0.755086] igbvf: Intel(R) Gigabit Virtual Function Network Driver
    [ 0.761494] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
    [ 0.767568] sky2: driver version 1.30
    [ 0.771920] VFIO - User Level meta-driver version: 0.3
    [ 0.777688] i2c /dev entries driver
    [ 0.782186] sdhci: Secure Digital Host Controller Interface driver
    [ 0.788521] sdhci: Copyright(c) Pierre Ossman
    [ 0.793191] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 0.799628] ledtrig-cpu: registered to indicate activity on CPUs
    [ 0.805973] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [ 0.813363] optee: probing for conduit method.
    [ 0.817927] optee: revision 3.19 (afacf356)
    [ 0.818054] optee: dynamic shared memory is enabled
    [ 0.827510] optee: initialized driver
    [ 0.832577] NET: Registered protocol family 17
    [ 0.837199] 9pnet: Installing 9P2000 support
    [ 0.841599] Key type dns_resolver registered
    [ 0.846049] Loading compiled-in X.509 certificates
    [ 0.856490] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
    [ 0.862833] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
    [ 0.872605] ti-sci 44083000.dmsc: ABI: 3.1 (firmware rev 0x0008 '8.5.2--v08.05.02 (Chill Capybar')
    [ 0.934894] omap_i2c 40b00000.i2c: bus 0 rev0.12 at 100 kHz
    [ 0.941022] omap_i2c 40b10000.i2c: bus 1 rev0.12 at 100 kHz
    [ 0.947099] omap_i2c 42120000.i2c: bus 2 rev0.12 at 100 kHz
    [ 0.975903] i2c i2c-3: Added multiplexed i2c bus 4
    [ 0.980883] i2c i2c-3: Added multiplexed i2c bus 5
    [ 0.985781] pca954x 3-0071: registered 2 multiplexed busses for I2C switch pca9543
    [ 0.993539] omap_i2c 2000000.i2c: bus 3 rev0.12 at 400 kHz
    [ 0.999639] omap_i2c 2010000.i2c: bus 6 rev0.12 at 100 kHz
    [ 1.027904] i2c i2c-7: Added multiplexed i2c bus 8
    [ 1.032881] i2c i2c-7: Added multiplexed i2c bus 9
    [ 1.037779] pca954x 7-0070: registered 2 multiplexed busses for I2C switch pca9543
    [ 1.045535] omap_i2c 2030000.i2c: bus 7 rev0.12 at 400 kHz
    [ 1.051584] omap_i2c 2050000.i2c: bus 10 rev0.12 at 400 kHz
    [ 1.058157] ti-sci-intr bus@100000:bus@28380000:interrupt-controller2: Interrupt Router 137 domain created
    [ 1.068138] ti-sci-intr bus@100000:interrupt-controller0: Interrupt Router 131 domain created
    [ 1.076950] ti-sci-intr bus@100000:main-navss:interrupt-controller1: Interrupt Router 213 domain created
    [ 1.086821] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created
    [ 1.110235] j721e-pcie 2900000.pcie: host bridge /bus@100000/pcie@2900000 ranges:
    [ 1.117907] j721e-pcie 2900000.pcie: IO 0x0010001000..0x0010010fff -> 0x0010001000
    [ 1.126183] j721e-pcie 2900000.pcie: MEM 0x0010011000..0x0017ffffff -> 0x0010011000
    [ 1.134462] j721e-pcie 2900000.pcie: IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [ 1.143391] j721e-pcie 2910000.pcie: host bridge /bus@100000/pcie@2910000 ranges:
    [ 1.151074] j721e-pcie 2910000.pcie: IO 0x0018001000..0x0018010fff -> 0x0018001000
    [ 1.159353] j721e-pcie 2910000.pcie: MEM 0x0018011000..0x001fffffff -> 0x0018011000
    [ 1.167629] j721e-pcie 2910000.pcie: IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [ 1.176923] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    [ 1.186804] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [ 1.193563] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [ 1.202614] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
    [ 1.212764] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [ 1.219528] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [ 1.227499] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 15, base_baud = 6000000) is a 8250
    [ 1.236945] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 30, base_baud = 3000000) is a 8250
    [ 1.245689] printk: console [ttyS2] enabled
    [ 1.245689] printk: console [ttyS2] enabled
    [ 1.254125] printk: bootconsole [ns16550a0] disabled
    [ 1.254125] printk: bootconsole [ns16550a0] disabled
    [ 1.264639] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 31, base_baud = 3000000) is a 8250
    [ 1.273597] 2840000.serial: ttyS6 at MMIO 0x2840000 (irq = 32, base_baud = 3000000) is a 8250
    [ 1.289790] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [ 1.335745] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [ 1.344225] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
    [ 1.352520] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [ 1.365322] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [ 1.372527] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [ 1.378840] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [ 1.388878] davinci_mdio c000f00.mdio: Configuring MDIO in manual mode
    [ 1.431745] davinci_mdio c000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [ 1.439299] davinci_mdio c000f00.mdio: no live phy, scanning all
    [ 1.457257] davinci_mdio c000f00.mdio: phy[0]: device c000f00.mdio:00, driver unknown
    [ 1.465097] davinci_mdio c000f00.mdio: phy[1]: device c000f00.mdio:01, driver unknown
    [ 1.472912] davinci_mdio c000f00.mdio: phy[2]: device c000f00.mdio:02, driver unknown
    [ 1.480723] davinci_mdio c000f00.mdio: phy[3]: device c000f00.mdio:03, driver unknown
    [ 1.488535] davinci_mdio c000f00.mdio: phy[4]: device c000f00.mdio:04, driver unknown
    [ 1.496348] davinci_mdio c000f00.mdio: phy[5]: device c000f00.mdio:05, driver unknown
    [ 1.504159] davinci_mdio c000f00.mdio: phy[6]: device c000f00.mdio:06, driver unknown
    [ 1.511970] davinci_mdio c000f00.mdio: phy[7]: device c000f00.mdio:07, driver unknown
    [ 1.519781] davinci_mdio c000f00.mdio: phy[8]: device c000f00.mdio:08, driver unknown
    [ 1.527592] davinci_mdio c000f00.mdio: phy[9]: device c000f00.mdio:09, driver unknown
    [ 1.535403] davinci_mdio c000f00.mdio: phy[10]: device c000f00.mdio:0a, driver unknown
    [ 1.543300] davinci_mdio c000f00.mdio: phy[11]: device c000f00.mdio:0b, driver unknown
    [ 1.551200] davinci_mdio c000f00.mdio: phy[12]: device c000f00.mdio:0c, driver unknown
    [ 1.559100] davinci_mdio c000f00.mdio: phy[13]: device c000f00.mdio:0d, driver unknown
    [ 1.566998] davinci_mdio c000f00.mdio: phy[14]: device c000f00.mdio:0e, driver unknown
    [ 1.574900] davinci_mdio c000f00.mdio: phy[15]: device c000f00.mdio:0f, driver unknown
    [ 1.582857] davinci_mdio c000f00.mdio: phy[16]: device c000f00.mdio:10, driver unknown
    [ 1.590764] davinci_mdio c000f00.mdio: phy[17]: device c000f00.mdio:11, driver unknown
    [ 1.598662] davinci_mdio c000f00.mdio: phy[18]: device c000f00.mdio:12, driver unknown
    [ 1.606559] davinci_mdio c000f00.mdio: phy[19]: device c000f00.mdio:13, driver unknown
    [ 1.614456] davinci_mdio c000f00.mdio: phy[20]: device c000f00.mdio:14, driver unknown
    [ 1.622355] davinci_mdio c000f00.mdio: phy[21]: device c000f00.mdio:15, driver unknown
    [ 1.630253] davinci_mdio c000f00.mdio: phy[22]: device c000f00.mdio:16, driver unknown
    [ 1.638149] davinci_mdio c000f00.mdio: phy[23]: device c000f00.mdio:17, driver unknown
    [ 1.646046] davinci_mdio c000f00.mdio: phy[24]: device c000f00.mdio:18, driver unknown
    [ 1.653945] davinci_mdio c000f00.mdio: phy[25]: device c000f00.mdio:19, driver unknown
    [ 1.661842] davinci_mdio c000f00.mdio: phy[26]: device c000f00.mdio:1a, driver unknown
    [ 1.669738] davinci_mdio c000f00.mdio: phy[27]: device c000f00.mdio:1b, driver unknown
    [ 1.677636] davinci_mdio c000f00.mdio: phy[28]: device c000f00.mdio:1c, driver unknown
    [ 1.685535] davinci_mdio c000f00.mdio: phy[29]: device c000f00.mdio:1d, driver unknown
    [ 1.693435] davinci_mdio c000f00.mdio: phy[30]: device c000f00.mdio:1e, driver unknown
    [ 1.701339] davinci_mdio c000f00.mdio: phy[31]: device c000f00.mdio:1f, driver unknown
    [ 1.709301] am65-cpsw-nuss c000000.ethernet: initializing am65 cpsw nuss version 0x6BA01901, cpsw version 0x6BA80101 Ports: 9 quirks:00000000
    [ 1.721982] am65-cpsw-nuss c000000.ethernet: /bus@100000/ethernet@c000000/ethernet-ports/port@1 error retrieving port phy: -19
    [ 1.735252] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [ 1.850657] vdd_mmc1: supplied by vsys_3v3
    [ 1.855511] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
    [ 1.862388] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
    [ 1.869234] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
    [ 1.876066] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
    [ 1.882875] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
    [ 1.893158] j721e-pcie 2900000.pcie: host bridge /bus@100000/pcie@2900000 ranges:
    [ 1.900657] j721e-pcie 2900000.pcie: IO 0x0010001000..0x0010010fff -> 0x0010001000
    [ 1.908739] j721e-pcie 2900000.pcie: MEM 0x0010011000..0x0017ffffff -> 0x0010011000
    [ 1.916817] j721e-pcie 2900000.pcie: IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [ 2.927574] j721e-pcie 2900000.pcie: PCI host bridge to bus 0000:00
    [ 2.933836] pci_bus 0000:00: root bus resource [bus 00-ff]
    [ 2.939309] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] (bus address [0x10001000-0x10010fff])
    [ 2.948766] pci_bus 0000:00: root bus resource [mem 0x10011000-0x17ffffff]
    [ 2.955648] pci 0000:00:00.0: [104c:b00d] type 01 class 0x060400
    [ 2.961642] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [ 2.971334] pci 0000:00:00.0: supports D1
    [ 2.975332] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    [ 2.982995] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [ 2.992732] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
    [ 2.999340] pci 0000:00:00.0: PCI bridge to [bus 01]
    [ 3.004526] pcieport 0000:00:00.0: PME: Signaling with IRQ 505
    [ 3.010879] j721e-pcie 2910000.pcie: host bridge /bus@100000/pcie@2910000 ranges:
    [ 3.018374] j721e-pcie 2910000.pcie: IO 0x0018001000..0x0018010fff -> 0x0018001000
    [ 3.026453] j721e-pcie 2910000.pcie: MEM 0x0018011000..0x001fffffff -> 0x0018011000
    [ 3.034533] j721e-pcie 2910000.pcie: IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [ 4.045327] j721e-pcie 2910000.pcie: PCI host bridge to bus 0001:00
    [ 4.051589] pci_bus 0001:00: root bus resource [bus 00-ff]
    [ 4.057063] pci_bus 0001:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x18001000-0x18010fff])
    [ 4.066694] pci_bus 0001:00: root bus resource [mem 0x18011000-0x1fffffff]
    [ 4.073571] pci 0001:00:00.0: [104c:b00d] type 01 class 0x060400
    [ 4.079564] pci_bus 0001:00: 2-byte config write to 0001:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [ 4.089254] pci 0001:00:00.0: supports D1
    [ 4.093253] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
    [ 4.100887] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [ 4.110656] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
    [ 4.117263] pci 0001:00:00.0: PCI bridge to [bus 01]
    [ 4.122429] pcieport 0001:00:00.0: PME: Signaling with IRQ 507
    [ 4.129157] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
    [ 4.139837] ti-udma 31150000.dma-controller: Channels: 122 (tchan: 61, rchan: 61, gp-rflow: 16)
    [ 4.155431] spi-nor spi11.0: s28hs512t (65536 Kbytes)
    [ 4.160508] 8 cmdlinepart partitions found on MTD device 47040000.spi.0
    [ 4.167107] Creating 8 MTD partitions on "47040000.spi.0":
    [ 4.172584] 0x000000000000-0x000000080000 : "ospi.tiboot3"
    [ 4.178557] 0x000000080000-0x000000280000 : "ospi.tispl"
    [ 4.184240] 0x000000280000-0x000000680000 : "ospi.u-boot"
    [ 4.190017] 0x000000680000-0x0000006c0000 : "ospi.env"
    [ 4.195529] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw"
    [ 4.201223] 0x0000007c0000-0x000000800000 : "ospi.env.backup"
    [ 4.207342] 0x000000800000-0x000003fc0000 : "ospi.rootfs"
    [ 4.213104] 0x000003fc0000-0x000004000000 : "ospi.phypattern"
    [ 4.223877] mmc0: CQHCI version 5.10
    [ 4.228403] debugfs: Directory 'pd:27' with parent 'pm_genpd' already present!
    [ 4.235691] debugfs: Directory 'pd:26' with parent 'pm_genpd' already present!
    [ 4.244068] debugfs: Directory 'pd:242' with parent 'pm_genpd' already present!
    [ 4.251385] debugfs: Directory 'pd:241' with parent 'pm_genpd' already present!
    [ 4.258691] debugfs: Directory 'pd:240' with parent 'pm_genpd' already present!
    [ 4.266004] debugfs: Directory 'pd:239' with parent 'pm_genpd' already present!
    [ 4.288082] ALSA device list:
    [ 4.291042] No soundcards found.
    [ 5.291923] mmc0: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [ 5.300546] Waiting for root device PARTUUID=16000730-02...
    [ 5.349516] mmc0: new ultra high speed DDR50 SDHC card at address 5048
    [ 5.356373] mmcblk0: mmc0:5048 SD32G 29.7 GiB
    [ 5.362430] mmcblk0: p1 p2
    [ 5.522550] EXT4-fs (mmcblk0p2): recovery complete
    [ 5.531555] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 5.539661] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [ 5.545680] devtmpfs: error mounting -2
    [ 5.550295] Freeing unused kernel memory: 1792K
    [ 5.554922] Run /sbin/init as init process
    [ 5.559125] Run /etc/init as init process
    [ 5.563178] Run /bin/init as init process
    [ 5.567231] Run /bin/sh as init process
    [ 5.571091] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
    [ 5.585227] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.153-g90c3a58fd2 #1
    [ 5.592340] Hardware name: Texas Instruments J721E SK (DT)
    [ 5.597809] Call trace:
    [ 5.600255] dump_backtrace+0x0/0x1a0
    [ 5.603903] show_stack+0x18/0x68
    [ 5.607208] dump_stack+0xd0/0x12c
    [ 5.610594] panic+0x16c/0x334
    [ 5.613637] kernel_init+0xf8/0x114
    [ 5.617111] ret_from_fork+0x10/0x34
    [ 5.620674] SMP: stopping secondary CPUs
    [ 5.624586] Kernel Offset: disabled
    [ 5.628061] CPU features: 0x28040022,20006008
    [ 5.632402] Memory Limit: none
    [ 5.635447] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---
  • Hi Shilpa,

    Can you confirm that the file system is in the SD card? On the SK board can you make sure that the rootfs is written properly?

    Regards,

    Keerthy

  • In the sd card, inside rootfs there is boot, lib and usr folders.

  • Shilpa

    There is no "root" in the Kernel Command Line, this is why the kernel is not able to load the file system.


    [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),1m(ospi.sysfw),256kt

    Please create the SD card using the method described here.

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-edgeai/TDA4VM/08_06_00/exports/docs/devices/TDA4VM/linux/getting_started.html#preparing-sd-card-image

    Regards

    Karan

  • Hello Karan,

    Above link is for flashing default image into sd card using balena etcher tool right. I am confused how this can be used in my case as I was trying to build sdk using top level makefile which generates desired modules ,boot files and the command they gave to copy to sd card was using make install.

    Regards,

    Shilpa

  • Shilpa,

    You can create the balena etcher card once. Then if you want to change the dts or the kernel driver code then you can use the EVM SDK:

    https://www.ti.com/tool/download/PROCESSOR-SDK-LINUX-J721E

    Do the changes in the source code under: $PSDK?board-support/linux*

    cd .$PSDK/
    make linux

    Edit the $PSDK/Rules.make file to point DESTDIR to /media/$USER/rootfs

    Basically the rootfs partition of the SD card created using Balena etcher. This should let you boot custom kernerl/dtb.

    Regards,
    Keerthy