From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 6.mo2.mail-out.ovh.net ([87.98.165.38] helo=mo2.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1S5dCf-0003kj-Tl for barebox@lists.infradead.org; Thu, 08 Mar 2012 13:16:23 +0000 Received: from mail621.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo2.mail-out.ovh.net (Postfix) with SMTP id E4982DC7F68 for ; Thu, 8 Mar 2012 14:19:24 +0100 (CET) Date: Thu, 8 Mar 2012 14:05:29 +0100 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20120308130529.GN12248@game.jcrosoft.org> References: <1330618889-11482-1-git-send-email-dimov@ronetix.at> <1330707323-8021-1-git-send-email-dimov@ronetix.at> <20120302171851.GD12248@game.jcrosoft.org> <4F5899EF.8010801@ronetix.at> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4F5899EF.8010801@ronetix.at> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH v2 1/4] pm9g45: boot from NAND To: RONETIX - Asen Dimov Cc: barebox@lists.infradead.org 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 > >>--- > >>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. _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox