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.

J784S4XEVM: [SA5]J784S4 EVM: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,8)

Part Number: J784S4XEVM

i am using J784S4 EVM and i am trying with RTOS sdk 8.6.1.3 and linux 8.6.1.2

i am using OSPI NOR flashing, i am trying to boot  tiny rootfs in partition 8,

below are my offset

  • sbl_cust_img_mcu1_0_release.tiimage at an offset of 0x0

  • tifs.bin at an offset of 0x8000

  • boot_app_ospi_linux_mcu1_0_freertos_TestApp_release.appimage at an offset of 0x100000

  • stage1 image at an offset of 1FC0000 

  • stage2 image at an offset of 27C0000 

  • atf_optee.appimage at an offset of 1C0000 

  • tidtb_linux.appimage at an offset of 1EC0000 

  • tikernelimage_linux.appimage at an offset of 7C0000 

  • stage3 ROOTFS UBI  at offset of 37C0000 

below is my partition included in device tree -> 

&ospi1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;

flash@0{
compatible = "jedec,spi-nor";
reg = <0x0>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>;
spi-max-frequency = <40000000>;
cdns,tshsl-ns = <60>;
cdns,tsd2d-ns = <60>;
cdns,tchsh-ns = <60>;
cdns,tslch-ns = <60>;
cdns,read-delay = <2>;
#address-cells = <1>;
#size-cells = <1>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

partition@0 {
label = "ospi_nor.tiboot3";
reg = <0x0 0x80000>;
};
partition@80000 {
label = "ospi_nor.sysfw";
reg = <0x80000 0x80000>;
};
partition@100000 {
label = "ospi_nor.mcu1_0";
reg = <0x100000 0xC0000>;
};
partition@1C0000 {
label = "ospi_nor.atf";
reg = <0x1C0000 0x600000>;
};
partition@7C0000 {
label = "ospi_nor.kernel";
reg = <0x7C0000 0x1700000>;
};
partition@1EC0000 {
label = "ospi_nor.dtb";
reg = <0x1EC0000 0x100000>;
};
partition@1FC0000 {
label = "ospi_nor.lateapp1";
reg = <0x1FC0000 0x800000>;
};
partition@27C0000 {
label = "ospi_nor.lateapp2";
reg = <0x27C0000 0x1000000>;
};
partition@37C0000 {
label = "ospi_nor.rootfs";
reg = <0x37C0000 0x820000>;
};
partition@3FE0000 {
label = "ospi_nor.phypattern";
reg = <0x3FE0000 0x40000>;
};

};
};
};

also i have updated the bootargs to boot rootfs from partition 8 -> bootargs = "console=ttyS2,115200n8 earlycon=serial2 root=/dev/mtdblock8 rw rootfstype=ubifs rootwait";

i have used below commands to generate UBI file which i am using to flash in OSPI NOR partition 8:

sudo mkfs.ubifs -r /tda4sdk/ti-processor-sdk-linux-j784s4-evm-08_06_01_02/filesystem1/filesystem_tinyfs -F -o newa72_490.ubifs -m 4096 -e 253952 -c 30 -v

sudo ubinize -o mynew526.ubi -m 4096 -s 4096 -p 256KiB mainapp.cfg -v

mainapp.cfg 

[ubifs]
mode=ubi
image= newa72_490.ubifs
vol_id=0
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize

could you please let me know, why i am getting this error -> ...