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

Not able to copy the Tiny default image into the SD card.

SD card memory size is 64GB

Ubuntu version: 18.04

SD card is formatted to ext4

Not able to bring the boardup while running the ./setup.sh in the SDK. Tried both the NFS and SDCARD option.

a. Please share me is there any document available to configure the switch (sw3, sw8, and sw9) and how to run the  .setup.sh in the SD card, NFS and UART?  because i dont see the kernel or uboot logs.

b. whether we need to partition the SD card to how many partition? if we are booting in the SD card?

Steps Followed:

Method 1:

a, bring the board in the u-boot  in the UART

b. set the ip address

c. Run the ./setup.sh no SD card attached. Choose NFS and TFTBOOT.

no kernel log message or console in the mincom

Method 2:

a. SD card is partitioned with 2 partition. rootfs and boot (no images copied into the SD card)

b, Bring the board in the u-boot  in the UART

c. set the ip address

d. Run the ./setup.sh.  Choose the SD card option. no kernel log message or console in the mincom

If you can share me document on how to run the .setup.sh for the SD card and NFS it will be helpfull.

  • Hi Viswanathan,

    I have a simpler method if you want to use the tiny rootfs.

    cd $PSDK_ATH/bin

    Edit mksdboot.sh

    Replace: root_fs="$sdkdir/filesystem/tisdk-default-image-j7-evm.tar.xz"

    with: root_fs="$sdkdir/filesystem/tisdk-tiny-image-j7-evm.tar.xz"

    That should create an SD card with tiny rootfs.

    Note: This will not have the Image/dtd in the boot folder of rootfs. So you will have to manually copy: board-support/prebuilt-images/Image & board-support/prebuilt-images/k3-j721e-common-proc-board.dtb to /media/$USER/rootfs/boot in the created SD card.

    Let me know if you face issues. If you are unblocked then please click on verify answer.

    Best Regards,
    Keerthy

  • Hi Karthi,

    What is the difference between the tisdk-default-image-j7-evm.tar.xz" and tisdk-tiny-image-j7-evm.tar.xz" ? 

    I tried the suggested steps it is not working?

    sudo /home/uic68347/oti-processor-sdk-linux-j7-evm-08_00_00_08/bin/mksdboot.sh --device /dev/sdc --sdk /home/uic68347/oti-processor-sdk-linux-j7-evm-08_00_00_08


    uic68347@igl5718u:~/oti-processor-sdk-linux-j7-evm-08_00_00_08$ sudo find . -iname tisdk-tiny-image-j7-evm.tar.xz
    ./filesystem/tisdk-tiny-image-j7-evm.tar.xz

    uic68347@igl5718u:~/oti-processor-sdk-linux-j7-evm-08_00_00_08$ cat bin/mksdboot.sh
    ,,,,,,,,
    boot_tar="$sdkdir/board-support/prebuilt-images/boot-j7-evm.tar.gz"
    execute "tar -zxf $boot_tar --owner root --group root --no-same-owner -C /tmp/sdk/$$/boot"
    root_fs="$sdkdir/filesystem/tisdk-tiny-image-j7-evm.tar.xz"
    execute "tar -xf $root_fs -C /tmp/sdk/$$/rootfs"
    ........

    ===========================================================================
    uic68347@igl5718u:/media/uic68347/rootfs/boot$ ls
    Image k3-j721e-common-proc-board.dtb
    =============================================================================

    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
    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
    switch to partitions #0, OK
    mmc1 is current device
    SD/MMC found on device 1
    Failed to load 'boot.scr'
    0 bytes read in 1 ms (0 Bytes/s)
    Loaded env from uEnv.txt
    Importing environment from mmc1 ...
    19137024 bytes read in 800 ms (22.8 MiB/s)
    Failed to load '/boot/k3-j721e-common-proc-board.dtb'
    libfdt fdt_check_header(): FDT_ERR_BADMAGIC
    No FDT memory address configured. Please configure
    the FDT address via "fdt addr <address>" command.
    Aborting!
    ERROR: Did not find a cmdline Flattened Device Tree
    Could not find a valid device tree
    =>

    Regards,

    Viswa

  • Note: This will not have the Image/dtd in the boot folder of rootfs. So you will have to manually copy: board-support/prebuilt-images/Image & board-support/prebuilt-images/k3-j721e-common-proc-board.dtb to /media/$USER/rootfs/boot in the created SD card.

    It seems like DT was not found. Try to copy the entire prebuilt-images folder above to your /rootfs/boot folder of your SD card. Let me know if that works.

    - Keerthy

  • a. What is the difference between the tisdk-default-image-j7-evm.tar.xz" and tisdk-tiny-image-j7-evm.tar.xz" ? 


    b. after copying the copy the entire prebuilt-images folder above to the /rootfs/boot got the below error?
    [ 5.146110] No soundcards found.
    [ 6.143690] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [ 6.151912] Waiting for root device PARTUUID=1c5f0059-02...
    [ 6.192866] mmc1: error -110 whilst initialising SD card
    [ 6.521396] mmc1: error -110 whilst initialising SD card
    [ 6.849180] mmc1: error -110 whilst initialising SD card
    [ 7.194249] mmc1: error -110 whilst initialising SD card

    Im using ti-processor-sdk-linux-j7-evm-08_00_00_08

    Regards,

    Viswa

  • a. What is the difference between the tisdk-default-image-j7-evm.tar.xz" and tisdk-tiny-image-j7-evm.tar.xz" ? 

    tiny rootfs is a very minimal busybox based file system. It will let you boot to Linux prompt without any additional services enabled. So this is for quick Linux boot.

    b. after copying the copy the entire prebuilt-images folder above to the /rootfs/boot got the below error?

    This is the same error as: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1050301/processor-sdk-j721e-processor-sdk-j721e

    Let me know if my post on that thread helps you.

    Please click on verify answer once the issue is resolved.

    - Keerthy