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.

TDA4VH-Q1: Boot from ospi using initramfs error: ERROR: Did not find a cmdline Flattened Device Tree

Part Number: TDA4VH-Q1


Tool/software:

Hi Ti expert
SDK: 10.01
Board: J784S4_EVM

I used dfu to flash ospi, and booted from ospi, and used initramfs.

After I finished the first stage of flashing and entered uboot, I used the following command to layout dfu_alt_info_ospi:

env default -f -a
setenv dfu_alt_info_ospi "tiboot3.bin raw 0x0 0x080000; tispl.bin raw 0x080000 0x200000; u-boot.img raw 0x280000 0x400000; u-boot-env raw 0x680000 0x020000; Image raw 0x6c0000 0x1300000; K3-J784s4-dtb raw  0x19c0000  0x020000; rootfs raw 0x19e0000 0x2620000"
setenv dfu_alt_info ${dfu_alt_info_ospi}
dfu 0 sf 0:0


When I back to HOST:



Now I use dfu to flash all flash.

And then switch boot mode to ospi and enter uboot:







Then I use the following command to set the startup parameters:

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; sf probe; sf read  0x82000000 0x6c0000 0x1300000; sf read 0x81200000 0x19c0000 0x20000; sf read 0x84000000 0x19e0000 0x800000; booti 0x82000000 0x84000000:0x800000 0x81200000"
boot


But when booting , booti can not found dtb...:


When I flashed all the firmware in the second stage, including dtb, Image, roofs.cpio, there were no errors and all were downloaded successfully.

When I checked the loading address of dtb, I found that it was empty

How to solve this problem?



Regards
Eason