* [PATCH 2/3] pm9g45: enable MCI0
2012-03-01 16:21 [PATCH 1/3] pm9g45: fix Ethernet Asen Chavdarov Dimov
@ 2012-03-01 16:21 ` 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
` (3 subsequent siblings)
4 siblings, 1 reply; 26+ messages in thread
From: Asen Chavdarov Dimov @ 2012-03-01 16:21 UTC (permalink / raw)
To: barebox
FIXME: part of or no data is written. File copy ends
with message: "atmel_mci@atmel_mci0: command/data timeout"
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
---
arch/arm/boards/pm9g45/init.c | 17 ++++++++++++++++-
arch/arm/configs/pm9g45_defconfig | 34 +++++++++++++++++++++++++++++++---
2 files changed, 47 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 9eba12a..257e5e2 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -77,6 +77,21 @@ static void pm_add_device_nand(void)
at91_add_device_nand(&nand_pdata);
}
+#if defined(CONFIG_MCI_ATMEL)
+static struct atmel_mci_platform_data __initdata mci_data = {
+ .bus_width = 4,
+ .wp_pin = 0,
+ .detect_pin = AT91_PIN_PD6,
+};
+
+static void add_device_mci(void)
+{
+ at91_add_device_mci(0, &mci_data);
+}
+#else
+static void add_device_mci(void) {}
+#endif
+
static struct at91_ether_platform_data macb_pdata = {
.flags = AT91SAM_ETHER_RMII,
.phy_addr = 0,
@@ -122,8 +137,8 @@ static int pm9g45_devices_init(void)
}
phy_init();
+ add_device_mci();
pm_add_device_nand();
-
at91_add_device_eth(&macb_pdata);
devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
index f05d4de..5132ea4 100644
--- a/arch/arm/configs/pm9g45_defconfig
+++ b/arch/arm/configs/pm9g45_defconfig
@@ -69,6 +69,8 @@ CONFIG_HAS_MODULES=y
CONFIG_CMD_MEMORY=y
CONFIG_ENV_HANDLING=y
CONFIG_GENERIC_GPIO=y
+CONFIG_BLOCK=y
+CONFIG_BLOCK_WRITE=y
CONFIG_FILETYPE=y
#
@@ -290,11 +292,35 @@ CONFIG_NAND_ATMEL=y
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND_IDS=y
CONFIG_UBI=y
-# CONFIG_DISK is not set
+CONFIG_DISK=y
+CONFIG_DISK_WRITE=y
+
+#
+# drive types
+#
+# CONFIG_DISK_ATA is not set
+
+#
+# interface types
+#
+# CONFIG_DISK_INTF_PLATFORM_IDE is not set
# CONFIG_USB is not set
# CONFIG_USB_GADGET is not set
# CONFIG_VIDEO is not set
-# CONFIG_MCI is not set
+CONFIG_MCI=y
+
+#
+# --- Feature list ---
+#
+# CONFIG_MCI_STARTUP is not set
+CONFIG_MCI_INFO=y
+CONFIG_MCI_WRITE=y
+
+#
+# --- MCI host drivers ---
+#
+CONFIG_MCI_ATMEL=y
+# CONFIG_MCI_SPI is not set
CONFIG_CLKDEV_LOOKUP=y
#
@@ -319,7 +345,9 @@ CONFIG_EEPROM_AT25=y
# CONFIG_FS_CRAMFS is not set
CONFIG_FS_RAMFS=y
CONFIG_FS_DEVFS=y
-# CONFIG_FS_FAT is not set
+CONFIG_FS_FAT=y
+CONFIG_FS_FAT_WRITE=y
+CONFIG_FS_FAT_LFN=y
CONFIG_PARTITION_NEED_MTD=y
#
--
1.7.4.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH 2/3] pm9g45: enable MCI0
2012-03-01 16:21 ` [PATCH 2/3] pm9g45: enable MCI0 Asen Chavdarov Dimov
@ 2012-03-01 17:10 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 26+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-03-01 17:10 UTC (permalink / raw)
To: Asen Chavdarov Dimov; +Cc: barebox
On 18:21 Thu 01 Mar , Asen Chavdarov Dimov wrote:
> FIXME: part of or no data is written. File copy ends
> with message: "atmel_mci@atmel_mci0: command/data timeout"
>
> Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
> ---
> arch/arm/boards/pm9g45/init.c | 17 ++++++++++++++++-
> arch/arm/configs/pm9g45_defconfig | 34 +++++++++++++++++++++++++++++++---
> 2 files changed, 47 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
> index 9eba12a..257e5e2 100644
> --- a/arch/arm/boards/pm9g45/init.c
> +++ b/arch/arm/boards/pm9g45/init.c
> @@ -77,6 +77,21 @@ static void pm_add_device_nand(void)
> at91_add_device_nand(&nand_pdata);
> }
>
> +#if defined(CONFIG_MCI_ATMEL)
> +static struct atmel_mci_platform_data __initdata mci_data = {
> + .bus_width = 4,
> + .wp_pin = 0,
> + .detect_pin = AT91_PIN_PD6,
> +};
> +
> +static void add_device_mci(void)
> +{
> + at91_add_device_mci(0, &mci_data);
> +}
> +#else
> +static void add_device_mci(void) {}
please the nale of the function board specifc
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH 3/3] pm9g45: enable USB OHCI host and USB mass storage
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 16:21 ` Asen Chavdarov Dimov
2012-03-01 17:12 ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-01 17:08 ` [PATCH 1/3] pm9g45: fix Ethernet Jean-Christophe PLAGNIOL-VILLARD
` (2 subsequent siblings)
4 siblings, 1 reply; 26+ messages in thread
From: Asen Chavdarov Dimov @ 2012-03-01 16:21 UTC (permalink / raw)
To: barebox
FIXME: execute the "usb" command twice to create the /dev/disk0 device.
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
---
arch/arm/boards/pm9g45/init.c | 21 ++++++++++++++++++++-
arch/arm/configs/pm9g45_defconfig | 31 +++++++++++++++----------------
2 files changed, 35 insertions(+), 17 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 257e5e2..b26038e 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -92,6 +92,23 @@ static void add_device_mci(void)
static void add_device_mci(void) {}
#endif
+/*
+ * USB OHCI Host port
+ */
+#ifdef CONFIG_USB_OHCI_AT91
+static struct at91_usbh_data __initdata usbh_data = {
+ .ports = 2,
+ .vbus_pin = { AT91_PIN_PD0, 0x0 },
+};
+
+static void __init add_device_usbh(void)
+{
+ at91_add_device_usbh_ohci(&usbh_data);
+}
+#else
+static void __init add_device_usbh(void) {}
+#endif
+
static struct at91_ether_platform_data macb_pdata = {
.flags = AT91SAM_ETHER_RMII,
.phy_addr = 0,
@@ -123,7 +140,8 @@ static const char *periph_clocks[] __initdata = {
"pioB_clk",
"pioC_clk",
"pioDE_clk",
- "macb_clk"
+ "macb_clk",
+ "uhphs_clk"
};
static int pm9g45_devices_init(void)
@@ -140,6 +158,7 @@ static int pm9g45_devices_init(void)
add_device_mci();
pm_add_device_nand();
at91_add_device_eth(&macb_pdata);
+ add_device_usbh();
devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
dev_add_bb_dev("self_raw", "self0");
diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
index 5132ea4..1f3c780 100644
--- a/arch/arm/configs/pm9g45_defconfig
+++ b/arch/arm/configs/pm9g45_defconfig
@@ -197,7 +197,7 @@ CONFIG_CMD_CRC_CMP=y
#
# flash
#
-CONFIG_CMD_FLASH=y
+# CONFIG_CMD_FLASH is not set
CONFIG_CMD_UBI=y
#
@@ -223,15 +223,15 @@ CONFIG_CMD_HELP=y
CONFIG_CMD_DEVINFO=y
# CONFIG_CMD_GPIO is not set
# CONFIG_CMD_UNCOMPRESS is not set
-CONFIG_CMD_I2C=y
+CONFIG_CMD_USB=y
CONFIG_NET=y
CONFIG_NET_DHCP=y
# CONFIG_NET_NFS is not set
CONFIG_NET_PING=y
-# CONFIG_NET_TFTP is not set
-# CONFIG_NET_TFTP_PUSH is not set
+CONFIG_NET_TFTP=y
+CONFIG_NET_TFTP_PUSH=y
# CONFIG_NET_NETCONSOLE is not set
-# CONFIG_NET_RESOLV is not set
+CONFIG_NET_RESOLV=y
#
# Drivers
@@ -252,17 +252,14 @@ CONFIG_MIIDEV=y
# CONFIG_DRIVER_NET_SMC911X is not set
# CONFIG_DRIVER_NET_SMC91111 is not set
CONFIG_DRIVER_NET_MACB=y
+# CONFIG_NET_USB is not set
#
# SPI drivers
#
CONFIG_SPI=y
CONFIG_DRIVER_SPI_ATMEL=y
-CONFIG_I2C=y
-
-#
-# I2C Hardware Bus support
-#
+# CONFIG_I2C is not set
#
# flash drivers
@@ -298,13 +295,19 @@ CONFIG_DISK_WRITE=y
#
# drive types
#
-# CONFIG_DISK_ATA is not set
+CONFIG_DISK_ATA=y
#
# interface types
#
# CONFIG_DISK_INTF_PLATFORM_IDE is not set
-# CONFIG_USB is not set
+CONFIG_USB=y
+# CONFIG_USB_EHCI is not set
+CONFIG_USB_OHCI=y
+CONFIG_USB_OHCI_AT91=y
+# CONFIG_USB_ISP1504 is not set
+# CONFIG_USB_TWL4030 is not set
+CONFIG_USB_STORAGE=y
# CONFIG_USB_GADGET is not set
# CONFIG_VIDEO is not set
CONFIG_MCI=y
@@ -327,10 +330,6 @@ CONFIG_CLKDEV_LOOKUP=y
# MFD
#
# CONFIG_I2C_MC13892 is not set
-# CONFIG_I2C_MC34704 is not set
-# CONFIG_I2C_MC9SDZ60 is not set
-# CONFIG_I2C_LP3972 is not set
-# CONFIG_I2C_TWL6030 is not set
# CONFIG_DRIVER_SPI_MC13783 is not set
# CONFIG_LED is not set
--
1.7.4.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH 3/3] pm9g45: enable USB OHCI host and USB mass storage
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
0 siblings, 1 reply; 26+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-03-01 17:12 UTC (permalink / raw)
To: Asen Chavdarov Dimov; +Cc: barebox
On 18:21 Thu 01 Mar , Asen Chavdarov Dimov wrote:
> FIXME: execute the "usb" command twice to create the /dev/disk0 device.
>
> Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
> ---
> arch/arm/boards/pm9g45/init.c | 21 ++++++++++++++++++++-
> arch/arm/configs/pm9g45_defconfig | 31 +++++++++++++++----------------
> 2 files changed, 35 insertions(+), 17 deletions(-)
>
> diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
> index 257e5e2..b26038e 100644
> --- a/arch/arm/boards/pm9g45/init.c
> +++ b/arch/arm/boards/pm9g45/init.c
> @@ -92,6 +92,23 @@ static void add_device_mci(void)
> static void add_device_mci(void) {}
> #endif
>
> +/*
> + * USB OHCI Host port
> + */
> +#ifdef CONFIG_USB_OHCI_AT91
> +static struct at91_usbh_data __initdata usbh_data = {
> + .ports = 2,
> + .vbus_pin = { AT91_PIN_PD0, 0x0 },
> +};
> +
> +static void __init add_device_usbh(void)
> +{
> + at91_add_device_usbh_ohci(&usbh_data);
> +}
> +#else
> +static void __init add_device_usbh(void) {}
> +#endif
> +
> static struct at91_ether_platform_data macb_pdata = {
> .flags = AT91SAM_ETHER_RMII,
> .phy_addr = 0,
> @@ -123,7 +140,8 @@ static const char *periph_clocks[] __initdata = {
> "pioB_clk",
> "pioC_clk",
> "pioDE_clk",
> - "macb_clk"
> + "macb_clk",
> + "uhphs_clk"
no this is done automaticaly
> };
>
> static int pm9g45_devices_init(void)
> @@ -140,6 +158,7 @@ static int pm9g45_devices_init(void)
> add_device_mci();
> pm_add_device_nand();
> at91_add_device_eth(&macb_pdata);
> + add_device_usbh();
>
> devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
> dev_add_bb_dev("self_raw", "self0");
> diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
> index 5132ea4..1f3c780 100644
> --- a/arch/arm/configs/pm9g45_defconfig
> +++ b/arch/arm/configs/pm9g45_defconfig
> @@ -197,7 +197,7 @@ CONFIG_CMD_CRC_CMP=y
> #
> # flash
> #
> -CONFIG_CMD_FLASH=y
> +# CONFIG_CMD_FLASH is not set
why this?
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH 3/3] pm9g45: enable USB OHCI host and USB mass storage
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
0 siblings, 1 reply; 26+ messages in thread
From: RONETIX - Asen Dimov @ 2012-03-02 15:20 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox
Hi Jean-Christophe,
On 03/01/2012 07:12 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
...
> diff --git a/arch/arm/configs/pm9g45_defconfig
> b/arch/arm/configs/pm9g45_defconfig
>> index 5132ea4..1f3c780 100644
>> --- a/arch/arm/configs/pm9g45_defconfig
>> +++ b/arch/arm/configs/pm9g45_defconfig
>> @@ -197,7 +197,7 @@ CONFIG_CMD_CRC_CMP=y
>> #
>> # flash
>> #
>> -CONFIG_CMD_FLASH=y
>> +# CONFIG_CMD_FLASH is not set
> why this?
>
there is no NOR flash on the pm9g45 board.
> Best Regards,
> J.
Regards,
Asen
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH 3/3] pm9g45: enable USB OHCI host and USB mass storage
2012-03-02 15:20 ` RONETIX - Asen Dimov
@ 2012-03-02 17:13 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 26+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-03-02 17:13 UTC (permalink / raw)
To: RONETIX - Asen Dimov; +Cc: barebox
On 17:20 Fri 02 Mar , RONETIX - Asen Dimov wrote:
> Hi Jean-Christophe,
>
> On 03/01/2012 07:12 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> ...
> >diff --git a/arch/arm/configs/pm9g45_defconfig
> >b/arch/arm/configs/pm9g45_defconfig
> >>index 5132ea4..1f3c780 100644
> >>--- a/arch/arm/configs/pm9g45_defconfig
> >>+++ b/arch/arm/configs/pm9g45_defconfig
> >>@@ -197,7 +197,7 @@ CONFIG_CMD_CRC_CMP=y
> >> #
> >> # flash
> >> #
> >>-CONFIG_CMD_FLASH=y
> >>+# CONFIG_CMD_FLASH is not set
> >why this?
> >
> there is no NOR flash on the pm9g45 board.
so please update the defconfig in an other patch
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH 1/3] pm9g45: fix Ethernet
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 16:21 ` [PATCH 3/3] pm9g45: enable USB OHCI host and USB mass storage Asen Chavdarov Dimov
@ 2012-03-01 17:08 ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-02 16:55 ` [PATCH v2 1/4] pm9g45: boot from NAND Asen Chavdarov Dimov
2012-03-21 16:27 ` [PATCH v3 " Asen Chavdarov Dimov
4 siblings, 0 replies; 26+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-03-01 17:08 UTC (permalink / raw)
To: Asen Chavdarov Dimov; +Cc: barebox
On 18:21 Thu 01 Mar , Asen Chavdarov Dimov wrote:
> Enable PHY, MACB and PIOs clocks.
>
> Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
> ---
> arch/arm/boards/pm9g45/init.c | 31 +++++++++++++++++++++++++++++++
> 1 files changed, 31 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
> index 480c751..9eba12a 100644
> --- a/arch/arm/boards/pm9g45/init.c
> +++ b/arch/arm/boards/pm9g45/init.c
> @@ -82,6 +82,19 @@ static struct at91_ether_platform_data macb_pdata = {
> .phy_addr = 0,
> };
>
> +static int phy_init(void)
please keep the function name with pm9g45_xx
> +{
> + /*
> + * PD2 enables the 50MHz oscillator for Ethernet PHY
> + * 1 - enable
> + * 0 - disable
> + */
> + at91_set_gpio_output(AT91_PIN_PD2, 1);
> + at91_set_gpio_value(AT91_PIN_PD2, 1);
> +
> + return 0;
you do not check the return so drop it
> +}
> +
> static int pm9g45_mem_init(void)
> {
> at91_add_device_sdram(128 * 1024 * 1024);
> @@ -90,9 +103,27 @@ static int pm9g45_mem_init(void)
> }
> mem_initcall(pm9g45_mem_init);
>
> +static const char *periph_clocks[] __initdata = {
> + "pioA_clk",
> + "pioB_clk",
> + "pioC_clk",
> + "pioDE_clk",
> + "macb_clk"
> +};
> +
> static int pm9g45_devices_init(void)
> {
> + struct clk *clk;
> + int i;
> +
> + for (i = 0; i < ARRAY_SIZE(periph_clocks); i++) {
> + clk = clk_get(NULL, periph_clocks[i]);
> + clk_enable(clk);
> + }
no need this done automaticaly
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH v2 1/4] pm9g45: boot from NAND
2012-03-01 16:21 [PATCH 1/3] pm9g45: fix Ethernet Asen Chavdarov Dimov
` (2 preceding siblings ...)
2012-03-01 17:08 ` [PATCH 1/3] pm9g45: fix Ethernet Jean-Christophe PLAGNIOL-VILLARD
@ 2012-03-02 16:55 ` Asen Chavdarov Dimov
2012-03-02 16:55 ` [PATCH v2 2/4] pm9g45: fix Ethernet Asen Chavdarov Dimov
` (3 more replies)
2012-03-21 16:27 ` [PATCH v3 " Asen Chavdarov Dimov
4 siblings, 4 replies; 26+ messages in thread
From: Asen Chavdarov Dimov @ 2012-03-02 16:55 UTC (permalink / raw)
To: barebox
- 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
---
arch/arm/boards/pm9g45/env/config | 8 +-
arch/arm/configs/pm9g45_defconfig | 339 +++++++++++++++++++++++++++++++++---
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)"
+rootfs_mtdblock_nand=4
autoboot_timeout=3
diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
index bf9af22..f05d4de 100644
--- a/arch/arm/configs/pm9g45_defconfig
+++ b/arch/arm/configs/pm9g45_defconfig
@@ -1,55 +1,336 @@
+#
+# Automatically generated file; DO NOT EDIT.
+# Linux/arm 2012.02.0 Barebox Configuration
+#
+# CONFIG_BOARD_LINKER_SCRIPT is not set
+CONFIG_GENERIC_LINKER_SCRIPT=y
+CONFIG_ARM=y
+CONFIG_ARM_LINUX=y
+
+#
+# System Type
+#
+CONFIG_ARCH_AT91=y
+# CONFIG_ARCH_EP93XX is not set
+# CONFIG_ARCH_IMX is not set
+# CONFIG_ARCH_MXS is not set
+# CONFIG_ARCH_NETX is not set
+# CONFIG_ARCH_NOMADIK is not set
+# CONFIG_ARCH_OMAP is not set
+# CONFIG_ARCH_PXA is not set
+# CONFIG_ARCH_S3C24xx is not set
+# CONFIG_ARCH_VERSATILE is not set
+
+#
+# Processor Type
+#
+CONFIG_CPU_32=y
+CONFIG_CPU_ARM926T=y
+CONFIG_CPU_32v5=y
+
+#
+# processor features
+#
+# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
+CONFIG_ARCH_TEXT_BASE=0x73f00000
+CONFIG_BOARDINFO="Ronetix PM9G45"
+CONFIG_AT91SAM9G45_RESET=y
+
+#
+# Atmel AT91 System-on-Chip
+#
+# CONFIG_ARCH_AT91RM9200 is not set
+# CONFIG_ARCH_AT91SAM9260 is not set
+# CONFIG_ARCH_AT91SAM9261 is not set
+# CONFIG_ARCH_AT91SAM9263 is not set
+# CONFIG_ARCH_AT91SAM9G10 is not set
+# CONFIG_ARCH_AT91SAM9G20 is not set
CONFIG_ARCH_AT91SAM9G45=y
+CONFIG_ARCH_BAREBOX_MAX_BARE_INIT_SIZE=0xF000
+# CONFIG_MACH_AT91SAM9M10G45EK is not set
CONFIG_MACH_PM9G45=y
-CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
-CONFIG_PROMPT="pm9g45:"
+
+#
+# AT91 Board Options
+#
+CONFIG_AEABI=y
+
+#
+# Arm specific settings
+#
+CONFIG_CMD_ARM_CPUINFO=y
+# CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS is not set
+CONFIG_ARM_EXCEPTIONS=y
+# CONFIG_ARM_UNWIND is not set
+CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
+CONFIG_GREGORIAN_CALENDER=y
+CONFIG_HAS_KALLSYMS=y
+CONFIG_HAS_MODULES=y
+CONFIG_CMD_MEMORY=y
+CONFIG_ENV_HANDLING=y
+CONFIG_GENERIC_GPIO=y
+CONFIG_FILETYPE=y
+
+#
+# General Settings
+#
+CONFIG_LOCALVERSION=""
+CONFIG_LOCALVERSION_AUTO=y
+CONFIG_BANNER=y
+CONFIG_ENVIRONMENT_VARIABLES=y
+
+#
+# memory layout
+#
+# CONFIG_MMU is not set
+CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y
+CONFIG_TEXT_BASE=0x73f00000
+CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
+CONFIG_BAREBOX_MAX_BARE_INIT_SIZE=0xffffffff
+CONFIG_HAVE_CONFIGURABLE_MEMORY_LAYOUT=y
+CONFIG_MEMORY_LAYOUT_DEFAULT=y
+# CONFIG_MEMORY_LAYOUT_FIXED is not set
+CONFIG_STACK_SIZE=0x8000
+CONFIG_MALLOC_SIZE=0x400000
+# CONFIG_BROKEN is not set
+# CONFIG_EXPERIMENTAL is not set
+CONFIG_MALLOC_DLMALLOC=y
+# CONFIG_MALLOC_TLSF is not set
+# CONFIG_KALLSYMS is not set
+CONFIG_PROMPT="barebox:"
+CONFIG_BAUDRATE=115200
CONFIG_LONGHELP=y
-CONFIG_GLOB=y
-CONFIG_PROMPT_HUSH_PS2="y"
-CONFIG_HUSH_FANCY_PROMPT=y
+CONFIG_CBSIZE=1024
+CONFIG_MAXARGS=16
+CONFIG_SHELL_HUSH=y
+# CONFIG_SHELL_SIMPLE is not set
+# CONFIG_GLOB is not set
+CONFIG_PROMPT_HUSH_PS2="> "
+# CONFIG_HUSH_FANCY_PROMPT is not set
+CONFIG_HUSH_GETOPT=y
CONFIG_CMDLINE_EDITING=y
CONFIG_AUTO_COMPLETE=y
-CONFIG_MENU=y
-CONFIG_PASSWD_SUM_SHA1=y
+# CONFIG_MENU is not set
+# CONFIG_PASSWORD is not set
+CONFIG_DYNAMIC_CRC_TABLE=y
+CONFIG_ERRNO_MESSAGES=y
+CONFIG_TIMESTAMP=y
+CONFIG_CONSOLE_FULL=y
+CONFIG_CONSOLE_ACTIVATE_FIRST=y
CONFIG_PARTITION=y
+CONFIG_PARTITION_DISK=y
+CONFIG_PARTITION_DISK_DOS=y
+CONFIG_DEFAULT_ENVIRONMENT=y
CONFIG_DEFAULT_ENVIRONMENT_GENERIC=y
CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/pm9g45/env"
+CONFIG_POLLER=y
+
+#
+# Debugging
+#
+# CONFIG_DEBUG_INFO is not set
+# CONFIG_ENABLE_FLASH_NOISE is not set
+# CONFIG_ENABLE_PARTITION_NOISE is not set
+CONFIG_ENABLE_DEVICE_NOISE=y
+CONFIG_COMMAND_SUPPORT=y
+
+#
+# commands
+#
+
+#
+# scripting
+#
CONFIG_CMD_EDIT=y
-CONFIG_CMD_SLEEP=y
+# CONFIG_CMD_SLEEP is not set
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_TRUE=y
+CONFIG_CMD_FALSE=y
+# CONFIG_CMD_LOGIN is not set
+# CONFIG_CMD_PASSWD is not set
+# CONFIG_CMD_TIME is not set
+
+#
+# file commands
+#
+CONFIG_CMD_LS=y
+CONFIG_CMD_RM=y
+CONFIG_CMD_CAT=y
+CONFIG_CMD_MKDIR=y
+CONFIG_CMD_RMDIR=y
+CONFIG_CMD_CP=y
+CONFIG_CMD_PWD=y
+CONFIG_CMD_CD=y
+CONFIG_CMD_MOUNT=y
+CONFIG_CMD_UMOUNT=y
+CONFIG_CMD_NAND=y
+# CONFIG_CMD_NANDTEST is not set
+
+#
+# console
+#
+CONFIG_CMD_CLEAR=y
+CONFIG_CMD_ECHO=y
+# CONFIG_CMD_ECHO_E is not set
+
+#
+# memory
+#
+# CONFIG_CMD_LOADB is not set
+# CONFIG_CMD_LOADS is not set
+# CONFIG_CMD_MEMINFO is not set
+# CONFIG_CMD_IOMEM is not set
+CONFIG_CMD_CRC=y
+CONFIG_CMD_CRC_CMP=y
+# CONFIG_CMD_MD5SUM is not set
+# CONFIG_CMD_SHA1SUM is not set
+# CONFIG_CMD_SHA256SUM is not set
+# CONFIG_CMD_SHA224SUM is not set
+# CONFIG_CMD_MTEST is not set
+
+#
+# flash
+#
CONFIG_CMD_FLASH=y
-CONFIG_CMD_BOOTM_ZLIB=y
-CONFIG_CMD_BOOTM_BZLIB=y
-CONFIG_CMD_BOOTM_SHOW_TYPE=y
+CONFIG_CMD_UBI=y
+
+#
+# booting
+#
+CONFIG_CMD_BOOTM=y
+# CONFIG_CMD_BOOTM_SHOW_TYPE is not set
+CONFIG_CMD_BOOTM_VERBOSE=y
+# CONFIG_CMD_BOOTM_INITRD is not set
+# CONFIG_CMD_BOOTM_OFTREE is not set
+CONFIG_CMD_UIMAGE=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_BOOTU=y
CONFIG_CMD_RESET=y
CONFIG_CMD_GO=y
+# CONFIG_CMD_OFTREE is not set
CONFIG_CMD_TIMEOUT=y
CONFIG_CMD_PARTITION=y
-CONFIG_CMD_GPIO=y
-CONFIG_CMD_UNCOMPRESS=y
+CONFIG_CMD_TEST=y
+CONFIG_CMD_VERSION=y
+CONFIG_CMD_HELP=y
+# CONFIG_CMD_MAGICVAR is not set
+CONFIG_CMD_DEVINFO=y
+# CONFIG_CMD_GPIO is not set
+# CONFIG_CMD_UNCOMPRESS is not set
+CONFIG_CMD_I2C=y
CONFIG_NET=y
CONFIG_NET_DHCP=y
-CONFIG_NET_NFS=y
+# CONFIG_NET_NFS is not set
CONFIG_NET_PING=y
-CONFIG_NET_TFTP=y
-CONFIG_NET_TFTP_PUSH=y
-CONFIG_NET_NETCONSOLE=y
-CONFIG_NET_RESOLV=y
+# CONFIG_NET_TFTP is not set
+# CONFIG_NET_TFTP_PUSH is not set
+# CONFIG_NET_NETCONSOLE is not set
+# CONFIG_NET_RESOLV is not set
+
+#
+# Drivers
+#
+
+#
+# serial drivers
+#
+# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
+# CONFIG_DRIVER_SERIAL_NS16550 is not set
+CONFIG_DRIVER_SERIAL_ATMEL=y
+CONFIG_HAS_MACB=y
+CONFIG_MIIDEV=y
+
+#
+# Network drivers
+#
+# CONFIG_DRIVER_NET_SMC911X is not set
+# CONFIG_DRIVER_NET_SMC91111 is not set
CONFIG_DRIVER_NET_MACB=y
-# CONFIG_SPI is not set
-CONFIG_DRIVER_CFI=y
-CONFIG_CFI_BUFFER_WRITE=y
+
+#
+# SPI drivers
+#
+CONFIG_SPI=y
+CONFIG_DRIVER_SPI_ATMEL=y
+CONFIG_I2C=y
+
+#
+# I2C Hardware Bus support
+#
+
+#
+# flash drivers
+#
+# CONFIG_DRIVER_CFI is not set
+CONFIG_MTD_M25P80=y
+CONFIG_MTD_SST25L=y
CONFIG_MTD=y
+CONFIG_MTD_WRITE=y
+CONFIG_MTD_OOB_DEVICE=y
+# CONFIG_MTD_RAW_DEVICE is not set
+
+#
+# Self contained MTD devices
+#
+# CONFIG_MTD_DOCG3 is not set
CONFIG_NAND=y
+CONFIG_NAND_ECC_SOFT=y
+CONFIG_NAND_ECC_HW=y
+CONFIG_NAND_ECC_HW_SYNDROME=y
+CONFIG_NAND_ECC_HW_NONE=y
+CONFIG_NAND_INFO=y
+CONFIG_NAND_READ_OOB=y
+CONFIG_NAND_BBT=y
+CONFIG_NAND_ATMEL=y
+# CONFIG_MTD_NAND_VERIFY_WRITE is not set
+# CONFIG_MTD_NAND_ECC_SMC is not set
+CONFIG_MTD_NAND_IDS=y
CONFIG_UBI=y
+# CONFIG_DISK is not set
+# CONFIG_USB is not set
+# CONFIG_USB_GADGET is not set
+# CONFIG_VIDEO is not set
+# CONFIG_MCI is not set
+CONFIG_CLKDEV_LOOKUP=y
+
+#
+# MFD
+#
+# CONFIG_I2C_MC13892 is not set
+# CONFIG_I2C_MC34704 is not set
+# CONFIG_I2C_MC9SDZ60 is not set
+# CONFIG_I2C_LP3972 is not set
+# CONFIG_I2C_TWL6030 is not set
+# CONFIG_DRIVER_SPI_MC13783 is not set
+# CONFIG_LED is not set
+
+#
+# EEPROM support
+#
+CONFIG_EEPROM_AT25=y
+
+#
+# Filesystem support
+#
+# CONFIG_FS_CRAMFS is not set
+CONFIG_FS_RAMFS=y
+CONFIG_FS_DEVFS=y
+# CONFIG_FS_FAT is not set
+CONFIG_PARTITION_NEED_MTD=y
+
+#
+# Library routines
+#
+CONFIG_PARAMETER=y
+CONFIG_UNCOMPRESS=y
+# CONFIG_ZLIB is not set
+# CONFIG_BZLIB is not set
+# CONFIG_GENERIC_FIND_NEXT_BIT is not set
+# CONFIG_PROCESS_ESCAPE_SEQUENCE is not set
+# CONFIG_LZO_DECOMPRESS is not set
+CONFIG_CRC32=y
+# CONFIG_DIGEST is not set
--
1.7.4.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH v2 2/4] pm9g45: fix Ethernet
2012-03-02 16:55 ` [PATCH v2 1/4] pm9g45: boot from NAND Asen Chavdarov Dimov
@ 2012-03-02 16:55 ` 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
` (2 subsequent siblings)
3 siblings, 1 reply; 26+ messages in thread
From: Asen Chavdarov Dimov @ 2012-03-02 16:55 UTC (permalink / raw)
To: barebox
Enable PHY clock.
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
---
since v1:
- phy_init changed to pm9g45_phy_init
- pm9g45_phy_init becamos void and "return 0" is removed
- removed manual clock enabling
---
arch/arm/boards/pm9g45/init.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 480c751..92d010f 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -82,6 +82,17 @@ static struct at91_ether_platform_data macb_pdata = {
.phy_addr = 0,
};
+static void pm9g45_phy_init(void)
+{
+ /*
+ * PD2 enables the 50MHz oscillator for Ethernet PHY
+ * 1 - enable
+ * 0 - disable
+ */
+ at91_set_gpio_output(AT91_PIN_PD2, 1);
+ at91_set_gpio_value(AT91_PIN_PD2, 1);
+}
+
static int pm9g45_mem_init(void)
{
at91_add_device_sdram(128 * 1024 * 1024);
@@ -92,7 +103,9 @@ mem_initcall(pm9g45_mem_init);
static int pm9g45_devices_init(void)
{
+
pm_add_device_nand();
+ pm9g45_phy_init();
at91_add_device_eth(&macb_pdata);
devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
--
1.7.4.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 2/4] pm9g45: fix Ethernet
2012-03-02 16:55 ` [PATCH v2 2/4] pm9g45: fix Ethernet Asen Chavdarov Dimov
@ 2012-03-02 17:19 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 26+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-03-02 17:19 UTC (permalink / raw)
To: Asen Chavdarov Dimov; +Cc: barebox
On 18:55 Fri 02 Mar , Asen Chavdarov Dimov wrote:
> Enable PHY clock.
>
> Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
> ---
> since v1:
> - phy_init changed to pm9g45_phy_init
> - pm9g45_phy_init becamos void and "return 0" is removed
> - removed manual clock enabling
> ---
> arch/arm/boards/pm9g45/init.c | 13 +++++++++++++
> 1 files changed, 13 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
> index 480c751..92d010f 100644
> --- a/arch/arm/boards/pm9g45/init.c
> +++ b/arch/arm/boards/pm9g45/init.c
> @@ -82,6 +82,17 @@ static struct at91_ether_platform_data macb_pdata = {
> .phy_addr = 0,
> };
>
> +static void pm9g45_phy_init(void)
> +{
> + /*
> + * PD2 enables the 50MHz oscillator for Ethernet PHY
> + * 1 - enable
> + * 0 - disable
> + */
> + at91_set_gpio_output(AT91_PIN_PD2, 1);
> + at91_set_gpio_value(AT91_PIN_PD2, 1);
> +}
> +
> static int pm9g45_mem_init(void)
> {
> at91_add_device_sdram(128 * 1024 * 1024);
> @@ -92,7 +103,9 @@ mem_initcall(pm9g45_mem_init);
>
> static int pm9g45_devices_init(void)
> {
> +
please drop the empty line
otherwise
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH v2 3/4] pm9g45: enable MCI0
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 16:55 ` 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:18 ` [PATCH v2 1/4] pm9g45: boot from NAND Jean-Christophe PLAGNIOL-VILLARD
3 siblings, 1 reply; 26+ messages in thread
From: Asen Chavdarov Dimov @ 2012-03-02 16:55 UTC (permalink / raw)
To: barebox
FIXME: part of or no data is written. File copy ends
with message: "atmel_mci@atmel_mci0: command/data timeout"
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
---
since v1:
add_device_mci renamed to pm9g45_add_device_mci
---
arch/arm/boards/pm9g45/init.c | 16 ++++++++++++++++
arch/arm/configs/pm9g45_defconfig | 34 +++++++++++++++++++++++++++++++---
2 files changed, 47 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 92d010f..79a0128 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -77,6 +77,21 @@ static void pm_add_device_nand(void)
at91_add_device_nand(&nand_pdata);
}
+#if defined(CONFIG_MCI_ATMEL)
+static struct atmel_mci_platform_data __initdata mci_data = {
+ .bus_width = 4,
+ .wp_pin = 0,
+ .detect_pin = AT91_PIN_PD6,
+};
+
+static void pm9g45_add_device_mci(void)
+{
+ at91_add_device_mci(0, &mci_data);
+}
+#else
+static void pm9g45_add_device_mci(void) {}
+#endif
+
static struct at91_ether_platform_data macb_pdata = {
.flags = AT91SAM_ETHER_RMII,
.phy_addr = 0,
@@ -105,6 +120,7 @@ static int pm9g45_devices_init(void)
{
pm_add_device_nand();
+ pm9g45_add_device_mci();
pm9g45_phy_init();
at91_add_device_eth(&macb_pdata);
diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
index f05d4de..5132ea4 100644
--- a/arch/arm/configs/pm9g45_defconfig
+++ b/arch/arm/configs/pm9g45_defconfig
@@ -69,6 +69,8 @@ CONFIG_HAS_MODULES=y
CONFIG_CMD_MEMORY=y
CONFIG_ENV_HANDLING=y
CONFIG_GENERIC_GPIO=y
+CONFIG_BLOCK=y
+CONFIG_BLOCK_WRITE=y
CONFIG_FILETYPE=y
#
@@ -290,11 +292,35 @@ CONFIG_NAND_ATMEL=y
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND_IDS=y
CONFIG_UBI=y
-# CONFIG_DISK is not set
+CONFIG_DISK=y
+CONFIG_DISK_WRITE=y
+
+#
+# drive types
+#
+# CONFIG_DISK_ATA is not set
+
+#
+# interface types
+#
+# CONFIG_DISK_INTF_PLATFORM_IDE is not set
# CONFIG_USB is not set
# CONFIG_USB_GADGET is not set
# CONFIG_VIDEO is not set
-# CONFIG_MCI is not set
+CONFIG_MCI=y
+
+#
+# --- Feature list ---
+#
+# CONFIG_MCI_STARTUP is not set
+CONFIG_MCI_INFO=y
+CONFIG_MCI_WRITE=y
+
+#
+# --- MCI host drivers ---
+#
+CONFIG_MCI_ATMEL=y
+# CONFIG_MCI_SPI is not set
CONFIG_CLKDEV_LOOKUP=y
#
@@ -319,7 +345,9 @@ CONFIG_EEPROM_AT25=y
# CONFIG_FS_CRAMFS is not set
CONFIG_FS_RAMFS=y
CONFIG_FS_DEVFS=y
-# CONFIG_FS_FAT is not set
+CONFIG_FS_FAT=y
+CONFIG_FS_FAT_WRITE=y
+CONFIG_FS_FAT_LFN=y
CONFIG_PARTITION_NEED_MTD=y
#
--
1.7.4.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 3/4] pm9g45: enable MCI0
2012-03-02 16:55 ` [PATCH v2 3/4] pm9g45: enable MCI0 Asen Chavdarov Dimov
@ 2012-03-02 17:21 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 26+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-03-02 17:21 UTC (permalink / raw)
To: Asen Chavdarov Dimov; +Cc: barebox
On 18:55 Fri 02 Mar , Asen Chavdarov Dimov wrote:
> FIXME: part of or no data is written. File copy ends
> with message: "atmel_mci@atmel_mci0: command/data timeout"
>
> Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
> ---
> since v1:
> add_device_mci renamed to pm9g45_add_device_mci
> ---
> arch/arm/boards/pm9g45/init.c | 16 ++++++++++++++++
> arch/arm/configs/pm9g45_defconfig | 34 +++++++++++++++++++++++++++++++---
use savedefconfig
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH v2 4/4] pm9g45: enable USB OHCI host and USB mass storage
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 16:55 ` [PATCH v2 3/4] pm9g45: enable MCI0 Asen Chavdarov Dimov
@ 2012-03-02 16:55 ` 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
3 siblings, 1 reply; 26+ messages in thread
From: Asen Chavdarov Dimov @ 2012-03-02 16:55 UTC (permalink / raw)
To: barebox
FIXME: execute the "usb" command twice to create the /dev/disk0 device.
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
---
since v1:
- add_device_usbh renamed to pm9g45_add_device_usbh
- skipped manual enabling of clocks
---
arch/arm/boards/pm9g45/init.c | 18 ++++++++++++++++++
arch/arm/configs/pm9g45_defconfig | 31 +++++++++++++++----------------
2 files changed, 33 insertions(+), 16 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 79a0128..88a62cb 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -92,6 +92,23 @@ static void pm9g45_add_device_mci(void)
static void pm9g45_add_device_mci(void) {}
#endif
+/*
+ * USB OHCI Host port
+ */
+#ifdef CONFIG_USB_OHCI_AT91
+static struct at91_usbh_data __initdata usbh_data = {
+ .ports = 2,
+ .vbus_pin = { AT91_PIN_PD0, 0x0 },
+};
+
+static void __init pm9g45_add_device_usbh(void)
+{
+ at91_add_device_usbh_ohci(&usbh_data);
+}
+#else
+static void __init pm9g45_add_device_usbh(void) {}
+#endif
+
static struct at91_ether_platform_data macb_pdata = {
.flags = AT91SAM_ETHER_RMII,
.phy_addr = 0,
@@ -123,6 +140,7 @@ static int pm9g45_devices_init(void)
pm9g45_add_device_mci();
pm9g45_phy_init();
at91_add_device_eth(&macb_pdata);
+ pm9g45_add_device_usbh();
devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
dev_add_bb_dev("self_raw", "self0");
diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
index 5132ea4..1f3c780 100644
--- a/arch/arm/configs/pm9g45_defconfig
+++ b/arch/arm/configs/pm9g45_defconfig
@@ -197,7 +197,7 @@ CONFIG_CMD_CRC_CMP=y
#
# flash
#
-CONFIG_CMD_FLASH=y
+# CONFIG_CMD_FLASH is not set
CONFIG_CMD_UBI=y
#
@@ -223,15 +223,15 @@ CONFIG_CMD_HELP=y
CONFIG_CMD_DEVINFO=y
# CONFIG_CMD_GPIO is not set
# CONFIG_CMD_UNCOMPRESS is not set
-CONFIG_CMD_I2C=y
+CONFIG_CMD_USB=y
CONFIG_NET=y
CONFIG_NET_DHCP=y
# CONFIG_NET_NFS is not set
CONFIG_NET_PING=y
-# CONFIG_NET_TFTP is not set
-# CONFIG_NET_TFTP_PUSH is not set
+CONFIG_NET_TFTP=y
+CONFIG_NET_TFTP_PUSH=y
# CONFIG_NET_NETCONSOLE is not set
-# CONFIG_NET_RESOLV is not set
+CONFIG_NET_RESOLV=y
#
# Drivers
@@ -252,17 +252,14 @@ CONFIG_MIIDEV=y
# CONFIG_DRIVER_NET_SMC911X is not set
# CONFIG_DRIVER_NET_SMC91111 is not set
CONFIG_DRIVER_NET_MACB=y
+# CONFIG_NET_USB is not set
#
# SPI drivers
#
CONFIG_SPI=y
CONFIG_DRIVER_SPI_ATMEL=y
-CONFIG_I2C=y
-
-#
-# I2C Hardware Bus support
-#
+# CONFIG_I2C is not set
#
# flash drivers
@@ -298,13 +295,19 @@ CONFIG_DISK_WRITE=y
#
# drive types
#
-# CONFIG_DISK_ATA is not set
+CONFIG_DISK_ATA=y
#
# interface types
#
# CONFIG_DISK_INTF_PLATFORM_IDE is not set
-# CONFIG_USB is not set
+CONFIG_USB=y
+# CONFIG_USB_EHCI is not set
+CONFIG_USB_OHCI=y
+CONFIG_USB_OHCI_AT91=y
+# CONFIG_USB_ISP1504 is not set
+# CONFIG_USB_TWL4030 is not set
+CONFIG_USB_STORAGE=y
# CONFIG_USB_GADGET is not set
# CONFIG_VIDEO is not set
CONFIG_MCI=y
@@ -327,10 +330,6 @@ CONFIG_CLKDEV_LOOKUP=y
# MFD
#
# CONFIG_I2C_MC13892 is not set
-# CONFIG_I2C_MC34704 is not set
-# CONFIG_I2C_MC9SDZ60 is not set
-# CONFIG_I2C_LP3972 is not set
-# CONFIG_I2C_TWL6030 is not set
# CONFIG_DRIVER_SPI_MC13783 is not set
# CONFIG_LED is not set
--
1.7.4.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 1/4] pm9g45: boot from NAND
2012-03-02 16:55 ` [PATCH v2 1/4] pm9g45: boot from NAND Asen Chavdarov Dimov
` (2 preceding siblings ...)
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:18 ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-08 11:37 ` RONETIX - Asen Dimov
3 siblings, 1 reply; 26+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-03-02 17:18 UTC (permalink / raw)
To: Asen Chavdarov Dimov; +Cc: barebox
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@ronetix.at>
> ---
> 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
> 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
why env the 1664k?
Best Regards,
J.
> +rootfs_mtdblock_nand=4
>
> autoboot_timeout=3
>
> diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
> index bf9af22..f05d4de 100644
> --- a/arch/arm/configs/pm9g45_defconfig
> +++ b/arch/arm/configs/pm9g45_defconfig
> @@ -1,55 +1,336 @@
> +#
> +# Automatically generated file; DO NOT EDIT.
> +# Linux/arm 2012.02.0 Barebox Configuration
> +#
> +# CONFIG_BOARD_LINKER_SCRIPT is not set
> +CONFIG_GENERIC_LINKER_SCRIPT=y
> +CONFIG_ARM=y
> +CONFIG_ARM_LINUX=y
> +
> +#
> +# System Type
> +#
> +CONFIG_ARCH_AT91=y
> +# CONFIG_ARCH_EP93XX is not set
> +# CONFIG_ARCH_IMX is not set
> +# CONFIG_ARCH_MXS is not set
> +# CONFIG_ARCH_NETX is not set
> +# CONFIG_ARCH_NOMADIK is not set
> +# CONFIG_ARCH_OMAP is not set
> +# CONFIG_ARCH_PXA is not set
> +# CONFIG_ARCH_S3C24xx is not set
> +# CONFIG_ARCH_VERSATILE is not set
> +
> +#
> +# Processor Type
> +#
> +CONFIG_CPU_32=y
> +CONFIG_CPU_ARM926T=y
> +CONFIG_CPU_32v5=y
> +
> +#
> +# processor features
> +#
> +# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
> +CONFIG_ARCH_TEXT_BASE=0x73f00000
> +CONFIG_BOARDINFO="Ronetix PM9G45"
> +CONFIG_AT91SAM9G45_RESET=y
> +
> +#
> +# Atmel AT91 System-on-Chip
> +#
> +# CONFIG_ARCH_AT91RM9200 is not set
> +# CONFIG_ARCH_AT91SAM9260 is not set
> +# CONFIG_ARCH_AT91SAM9261 is not set
> +# CONFIG_ARCH_AT91SAM9263 is not set
> +# CONFIG_ARCH_AT91SAM9G10 is not set
> +# CONFIG_ARCH_AT91SAM9G20 is not set
> CONFIG_ARCH_AT91SAM9G45=y
> +CONFIG_ARCH_BAREBOX_MAX_BARE_INIT_SIZE=0xF000
> +# CONFIG_MACH_AT91SAM9M10G45EK is not set
> CONFIG_MACH_PM9G45=y
> -CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
> -CONFIG_PROMPT="pm9g45:"
> +
> +#
> +# AT91 Board Options
> +#
> +CONFIG_AEABI=y
> +
> +#
> +# Arm specific settings
> +#
> +CONFIG_CMD_ARM_CPUINFO=y
> +# CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS is not set
> +CONFIG_ARM_EXCEPTIONS=y
> +# CONFIG_ARM_UNWIND is not set
> +CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG"
> +CONFIG_GREGORIAN_CALENDER=y
> +CONFIG_HAS_KALLSYMS=y
> +CONFIG_HAS_MODULES=y
> +CONFIG_CMD_MEMORY=y
> +CONFIG_ENV_HANDLING=y
> +CONFIG_GENERIC_GPIO=y
> +CONFIG_FILETYPE=y
> +
> +#
> +# General Settings
> +#
> +CONFIG_LOCALVERSION=""
> +CONFIG_LOCALVERSION_AUTO=y
> +CONFIG_BANNER=y
> +CONFIG_ENVIRONMENT_VARIABLES=y
> +
> +#
> +# memory layout
> +#
> +# CONFIG_MMU is not set
> +CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y
> +CONFIG_TEXT_BASE=0x73f00000
> +CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
> +CONFIG_BAREBOX_MAX_BARE_INIT_SIZE=0xffffffff
> +CONFIG_HAVE_CONFIGURABLE_MEMORY_LAYOUT=y
> +CONFIG_MEMORY_LAYOUT_DEFAULT=y
> +# CONFIG_MEMORY_LAYOUT_FIXED is not set
> +CONFIG_STACK_SIZE=0x8000
> +CONFIG_MALLOC_SIZE=0x400000
> +# CONFIG_BROKEN is not set
> +# CONFIG_EXPERIMENTAL is not set
> +CONFIG_MALLOC_DLMALLOC=y
> +# CONFIG_MALLOC_TLSF is not set
> +# CONFIG_KALLSYMS is not set
> +CONFIG_PROMPT="barebox:"
> +CONFIG_BAUDRATE=115200
> CONFIG_LONGHELP=y
> -CONFIG_GLOB=y
> -CONFIG_PROMPT_HUSH_PS2="y"
> -CONFIG_HUSH_FANCY_PROMPT=y
> +CONFIG_CBSIZE=1024
> +CONFIG_MAXARGS=16
> +CONFIG_SHELL_HUSH=y
> +# CONFIG_SHELL_SIMPLE is not set
> +# CONFIG_GLOB is not set
> +CONFIG_PROMPT_HUSH_PS2="> "
> +# CONFIG_HUSH_FANCY_PROMPT is not set
> +CONFIG_HUSH_GETOPT=y
> CONFIG_CMDLINE_EDITING=y
> CONFIG_AUTO_COMPLETE=y
> -CONFIG_MENU=y
> -CONFIG_PASSWD_SUM_SHA1=y
> +# CONFIG_MENU is not set
> +# CONFIG_PASSWORD is not set
> +CONFIG_DYNAMIC_CRC_TABLE=y
> +CONFIG_ERRNO_MESSAGES=y
> +CONFIG_TIMESTAMP=y
> +CONFIG_CONSOLE_FULL=y
> +CONFIG_CONSOLE_ACTIVATE_FIRST=y
> CONFIG_PARTITION=y
> +CONFIG_PARTITION_DISK=y
> +CONFIG_PARTITION_DISK_DOS=y
> +CONFIG_DEFAULT_ENVIRONMENT=y
> CONFIG_DEFAULT_ENVIRONMENT_GENERIC=y
> CONFIG_DEFAULT_ENVIRONMENT_PATH="arch/arm/boards/pm9g45/env"
> +CONFIG_POLLER=y
> +
> +#
> +# Debugging
> +#
> +# CONFIG_DEBUG_INFO is not set
> +# CONFIG_ENABLE_FLASH_NOISE is not set
> +# CONFIG_ENABLE_PARTITION_NOISE is not set
> +CONFIG_ENABLE_DEVICE_NOISE=y
> +CONFIG_COMMAND_SUPPORT=y
> +
> +#
> +# commands
> +#
> +
> +#
> +# scripting
> +#
> CONFIG_CMD_EDIT=y
> -CONFIG_CMD_SLEEP=y
> +# CONFIG_CMD_SLEEP is not set
> 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_TRUE=y
> +CONFIG_CMD_FALSE=y
> +# CONFIG_CMD_LOGIN is not set
> +# CONFIG_CMD_PASSWD is not set
> +# CONFIG_CMD_TIME is not set
> +
> +#
> +# file commands
> +#
> +CONFIG_CMD_LS=y
> +CONFIG_CMD_RM=y
> +CONFIG_CMD_CAT=y
> +CONFIG_CMD_MKDIR=y
> +CONFIG_CMD_RMDIR=y
> +CONFIG_CMD_CP=y
> +CONFIG_CMD_PWD=y
> +CONFIG_CMD_CD=y
> +CONFIG_CMD_MOUNT=y
> +CONFIG_CMD_UMOUNT=y
> +CONFIG_CMD_NAND=y
> +# CONFIG_CMD_NANDTEST is not set
> +
> +#
> +# console
> +#
> +CONFIG_CMD_CLEAR=y
> +CONFIG_CMD_ECHO=y
> +# CONFIG_CMD_ECHO_E is not set
> +
> +#
> +# memory
> +#
> +# CONFIG_CMD_LOADB is not set
> +# CONFIG_CMD_LOADS is not set
> +# CONFIG_CMD_MEMINFO is not set
> +# CONFIG_CMD_IOMEM is not set
> +CONFIG_CMD_CRC=y
> +CONFIG_CMD_CRC_CMP=y
> +# CONFIG_CMD_MD5SUM is not set
> +# CONFIG_CMD_SHA1SUM is not set
> +# CONFIG_CMD_SHA256SUM is not set
> +# CONFIG_CMD_SHA224SUM is not set
> +# CONFIG_CMD_MTEST is not set
> +
> +#
> +# flash
> +#
> CONFIG_CMD_FLASH=y
> -CONFIG_CMD_BOOTM_ZLIB=y
> -CONFIG_CMD_BOOTM_BZLIB=y
> -CONFIG_CMD_BOOTM_SHOW_TYPE=y
> +CONFIG_CMD_UBI=y
> +
> +#
> +# booting
> +#
> +CONFIG_CMD_BOOTM=y
> +# CONFIG_CMD_BOOTM_SHOW_TYPE is not set
> +CONFIG_CMD_BOOTM_VERBOSE=y
> +# CONFIG_CMD_BOOTM_INITRD is not set
> +# CONFIG_CMD_BOOTM_OFTREE is not set
> +CONFIG_CMD_UIMAGE=y
> +CONFIG_CMD_BOOTZ=y
> +CONFIG_CMD_BOOTU=y
> CONFIG_CMD_RESET=y
> CONFIG_CMD_GO=y
> +# CONFIG_CMD_OFTREE is not set
> CONFIG_CMD_TIMEOUT=y
> CONFIG_CMD_PARTITION=y
> -CONFIG_CMD_GPIO=y
> -CONFIG_CMD_UNCOMPRESS=y
> +CONFIG_CMD_TEST=y
> +CONFIG_CMD_VERSION=y
> +CONFIG_CMD_HELP=y
> +# CONFIG_CMD_MAGICVAR is not set
> +CONFIG_CMD_DEVINFO=y
> +# CONFIG_CMD_GPIO is not set
> +# CONFIG_CMD_UNCOMPRESS is not set
> +CONFIG_CMD_I2C=y
> CONFIG_NET=y
> CONFIG_NET_DHCP=y
> -CONFIG_NET_NFS=y
> +# CONFIG_NET_NFS is not set
> CONFIG_NET_PING=y
> -CONFIG_NET_TFTP=y
> -CONFIG_NET_TFTP_PUSH=y
> -CONFIG_NET_NETCONSOLE=y
> -CONFIG_NET_RESOLV=y
> +# CONFIG_NET_TFTP is not set
> +# CONFIG_NET_TFTP_PUSH is not set
> +# CONFIG_NET_NETCONSOLE is not set
> +# CONFIG_NET_RESOLV is not set
> +
> +#
> +# Drivers
> +#
> +
> +#
> +# serial drivers
> +#
> +# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
> +# CONFIG_DRIVER_SERIAL_NS16550 is not set
> +CONFIG_DRIVER_SERIAL_ATMEL=y
> +CONFIG_HAS_MACB=y
> +CONFIG_MIIDEV=y
> +
> +#
> +# Network drivers
> +#
> +# CONFIG_DRIVER_NET_SMC911X is not set
> +# CONFIG_DRIVER_NET_SMC91111 is not set
> CONFIG_DRIVER_NET_MACB=y
> -# CONFIG_SPI is not set
> -CONFIG_DRIVER_CFI=y
> -CONFIG_CFI_BUFFER_WRITE=y
> +
> +#
> +# SPI drivers
> +#
> +CONFIG_SPI=y
> +CONFIG_DRIVER_SPI_ATMEL=y
> +CONFIG_I2C=y
> +
> +#
> +# I2C Hardware Bus support
> +#
> +
> +#
> +# flash drivers
> +#
> +# CONFIG_DRIVER_CFI is not set
> +CONFIG_MTD_M25P80=y
> +CONFIG_MTD_SST25L=y
> CONFIG_MTD=y
> +CONFIG_MTD_WRITE=y
> +CONFIG_MTD_OOB_DEVICE=y
> +# CONFIG_MTD_RAW_DEVICE is not set
> +
> +#
> +# Self contained MTD devices
> +#
> +# CONFIG_MTD_DOCG3 is not set
> CONFIG_NAND=y
> +CONFIG_NAND_ECC_SOFT=y
> +CONFIG_NAND_ECC_HW=y
> +CONFIG_NAND_ECC_HW_SYNDROME=y
> +CONFIG_NAND_ECC_HW_NONE=y
> +CONFIG_NAND_INFO=y
> +CONFIG_NAND_READ_OOB=y
> +CONFIG_NAND_BBT=y
> +CONFIG_NAND_ATMEL=y
> +# CONFIG_MTD_NAND_VERIFY_WRITE is not set
> +# CONFIG_MTD_NAND_ECC_SMC is not set
> +CONFIG_MTD_NAND_IDS=y
> CONFIG_UBI=y
> +# CONFIG_DISK is not set
> +# CONFIG_USB is not set
> +# CONFIG_USB_GADGET is not set
> +# CONFIG_VIDEO is not set
> +# CONFIG_MCI is not set
> +CONFIG_CLKDEV_LOOKUP=y
> +
> +#
> +# MFD
> +#
> +# CONFIG_I2C_MC13892 is not set
> +# CONFIG_I2C_MC34704 is not set
> +# CONFIG_I2C_MC9SDZ60 is not set
> +# CONFIG_I2C_LP3972 is not set
> +# CONFIG_I2C_TWL6030 is not set
> +# CONFIG_DRIVER_SPI_MC13783 is not set
> +# CONFIG_LED is not set
> +
> +#
> +# EEPROM support
> +#
> +CONFIG_EEPROM_AT25=y
> +
> +#
> +# Filesystem support
> +#
> +# CONFIG_FS_CRAMFS is not set
> +CONFIG_FS_RAMFS=y
> +CONFIG_FS_DEVFS=y
> +# CONFIG_FS_FAT is not set
> +CONFIG_PARTITION_NEED_MTD=y
> +
> +#
> +# Library routines
> +#
> +CONFIG_PARAMETER=y
> +CONFIG_UNCOMPRESS=y
> +# CONFIG_ZLIB is not set
> +# CONFIG_BZLIB is not set
> +# CONFIG_GENERIC_FIND_NEXT_BIT is not set
> +# CONFIG_PROCESS_ESCAPE_SEQUENCE is not set
> +# CONFIG_LZO_DECOMPRESS is not set
> +CONFIG_CRC32=y
> +# CONFIG_DIGEST is not set
> --
> 1.7.4.4
>
>
> _______________________________________________
> 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] 26+ messages in thread
* Re: [PATCH v2 1/4] pm9g45: boot from NAND
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
0 siblings, 1 reply; 26+ messages in thread
From: RONETIX - Asen Dimov @ 2012-03-08 11:37 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox
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@ronetix.at>
>> ---
>> 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 1/4] pm9g45: boot from NAND
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
0 siblings, 1 reply; 26+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-03-08 13:05 UTC (permalink / raw)
To: RONETIX - Asen Dimov; +Cc: barebox
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<dimov@ronetix.at>
> >>---
> >>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
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v2 1/4] pm9g45: boot from NAND
2012-03-08 13:05 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-03-21 16:43 ` RONETIX - Asen Dimov
0 siblings, 0 replies; 26+ messages in thread
From: RONETIX - Asen Dimov @ 2012-03-21 16:43 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox
Hi Jean-Christophe,
I am back on the pm9g45 patches again.
On 03/08/2012 03:05 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> 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:
>>
>> 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
> so you loose space
In the pm9g45 v3 patch series the MTD partition for Linux is named
"kernel", and "defaultenv/bin/boot"
script looks for "/dev/nand0.kernel.bb". In the same time all boards
name Linux MTD partition
"kernel.bb". Is this "bad block aware device" driver scheduled to be
implemented in barebox or
is it allowable to rename that partition to "kernel.bb" to un-broke the
boot process?
> Best Regards,
> J.
Regards,
Asen
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH v3 1/4] pm9g45: boot from NAND
2012-03-01 16:21 [PATCH 1/3] pm9g45: fix Ethernet Asen Chavdarov Dimov
` (3 preceding siblings ...)
2012-03-02 16:55 ` [PATCH v2 1/4] pm9g45: boot from NAND Asen Chavdarov Dimov
@ 2012-03-21 16:27 ` Asen Chavdarov Dimov
2012-03-21 16:27 ` [PATCH v3 2/4] pm9g45: fix Ethernet Asen Chavdarov Dimov
` (2 more replies)
4 siblings, 3 replies; 26+ messages in thread
From: Asen Chavdarov Dimov @ 2012-03-21 16:27 UTC (permalink / raw)
To: barebox
- 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
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH v3 2/4] pm9g45: fix Ethernet
2012-03-21 16:27 ` [PATCH v3 " Asen Chavdarov Dimov
@ 2012-03-21 16:27 ` Asen Chavdarov Dimov
2012-03-21 16:27 ` [PATCH v3 3/4] pm9g45: enable MCI0 Asen Chavdarov Dimov
2012-03-21 16:27 ` [PATCH v3 4/4] pm9g45: enable USB OHCI host and USB mass storage Asen Chavdarov Dimov
2 siblings, 0 replies; 26+ messages in thread
From: Asen Chavdarov Dimov @ 2012-03-21 16:27 UTC (permalink / raw)
To: barebox
Enable PHY clock.
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
---
since v1:
- phy_init changed to pm9g45_phy_init
- pm9g45_phy_init becamos void and "return 0" is removed
- removed manual clock enabling
since v2:
- dropped an empty line
---
arch/arm/boards/pm9g45/init.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 480c751..567bad4 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -82,6 +82,17 @@ static struct at91_ether_platform_data macb_pdata = {
.phy_addr = 0,
};
+static void pm9g45_phy_init(void)
+{
+ /*
+ * PD2 enables the 50MHz oscillator for Ethernet PHY
+ * 1 - enable
+ * 0 - disable
+ */
+ at91_set_gpio_output(AT91_PIN_PD2, 1);
+ at91_set_gpio_value(AT91_PIN_PD2, 1);
+}
+
static int pm9g45_mem_init(void)
{
at91_add_device_sdram(128 * 1024 * 1024);
@@ -93,6 +104,7 @@ mem_initcall(pm9g45_mem_init);
static int pm9g45_devices_init(void)
{
pm_add_device_nand();
+ pm9g45_phy_init();
at91_add_device_eth(&macb_pdata);
devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
--
1.7.4.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH v3 3/4] pm9g45: enable MCI0
2012-03-21 16:27 ` [PATCH v3 " Asen Chavdarov Dimov
2012-03-21 16:27 ` [PATCH v3 2/4] pm9g45: fix Ethernet Asen Chavdarov Dimov
@ 2012-03-21 16:27 ` Asen Chavdarov Dimov
2012-03-22 20:17 ` Sascha Hauer
2012-03-21 16:27 ` [PATCH v3 4/4] pm9g45: enable USB OHCI host and USB mass storage Asen Chavdarov Dimov
2 siblings, 1 reply; 26+ messages in thread
From: Asen Chavdarov Dimov @ 2012-03-21 16:27 UTC (permalink / raw)
To: barebox
FIXME: part of or no data is written. File copy ends
with message: "atmel_mci@atmel_mci0: command/data timeout"
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
---
since v1:
add_device_mci renamed to pm9g45_add_device_mci
since v2:
- used savedefconfig to minimize the config file
---
arch/arm/boards/pm9g45/init.c | 16 ++++++++++++++++
arch/arm/configs/pm9g45_defconfig | 7 +++++--
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 567bad4..174dd75 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -77,6 +77,21 @@ static void pm_add_device_nand(void)
at91_add_device_nand(&nand_pdata);
}
+#if defined(CONFIG_MCI_ATMEL)
+static struct atmel_mci_platform_data __initdata mci_data = {
+ .bus_width = 4,
+ .wp_pin = 0,
+ .detect_pin = AT91_PIN_PD6,
+};
+
+static void pm9g45_add_device_mci(void)
+{
+ at91_add_device_mci(0, &mci_data);
+}
+#else
+static void pm9g45_add_device_mci(void) {}
+#endif
+
static struct at91_ether_platform_data macb_pdata = {
.flags = AT91SAM_ETHER_RMII,
.phy_addr = 0,
@@ -104,6 +119,7 @@ mem_initcall(pm9g45_mem_init);
static int pm9g45_devices_init(void)
{
pm_add_device_nand();
+ pm9g45_add_device_mci();
pm9g45_phy_init();
at91_add_device_eth(&macb_pdata);
diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
index d199abd..8106202 100644
--- a/arch/arm/configs/pm9g45_defconfig
+++ b/arch/arm/configs/pm9g45_defconfig
@@ -4,8 +4,6 @@ CONFIG_AEABI=y
CONFIG_LONGHELP=y
CONFIG_CMDLINE_EDITING=y
CONFIG_AUTO_COMPLETE=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
@@ -35,4 +33,9 @@ CONFIG_MTD=y
CONFIG_NAND=y
CONFIG_NAND_ATMEL=y
CONFIG_UBI=y
+CONFIG_MCI=y
+CONFIG_MCI_ATMEL=y
CONFIG_EEPROM_AT25=y
+CONFIG_FS_FAT=y
+CONFIG_FS_FAT_WRITE=y
+CONFIG_FS_FAT_LFN=y
--
1.7.4.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v3 3/4] pm9g45: enable MCI0
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
0 siblings, 1 reply; 26+ messages in thread
From: Sascha Hauer @ 2012-03-22 20:17 UTC (permalink / raw)
To: Asen Chavdarov Dimov; +Cc: barebox
On Wed, Mar 21, 2012 at 06:27:25PM +0200, Asen Chavdarov Dimov wrote:
> FIXME: part of or no data is written. File copy ends
> with message: "atmel_mci@atmel_mci0: command/data timeout"
Should I apply these patches? These FIXMEs seem to say that they don't
work.
Sascha
>
> Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
> ---
> since v1:
> add_device_mci renamed to pm9g45_add_device_mci
>
> since v2:
> - used savedefconfig to minimize the config file
> ---
> arch/arm/boards/pm9g45/init.c | 16 ++++++++++++++++
> arch/arm/configs/pm9g45_defconfig | 7 +++++--
> 2 files changed, 21 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
> index 567bad4..174dd75 100644
> --- a/arch/arm/boards/pm9g45/init.c
> +++ b/arch/arm/boards/pm9g45/init.c
> @@ -77,6 +77,21 @@ static void pm_add_device_nand(void)
> at91_add_device_nand(&nand_pdata);
> }
>
> +#if defined(CONFIG_MCI_ATMEL)
> +static struct atmel_mci_platform_data __initdata mci_data = {
> + .bus_width = 4,
> + .wp_pin = 0,
> + .detect_pin = AT91_PIN_PD6,
> +};
> +
> +static void pm9g45_add_device_mci(void)
> +{
> + at91_add_device_mci(0, &mci_data);
> +}
> +#else
> +static void pm9g45_add_device_mci(void) {}
> +#endif
> +
> static struct at91_ether_platform_data macb_pdata = {
> .flags = AT91SAM_ETHER_RMII,
> .phy_addr = 0,
> @@ -104,6 +119,7 @@ mem_initcall(pm9g45_mem_init);
> static int pm9g45_devices_init(void)
> {
> pm_add_device_nand();
> + pm9g45_add_device_mci();
> pm9g45_phy_init();
> at91_add_device_eth(&macb_pdata);
>
> diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
> index d199abd..8106202 100644
> --- a/arch/arm/configs/pm9g45_defconfig
> +++ b/arch/arm/configs/pm9g45_defconfig
> @@ -4,8 +4,6 @@ CONFIG_AEABI=y
> CONFIG_LONGHELP=y
> CONFIG_CMDLINE_EDITING=y
> CONFIG_AUTO_COMPLETE=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
> @@ -35,4 +33,9 @@ CONFIG_MTD=y
> CONFIG_NAND=y
> CONFIG_NAND_ATMEL=y
> CONFIG_UBI=y
> +CONFIG_MCI=y
> +CONFIG_MCI_ATMEL=y
> CONFIG_EEPROM_AT25=y
> +CONFIG_FS_FAT=y
> +CONFIG_FS_FAT_WRITE=y
> +CONFIG_FS_FAT_LFN=y
> --
> 1.7.4.4
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
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] 26+ messages in thread
* Re: [PATCH v3 3/4] pm9g45: enable MCI0
2012-03-22 20:17 ` Sascha Hauer
@ 2012-03-23 12:55 ` RONETIX - Asen Dimov
2012-03-23 15:18 ` Sascha Hauer
0 siblings, 1 reply; 26+ messages in thread
From: RONETIX - Asen Dimov @ 2012-03-23 12:55 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
Hello Sascha,
On 03/22/2012 10:17 PM, Sascha Hauer wrote:
> On Wed, Mar 21, 2012 at 06:27:25PM +0200, Asen Chavdarov Dimov wrote:
>> FIXME: part of or no data is written. File copy ends
>> with message: "atmel_mci@atmel_mci0: command/data timeout"
> Should I apply these patches? These FIXMEs seem to say that they don't
> work.
Yes, please.
At least reading ends with no errors.
> Sascha
>
Regards,
Asen
...
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v3 3/4] pm9g45: enable MCI0
2012-03-23 12:55 ` RONETIX - Asen Dimov
@ 2012-03-23 15:18 ` Sascha Hauer
0 siblings, 0 replies; 26+ messages in thread
From: Sascha Hauer @ 2012-03-23 15:18 UTC (permalink / raw)
To: RONETIX - Asen Dimov; +Cc: barebox
On Fri, Mar 23, 2012 at 02:55:20PM +0200, RONETIX - Asen Dimov wrote:
> Hello Sascha,
>
> On 03/22/2012 10:17 PM, Sascha Hauer wrote:
> >On Wed, Mar 21, 2012 at 06:27:25PM +0200, Asen Chavdarov Dimov wrote:
> >>FIXME: part of or no data is written. File copy ends
> >>with message: "atmel_mci@atmel_mci0: command/data timeout"
> >Should I apply these patches? These FIXMEs seem to say that they don't
> >work.
> Yes, please.
Ok, did that.
Sascha
> At least reading ends with no errors.
>
> >Sascha
> >
> Regards,
> Asen
> ...
>
--
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] 26+ messages in thread
* [PATCH v3 4/4] pm9g45: enable USB OHCI host and USB mass storage
2012-03-21 16:27 ` [PATCH v3 " Asen Chavdarov Dimov
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-21 16:27 ` Asen Chavdarov Dimov
2 siblings, 0 replies; 26+ messages in thread
From: Asen Chavdarov Dimov @ 2012-03-21 16:27 UTC (permalink / raw)
To: barebox
FIXME: execute the "usb" command twice to create the /dev/disk0 device.
Signed-off-by: Asen Chavdarov Dimov <dimov@ronetix.at>
---
since v1:
- add_device_usbh renamed to pm9g45_add_device_usbh
- skipped manual enabling of clocks
since v2:
- used savedefconfig to minimize the config file
---
arch/arm/boards/pm9g45/init.c | 18 ++++++++++++++++++
arch/arm/configs/pm9g45_defconfig | 11 ++++++++---
2 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boards/pm9g45/init.c b/arch/arm/boards/pm9g45/init.c
index 174dd75..4d3078e 100644
--- a/arch/arm/boards/pm9g45/init.c
+++ b/arch/arm/boards/pm9g45/init.c
@@ -92,6 +92,23 @@ static void pm9g45_add_device_mci(void)
static void pm9g45_add_device_mci(void) {}
#endif
+/*
+ * USB OHCI Host port
+ */
+#ifdef CONFIG_USB_OHCI_AT91
+static struct at91_usbh_data __initdata usbh_data = {
+ .ports = 2,
+ .vbus_pin = { AT91_PIN_PD0, 0x0 },
+};
+
+static void __init pm9g45_add_device_usbh(void)
+{
+ at91_add_device_usbh_ohci(&usbh_data);
+}
+#else
+static void __init pm9g45_add_device_usbh(void) {}
+#endif
+
static struct at91_ether_platform_data macb_pdata = {
.flags = AT91SAM_ETHER_RMII,
.phy_addr = 0,
@@ -122,6 +139,7 @@ static int pm9g45_devices_init(void)
pm9g45_add_device_mci();
pm9g45_phy_init();
at91_add_device_eth(&macb_pdata);
+ pm9g45_add_device_usbh();
devfs_add_partition("nand0", 0x00000, 0x80000, PARTITION_FIXED, "self_raw");
dev_add_bb_dev("self_raw", "self0");
diff --git a/arch/arm/configs/pm9g45_defconfig b/arch/arm/configs/pm9g45_defconfig
index 8106202..3c9fa69 100644
--- a/arch/arm/configs/pm9g45_defconfig
+++ b/arch/arm/configs/pm9g45_defconfig
@@ -13,26 +13,31 @@ CONFIG_CMD_SAVEENV=y
CONFIG_CMD_EXPORT=y
CONFIG_CMD_PRINTENV=y
CONFIG_CMD_READLINE=y
-CONFIG_CMD_FLASH=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_I2C=y
CONFIG_NET=y
CONFIG_NET_DHCP=y
CONFIG_NET_PING=y
+CONFIG_NET_TFTP=y
+CONFIG_NET_TFTP_PUSH=y
+CONFIG_NET_RESOLV=y
CONFIG_DRIVER_NET_MACB=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_DISK_ATA=y
+CONFIG_USB=y
+CONFIG_USB_OHCI=y
+CONFIG_USB_OHCI_AT91=y
+CONFIG_USB_STORAGE=y
CONFIG_MCI=y
CONFIG_MCI_ATMEL=y
CONFIG_EEPROM_AT25=y
--
1.7.4.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 26+ messages in thread