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.

TDA4VM: UBIFS rootfs question.

Part Number: TDA4VM

Hi all , I want to use OSPI to bring up tda4evm board. and the switch has been set to OSPI mode.

my partions is :  "mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),1m(ospi.sysfw),256k(ospi.env.backup),57088k@8m(ospi.rootfs),256k(ospi.phypattern)".

 
I use flashcp to write all images.
"
flashcp -v $boot_dir/tiboot3.bin /dev/mtd0
flashcp -v $boot_dir/tispl.bin /dev/mtd1
flashcp -v $boot_dir/u-boot.img /dev/mtd2
flashcp -v $boot_dir/uenv.txt /dev/mtd3
flashcp -v $boot_dir/sysfw.itb /dev/mtd4
flashcp -v $boot_dir/uenv.txt /dev/mtd5
flashcp -v $boot_dir/rootfs.ubifs /dev/mtd6
flashcp -v $boot_dir/ospi_phy_pattern /dev/mtd7
"
when power on. it can't start up successfully. the log is below:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
U-Boot SPL 2021.01 (Jul 18 2022 - 17:56:05 +0800)
Model: Texas Instruments K3 J721E SoC
Board: J721EX-PM2-SOM rev E8
SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
Trying to boot from SPI
Starting ATF on ARM64 core...
NOTICE: BL31: v2.5(release):08.00.00.004-dirty
NOTICE: BL31: Built : 22:30:09, Aug 4 2021
U-Boot SPL 2021.01 (Jul 18 2022 - 17:53:24 +0800)
Model: Texas Instruments K3 J721E SoC
Board: J721EX-PM2-SOM rev E8
SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
Detected: J7X-BASE-CPB rev E3
Detected: J7X-VSC8514-ETH rev E2
Trying to boot from SPI
cadence_spi spi@47040000: Can't get reset: -2
k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
if I need to format the mtd7 to a ubifs first ? if it is , what's the detail step to do this, thanks 
  • HI, i have follow the instructions ,and it can bringup successfully just once. I have some questions:

    1. I do the same steps as the instructions, when it bringup successfully, i power off, an power on, do the same command as descrive in uboot. it goes error like below:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    U-Boot SPL 2021.01 (Jul 18 2022 - 18:10:46 +0800)
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E8
    SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
    Detected: J7X-BASE-CPB rev E3
    Detected: J7X-VSC8514-ETH rev E2
    Trying to boot from SPI
    cadence_spi spi@47040000: Can't get reset: -2
    k3-navss-ringacc ringacc@2b800000: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    k3-navss-ringacc ringacc@2b800000: dma-ring-reset-quirk: disabled
    U-Boot 2021.01 (Jul 19 2022 - 11:18:25 +0800)
    SoC: J721E SR2.0
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E8
    DRAM: 4 GiB
    Flash: 0 Bytes
    MMC: sdhci@4f80000: 0, sdhci@4fb0000: 1
    In: serial@2800000
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     

    this is because the file system has been corrupted? if it is. How could I resove this problem?

    2. in uboot, since i have set the environment as "get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}", Why do I have to download  manually like this "ext4load mmc 1:2 0x82000000 /boot/Image;ext4load mmc 1:2 0x81200000 /boot/k3-j721e-common-proc-board.dtb"

    3. I want to boot with OSPI alone, independent of the SD card,How should i do? 

    Thanks 

  • Hi,

    Quoting from the below e2e.

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/920696/tda4vm-flashing-the-tiny-rootfs-image-using-uniflash-on-ospi/3488577#3488577 

    this is because the file system has been corrupted? if it is. How could I resove this problem?

    NOTE: I've seen if you do a hard reboor (power OFF -> ON) when the UBIFS is mounted then the next time it corrupts the file system. Please use a soft reboor (run reboot at command from kernel) instead.

    2. in uboot, since i have set the environment as "get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}", Why do I have to download  manually like this "ext4load mmc 1:2 0x82000000 /boot/Image;ext4load mmc 1:2 0x81200000 /boot/k3-j721e-common-proc-board.dtb"

    NOTE We are not flashing the Kernel Image and DTB to this as then u-boot needs to read the Image and DTB from the UBIFS and currently there is an issue when u-boot tries to open and read the UNIFS. To work around this we provide the Kernel Image and DTB to the u-boot.

    3. I want to boot with OSPI alone, independent of the SD card,How should i do? 

    Is eMMC an option for you? Can you put the file system in eMMC?

    Regards

    Karan