mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Asen Chavdarov Dimov <dimov@ronetix.at>
To: barebox@lists.infradead.org
Subject: [PATCH v3 1/4] pm9g45: boot from NAND
Date: Wed, 21 Mar 2012 18:27:23 +0200	[thread overview]
Message-ID: <1332347246-8777-1-git-send-email-dimov@ronetix.at> (raw)
In-Reply-To: <1330618889-11482-1-git-send-email-dimov@ronetix.at>

- 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@ronetix.at>
---
since v1:
	this patch I gorgot to send, so it pops-up now

since v2:
	- used savedefconfig to minimize the config file
	- Linux partition in NAND named "kernel" (lack of ".bb" suffix)
---
 arch/arm/boards/pm9g45/env/config |    8 +++---
 arch/arm/configs/pm9g45_defconfig |   43 +++++++++++-------------------------
 2 files changed, 17 insertions(+), 34 deletions(-)

diff --git a/arch/arm/boards/pm9g45/env/config b/arch/arm/boards/pm9g45/env/config
index 3dea724..5f05e6f 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),-(root)"
+rootfs_mtdblock_nand=4
 
 autoboot_timeout=3
 
diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
index bf9af22..d199abd 100644
--- a/arch/arm/configs/pm9g45_defconfig
+++ b/arch/arm/configs/pm9g45_defconfig
@@ -1,55 +1,38 @@
 CONFIG_ARCH_AT91SAM9G45=y
 CONFIG_MACH_PM9G45=y
-CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
-CONFIG_PROMPT="pm9g45:"
+CONFIG_AEABI=y
 CONFIG_LONGHELP=y
-CONFIG_GLOB=y
-CONFIG_PROMPT_HUSH_PS2="y"
-CONFIG_HUSH_FANCY_PROMPT=y
 CONFIG_CMDLINE_EDITING=y
 CONFIG_AUTO_COMPLETE=y
-CONFIG_MENU=y
-CONFIG_PASSWD_SUM_SHA1=y
 CONFIG_PARTITION=y
+CONFIG_PARTITION_DISK=y
 CONFIG_DEFAULT_ENVIRONMENT_GENERIC=y
 CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/pm9g45/env"
+CONFIG_POLLER=y
+CONFIG_ENABLE_DEVICE_NOISE=y
 CONFIG_CMD_EDIT=y
-CONFIG_CMD_SLEEP=y
 CONFIG_CMD_SAVEENV=y
-CONFIG_CMD_LOADENV=y
 CONFIG_CMD_EXPORT=y
 CONFIG_CMD_PRINTENV=y
 CONFIG_CMD_READLINE=y
-CONFIG_CMD_MENU=y
-CONFIG_CMD_MENU_MANAGEMENT=y
-CONFIG_CMD_PASSWD=y
-CONFIG_CMD_ECHO_E=y
-CONFIG_CMD_LOADB=y
-CONFIG_CMD_MEMINFO=y
-CONFIG_CMD_MTEST=y
-CONFIG_CMD_MTEST_ALTERNATIVE=y
 CONFIG_CMD_FLASH=y
-CONFIG_CMD_BOOTM_ZLIB=y
-CONFIG_CMD_BOOTM_BZLIB=y
-CONFIG_CMD_BOOTM_SHOW_TYPE=y
+CONFIG_CMD_BOOTM_VERBOSE=y
+CONFIG_CMD_UIMAGE=y
 CONFIG_CMD_RESET=y
 CONFIG_CMD_GO=y
 CONFIG_CMD_TIMEOUT=y
 CONFIG_CMD_PARTITION=y
-CONFIG_CMD_GPIO=y
-CONFIG_CMD_UNCOMPRESS=y
+CONFIG_CMD_I2C=y
 CONFIG_NET=y
 CONFIG_NET_DHCP=y
-CONFIG_NET_NFS=y
 CONFIG_NET_PING=y
-CONFIG_NET_TFTP=y
-CONFIG_NET_TFTP_PUSH=y
-CONFIG_NET_NETCONSOLE=y
-CONFIG_NET_RESOLV=y
 CONFIG_DRIVER_NET_MACB=y
-# CONFIG_SPI is not set
-CONFIG_DRIVER_CFI=y
-CONFIG_CFI_BUFFER_WRITE=y
+CONFIG_DRIVER_SPI_ATMEL=y
+CONFIG_I2C=y
+CONFIG_MTD_M25P80=y
+CONFIG_MTD_SST25L=y
 CONFIG_MTD=y
 CONFIG_NAND=y
+CONFIG_NAND_ATMEL=y
 CONFIG_UBI=y
+CONFIG_EEPROM_AT25=y
-- 
1.7.4.4


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

  parent reply	other threads:[~2012-03-21 16:26 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 16:21 [PATCH 1/3] pm9g45: fix Ethernet Asen Chavdarov Dimov
2012-03-01 16:21 ` [PATCH 2/3] pm9g45: enable MCI0 Asen Chavdarov Dimov
2012-03-01 17:10   ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-01 16:21 ` [PATCH 3/3] pm9g45: enable USB OHCI host and USB mass storage Asen Chavdarov Dimov
2012-03-01 17:12   ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 15:20     ` RONETIX - Asen Dimov
2012-03-02 17:13       ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-01 17:08 ` [PATCH 1/3] pm9g45: fix Ethernet Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 16:55 ` [PATCH v2 1/4] pm9g45: boot from NAND Asen Chavdarov Dimov
2012-03-02 16:55   ` [PATCH v2 2/4] pm9g45: fix Ethernet Asen Chavdarov Dimov
2012-03-02 17:19     ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 16:55   ` [PATCH v2 3/4] pm9g45: enable MCI0 Asen Chavdarov Dimov
2012-03-02 17:21     ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 16:55   ` [PATCH v2 4/4] pm9g45: enable USB OHCI host and USB mass storage Asen Chavdarov Dimov
2012-03-02 17:22     ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 17:18   ` [PATCH v2 1/4] pm9g45: boot from NAND Jean-Christophe PLAGNIOL-VILLARD
2012-03-08 11:37     ` RONETIX - Asen Dimov
2012-03-08 13:05       ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-21 16:43         ` RONETIX - Asen Dimov
2012-03-21 16:27 ` Asen Chavdarov Dimov [this message]
2012-03-21 16:27   ` [PATCH v3 2/4] pm9g45: fix Ethernet Asen Chavdarov Dimov
2012-03-21 16:27   ` [PATCH v3 3/4] pm9g45: enable MCI0 Asen Chavdarov Dimov
2012-03-22 20:17     ` Sascha Hauer
2012-03-23 12:55       ` RONETIX - Asen Dimov
2012-03-23 15:18         ` Sascha Hauer
2012-03-21 16:27   ` [PATCH v3 4/4] pm9g45: enable USB OHCI host and USB mass storage Asen Chavdarov Dimov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1332347246-8777-1-git-send-email-dimov@ronetix.at \
    --to=dimov@ronetix.at \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox