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.

TDA2HG: Boot failure happened on Vision SDK03.08 after applied early-boot-lateattach patches inside

Part Number: TDA2HG
Other Parts Discussed in Thread: DRA742

Hi Expert.

I followed chpater 3.4 in below guideline to apply early-boot-lateattach patches to clear Vision SDK03.08. Then I run on TI J6 EVM. boot fail happened.

PROCESSOR_SDK_VISION_03_08_00_00/vision_sdk/docs/Linux/VisionSDK_Linux_UserGuide.pdf

U-Boot SPL 2019.01-00017-g2e90527ba7 (Oct 14 2020 - 17:44:17 +0800)
DRA752-GP ES2.0
no pinctrl state for default mode
** Unable to read file dra7-ipu1-fw.lzop **
Trying to boot from MMC1
Loading Environment from MMC... OK
spl_load_image_fat_buf: error reading image u-boot.img, err - -2
Loading Environment from MMC... OK
spl_load_image_ext_buf: ext4fs mount err - 0

after check code, err happened at below code. 

PROCESSOR_SDK_VISION_03_08_00_00/ti_components/os_tools/linux/u-boot/u-boot/common/spl/spl_ext.c

int spl_load_image_ext_buf(struct spl_image_info *spl_image,
struct blk_desc *block_dev, int partition,
const char *filename,
void *buffer)
{

...


err = ext4fs_mount(0);
if (!err) {
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
printf("%s: ext4fs mount err - %d\n", __func__, err);
#endif
goto end;
}

...

would you please help check if I miss some steps? I list my environment for your check.

Vision SDK:03.08

PC host version:

Linux version 4.4.0-31-generic (buildd@lgw01-43) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) ) #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016

the version of the tools that I used in ./hlos/scripts/linux/early-boot-update.sh as below:

fdisk (util-linux 2.20.1)

mkfs.fat 3.0.26 (2014-03-07)

mke2fs 1.42.9 (4-Feb-2014)
Using EXT2FS Library version 1.44.1

Thanks a lot!

