mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] pm9g45 fix
@ 2012-10-19  2:04 Jean-Christophe PLAGNIOL-VILLARD
  2012-10-19  2:07 ` [PATCH 1/2] pm9g45: fix nand partition in c code Jean-Christophe PLAGNIOL-VILLARD
  2012-10-23  6:35 ` [PATCH 0/2] pm9g45 fix Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 7+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-19  2:04 UTC (permalink / raw)
  To: barebox

HI,

	the folowing patch series fix pm9g45 so we can have the correct nand
	support and be able to boot as the current binary is bigger than the
	partition for barebox and boot a mainline kernel + dt

The following changes since commit f99ea5c9d8cfddf3a1d6b181d0dbb26e06a86d2b:

  ARM samsung S5P: Enable board support (2012-10-15 19:47:01 +0200)

are available in the git repository at:

  git://git.jcrosoft.org/barebox.git delivery/pm9g45

for you to fetch changes up to d4d6062c3177d25a1181fc987231f507b74b92a9:

  pm9g45: fix config and defconfig (2012-10-19 01:08:53 +0800)

----------------------------------------------------------------
Jean-Christophe PLAGNIOL-VILLARD (2):
      pm9g45: fix nand partition in c code
      pm9g45: fix config and defconfig

 arch/arm/boards/pm9g45/env/config |   13 ++++++++-----
 arch/arm/boards/pm9g45/init.c     |    7 +++++--
 arch/arm/configs/pm9g45_defconfig |   32 ++++++++++++++++++++++++--------
 3 files changed, 37 insertions(+), 15 deletions(-)

Best Regards,
J.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/2] pm9g45: fix nand partition in c code
  2012-10-19  2:04 [PATCH 0/2] pm9g45 fix Jean-Christophe PLAGNIOL-VILLARD
@ 2012-10-19  2:07 ` Jean-Christophe PLAGNIOL-VILLARD
  2012-10-19  2:07   ` [PATCH 2/2] pm9g45: fix config and defconfig Jean-Christophe PLAGNIOL-VILLARD
  2012-10-23  6:35 ` [PATCH 0/2] pm9g45 fix Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 1 reply; 7+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-19  2:07 UTC (permalink / raw)
  To: barebox

enable bbt too

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 arch/arm/boards/pm9g45/init.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 17b38d4..a12896b 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -43,6 +43,7 @@ static struct atmel_nand_data nand_pdata = {
 	.rdy_pin	= AT91_PIN_PD3,
 	.enable_pin	= AT91_PIN_PC14,
 	.bus_width_16	= 0,
+	.on_flash_bbt	= 1,
 };
 
 static struct sam9_smc_config pm_nand_smc_config = {
@@ -137,9 +138,11 @@ static int pm9g45_devices_init(void)
 	at91_add_device_eth(0, &macb_pdata);
 	pm9g45_add_device_usbh();
 
-	devfs_add_partition("nand0", 0x00000, 0x80000, DEVFS_PARTITION_FIXED, "self_raw");
+	devfs_add_partition("nand0", 0x00000, SZ_128K, DEVFS_PARTITION_FIXED, "at91bootstrap_raw");
+	dev_add_bb_dev("at91bootstrap_raw", "at91bootstrap");
+	devfs_add_partition("nand0", SZ_128K, SZ_256K, DEVFS_PARTITION_FIXED, "self_raw");
 	dev_add_bb_dev("self_raw", "self0");
-	devfs_add_partition("nand0", 0x40000, 0x40000, DEVFS_PARTITION_FIXED, "env_raw");
+	devfs_add_partition("nand0", SZ_256K + SZ_128K, SZ_128K, DEVFS_PARTITION_FIXED, "env_raw");
 	dev_add_bb_dev("env_raw", "env0");
 
 	armlinux_set_bootparams((void *)(AT91_CHIPSELECT_6 + 0x100));
-- 
1.7.10.4


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 2/2] pm9g45: fix config and defconfig
  2012-10-19  2:07 ` [PATCH 1/2] pm9g45: fix nand partition in c code Jean-Christophe PLAGNIOL-VILLARD
@ 2012-10-19  2:07   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 7+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-19  2:07 UTC (permalink / raw)
  To: barebox

 - add dhcp vendor_id
 - enable glob support (needed by nand)
 - enable pbl
 - enable MMU
 - enable bootm oftree support
 - enable loadb
 - enable nfs
 - use zImage by default

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 arch/arm/boards/pm9g45/env/config |   13 ++++++++-----
 arch/arm/configs/pm9g45_defconfig |   32 ++++++++++++++++++++++++--------
 2 files changed, 32 insertions(+), 13 deletions(-)

