[PATCH v2 1/4] pm9g45: boot from NAND
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Thu Mar 8 08:05:29 EST 2012
On 13:37 Thu 08 Mar , RONETIX - Asen Dimov wrote:
> Hi Jean-Christophe,
>
> On 03/02/2012 07:18 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> >On 18:55 Fri 02 Mar , Asen Chavdarov Dimov wrote:
> >>- change the kernel and rootfs locations
> >>- correct the NAND mtd partitions
> >>- fix the DDR RAM location(so BareBox load address)
> >>- expect the root file system type to be UBIFS
> >>
> >>Signed-off-by: Asen Chavdarov Dimov<dimov at ronetix.at>
> >>---
> >>since v1:
> >> this patch I gorgot to send, so it pops-up now
> >>---
> >> arch/arm/boards/pm9g45/env/config | 8 +-
> >> arch/arm/configs/pm9g45_defconfig | 339 +++++++++++++++++++++++++++++++++---
> >please use savedefconfig to generate the defconfig
> done.
> >> 2 files changed, 314 insertions(+), 33 deletions(-)
> >>
> >>diff --git a/arch/arm/boards/pm9g45/env/config b/arch/arm/boards/pm9g45/env/config
> >>index 3dea724..1858292 100644
> >>--- a/arch/arm/boards/pm9g45/env/config
> >>+++ b/arch/arm/boards/pm9g45/env/config
> >>@@ -11,9 +11,9 @@ ip=dhcp
> >> #eth0.serverip=a.b.c.d
> >>
> >> # can be either 'nfs', 'tftp' or 'nand'
> >>-kernel_loc=tftp
> >>+kernel_loc=nand
> >> # can be either 'net', 'nand' or 'initrd'
> >>-rootfs_loc=net
> >>+rootfs_loc=nand
> >>
> >> # can be either 'jffs2' or 'ubifs'
> >> rootfs_type=ubifs
> >>@@ -25,8 +25,8 @@ kernelimage=uImage
> >> #kernelimage=Image.lzo
> >>
> >> nand_device=atmel_nand
> >>-nand_parts="256k(barebox)ro,64k(bareboxenv),1536k(kernel),-(root)"
> >>-rootfs_mtdblock_nand=3
> >>+nand_parts="128k(bootstrap)ro,256k(barebox)ro,1664k(bareboxenv),3M(kernel.bb),-(root)"
> >use kerenel not kernel.bb
> In the "defaultenv/bin/boot" it is mentioned "/dev/nand0.kernel.bb"
> and many boards are using
> ".bb" suffix.
no the name need to be kernel
the .dd will be add automatically for the bad bloack aware device
> >why env the 1664k?
> To align the kernel to start at 2MiB offset.
so you loose space
Best Regards,
J.
More information about the barebox
mailing list