[U-Boot] flash the images to NAND automatically with SD Boot in uboot?

Jaehoon Chung jh80.chung at samsung.com
Fri Dec 2 09:28:55 CET 2016


On 12/02/2016 12:24 AM, grbesd1 wrote:
> Actually i need to know how to add the functionality. has anyone done before
> because i tried to look more information on these i didn't find much help.
> 
> I have to add a function in uboot source code, which perform all the listed
> operation step by step.

Well, you need to implement this in your local..I think it can use the magic-number as some hex value.
When you make the u-boot.bin, add the hex magic number at fixed offest.

Then when read that offest, bootloader can know that it's which image is.
It's for only local testing.

And auto flashing function might call when boot from SD..
(I'm not sure but you know how to distinguish with SD and NAND. e.g some register bit or OM Pin)

Best Regards,
Jaehoon Chung

> 
> regards,
> grbesd1 
> 
> 
> Jaehoon Chung wrote
>> Hi, 
>>
>> On 12/01/2016 05:30 PM, grbesd1 wrote:
>>> Hi Guys,
>>>
>>> i need little help, i have to auto update nand every time i put my sd
>>> card.
>>>
>>> i can get which register[pin mux] decides NAND or SD boot. I'm using 2010
>>> uboot code.
>>>
>>> what i'm looking is
>>>
>>> 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[FAT partition][fatls mmc 0]
>>> If available:
>>> Do the flashing u-boot.min.nand to nand flash.
>>> Flash u-boot.bin to NAND.
>>> 4. then exit.
>>
>> Sorry, i don't know exactly what is your question.
>> Your question is those sequences is right or not?
>>
>> Best Regards,
>> Jaehoon Chung
>>
>>>
>>> uboot source code
>>>
>>> http://arago-project.org/git/projects/?p=u-boot-ipnc-rdk-dm81xx.git;a=tree
>>>
>>> regards,
>>> grbesd1
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://u-boot.10912.n7.nabble.com/flash-the-images-to-NAND-automatically-with-SD-Boot-in-uboot-tp275350.html
>>> Sent from the U-Boot mailing list archive at Nabble.com.
>>> _______________________________________________
>>> U-Boot mailing list
>>>
> 
>> U-Boot at .denx
> 
>>> http://lists.denx.de/mailman/listinfo/u-boot
>>>
>>
>> _______________________________________________
>> U-Boot mailing list
> 
>> U-Boot at .denx
> 
>> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 
> 
> 
> 
> --
> View this message in context: http://u-boot.10912.n7.nabble.com/flash-the-images-to-NAND-automatically-with-SD-Boot-in-uboot-tp275350p275405.html
> Sent from the U-Boot mailing list archive at Nabble.com.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 



More information about the U-Boot mailing list