diff --git a/arch/arm/boards/pm9g45/env/config b/arch/arm/boards/pm9g45/env/config
index 5f05e6f..18ac565 100644
--- a/arch/arm/boards/pm9g45/env/config
+++ b/arch/arm/boards/pm9g45/env/config
@@ -2,7 +2,8 @@
 
 # use 'dhcp' to do dhcp in barebox and in kernel
 # use 'none' if you want to skip kernel ip autoconfiguration
-ip=dhcp
+ip=dhcp-barebox
+global.dhcp.vendor_id=barebox-pm9g45
 
 # or set your networking parameters here
 #eth0.ipaddr=a.b.c.d
@@ -11,16 +12,18 @@ ip=dhcp
 #eth0.serverip=a.b.c.d
 
 # can be either 'nfs', 'tftp' or 'nand'
-kernel_loc=nand
+kernel_loc=nfs
 # can be either 'net', 'nand' or 'initrd'
-rootfs_loc=nand
+rootfs_loc=net
+# can be either 'nfs', 'tftp', 'nand' or empty
+oftree_loc=nfs
 
 # can be either 'jffs2' or 'ubifs'
 rootfs_type=ubifs
 rootfsimage=root.$rootfs_type
 
-#kernelimage=zImage
-kernelimage=uImage
+kernelimage=zImage
+#kernelimage=uImage
 #kernelimage=Image
 #kernelimage=Image.lzo
 
diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
index 331f122..958301d 100644
--- a/arch/arm/configs/pm9g45_defconfig
+++ b/arch/arm/configs/pm9g45_defconfig
@@ -1,36 +1,52 @@
 CONFIG_ARCH_AT91SAM9G45=y
 CONFIG_MACH_PM9G45=y
 CONFIG_AEABI=y
+# CONFIG_CMD_ARM_CPUINFO is not set
+CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
+CONFIG_PBL_IMAGE=y
+CONFIG_MMU=y
+CONFIG_BAREBOX_MAX_IMAGE_SIZE=0x40000
+CONFIG_MALLOC_TLSF=y
 CONFIG_LONGHELP=y
+CONFIG_GLOB=y
+CONFIG_GLOB_SORT=y
+CONFIG_HUSH_FANCY_PROMPT=y
 CONFIG_CMDLINE_EDITING=y
 CONFIG_AUTO_COMPLETE=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_SAVEENV=y
 CONFIG_CMD_EXPORT=y
 CONFIG_CMD_PRINTENV=y
 CONFIG_CMD_READLINE=y
+CONFIG_CMD_TFTP=y
+CONFIG_CMD_LOADB=y
+CONFIG_CMD_FLASH=y
+CONFIG_CMD_BOOTM_SHOW_TYPE=y
 CONFIG_CMD_BOOTM_VERBOSE=y
+CONFIG_CMD_BOOTM_INITRD=y
+CONFIG_CMD_BOOTM_OFTREE=y
+CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y
 CONFIG_CMD_UIMAGE=y
+# CONFIG_CMD_BOOTU is not set
 CONFIG_CMD_RESET=y
 CONFIG_CMD_GO=y
 CONFIG_CMD_TIMEOUT=y
 CONFIG_CMD_PARTITION=y
 CONFIG_NET=y
 CONFIG_NET_DHCP=y
+CONFIG_NET_NFS=y
 CONFIG_NET_PING=y
-CONFIG_CMD_TFTP=y
-CONFIG_FS_TFTP=y
 CONFIG_NET_RESOLV=y
 CONFIG_DRIVER_NET_MACB=y
-CONFIG_DRIVER_SPI_ATMEL=y
-CONFIG_MTD_M25P80=y
-CONFIG_MTD_SST25L=y
+# CONFIG_SPI is not set
 CONFIG_MTD=y
+# CONFIG_MTD_OOB_DEVICE is not set
 CONFIG_NAND=y
+# CONFIG_NAND_ECC_HW is not set
+# CONFIG_NAND_ECC_HW_SYNDROME is not set
+# CONFIG_NAND_ECC_HW_NONE is not set
 CONFIG_NAND_ATMEL=y
 CONFIG_UBI=y
 CONFIG_DISK_ATA=y
@@ -40,7 +56,7 @@ CONFIG_USB_OHCI_AT91=y
 CONFIG_USB_STORAGE=y
 CONFIG_MCI=y
 CONFIG_MCI_ATMEL=y
