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.

DRA829V: QNX Booting through eMMC or OSPI

Part Number: DRA829V
Other Parts Discussed in Thread: DRA829

Hi,

In our custom Board design based on DRA829 Processor we have eMMC, OSPI, UART boot is possible as we are not having SD card, USB.

Through UART boot mode I will able to load till U-boot Prompt, How I can load QNX in eMMC or OSPI?

I am using SPL/u-boot boot mode.  

  • Hi Divyanshu,

    OSPI boot for QNX is included in the TI SDK for QNX, using the SBL boot flow.  Please see Vision Apps User Guide: Run Instructions.  These steps include programming of the OSPI flash over UART.

    For loading a QNX image from the Uboot prompt, the same steps that are used for Linux can be used, but instead of loading the Linux Image, the QNX image can be loaded instead.  

    See https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-jacinto7/07_02_00_07/exports/docs/linux/Foundational_Components/U-Boot/UG-Memory.html for Uboot steps on programming eMMC / OSPI. 

    First steps for eMMC would be to program the eMMC with the boot binaries, and ensure the boot flow can get back to the uboot prompt:

    3.1.1.5.7. Booting tiboot3.bin, tispl.bin and u-boot.img from eMMC boot partition (For K3 class of SoCs)

    Regards,

    kb

  • Hi kb,

    By using the below steps i able to load u-boot binaries to eMMC and able to boot to u-boot prompt in eMMC boot mode

    => mmc dev 0 1
    => tftp ${loadaddr} tiboot3.bin
    => mmc write ${loadaddr} 0x0 0x400
    => tftp ${loadaddr} tispl.bin
    => mmc write ${loadaddr} 0x400 0x1000
    => tftp ${loadaddr} u-boot.img
    => mmc write ${loadaddr} 0x1400 0x2000
    => tftp ${loadaddr} sysfw.itb
    => mmc write ${loadaddr} 0x3600 0x800
    => mmc partconf 0 1 1 1
    => mmc bootbus 0 2 0 0

    After that i want to load QNX image to eMMC at which block  i need to load the qnx ifs. and I want to automate the booting till qnx prompt for that what i need to set in environment variable. 

  • Hi Kb,

    I need a steps for loading qnx image and filesystem from u-boot to eMMC using tftp. i succeed in loading u-boot image through tftp.

  • Hi Divyanshu,

    Please be aware that the eMMC Boot mode for SPL/Uboot, is not verified as part of the Processor SDK QNX releases.

    An e2e FAQ on how this can be enabled has been created at the below link:

    (99+) [FAQ] TDA4VM: QNX eMMC boot using SPL / Uboot - Processors forum - Processors - TI E2E support forums

    Regards,

    kb

  • Hi KB,

    we able to succeed till step 3 mentioned in the link above, we are facing challenge in step 4 we able to format the eMMC but how we can load the files without sd card as ethernet is also not working in QNX as it requires below libraries  to function which is present in filesystem.

    devnp-cpsw2g.so, devnp-asix.so, libsocket.so,libsecpol.so,libqcrypto.so,libcrypto.so,

    Is there anyway to load full filesystem from u-boot using tftp and untar it in emmc.

    what offset need to provide for writing qnx-ifs in eMMC and for the filesystem. 

  • HI Divyanshu,

    To get the ethernet running in step (4) the qnx-ifs image would need to be modified to include the ethernet driver (devnp-xxx), and it's dependent libraries.   

    The IFS file is generated based on the build file, stored in .../psdkqa/qnx/bsp/images/j721e-evm-ti.build.  Updating the build file to include the required binaries, and rebuilding the qnx-ifs, would allow the ethernet to function.

    Regarding the uboot portion of the request, I'll check with TI team.

    Regards,

    kb