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.

AM1808 Remove NAND dependency using MMC (SD card) only

Other Parts Discussed in Thread: AM1808

Hi

As we know we can boot AM1808/l138 based board from NAND and MMC(SD card) both.

While booting from MMC it need to read/update environment variables from NAND, but if I want to remove dependence of NAND, I mean can we read/update environment variables from/to MMC (SD Card) in place of NAND ? 

As we know panda board does not having NAND or eMMC, so it reading environment variables from MMC. I need to do similar things, so I can remove NAND in custom board.

Is there any patch for u-boot to fulfil above requirement ?

Thanks

  • Hi Jignesh,

    You can create your own u-boot script to write u-boot env commands into single file.

    PFA of sample boot script,

    Just run in your host ubuntu system,

    titus@titus-desktop:~/Desktop $ sh mkbootscr_sample

    OR

    (change the file permission like titus@titus-desktop:~/Desktop $ chmod 777 mkbootscr_sample)

    titus@titus-desktop:~/Desktop $ ./ mkbootscr_sample 

     

    Change the file name from *.txt to .sh

    8764.mkbootscr_sample.txt

    It will create boot.cmd and boot.scr file , copy the boot.scr file & kernel uImage and paste into SD/MMC 1st partition.

    Do the following for loading boot script into RAM

    u-boot# fatload mmc 0 0x82000000 boot.scr (boot script will load your kernel image from  SD/MMC 1st partion and with SD card's boot.scr u-boot env args)

    u-boot# source 0x82000000

  • Thanks Titus S,

    Right we can do above steps for panda board to change boot args, my another question is, does same steps possible in AM1808/l138 based board (linux os), does its u-boot having support to do same ?

    Thanks

  • Hi,

    1) Technically speaking is that its possible only, because just you are running u-boot script only,

    2) It is possible when you can access your SD card from u-boot section.

    3) Change your default u-boot commands in u-boot board config file to find the SD card partition type FAT as well as ext2 for sourcing the boot script & loading as well.