-CONFIG_EEPROM_AT25=y
+CONFIG_FS_TFTP=y
 CONFIG_FS_FAT=y
 CONFIG_FS_FAT_WRITE=y
 CONFIG_FS_FAT_LFN=y
-- 
1.7.10.4


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] pm9g45 fix
  2012-10-19  2:04 [PATCH 0/2] pm9g45 fix Jean-Christophe PLAGNIOL-VILLARD
  2012-10-19  2:07 ` [PATCH 1/2] pm9g45: fix nand partition in c code Jean-Christophe PLAGNIOL-VILLARD
@ 2012-10-23  6:35 ` Jean-Christophe PLAGNIOL-VILLARD
  2012-10-23  7:09   ` Sascha Hauer
  1 sibling, 1 reply; 7+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-23  6:35 UTC (permalink / raw)
  To: barebox

Ping
On 04:04 Fri 19 Oct     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> HI,
> 
> 	the folowing patch series fix pm9g45 so we can have the correct nand
> 	support and be able to boot as the current binary is bigger than the
> 	partition for barebox and boot a mainline kernel + dt
> 
> The following changes since commit f99ea5c9d8cfddf3a1d6b181d0dbb26e06a86d2b:
> 
>   ARM samsung S5P: Enable board support (2012-10-15 19:47:01 +0200)
> 
> are available in the git repository at:
> 
>   git://git.jcrosoft.org/barebox.git delivery/pm9g45
> 
> for you to fetch changes up to d4d6062c3177d25a1181fc987231f507b74b92a9:
> 
>   pm9g45: fix config and defconfig (2012-10-19 01:08:53 +0800)
> 
> ----------------------------------------------------------------
> Jean-Christophe PLAGNIOL-VILLARD (2):
>       pm9g45: fix nand partition in c code
>       pm9g45: fix config and defconfig
> 
>  arch/arm/boards/pm9g45/env/config |   13 ++++++++-----
>  arch/arm/boards/pm9g45/init.c     |    7 +++++--
>  arch/arm/configs/pm9g45_defconfig |   32 ++++++++++++++++++++++++--------
>  3 files changed, 37 insertions(+), 15 deletions(-)
> 
> Best Regards,
> J.
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] pm9g45 fix
  2012-10-23  6:35 ` [PATCH 0/2] pm9g45 fix Jean-Christophe PLAGNIOL-VILLARD
@ 2012-10-23  7:09   ` Sascha Hauer
  2012-10-25 16:24     ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 7+ messages in thread
From: Sascha Hauer @ 2012-10-23  7:09 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On Tue, Oct 23, 2012 at 08:35:03AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Ping

Relax. I'm still catching up my backlog.

Applied.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] pm9g45 fix
  2012-10-23  7:09   ` Sascha Hauer
@ 2012-10-25 16:24     ` Jean-Christophe PLAGNIOL-VILLARD
  2012-10-25 18:01       ` Sascha Hauer
  0 siblings, 1 reply; 7+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-25 16:24 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On 09:09 Tue 23 Oct     , Sascha Hauer wrote:
> On Tue, Oct 23, 2012 at 08:35:03AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > Ping
> 
> Relax. I'm still catching up my backlog.
I did nt see it on the tree

Best Regards,
J.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] pm9g45 fix
  2012-10-25 16:24     ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-10-25 18:01       ` Sascha Hauer
  0 siblings, 0 replies; 7+ messages in thread
From: Sascha Hauer @ 2012-10-25 18:01 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On Thu, Oct 25, 2012 at 06:24:31PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 09:09 Tue 23 Oct     , Sascha Hauer wrote:
> > On Tue, Oct 23, 2012 at 08:35:03AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > Ping
> > 
> > Relax. I'm still catching up my backlog.
> I did nt see it on the tree

I do. They are sitting in master for several days now.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-25 18:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-19  2:04 [PATCH 0/2] pm9g45 fix Jean-Christophe PLAGNIOL-VILLARD
2012-10-19  2:07 ` [PATCH 1/2] pm9g45: fix nand partition in c code Jean-Christophe PLAGNIOL-VILLARD
2012-10-19  2:07   ` [PATCH 2/2] pm9g45: fix config and defconfig Jean-Christophe PLAGNIOL-VILLARD
2012-10-23  6:35 ` [PATCH 0/2] pm9g45 fix Jean-Christophe PLAGNIOL-VILLARD
2012-10-23  7:09   ` Sascha Hauer
2012-10-25 16:24     ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-25 18:01       ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox