Skip to contentSkip to conversation

flash the images to NAND automatically with SD Boot in uboot?

U-Boot grbesd1 2 participants 4 messages Dec 1, 2016 – Dec 2, 2016

lore
Share & tools
lore

grbesd1

author
#0 lore raw

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.

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.

#1 lore raw

Hi,

Quoted 9 lines · 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

Quoted 8 lines

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

Quoted 18 lines

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 lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

author
#2 lore raw

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.

regards,
grbesd1

Jaehoon Chung wrote

Quoted 52 lines

Hi,

Quoted 10 lines · 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

Quoted 9 lines

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

Quoted 10 lines

uboot source code

http://arago-project.org/git/projects/?p=u-boot-ipnc-rdk-dm81xx.git;a=tree

regards,
grbesd1

Quoted 7 lines

--
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

Quoted 2 lines

http://lists.denx.de/mailman/listinfo/u-boot

Quoted 6 lines

_______________________________________________
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.

#3 lore raw
Quoted 5 lines · 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

Quoted 77 lines

regards,
grbesd1

Jaehoon Chung wrote

Quoted 52 lines

Hi,

Quoted 10 lines · 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

Quoted 9 lines

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

Quoted 10 lines

uboot source code

http://arago-project.org/git/projects/?p=u-boot-ipnc-rdk-dm81xx.git;a=tree

regards,
grbesd1

Quoted 7 lines

--
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

Quoted 2 lines

http://lists.denx.de/mailman/listinfo/u-boot

Quoted 6 lines

_______________________________________________
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