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.

DM385 + IPNC RDK3.5 -> Auto update nand from uboot booted from SD card?

Other Parts Discussed in Thread: DM385

Hi Guys,

I want auto flash nand whenever i boot from SD card automatically if sd card boot partition has nand binaries.

Instead of writing script i want to add a function in uboot source code to do itself auto update. i need input because kernel side i know but uboot side how to do it.

regards,

Ganesh 

  • Hi Ganesh,

    You can try to add this functionality in u-boot/include/configs/dm385_ipnc.h ( I assume dm385_ipnc.h is your u-boot config file). Take for example the below code:

    #elif defined(CONFIG_NAND_BOOT) /* Autoload the 2nd stage from NAND */
    #define CONFIG_NAND 1
    #define CONFIG_EXTRA_ENV_SETTINGS \
    "verify=yes\0" \
    "bootcmd=nand read 0x81000000 0x20000 0x40000; go 0x81000000\0" \


    As this is generic u-boot feature (not TI specific), you can also check with Denx mailing list and below FAQ:
    www.denx.de/.../HowCanIImplementAutomaticSoftwareUpdates

    Regards,
    Pavel
  • HI ,

    I will fully clarify what i need:

    This is to flash the images to NAND automatically with SD Boot.

    1. This should run only when the SD boot is happening
    2. I have to create auto upgrade function in uboot source code.
    3. In this function, check whether ‘u-boot.min.nand’, ‘u-boot.bin’ files are available in the SD Card
    If available:
    Do the flashing u-boot.min.nand to nand flash.
    Flash u-boot.bin to NAND.
    4. then exit.

    regards,
    Ganesh