Other Parts Discussed in Thread: TDA4VH, TDA4VM
Tool/software:
Hi,
TDA4VH SDK Linux/RTOS 0902
How to use UFS in UBOOT?
Now my SDK cannot find UFS devices. In Uboot mode
Are there any related patches?
thanks
dongzhang
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.
Hi dongzhang,
The expert is currently out of office.He will get back to you soon.Thank you for you patience.
Regards
hi,
1. Is it because the rootfs is too large to be downloaded in DFU?
Can I reduce the img of the rootfs to 500MB?
2. Can I enter uboot and then write the rootfs to UFS through USB0 in storage mode?
thanks
dongzhang
downloaded in DFU?
No it's because DFU accessing ufs is unknown. I will check with our expert and get back.
Best Regards,
Keerthy
HI Dongzhang
So I need to flash the UFS firmware first, through DFU, in Uboot
Flashing to UFS using DFU interface is not supported.
Regards
Diwakar
Hi,
Can I use it like the following?
1. Use DFU to upgrade Uboot to OSPI, boot from OSPI, and enter Uboot
2. Use Uboot command to get rootfs.img from USB, use UFS cmd or SCSI CMD, write rootfs.img to UFS disk?
thanks
dongzhang
Hi dongzhang
1. Use DFU to upgrade Uboot to OSPI, boot from OSPI, and enter Uboot
In order to flash to OSPI you first need to boot upto UBOOT stage and then can use dfu interlace to flash the ospi.
2. Use Uboot command to get rootfs.img from USB, use UFS cmd or SCSI CMD, write rootfs.img to UFS disk?
How you will change the change the configuration of the USB port from device (to support dfu) to host (to get the data from USB device).
Regards
Diwakar
hi Diwakar:
1. Use DFU to upgrade Uboot to OSPI, boot from OSPI, and enter Uboot
In order to flash to OSPI you first need to boot upto UBOOT stage and then can use dfu interlace to flash the ospi.
-> The current 0902 version of the software is based on the EVM board.
When UFS Flash is used for the first time, after uboot passes the command
ufs init,
scsi scan cannot find the device.
However, after flashing desc using linux, and then restarting to uboot, device 0 and 1 can be seen
How to solve the first flashing problem.
2. Use Uboot command to get rootfs.img from USB, use UFS cmd or SCSI CMD, write rootfs.img to UFS disk?
How you will change the change the configuration of the USB port from device (to support dfu) to host (to get the data from USB device).
-> ok.
thanks
Dongzhang
When UFS Flash is used for the first time, after uboot passes the command
ufs init,
scsi scan cannot find the device.
However, after flashing desc using linux, and then restarting to uboot, device 0 and 1 can be seen
How to solve the first flashing problem.
I did not understand this. Are you saying the issue is "scsi scan cannot find the device." in the U-Boot?
- Keerthy
Hi,
yes,
After I execute this command, under uboot, I can scan 2 devices through scsi: 0:0 0:1
ufs-utils desc -t 1 -w config_desc_data_ind_0 -p /dev/bsg/ufs-bsg0
=> scsi scan scanning bus for devices... Device at ufs@4e84000 up at:cdns-ufs-pltfm ufs@4e84000: [RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2 Device 0: (0:0) Vendor: TOSHIBA Prod.: THGAF8G8T23BAILB Rev: 0300 Type: Hard Disk Capacity: 31.9 MB = 0.0 GB (8191 x 4096) Device 1: (0:1) Vendor: TOSHIBA Prod.: THGAF8G8T23BAILB Rev: 0300 Type: Hard Disk Capacity: 30499.9 MB = 29.7 GB (7807999 x 4096)
When I was on the development board, I never executed this command.
Under uboot, scsi scan had no devices
thanks
Dongzhang
Hi,
In our hardware design mode, there are only two types of flush, OSPI and UFS. Without Linux, we can only enter the uboot started by OSPI. Can we configure config_desc_data_ind_0 to UFS under Uboot?
thanks
Dongzhang
Hi,
Unfortunately no. We usually use the Linux to do that.
https://e2e.ti.com/f/791/t/1302925
We can use initramfs to boot to Linux. Can you try with that?
- Keerthy
hi,
=> ls mmc 1 /cpio_test/ ./ ../ 19376640 Image 114029 k3-j784s4-evm.dtb 7972864 rootfs.cpio 3 file(s), 2 dir(s) => => setenv bootargs "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 vm.overcommit_ratio=5 vm.overcommit_memory=2 root=/dev/ram0 rootfstype=ramfs initrd=0x84000000 init=/init" => setenv bootcmd "setenv autoload no; mmc dev 1; fatload mmc 1 0x82000000 /cpio_test/Image; fatload mmc 1 0x81200000 /cpio_test/k3-j784s4-evm.dtb; fatload mmc 1 0x84000000 /cpio_test/rootfs.cpio; booti 0x82000000 0x84000000:$filesize 0x81200000" => boot switch to partitions #0, OK mmc1 is current device 19376640 bytes read in 236 ms (78.3 MiB/s) 114029 bytes read in 22 ms (4.9 MiB/s) 7972864 bytes read in 108 ms (70.4 MiB/s) ## Flattened Device Tree blob at 81200000 Booting using the fdt blob at 0x81200000 Working FDT set to 81200000 Loading Ramdisk to 90000000, end 90000000 ... OK Loading Device Tree to 000000008ffe1000, end 000000008ffffd6c ... OK Working FDT set to 8ffe1000 Starting kernel ...
stop here.
Dongzhang
Hi,
The console is hanging.
The reference implementation is on TDA4VM and you are trying on TDA4VH so their console is different.
In the bootargs 0x2800000 should be changed to 0x2880000 since on TDA4VH we have Main_uart8 as the console and not main_uart0 unlike TDA4VM which is what was used in the FAQ.
Best Regards,
Keerthy
Hi,
U-Boot SPL 2023.04-ti-gf9b966c67473 (Mar 19 2024 - 20:31:40 +0000) ti_i2c_eeprom_am6_get: Ignoring record id 255 ti_i2c_eeprom_am6_get: Ignoring record id 255 ti_i2c_eeprom_am6_get: Ignoring record id 255 ti_i2c_eeprom_am6_get: Ignoring record id 255 ti_i2c_eeprom_am6_get: Ignoring record id 255 ti_i2c_eeprom_am6_get: Ignoring record id 255 ti_i2c_eeprom_am6_get: Ignoring record id 255 ti_i2c_eeprom_am6_get: Ignoring record id 255 ti_i2c_eeprom_am6_get: Ignoring record id 255 ti_i2c_eeprom_am6_get: Ignoring record id 255 SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.4--v09.02.04 (Kool Koala)') SPL initial stack usage: 13456 bytes Trying to boot from MMC2 Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted Loading Environment from nowhere... OK Starting ATF on ARM64 core... NOTICE: BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty NOTICE: BL31: Built : 16:09:05, Feb 9 2024 I/TC: I/TC: OP-TEE version: 4.1.0-51-g012cdca49 (gcc version 11.4.0 (GCC)) #1 Tue Jan 30 10:48:03 UTC 2024 aarch64 I/TC: WARNING: This OP-TEE configuration might be insecure! I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html I/TC: Primary CPU initializing I/TC: GIC redistributor base address not provided I/TC: Assuming default GIC group status and modifier I/TC: SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.4--v09.02.04 (Kool Koala)') 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 2023.04-ti-gf9b966c67473 (Mar 19 2024 - 20:31:40 +0000) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.2.4--v09.02.04 (Kool Koala)') Trying to boot from MMC2 Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted U-Boot 2023.04-ti-ti-gf9b966c67473 (Nov 27 2023 - 16:11:04 +0000) SoC: J784S4 SR1.0 GP Model: Texas Instruments J784S4 EVM Board: J784S4X-EVM rev E4 DRAM: 2 GiB (effective 32 GiB) idle-statesCore: 94 devices, 35 uclasses, devicetree: separate Flash: spi_nand nand@0: Winbond SPI NAND was found. spi_nand nand@0: 128 MiB, block size: 256 KiB, page size: 4096, OOB size: 128 0 Bytes MMC: mmc@4f80000: 0, mmc@4fb0000: 1 Loading Environment from nowhere... OK In: serial@2880000 Out: serial@2880000 Err: serial@2880000 am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000 Net: eth0: ethernet@46000000port@1 Hit any key to stop autoboot: 0 => setenv bootargs "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02880000 vm.overcommit_ratio=5 vm.overcommit_memory=2 root=/dev/ram0 rootfstype=ramfs initrd=0x84000000 init=/init" => setenv bootcmd "setenv autoload no; mmc dev 1; fatload mmc 1 0x82000000 /cpio_test/Image; fatload mmc 1 0x81200000 /cpio_test/k3-j784s4-evm.dtb; fatload mmc 1 0x84000000 /cpio_test/rootfs.cpio; booti 0x82000000 0x84000000:$filesize 0x81200000" => boot switch to partitions #0, OK mmc1 is current device 19376640 bytes read in 235 ms (78.6 MiB/s) 114029 bytes read in 22 ms (4.9 MiB/s) 7972864 bytes read in 108 ms (70.4 MiB/s) ## Flattened Device Tree blob at 81200000 Booting using the fdt blob at 0x81200000 Working FDT set to 81200000 Loading Ramdisk to 90000000, end 90000000 ... OK Loading Device Tree to 000000008ffe1000, end 000000008ffffd6c ... OK Working FDT set to 8ffe1000 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.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Wed Mar 20 14:43:33 UTC 2024 [ 0.000000] Machine model: Texas Instruments J784S4 EVM [ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002880000 (options '') [ 0.000000] printk: bootconsole [ns16550a0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000f90000000, size 1792 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 r5f-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 r5f-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 r5f-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 r5f-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 0x00000000a9000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node c71-dma-memory@a9000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a9100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node c71-memory@a9100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000aa000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node c71-dma-memory@aa000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000aa100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node c71-memory@aa100000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000ab000000, size 1 MiB [ 0.000000] OF: reserved mem: initialized node c71-dma-memory@ab000000, compatible id shared-dma-pool [ 0.000000] Reserved memory: created DMA memory pool at 0x00000000ab100000, size 15 MiB [ 0.000000] OF: reserved mem: initialized node c71-memory@ab100000, compatible id shared-dma-pool [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal [mem 0x0000000100000000-0x0000000fffffffff] [ 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-0x00000000abffffff] [ 0.000000] node 0: [mem 0x00000000ac000000-0x00000000ffffffff] [ 0.000000] node 0: [mem 0x0000000880000000-0x0000000fffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000fffffffff] [ 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] 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: 8257536 [ 0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02880000 vm.overcommit_ratio=5 vm.overcommit_memory=2 root=/dev/ram0 rootfstype=ramfs initrd=0x84000000 init=/init [ 0.000000] Dentry cache hash table entries: 4194304 (order: 13, 33554432 bytes, linear) [ 0.000000] Inode-cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: area num 8. [ 0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB) [ 0.000000] Memory: 30772588K/33554432K available (11712K kernel code, 1258K rwdata, 3812K rodata, 1984K init, 438K bss, 946836K reserved, 1835008K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, 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=8. [ 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=8 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: [Firmware Bug]: GICR region 0x0000000001900000 has overlapping address [ 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 @0x0000000880050000 [ 0.000000] GIC: using cache flushing for LPI property table [ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000880060000 [ 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_idle_ns: 440795210634 ns [ 0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns [ 0.008408] Console: colour dummy device 80x25 [ 0.012977] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000) [ 0.023647] pid_max: default: 32768 minimum: 301 [ 0.028385] LSM: Security Framework initializing [ 0.033199] Mount-cache hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.040997] Mountpoint-cache hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.050069] cblist_init_generic: Setting adjustable number of callback queues. [ 0.057463] cblist_init_generic: Setting shift to 3 and lim to 1. [ 0.063725] cblist_init_generic: Setting adjustable number of callback queues. [ 0.071113] cblist_init_generic: Setting shift to 3 and lim to 1. [ 0.077416] rcu: Hierarchical SRCU implementation. [ 0.082314] rcu: Max phase no-delay instances is 1000. [ 0.087798] Platform MSI: msi-controller@1820000 domain created [ 0.093970] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created [ 0.103406] EFI services will not be available. [ 0.108233] smp: Bringing up secondary CPUs ... I/TC: Secondary CPU 1 initializing I/TC: Secondary CPU 1 switching to normal world boot I/TC: Secondary CPU 2 initializing I/TC: Secondary CPU 2 switching to normal world boot I/TC: Secondary CPU 3 initializing I/TC: Secondary CPU 3 switching to normal world boot I/TC: Secondary CPU 4 initializing I/TC: Secondary CPU 4 switching to normal world boot I/TC: Secondary CPU 5 initializing I/TC: Secondary CPU 5 switching to normal world boot I/TC: Secondary CPU 6 initializing I/TC: Secondary CPU 6 switching to normal world boot I/TC: Secondary CPU 7 initializing I/TC: Secondary CPU 7 switching to normal world boot [ 0.121296] Detected PIPT I-cache on CPU1 [ 0.121348] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000 [ 0.121361] GICv3: CPU1: using allocated LPI pending table @0x0000000880070000 [ 0.121389] CPU1: Booted secondary processor 0x0000000001 [0x411fd080] [ 0.129825] Detected PIPT I-cache on CPU2 [ 0.129866] GICv3: CPU2: found redistributor 2 region 0:0x0000000001940000 [ 0.129878] GICv3: CPU2: using allocated LPI pending table @0x0000000880080000 [ 0.129901] CPU2: Booted secondary processor 0x0000000002 [0x411fd080] [ 0.138293] Detected PIPT I-cache on CPU3 [ 0.138334] GICv3: CPU3: found redistributor 3 region 0:0x0000000001960000 [ 0.138347] GICv3: CPU3: using allocated LPI pending table @0x0000000880090000 [ 0.138370] CPU3: Booted secondary processor 0x0000000003 [0x411fd080] [ 0.146812] Detected PIPT I-cache on CPU4 [ 0.146889] GICv3: CPU4: found redistributor 100 region 0:0x0000000001980000 [ 0.146903] GICv3: CPU4: using allocated LPI pending table @0x00000008800a0000 [ 0.146934] CPU4: Booted secondary processor 0x0000000100 [0x411fd080] [ 0.155387] Detected PIPT I-cache on CPU5 [ 0.155437] GICv3: CPU5: found redistributor 101 region 0:0x00000000019a0000 [ 0.155450] GICv3: CPU5: using allocated LPI pending table @0x00000008800b0000 [ 0.155474] CPU5: Booted secondary processor 0x0000000101 [0x411fd080] [ 0.163895] Detected PIPT I-cache on CPU6 [ 0.163944] GICv3: CPU6: found redistributor 102 region 0:0x00000000019c0000 [ 0.163957] GICv3: CPU6: using allocated LPI pending table @0x00000008800c0000 [ 0.163980] CPU6: Booted secondary processor 0x0000000102 [0x411fd080] [ 0.172400] Detected PIPT I-cache on CPU7 [ 0.172450] GICv3: CPU7: found redistributor 103 region 0:0x00000000019e0000 [ 0.172462] GICv3: CPU7: using allocated LPI pending table @0x00000008800d0000 [ 0.172485] CPU7: Booted secondary processor 0x0000000103 [0x411fd080] [ 0.172529] smp: Brought up 1 node, 8 CPUs [ 0.353509] SMP: Total of 8 processors activated. [ 0.358315] CPU features: detected: 32-bit EL0 Support [ 0.363570] CPU features: detected: CRC32 instructions [ 0.368859] CPU: All CPU(s) started at EL2 [ 0.373048] alternatives: applying system-wide alternatives [ 0.379666] devtmpfs: initialized [ 0.392739] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.402715] futex hash table entries: 2048 (order: 5, 131072 bytes, linear) [ 0.431233] pinctrl core: initialized pinctrl subsystem [ 0.436889] DMI not present or invalid. [ 0.441151] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.448454] DMA: preallocated 4096 KiB GFP_KERNEL pool for atomic allocations [ 0.456476] DMA: preallocated 4096 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.465198] DMA: preallocated 4096 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.473428] audit: initializing netlink subsys (disabled) [ 0.479046] audit: type=2000 audit(0.340:1): state=initialized audit_enabled=0 res=1 [ 0.479244] thermal_sys: Registered thermal governor 'step_wise' [ 0.486966] thermal_sys: Registered thermal governor 'power_allocator' [ 0.493184] cpuidle: using governor menu [ 0.503931] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.510953] ASID allocator initialised with 65536 entries [ 0.524872] platform a40000.pinctrl: Fixed dependency cycle(s) with /bus@100000/pinctrl@a40000/mcu-cpsw-cpts [ 0.537393] KASLR disabled due to lack of seed [ 0.544676] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages [ 0.551624] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page [ 0.558029] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages [ 0.564964] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page [ 0.571366] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 0.578301] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page [ 0.584703] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages [ 0.591637] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page [ 0.598722] k3-chipinfo 43000014.chipid: Family:J784S4 rev:SR1.0 JTAGID[0x0bb8002f] Detected [ 0.608198] iommu: Default domain type: Translated [ 0.613184] iommu: DMA domain TLB invalidation policy: strict mode [ 0.619696] SCSI subsystem initialized [ 0.623662] usbcore: registered new interface driver usbfs [ 0.629279] usbcore: registered new interface driver hub [ 0.634717] usbcore: registered new device driver usb [ 0.640067] pps_core: LinuxPPS API ver. 1 registered [ 0.645138] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.654475] PTP clock support registered [ 0.658559] EDAC MC: Ver: 3.0.0 [ 0.662244] FPGA manager framework [ 0.665750] Advanced Linux Sound Architecture Driver Initialized. [ 0.672358] clocksource: Switched to clocksource arch_sys_counter [ 0.678691] VFS: Disk quotas dquot_6.6.0 [ 0.682716] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.692598] NET: Registered PF_INET protocol family [ 0.697911] IP idents hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.710782] tcp_listen_portaddr_hash hash table entries: 16384 (order: 6, 262144 bytes, linear) [ 0.719804] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.727734] TCP established hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.736826] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear) [ 0.745212] TCP: Hash tables configured (established 262144 bind 65536) [ 0.752086] UDP hash table entries: 16384 (order: 7, 524288 bytes, linear) [ 0.759434] UDP-Lite hash table entries: 16384 (order: 7, 524288 bytes, linear) [ 0.767301] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.773346] RPC: Registered named UNIX socket transport module. [ 0.779404] RPC: Registered udp transport module. [ 0.784206] RPC: Registered tcp transport module. [ 0.789009] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.795590] NET: Registered PF_XDP protocol family [ 0.800498] PCI: CLS 0 bytes, default 64 [ 0.805092] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available [ 0.814364] Initialise system trusted keyrings [ 0.819005] workingset: timestamp_bits=46 max_order=23 bucket_order=0 [ 0.827518] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.833714] NFS: Registering the id_resolver key type [ 0.838891] Key type id_resolver registered [ 0.843162] Key type id_legacy registered [ 0.847278] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.854126] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 0.881155] Key type asymmetric registered [ 0.885338] Asymmetric key parser 'x509' registered [ 0.890344] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 0.897966] io scheduler mq-deadline registered [ 0.902597] io scheduler kyber registered [ 0.908923] pinctrl-single 4301c000.pinctrl: 13 pins, size 52 [ 0.914896] pinctrl-single 4301c038.pinctrl: 11 pins, size 44 [ 0.920920] pinctrl-single 4301c068.pinctrl: 72 pins, size 288 [ 0.927124] pinctrl-single 4301c190.pinctrl: 1 pins, size 4 [ 0.932949] pinctrl-single 11c000.pinctrl: 72 pins, size 288 [ 0.939330] pinctrl-single a40000.pinctrl: 512 pins, size 2048 [ 0.948813] Serial: 8250/16550 driver, 12 ports, IRQ sharing enabled [ 0.960518] loop: module loaded [ 0.964309] megasas: 07.719.03.00-rc1 [ 0.969601] tun: Universal TUN/TAP device driver, 1.6 [ 0.975150] VFIO - User Level meta-driver version: 0.3 [ 0.980773] usbcore: registered new interface driver usb-storage [ 0.987242] i2c_dev: i2c /dev entries driver [ 0.992187] sdhci: Secure Digital Host Controller Interface driver [ 0.998503] sdhci: Copyright(c) Pierre Ossman [ 1.003079] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.009310] ledtrig-cpu: registered to indicate activity on CPUs [ 1.015542] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping .... [ 1.022292] usbcore: registered new interface driver usbhid [ 1.027988] usbhid: USB HID core driver [ 1.032457] 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 [ 1.037014] optee: revision 4.1 (012cdca4) [ 1.053399] optee: dynamic shared memory is enabled [ 1.062784] optee: initialized driver [ 1.067536] Initializing XFRM netlink socket [ 1.071916] NET: Registered PF_PACKET protocol family [ 1.077109] Key type dns_resolver registered [ 1.081653] registered taskstats version 1 [ 1.085853] Loading compiled-in X.509 certificates [ 1.096373] ti-sci 44083000.system-controller: ABI: 3.1 (firmware rev 0x0009 '9.2.4--v09.02.04 (Kool Koala)') [ 1.147991] omap_i2c 42120000.i2c: bus 1 rev0.12 at 400 kHz [ 1.154269] pca953x 0-0020: supply vcc not found, using dummy regulator [ 1.161094] pca953x 0-0020: using no AI [ 1.188985] pca953x 0-0022: supply vcc not found, using dummy regulator [ 1.195785] pca953x 0-0022: using AI [ 1.200077] omap_i2c 2000000.i2c: bus 0 rev0.12 at 400 kHz [ 1.206119] pca953x 2-0020: supply vcc not found, using dummy regulator [ 1.212918] pca953x 2-0020: using no AI [ 1.240798] omap_i2c 2040000.i2c: bus 2 rev0.12 at 400 kHz [ 1.246873] pca953x 3-0020: supply vcc not found, using dummy regulator [ 1.253673] pca953x 3-0020: using no AI [ 1.280666] omap_i2c 2050000.i2c: bus 3 rev0.12 at 400 kHz [ 1.286456] ti-sci-intr 42200000.interrupt-controller: Interrupt Router 177 domain created [ 1.294992] ti-sci-intr bus@100000:interrupt-controller@a00000: Interrupt Router 10 domain created [ 1.304239] ti-sci-intr 310e0000.interrupt-controller: Interrupt Router 283 domain created [ 1.312887] ti-sci-inta 33d00000.msi-controller: Interrupt Aggregator domain 321 created [ 1.326556] ti-udma 311a0000.dma-controller: Number of rings: 48 [ 1.333757] ti-udma 311a0000.dma-controller: Channels: 48 (bchan: 0, tchan: 16, rchan: 32) [ 1.343408] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:328 [ 1.353287] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled [ 1.360046] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66349100, num_proxies:64 [ 1.368965] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[878,128] sci-dev-id:315 [ 1.379106] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled [ 1.385865] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66349100, num_proxies:64 [ 1.393726] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 264, base_baud = 6000000) is a 8250 [ 1.403131] 2880000.serial: ttyS2 at MMIO 0x2880000 (irq = 265, base_baud = 3000000) is a 8250 [ 1.411980] printk: console [ttyS2] enabled [ 1.411980] printk: console [ttyS2] enabled [ 1.420421] printk: bootconsole [ns16550a0] disabled [ 1.420421] printk: bootconsole [ns16550a0] disabled [ 1.468363] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000 [ 1.477603] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867 [ 1.485869] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000 [ 1.498716] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4 [ 1.505923] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64 [ 1.512077] pps pps0: new PPS source ptp0 [ 1.516208] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1 [ 1.564361] davinci_mdio c200f00.mdio: davinci mdio revision 9.7, bus freq 1000000 [ 1.573356] davinci_mdio c200f00.mdio: phy[0]: device c200f00.mdio:00, driver TI DP83867 [ 1.581446] am65-cpsw-nuss c200000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000 [ 1.594179] am65-cpsw-nuss c200000.ethernet: Use random MAC address [ 1.600432] am65-cpsw-nuss c200000.ethernet: initialized cpsw ale version 1.4 [ 1.607549] am65-cpsw-nuss c200000.ethernet: ALE Table size 64 [ 1.613642] am65-cpsw-nuss c200000.ethernet: CPTS ver 0x4e8a010b, freq:250000000, add_val:3 pps:0 [ 1.623696] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010c, freq:250000000, add_val:3 pps:0 [ 1.632444] mmc0: CQHCI version 5.10 [ 1.674945] mmc0: SDHCI controller on 4f80000.mmc [4f80000.mmc] using ADMA 64-bit [ 1.766520] mmc0: Command Queue Engine enabled [ 1.770960] mmc0: new HS200 MMC card at address 0001 [ 1.776235] mmcblk0: mmc0:0001 G1M15L 29.6 GiB [ 1.781825] mmcblk0boot0: mmc0:0001 G1M15L 31.5 MiB [ 1.787416] mmcblk0boot1: mmc0:0001 G1M15L 31.5 MiB [ 1.792912] mmcblk0rpmb: mmc0:0001 G1M15L 4.00 MiB, chardev (240:0) [ 1.927778] tps6594-rtc tps6594-rtc.4.auto: registered as rtc0 [ 1.933737] tps6594-rtc tps6594-rtc.4.auto: hctosys: unable to read the hardware clock [ 1.941981] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fca100 [ 1.948761] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fca100 [ 1.955539] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fca100 [ 1.962314] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fca100 [ 1.969089] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fca100 [ 1.975872] omap-mailbox 31f85000.mailbox: omap mailbox rev 0x66fca100 [ 1.984959] ti-udma 285c0000.dma-controller: Channels: 22 (tchan: 11, rchan: 11, gp-rflow: 8) [ 1.994901] ti-udma 31150000.dma-controller: Channels: 66 (tchan: 33, rchan: 33, gp-rflow: 16) [ 2.006612] spi-nand spi0.0: Winbond SPI NAND was found. [ 2.011920] spi-nand spi0.0: 128 MiB, block size: 256 KiB, page size: 4096, OOB size: 128 [ 2.020230] 7 fixed-partitions partitions found on MTD device spi0.0 [ 2.026577] Creating 7 MTD partitions on "spi0.0": [ 2.031356] 0x000000000000-0x000000100000 : "ospi_nand.tiboot3" [ 2.038251] 0x000000100000-0x000000300000 : "ospi_nand.tispl" [ 2.045183] 0x000000300000-0x000000700000 : "ospi_nand.u-boot" [ 2.052858] 0x000000700000-0x000000740000 : "ospi_nand.env" [ 2.059034] 0x000000740000-0x000000780000 : "ospi_nand.env.backup" [ 2.065809] 0x000002000000-0x000007fc0000 : "ospi_nand.rootfs" [ 2.103021] 0x000007fc0000-0x000008000000 : "ospi_nand.phypattern" [ 2.111773] spi-nor spi1.0: mt25qu512a (65536 Kbytes) [ 2.116852] 7 fixed-partitions partitions found on MTD device 47050000.spi.0 [ 2.123888] Creating 7 MTD partitions on "47050000.spi.0": [ 2.129361] 0x000000000000-0x000000100000 : "qspi.tiboot3" [ 2.135353] 0x000000100000-0x000000300000 : "qspi.tispl" [ 2.141190] 0x000000300000-0x000000700000 : "qspi.u-boot" [ 2.147081] 0x000000700000-0x000000740000 : "qspi.env" [ 2.152730] 0x000000740000-0x000000780000 : "qspi.env.backup" [ 2.158958] 0x000000800000-0x000003fc0000 : "qspi.rootfs" [ 2.164866] 0x000003fc0000-0x000004000000 : "qspi.phypattern" [ 2.208364] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000 [ 2.217617] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867 [ 2.225886] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000 [ 2.238742] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4 [ 2.245949] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64 [ 2.252092] pps pps0: new PPS source ptp1 [ 2.256220] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010b, freq:500000000, add_val:1 pps:1 [ 2.266072] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48 [ 2.312365] davinci_mdio c200f00.mdio: davinci mdio revision 9.7, bus freq 1000000 [ 2.321473] davinci_mdio c200f00.mdio: phy[0]: device c200f00.mdio:00, driver TI DP83867 [ 2.329564] am65-cpsw-nuss c200000.ethernet: initializing am65 cpsw nuss version 0x6BA02102, cpsw version 0x6BA82102 Ports: 2 quirks:00000000 [ 2.342307] am65-cpsw-nuss c200000.ethernet: Use random MAC address [ 2.348562] am65-cpsw-nuss c200000.ethernet: initialized cpsw ale version 1.4 [ 2.355679] am65-cpsw-nuss c200000.ethernet: ALE Table size 64 [ 2.361779] am65-cpsw-nuss c200000.ethernet: CPTS ver 0x4e8a010b, freq:200000000, add_val:4 pps:0 [ 2.371539] am65-cpsw-nuss c200000.ethernet: set new flow-id-base 82 [ 2.379378] debugfs: Directory 'pd:74' with parent 'pm_genpd' already present! [ 2.379433] mmc1: CQHCI version 5.10 [ 2.386634] debugfs: Directory 'pd:73' with parent 'pm_genpd' already present! [ 2.397383] debugfs: Directory 'pd:72' with parent 'pm_genpd' already present! [ 2.405070] debugfs: Directory 'pd:335' with parent 'pm_genpd' already present! [ 2.412381] debugfs: Directory 'pd:333' with parent 'pm_genpd' already present! [ 2.419694] debugfs: Directory 'pd:332' with parent 'pm_genpd' already present! [ 2.431044] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit [ 2.444016] ALSA device list: [ 2.446983] No soundcards found. [ 2.450630] VFS: Mounted root (ramfs filesystem) readonly on device 0:20. [ 2.457416] devtmpfs: error mounting -2 [ 2.461927] Freeing unused kernel memory: 1984K [ 2.480418] Run /init as init process [ 2.484184] Kernel panic - not syncing: Requested init /init failed (error -2). [ 2.486573] mmc1: new ultra high speed SDR104 SDHC card at address 5048 [ 2.487022] mmcblk1: mmc1:5048 SD32G 29.7 GiB [ 2.488465] mmcblk1: p1 p2 [ 2.505270] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.1.80-ti-g2e423244f8c0 #1 [ 2.512646] Hardware name: Texas Instruments J784S4 EVM (DT) [ 2.518288] Call trace: [ 2.520722] dump_backtrace.part.0+0xdc/0xf0 [ 2.524991] show_stack+0x18/0x30 [ 2.528294] dump_stack_lvl+0x68/0x84 [ 2.531945] dump_stack+0x18/0x34 [ 2.535247] panic+0x188/0x348 [ 2.538289] kernel_init+0xd8/0x130 [ 2.541766] ret_from_fork+0x10/0x20 [ 2.545329] SMP: stopping secondary CPUs [ 2.549244] Kernel Offset: disabled [ 2.552717] CPU features: 0x40000,20028084,0000420b [ 2.557579] Memory Limit: none [ 2.560621] ---[ end Kernel panic - not syncing: Requested init /init failed (error -2). ]---
Get Kernel panic.
Dongzhang
hi,
PC ~/Downloads/TI-DownLoad/ramfs$ md5sum rootfs.cpio 09d5bd6653be992fd2bf7064f531c9fb rootfs.cpio EVM root@j784s4-evm:~/1# md5sum cpio_test/* 1482b5aacb8e52a90aebb070091cf166 cpio_test/Image 2101e14a9d7b1afb8273f95b5763f7ff cpio_test/k3-j784s4-evm.dtb 09d5bd6653be992fd2bf7064f531c9fb cpio_test/rootfs.cpio
Looks correct
dongzhang
hi,
I can download SDK only 0806 0902 1001;
In SDK, the APP ufs-utils depends on libc-2.30.so
But this rootfs.cpio only has libc-2.25.so. If it is replaced with libc-2.30. so, other APPs cannot use it;
My SDK does not have ufs-utils based on libc-2.25.so. Can you help provide it?
Or please provide a rootfs.cpio not lower than 0902.
Thanks
Dongzhang
We are checking which version of rootfs.cpio is provided as part of the FAQ.
Since you need SDK 9.2 version, we will need some time to check if we already have one, or if not, we need to generate one. So we need a couple of days to investigate.
After investigating, we suggest creating your rootfs.cpio file for the SDK version you desire with the below steps:
Once installed, every PSDK Linux release will have the the tisdk-tiny-image-j784s4-evm.tar.gz in the filesystem directory. This file will can be used to generate the ramfs.cpio file
host$ cd <PROCESSOR_SDK_PATH>/filesystem
host$ mkdir target_fs host$ cd target_fs host$ tar xf ../tisdk-tiny-image-j784s4-evm.tar.xz host$ find . | cpio -H newc -o > ../rootfs.cpio host$ cd .. host$ gzip rootfs.cpio
The last step is optional.
Hope this helps.
Thanks.