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.

PROCESSOR-SDK-J721E: PROCESSOR-SDK-J721E

Part Number: PROCESSOR-SDK-J721E


Hi,

we are using the TDA4X-TI board.

Not able to boot the board from the OSPI. it is loading in the EMMC

1. flashed the specified images into the OSPI

2. powered of the board and changed the switch

sw3 0XXXXXXXXX

S8 00000000

S9 01000000

3. rebooted the board

Logs:

=> sf probe
=> tftp ${loadaddr} tiboot3.bin
=> sf update $loadaddr 0x0 $filesize
=> tftp ${loadaddr} tispl.bin
=> sf update $loadaddr 0x80000 $filesize
=> tftp ${loadaddr} u-boot.img
=> sf update $loadaddr 0x280000 $filesize
=> tftp ${loadaddr} sysfw.itb
=> sf update $loadaddr 0x6C0000 $filesize

> setenv ipaddr 192.168.1.3
=> setenv serverip 192.168.1.2
=> setenv netmask 255.255.255.0
=> saveenv
Saving Environment to FAT... OK
=> tftp ${loadaddr} tiboot3.bin
am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: rflow_id_base: 2
link up on port 1, speed 1000, full duplex
Using ethernet@46000000 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.3
Filename 'tiboot3.bin'.
Load address: 0x82000000
Loading: ####################
2.7 MiB/s
done
Bytes transferred = 287460 (462e4 hex)
=> sf update $loadaddr 0x0 $filesize
device 0 offset 0x0, size 0x462e4
0 bytes written, 287460 bytes skipped in 0.15s, speed 16353280 B/s
=> tftp ${loadaddr} tispl.bin
am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: rflow_id_base: 2
link up on port 1, speed 1000, full duplex
Using ethernet@46000000 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.3
Filename 'tispl.bin'.
Load address: 0x82000000
Loading: #############################################################
3.6 MiB/s
done
Bytes transferred = 891796 (d9b94 hex)
=> sf update $loadaddr 0x80000 $filesize
device 0 offset 0x80000, size 0xd9b94
891796 bytes written, 0 bytes skipped in 1.948s, speed 468067 B/s
=> tftp ${loadaddr} u-boot.img
am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: rflow_id_base: 2
link up on port 1, speed 1000, full duplex
Using ethernet@46000000 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.3
Filename 'u-boot.img'.
Load address: 0x82000000
Loading: #################################################################
#####################
3 MiB/s
done
Bytes transferred = 1249280 (131000 hex)
=> sf update $loadaddr 0x280000 $filesize
device 0 offset 0x280000, size 0x131000
1249280 bytes written, 0 bytes skipped in 2.795s, speed 457042 B/s
=> tftp ${loadaddr} sysfw.itb
am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: rflow_id_base: 2
link up on port 1, speed 1000, full duplex
Using ethernet@46000000 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.3
Filename 'sysfw.itb'.
Load address: 0x82000000
Loading: ###################
3.7 MiB/s
done
Bytes transferred = 268990 (41abe hex)
=> sf update $loadaddr 0x6C0000 $filesize
device 0 offset 0x6c0000, size 0x41abe
268990 bytes written, 0 bytes skipped in 0.803s, speed 341744 B/s
=> sf probe
SF: Detected mt35xu512aba with page size 256 Bytes, erase size 128 KiB, total 64 MiB
=>

boot loogs.
=============

U-Boot SPL 2021.01-00004-gc57d986ee4 (Oct 01 2021 - 09:40:50 +0530)
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-00004-gc57d986ee4 (Oct 01 2021 - 09:39:42 +0530)
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-00004-gc57d986ee4 (Oct 01 2021 - 09:39:42 +0530)

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
Loading Environment from MMC... OK
In: serial@2800000
Out: serial@2800000
Err: serial@2800000
Detected: J7X-BASE-CPB rev E3
Detected: J7X-VSC8514-ETH rev E2
Net: am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
eth0: ethernet@46000000
Hit any key to stop autoboot: 0
MMC: no card present
mmc_init: -123, time 2002
SD/MMC found on device 1
MMC: no card present
mmc_init: -123, time 2002
MMC: no card present
mmc_init: -123, time 2002
MMC: no card present
mmc_init: -123, time 2002
MMC: no card present
mmc_init: -123, time 2002
MMC: no card present
mmc_init: -123, time 2002
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
Bad Linux ARM64 Image magic!
=>

Regards,
Viswa
  • Hi Viswa,

    Is you file system present in eMMC or NFS?

    If eMMC you will need to change your bootargs to convey the U-Boot to pick kernel Image from eMMC.

    setenv mmcdev 0
    setenv bootpart 0
    setenv args_mmc "run finduuid;setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p1 rw rootfste=ext4 rootwait loglevel=0"
    saveenv
    boot

    Can you try with the above & check?

    Also is your SD Linux booting functional yet?

    Best Regards,
    Keerthy

  • Hi Keerthi,
       We have copied the images into the opsi flash. set the switches to 

    sw3 0XXXXXXXXX

    S8 00000000

    S9 01000000

    Let me know the steps to load the u-boot from the OSPI? In the above log I have specified what are the images i have written to ospi.

    Regards,
    Viswa

  • Viswa,

    Let me know the steps to load the u-boot from the OSPI? In the above log I have specified what are the images i have written to ospi.

    You are already booting from OSPI:

    U-Boot SPL 2021.01-00004-gc57d986ee4 (Oct 01 2021 - 09:40:50 +0530)
    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-00004-gc57d986ee4 (Oct 01 2021 - 09:39:42 +0530)
    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-00004-gc57d986ee4 (Oct 01 2021 - 09:39:42 +0530)

    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
    Loading Environment from MMC... OK
    In: serial@2800000
    Out: serial@2800000
    Err: serial@2800000
    Detected: J7X-BASE-CPB rev E3
    Detected: J7X-VSC8514-ETH rev E2
    Net: am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    eth0: ethernet@46000000
    Hit any key to stop autoboot: 0
    MMC: no card present
    mmc_init: -123, time 2002
    SD/MMC found on device 1
    MMC: no card present
    mmc_init: -123, time 2002
    MMC: no card present
    mmc_init: -123, time 2002
    MMC: no card present
    mmc_init: -123, time 2002
    MMC: no card present
    mmc_init: -123, time 2002
    MMC: no card present
    mmc_init: -123, time 2002
    libfdt fdt_check_header(): FDT_ERR_BADMAGIC
    No FDT memory address configured. Please configure
    the FDT address via "fdt addr <address>" command.
    Aborting!
    Bad Linux ARM64 Image magic!

    That part is fine. Now where is your file system? Is it in eMMC or NFS? OSPI is only for boot loader binaries hosting as it is a small memory around 64 MB.

    For booting kernel you will need to host file system in eMMC or NFS or SD. Which one are you using.

    Regards,
    Keerthy

  • Hi Keerthi,

    Thanks for the explanation. im using emmc. I followed below link and placed the file system in the emmc.

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/07_00_00_04/exports/docs/linux/How_to_Guides/Target/How_to_flash_emmc_device.html

    b. Whether the OSPI will support the jacto-7 filesystem in the UBIFS?  what is the size of UBIFS image?

    Regards,

    Viswa

  • Hi Viswa,

    b. Whether the OSPI will support the jacto-7 filesystem in the UBIFS?  what is the size of UBIFS image?

    Booting a UBIFS is not officially supported. Please take a look at the e2e thread linked below - this has steps which can be used to boot a UBIFS. Note, this is only for reference as the e2e refers an older release and this is not tested recently.

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

    Regards

    Karan