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: Booting board using USB

Part Number: SK-TDA4VM

Tool/software:

Used SDK: ti-processor-sdk-linux-edgeai-j721e-evm-09_02_00_05

Hi,

I am trying to simulate booting an empty custom board, using the SK-TDA4VM. The board has inserted a preformatted empty SD-card, that will represent our eMMC. The board's DIP switch is set to USB Type C (DFP): 0-1-0-0. The USB-C has been partitioned and flashed with the tool from: sdk/bin/create-sdcard.sh, the image loaded: edgeai.

However after power up the board doesn't do anything. I am constantly monitoring the MCU_UART and MAIN_UART, but nothing happens. Am I missing something? I followed this thread:
 https://e2e.ti.com/support/processors-group/processors/f/processors-forum/951621/am4376-help-with-usb-uboot-bringup

Thanks,
Tamas

  • Hi Tamas 

    The board's DIP switch is set to USB Type C (DFP): 0-1-0-0.
    The USB-C has been partitioned and flashed with the tool from: sdk/bin/create-sdcard.sh, the image loaded: edgeai.

    Your statement seems confusing to me

    Are you using DFU boot mode or SD boot mode?

    Regards
    Diwakar

  • Hi Diwakar,

    Yes, I figured out, that my statement I wasn't well elaborated. I will try once again to sum up.

    We would like to make our custom board, in which there will be no SD card slot only a built-in eMMC. (The custom board will be similar to the SK-TDA4VM board) This eMMC will be empty. I have figured out that U-boot can configure the partitions on the eMMC and also is manageable transferring the tiboot3.bin, sysfw.itb, tispl.bin, and u-boot.img to the FAT32 partition (boot). The only way that I can write to the eMMC's ext4 partition is booting the Linux system and copying the data into eMMC.

    My question is: How can I boot the Linux from U-boot?
    (I have tried one tricky method: loading the tiboot3.bin, sysfw.itb, tispl.bin, and u-boot.img trough UART. Flashed an USB storage device with two partition: FAT32 with boot (I am not using this) and ext4 Linux file system. Plugging in the USB storage device into the SK-TDA4VM, the U-boot discovered my device. I loaded the Image and the device tree file in the RAM memory, then I tried to boot the Linux. It started to boot up, but stopped when trying to access the USB storage device. I have tried to modify the device tree file of u-boot (k3-j721e-sk-u-boot.dtsi) by setting the usb0 to "host" and "peripheral" but in both cases the Linux boot stuck in waiting for USB storage. I will append a snippet of the output:

    => ext4load usb 0:2 0x80000000 /boot/Image
    19376640 bytes read in 108 ms (171.1 MiB/s)
    => ext4load usb 0:2 0x82000000 /boot/dtb/ti/k3-j721e-sk.dtb
    103777 bytes read in 20 ms (4.9 MiB/s)
    => setenv bootargs "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=b430949e-ae2b-4653-b"
    => printenv bootargs
    bootargs=console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=b430949e-ae2b-4653-b423-f47c143g
    => booti 0x80000000 - 0x82000000
    ## Flattened Device Tree blob at 82000000
       Booting using the fdt blob at 0x82000000
    Working FDT set to 82000000
       Loading Device Tree to 000000008ffe3000, end 000000008ffff560 ... OK
    Working FDT set to 8ffe3000
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 6.1.80-ti-g2e423244f8c0 (oe-user@oe-host) (aarch64-oe-linux-gcc (GCC) 11.4.4
    [    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 CMA memory pool at 0x00000008e0000000, size 512 MiB
    [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
    [    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] 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.4
    [    0.000000] percpu: Embedded 20 pages/cpu s41064 r8192 d32664 u81920
    [    0.000000] pcpu-alloc: s41064 r8192 d32664 u81920 alloc=20*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: Spectre-v3a
    [    0.000000] CPU features: detected: Spectre-BHB
    [    0.000000] CPU features: detected: ARM erratum 1742098
    [    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=b430g
    [    0.000000] Unknown kernel command line parameters "usb_pgood_delay=2000", will be passed to user spa.
    [    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: area num 2.
    [    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
    [    0.000000] Memory: 3303392K/4194304K available (11712K kernel code, 1258K rwdata, 3812K rodata, 1984)
    [    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] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    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] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idles
    [    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008382] Console: colour dummy device 80x25
    [    0.012947] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIP)
    [    0.023617] pid_max: default: 32768 minimum: 301
    [    0.028353] LSM: Security Framework initializing
    [    0.033125] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.040695] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.049467] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.056864] cblist_init_generic: Setting shift to 1 and lim to 1.
    [    0.063123] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.070509] cblist_init_generic: Setting shift to 1 and lim to 1.
    [    0.076814] rcu: Hierarchical SRCU implementation.
    [    0.081712] rcu:     Max phase no-delay instances is 1000.
    [    0.087205] Platform MSI: msi-controller@1820000 domain created
    [    0.093419] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.102830] EFI services will not be available.
    [    0.107556] smp: Bringing up secondary CPUs ...
    I/TC: Secondary CPU 1 initializing
    I/TC: Secondary CPU 1 switching to normal world boot
    [    0.120763] Detected PIPT I-cache on CPU1
    [    0.120823] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.120836] GICv3: CPU1: using allocated LPI pending table @0x0000000880050000
    [    0.120864] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.120914] smp: Brought up 1 node, 2 CPUs
    [    0.150260] SMP: Total of 2 processors activated.
    [    0.155064] CPU features: detected: 32-bit EL0 Support
    [    0.160316] CPU features: detected: CRC32 instructions
    [    0.165593] CPU: All CPU(s) started at EL2
    [    0.169774] alternatives: applying system-wide alternatives
    [    0.176262] devtmpfs: initialized
    [    0.185539] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100s
    [    0.195520] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    [    0.209222] pinctrl core: initialized pinctrl subsystem
    [    0.214903] DMI not present or invalid.
    [    0.219159] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.225781] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    0.233086] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.241083] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.249208] audit: initializing netlink subsys (disabled)
    [    0.254822] audit: type=2000 audit(0.164:1): state=initialized audit_enabled=0 res=1
    [    0.255042] thermal_sys: Registered thermal governor 'step_wise'
    [    0.262741] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.268944] cpuidle: using governor menu
    [    0.279693] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.286653] ASID allocator initialised with 65536 entries
    [    0.301105] KASLR disabled due to lack of seed
    [    0.308427] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.315370] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.321772] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.328705] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.335106] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.342039] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.348440] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.355373] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.362463] k3-chipinfo 43000014.chipid: Family:J721E rev:SR2.0 JTAGID[0x1bb6402f] Detected
    [    0.371592] iommu: Default domain type: Translated 
    [    0.376578] iommu: DMA domain TLB invalidation policy: strict mode 
    [    0.383090] SCSI subsystem initialized
    [    0.386982] libata version 3.00 loaded.
    [    0.390978] usbcore: registered new interface driver usbfs
    [    0.396595] usbcore: registered new interface driver hub
    [    0.402031] usbcore: registered new device driver usb
    [    0.407385] pps_core: LinuxPPS API ver. 1 registered
    [    0.412457] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.421794] PTP clock support registered
    [    0.425867] EDAC MC: Ver: 3.0.0
    [    0.429542] FPGA manager framework
    [    0.433053] Advanced Linux Sound Architecture Driver Initialized.
    [    0.439660] clocksource: Switched to clocksource arch_sys_counter
    [    0.445993] VFS: Disk quotas dquot_6.6.0
    [    0.450023] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.459904] NET: Registered PF_INET protocol family
    [    0.465055] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.474068] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [    0.482833] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.490756] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.498961] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
    [    0.507475] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.514246] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.521156] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.528581] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.534655] RPC: Registered named UNIX socket transport module.
    [    0.540713] RPC: Registered udp transport module.
    [    0.545515] RPC: Registered tcp transport module.
    [    0.550317] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.556905] NET: Registered PF_XDP protocol family
    [    0.561804] PCI: CLS 0 bytes, default 64
    [    0.566129] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    0.575178] Initialise system trusted keyrings
    [    0.579821] workingset: timestamp_bits=46 max_order=20 bucket_order=0
    [    0.588303] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.594533] NFS: Registering the id_resolver key type
    [    0.599721] Key type id_resolver registered
    [    0.603993] Key type id_legacy registered
    [    0.608110] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.614959] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.641155] Key type asymmetric registered
    [    0.645338] Asymmetric key parser 'x509' registered
    [    0.650343] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.657972] io scheduler mq-deadline registered
    [    0.662605] io scheduler kyber registered
    [    0.668823] pinctrl-single 4301c000.pinctrl: 94 pins, size 376
    [    0.675146] pinctrl-single 11c000.pinctrl: 173 pins, size 692
    [    0.684573] Serial: 8250/16550 driver, 12 ports, IRQ sharing enabled
    [    0.692880] arm-smmu-v3 36600000.iommu: ias 48-bit, oas 48-bit (features 0x00001faf)
    [    0.701053] arm-smmu-v3 36600000.iommu: allocated 65536 entries for cmdq
    [    0.708148] arm-smmu-v3 36600000.iommu: allocated 32768 entries for evtq
    [    0.715897] arm-smmu-v3 36600000.iommu: msi_domain absent - falling back to wired irqs
    [    0.726715] loop: module loaded
    [    0.730514] megasas: 07.719.03.00-rc1
    [    0.735707] tun: Universal TUN/TAP device driver, 1.6
    [    0.741257] VFIO - User Level meta-driver version: 0.3
    [    0.746899] usbcore: registered new interface driver usb-storage
    [    0.753349] i2c_dev: i2c /dev entries driver
    [    0.758237] sdhci: Secure Digital Host Controller Interface driver
    [    0.764557] sdhci: Copyright(c) Pierre Ossman
    [    0.769111] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.775194] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.781417] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.788157] usbcore: registered new interface driver usbhid
    [    0.793851] usbhid: USB HID core driver
    [    0.798224] optee: probing for conduit method.
    I/TC: Reserved shared memory is enabled
    I/TC: Dynamic shared memory is enabled
    I/TC: Normal World virtualization support is disabled
    I/TC: Asynchronous notifications are disabled
    [    0.802782] optee: revision 4.1 (012cdca4)
    [    0.819190] optee: dynamic shared memory is enabled
    [    0.828563] optee: initialized driver
    [    0.833450] Initializing XFRM netlink socket
    [    0.837835] NET: Registered PF_PACKET protocol family
    [    0.843032] Key type dns_resolver registered
    [    0.847562] registered taskstats version 1
    [    0.851758] Loading compiled-in X.509 certificates
    [    0.862048] ti-sci 44083000.system-controller: ABI: 3.1 (firmware rev 0x0009 '9.2.4--v09.02.04 (Kool )
    [    0.915682] omap_i2c 42120000.i2c: bus 0 rev0.12 at 100 kHz
    [    0.943815] i2c i2c-1: Added multiplexed i2c bus 2
    [    0.948795] i2c i2c-1: Added multiplexed i2c bus 3
    [    0.953693] pca954x 1-0071: registered 2 multiplexed busses for I2C switch pca9543
    [    0.961450] omap_i2c 2000000.i2c: bus 1 rev0.12 at 400 kHz
    [    0.967431] omap_i2c 2010000.i2c: bus 4 rev0.12 at 100 kHz
    [    0.995817] i2c i2c-5: Added multiplexed i2c bus 6
    [    1.000798] i2c i2c-5: Added multiplexed i2c bus 7
    [    1.005697] pca954x 5-0070: registered 2 multiplexed busses for I2C switch pca9543
    [    1.013452] omap_i2c 2030000.i2c: bus 5 rev0.12 at 400 kHz
    [    1.019468] omap_i2c 2050000.i2c: bus 8 rev0.12 at 400 kHz
    [    1.025270] ti-sci-intr 42200000.interrupt-controller: Interrupt Router 137 domain created
    [    1.033819] ti-sci-intr bus@100000:interrupt-controller@a00000: Interrupt Router 131 domain created
    [    1.043154] ti-sci-intr 310e0000.interrupt-controller: Interrupt Router 213 domain created
    [    1.051756] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created
    [    1.068500] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-i5
    [    1.078397] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    1.085157] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    1.094225] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-de1
    [    1.104380] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    1.111138] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    1.119067] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 193, base_baud = 6000000) is a 8250
    [    1.128530] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 194, base_baud = 3000000) is a 8250
    [    1.137375] printk: console [ttyS2] enabled
    [    1.137375] printk: console [ttyS2] enabled
    [    1.145819] printk: bootconsole [ns16550a0] disabled
    [    1.145819] printk: bootconsole [ns16550a0] disabled
    [    1.156228] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 195, base_baud = 3000000) is a 8250
    [    1.166059] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    1.211663] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.220309] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
    [    1.228580] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw ve0
    [    1.241385] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    1.248591] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    1.254859] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [    1.265129] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [    1.279027] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
    [    1.285856] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
    [    1.292645] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
    [    1.299438] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
    [    1.306201] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
    [    1.319809] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
    [    1.330401] ti-udma 31150000.dma-controller: Channels: 122 (tchan: 61, rchan: 61, gp-rflow: 16)
    [    1.344589] spi-nor spi0.0: s28hs512t (65536 Kbytes)
    [    1.349605] 8 fixed-partitions partitions found on MTD device 47040000.spi.0
    [    1.356642] Creating 8 MTD partitions on "47040000.spi.0":
    [    1.362113] 0x000000000000-0x000000080000 : "ospi.tiboot3"
    [    1.368149] 0x000000080000-0x000000280000 : "ospi.tispl"
    [    1.373885] 0x000000280000-0x000000680000 : "ospi.u-boot"
    [    1.379718] 0x000000680000-0x0000006c0000 : "ospi.env"
    [    1.385264] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw"
    [    1.391012] 0x0000007c0000-0x000000800000 : "ospi.env.backup"
    [    1.397177] 0x000000800000-0x000003fc0000 : "ospi.rootfs"
    [    1.403012] 0x000003fc0000-0x000004000000 : "ospi.phypattern"
    [    1.413365] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    1.459666] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.468295] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
    [    1.476564] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw ve0
    [    1.489369] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    1.496577] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    1.502799] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [    1.513166] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    1.521590] mmc1: CQHCI version 5.10
    [    1.532198] ALSA device list:
    [    1.535161]   No soundcards found.
    [    1.538699] Waiting 10 sec before mounting root device...
    [    3.037921] sdhci-am654 4fb0000.mmc: Power on failed
    [    3.073479] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [   11.619689] Waiting for root device b430949e-ae2b-4653-b423-f47c14356113...
    )
    I have tried multiple methods that are elaborated in the PSDK LINUX J721e: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-sk-tda4vm/09_01_00/exports/docs/linux/Foundational_Components/U-Boot/UG-Memory.html
     

    Regards,
    Tamas

  • Hi Tamas,

    Understood you want to replicate your usecase using the SK-TDA4VM,

    For flashing technique i would suggest you to flash upto UBOOT using DFU and then you can flash the images to the emmc using dfu as mentioned in the TDA4 falashing technique.

    See section "5 eMMC flashing" to understand different ways to flash to emmc.

    Do let us know if you are still struggling with the flashing after going through document.

    Regards
    Diwakar

  • Hi Diwakar,

    Yes, exactly! However I could found the required modification for using the dfu-util to load the U-Boot through USB. (I had to change the usb0 dr_mode to peripheral.:

    &usb0 {
    	dr_mode = "peripheral"; // it's compulsory for dfu 
    	//dr_mode = "host";
    	bootph-pre-ram;
    };

    I omitted to mention that our custom board will not have JTAG header.

     Thanks for the user guide, on page 15, I am not sure what I had to do with this line?:
    " # Flashing a tiny file system to eMMC User partition
      HOST $ sudo dfu-util -a rootfs -D /tinyrootfs.img

    Should I send the /ti-processor-sdk-linux-edgeai-j721e-evm-09_02_00_05/filesystem/rootfs/boot/Image file or do I have to create an .img file from the filesystem? 

    Regards,
    Tamas

  • Hi Tamas,

    Should I send the /ti-processor-sdk-linux-edgeai-j721e-evm-09_02_00_05/filesystem/rootfs/boot/Image file or do I have to create an .img file from the filesystem?

    Please look into section "3.3 Generating the eMMC tisdk-tiny-image.img " of TDA4 flashing technique. There are three root filesystem come's with the SDK default ,edgeAI, and tiny rootfs, we are flashing tiny rootfs to emmc UDA partition with the below command.

    " # Flashing a tiny file system to eMMC User partition
      HOST $ sudo dfu-util -a rootfs -D /tinyrootfs.img

    Regards
    Diwakar

  • Thank you for your response, I stepped over that point.

    Regards,
    Tamas