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.

backup uboot.bin support on DM8127 platform

Hi,

i am using IPNC RDK u-boot. i've created three partition of u-boot.min for safety purpose on my custom board.

my requirement is if one of these u-boot partition get corrupted then next one boot successful and so on.

but there isn't any "if else" kind of command in u-boot.min prompt.

is there any way to achieve this functionality.

regards,

Akash

  • Hello,

    I will notify the IPNC team for help.

    BR
    Margarita
  • Hi Akash,

    See if the below e2e thread will be in help:

    e2e.ti.com/.../465426

    BR
    Pavel
  • Hi pavel,

    here is my partition table.
    -----------------------------------------
    1st partition - u-boot.min 1 (1st erase block)
    - u-boot.min 2 (2nd erase block)
    - u-boot.min 3 (3rd erase block)
    ------------------------------------------
    2nd partition - u-boot.bin 1
    ------------------------------------------
    3rd partition - u-boot.bin 2
    ------------------------------------------
    4th partition - u-boot.bin 3
    ------------------------------------------
    5th partition - Kernel
    ------------------------------------------
    6th partition - File System
    ------------------------------------------
    7th partition - backup Kernel
    ------------------------------------------
    8th partition - backup File System
    ------------------------------------------

    in case 1, if u-boot.min 1 is corrupted from partition table 1 another alternate u-boot.min 2 will take care for successful boot.
    here my concept is clear about u-boot.min for ECC error and processor will read u-boot.min from next erase block.

    in case 2, if u-boot.bin 1 is corrupted, u-boot.min will load u-boot.bin from next u-boot.bin partition until it found healthy binary.

    here is my constraint that how u-boot.min will switch to u-boot.bin partition for successful boot in case of ECC mismatch.

    regards,
    Akash
  • Akash,

    You can try to implement the "if esle fi" functionality from the 2nd stage u-boot.bin to the 1st stage u-boot.min, but be aware of the size of u-boot.min which is very restricted.

    BR
    Pavel
  • Pavel,

    in second stage u-boot.bin there is "if else fi" command, which is useful during kernel ecc error.
    i verified in first stage u-boot.min command line prompt with help command, there isn't any "if else fi "command.

    regards
    Akash
  • Akash,

    Akash Gajjar said:
    i verified in first stage u-boot.min command line prompt with help command, there isn't any "if else fi "command.

    This is exactly what I am trying to explain in my previous post:

    You can try to implement the "if esle fi" functionality from the 2nd stage u-boot.bin to the 1st stage u-boot.min, but be aware of the size of u-boot.min which is very restricted.

  • Hello pavel,

    sorry,i didn't got your point.
    here is my requirement. u-boot.min will identify healthy binary of second stage uboot from partitions 2, 3, or 4.
    still i am in doubt how 1st stage u-boot will identify healthy binary of second stage uboot from partitions, can you suggest us by example how to implement functionality from max 2nd stage u-boot to the 1st stage.

    regards,
    Akash
  • Akash,

    My point is to transplant the "if else fi" functionality from the 2nd stage u-boot code to the 1st stage u-boot code, then use this "if else fi" functionality in the 1st stage u-boot. I do not have an example for this.

    BR
    Pavel