[U-Boot] How to change partition sizes in Uboot
Haris Papadopoulos
haris at amberbox.com
Mon Dec 5 21:22:15 CET 2016
Hi,
I use embedded yocto to build a real time linux environment on a board. The
kernel rootfs and bootloader are stored on nand flash, on a different
partition each.
When I type in the bootloader
mtdparts
I observe the following:
=> mtdparts
device nand0 <gpmi-nand>, # parts = 7
#: name size offset mask_flags
0: bootloader 0x00300000 0x00000000 0
1: environment 0x00100000 0x00300000 0
2: safe 0x00100000 0x00400000 0
3: linux 0x00e00000 0x00500000 0
4: recovery 0x00e00000 0x01300000 0
5: rootfs 0x08000000 0x02100000 0
6: update 0x05f00000 0x0a100000 0
active partition: nand0,0 - (bootloader) 0x00300000 @ 0x00000000
defaults:
mtdids : nand0=gpmi-nand
mtdparts: mtdparts=gpmi-nand:3m(bootloader),1m(environment),1m(safe),14m(linux),14m(recovery),128m(rootfs),-(update)
I can modify this by typing
setenv mtdparts
'mtdparts=gpmi-nand:3m(bootloader),1m(environment),1m(safe),14m(linux),14m(recovery),112m(rootfs),-(update)'
How can I modify this by modifying the uboot code?
Thanks
--
Haris Papadopoulos| AmberBox | Software Engineer
haris at amberbox.com <tomas at amberbox.com> | + 1 650-686-0230
More information about the U-Boot
mailing list