yong

  • Hi,

    I'm able to run early-boot late attach use-case by referring the user-guide successfully.

    1) Are you trying on the EVM board?

    2) Are you able to run the normal boot instead of the early boot?

    3) The host is Ubuntu 14.04 or Ubuntu 18.04?

    4) Can I know all steps you followed after the installation of the SDK

    Thanks

    Gaviraju

  • Dear Gaviraju.

    please see my answer.

    1) Are you trying on the EVM board?

    yes

    2) Are you able to run the normal boot instead of the early boot?

    it boot ok before I apply early-boot-lateattach patches. log pasted in the end.

    3) The host is Ubuntu 14.04 or Ubuntu 18.04?

    Ubuntu 14.04

    4) Can I know all steps you followed after the installation of the SDK

    step1. do vision sdk installation according to chapter 2.4. including,

    install A15 compiler,

    run ./hlos/scripts/linux/setup-linux.sh,

    untar rootfs, tisdk-rootfs-image-dra7xx-evm_vsdk_3_8.tar.xz

    clone ipumm, codec enginee and Framework components.

    step2. change MAKECONFIG to tda2xx_evm_linux_all in Rules.make

    step3. apply early-boot-lateattach-patches.

    cd $INSTALL_DIR/ti_components/os_tools/linux/kernel/omap

    git am ../linux-kernel-addon/ earlyboot-lateattach-patches/kernel/*

    cd $INSTALL_DIR/ti_components/os_tools/linux/u-boot/u-boot

    git am ../linux-kernel-addon/ earlyboot-lateattach-patches/u-boot/*

    step 4. run below make commands @ vision_sdk/build

    make linux

    make linux_install

    make -s -j depend

    make -s -j

    step 5. tar new rootfs 

    mv ./tisdk-rootfs-image-dra7xx-evm.tar.xz$INSTALL_DIR/vision_sdk/binaries/apps/tda2xx_evm_linux_all/hlos/linux/boot

    step 6. format SD card and prepare it.

    sudo./hlos/scripts/linux/mksdboot.sh --device /dev/sdc --appname apps --makeconfig tda2xx_evm_linux_all

    step 7. disconnect SD card and re-insert it to PC. run early-boot-update.sh to apply early-boot.

    ./hlos/scripts/linux/early-boot-update.sh tda2xx_evm_linux_all /home/a0224068local/1Twork2/vision/PROCESSOR_SDK_VISION_03_08_00_00/ti_components/os_tools/linux/targetfs /media/a0224068local/boot

    step 8. disconnect SD card and insert to TI J6 EVM. run it.

    the boot partition of the SD card shown in below picture. attached the content for your check.7762.boot.zip

    normal boot log: boot ok without early-boot-lateattach patches.

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2020.10.14 18:11:15 =~=~=~=~=~=~=~=~=~=~=~=

    U-Boot SPL 2019.01-00017-g2e90527ba7 (Oct 14 2020 - 17:44:17 +0800)
    DRA752-GP ES2.0
    no pinctrl state for default mode
    ** Unable to read file dra7-ipu1-fw.lzop **
    ** Unable to read file dra7-ipu2-fw.lzop **
    ** Unable to read file dra7-dsp1-fw.lzop **
    ** Unable to read file dra7-dsp2-fw.lzop **
    Trying to boot from MMC1
    Loading Environment from MMC... OK


    U-Boot 2019.01-00017-g2e90527ba7 (Oct 14 2020 - 17:44:17 +0800)

    CPU : DRA752-GP ES2.0
    Model: TI DRA742
    Board: DRA74x EVM REV H.0
    DRAM: 4 GiB
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Loading Environment from MMC... OK
    Net:
    Warning: ethernet@48484000 using MAC address from ROM
    eth0: ethernet@48484000
    Hit any key to stop autoboot: 2 1 0
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** Unable to read file boot.scr **
    173 bytes read in 1 ms (168.9 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc0 ...
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    4411904 bytes read in 55 ms (76.5 MiB/s)
    96280 bytes read in 4 ms (23 MiB/s)
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8ffe5000, end 8ffff817 ... OK

    Starting kernel ...

    Thanks a lot!

    yong

  • Dear Gaviraju.

    seems the capture picture of boot partition lost in last reply. attached it again for your check.

    Thanks a lot!

    yong

  • Hi,

    Can you try with the below binaries & let me know the status.

    8611.Boot.zip

    Thanks

    Gaviraju

  • Dear Gaviraju.

    same error with your boot partition.

    I've used this SD card. And I tried to run below commands to set right environment variable already.

     => env default -f -a
     => env save 

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2020.10.15 10:37:36 =~=~=~=~=~=~=~=~=~=~=~=

    U-Boot SPL 2019.01-00016-g9641712e2f (Oct 12 2020 - 12:10:26 +0530)
    DRA752-GP ES2.0
    no pinctrl state for default mode
    ** Unable to read file dra7-ipu1-fw.lzop **
    Trying to boot from MMC1
    Loading Environment from MMC... OK
    spl_load_image_fat_buf: error reading image u-boot.img, err - -2
    Loading Environment from MMC... OK
    spl_load_image_ext_buf: ext4fs mount err - 0

    Thanks a lot!

    yong

  • Hi,

    I'm able to run with those binaries.

    Trying to boot from MMC1
    Loading Environment from MMC... OK
    spl_load_image_fat_buf: error reading image u-boot.img, err - -2
    Loading Environment from MMC... OK
    spl_load_image_ext_buf: ext4fs mount err - 0

    which seems to be something wrong with the SD card. I will check with an MMC expert & let you know.

    Thanks

    Gaviraju

  • Dear Gaviraju.

    Thank you for your help!

    I am not sure if environment variable need be check. do you think which environment variable need be check?

    BTW,

    here is SYSBOOT[0-15] and USERCONFIG switch state.

    Thanks a lot!

    yong

  • Hi,

    Refer to the below thread for the SWITCH boot mode settings for SD boot

    Thanks

    Gaviraju

  • Dear Gaviraju.

    thanks for your help! I follow the ticket, and set SW5 to 0001100000, it works now. 

    I will close this ticket. 

    thank you!

    yong