Re: [PATCH v2 1/4] pm9g45: boot from NAND

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
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.
why env the 1664k?
To align the kernel to start at 2MiB offset.
Best Regards,
J.

Regards,
Asen


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux