Skip to contentSkip to conversation

pm9g45 fix

PATCH Applied Jean-Christophe PLAGNIOL-VILLARD 2 participants 7 messages Oct 19, 2012 – Oct 25, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover pm9g45 fix

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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw

PATCH 1/2 pm9g45: fix nand partition in c code

enable bbt too

---
 arch/arm/boards/pm9g45/init.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
arch/arm/boards/pm9g45/init.c +5 -2
index 17b38d4..a12896b 100644
@@ -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));
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH 2/2 pm9g45: fix config and defconfig

- 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

---
 arch/arm/boards/pm9g45/env/config |   13 ++++++++-----
 arch/arm/configs/pm9g45_defconfig |   32 ++++++++++++++++++++++++--------
 2 files changed, 32 insertions(+), 13 deletions(-)
arch/arm/boards/pm9g45/env/config +8 -5
index 5f05e6f..18ac565 100644
@@ -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
 
arch/arm/configs/pm9g45_defconfig +24 -8
index 331f122..958301d 100644
@@ -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
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
In reply to Jean-Christophe PLAGNIOL-VILLARD

Ping

Quoted 28 lines · Jean-Christophe PLAGNIOL-VILLARD

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(-)
Quoted 7 lines

Best Regards,
J.

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Applied
#4 lore raw
Quoted 1 line · Jean-Christophe PLAGNIOL-VILLARD

Ping

Relax. I'm still catching up my backlog.

Applied.

Sascha

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#6 lore raw
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 4 lines · Sascha Hauer
Quoted 1 line · Jean-Christophe PLAGNIOL-VILLARD

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox