mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] Some updates for arm/mvebu
@ 2016-09-15 10:38 Uwe Kleine-König
  2016-09-15 10:38 ` [PATCH 1/4] ARM: mvebu_defconfig: oldconfig Uwe Kleine-König
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2016-09-15 10:38 UTC (permalink / raw)
  To: barebox; +Cc: Thomas Petazzoni, Ezequiel Garcia

Hello,

these are the first few patches I did while creating a port for a Netgear
RN2120.

Best regards
Uwe

Uwe Kleine-König (4):
  ARM: mvebu_defconfig: oldconfig
  ARM: mvebu_defconfig: enable all machines, AEABI, nand and net driver
  ARM: mvebu: select HAVE_DEFAULT_ENVIRONMENT_NEW
  net: mvneta: clean txdesc before usage

 arch/arm/Kconfig                 |  1 +
 arch/arm/configs/mvebu_defconfig | 18 ++++++++++++------
 drivers/net/mvneta.c             |  1 +
 3 files changed, 14 insertions(+), 6 deletions(-)

-- 
2.8.1


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

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

* [PATCH 1/4] ARM: mvebu_defconfig: oldconfig
  2016-09-15 10:38 [PATCH 0/4] Some updates for arm/mvebu Uwe Kleine-König
@ 2016-09-15 10:38 ` Uwe Kleine-König
  2016-09-15 10:38 ` [PATCH 2/4] ARM: mvebu_defconfig: enable all machines, AEABI, nand and net driver Uwe Kleine-König
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2016-09-15 10:38 UTC (permalink / raw)
  To: barebox; +Cc: Thomas Petazzoni, Ezequiel Garcia

This is the result of
	make mvebu_defconfig
	make savedefconfig
	mv defconfig arch/arm/configs/mvebu_defconfig
.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/configs/mvebu_defconfig | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/configs/mvebu_defconfig b/arch/arm/configs/mvebu_defconfig
index bd978a9acbe2..faaeb1de8476 100644
--- a/arch/arm/configs/mvebu_defconfig
+++ b/arch/arm/configs/mvebu_defconfig
@@ -17,7 +17,13 @@ CONFIG_HUSH_FANCY_PROMPT=y
 CONFIG_CMDLINE_EDITING=y
 CONFIG_AUTO_COMPLETE=y
 CONFIG_MENU=y
+CONFIG_BOOTM_SHOW_TYPE=y
+CONFIG_BOOTM_VERBOSE=y
+CONFIG_BOOTM_INITRD=y
+CONFIG_BOOTM_OFTREE=y
+CONFIG_BOOTM_OFTREE_UIMAGE=y
 CONFIG_BLSPEC=y
+CONFIG_FLEXIBLE_BOOTARGS=y
 CONFIG_IMD_TARGET=y
 CONFIG_CONSOLE_ACTIVATE_NONE=y
 CONFIG_PARTITION_DISK_EFI=y
@@ -26,13 +32,7 @@ CONFIG_CMD_IOMEM=y
 CONFIG_CMD_IMD=y
 CONFIG_CMD_MEMINFO=y
 CONFIG_CMD_ARM_MMUINFO=y
-CONFIG_FLEXIBLE_BOOTARGS=y
 CONFIG_CMD_BOOT=y
-CONFIG_BOOTM_SHOW_TYPE=y
-CONFIG_BOOTM_VERBOSE=y
-CONFIG_BOOTM_INITRD=y
-CONFIG_BOOTM_OFTREE=y
-CONFIG_BOOTM_OFTREE_UIMAGE=y
 CONFIG_CMD_GO=y
 CONFIG_CMD_LOADS=y
 CONFIG_CMD_LOADY=y
-- 
2.8.1


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

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

* [PATCH 2/4] ARM: mvebu_defconfig: enable all machines, AEABI, nand and net driver
  2016-09-15 10:38 [PATCH 0/4] Some updates for arm/mvebu Uwe Kleine-König
  2016-09-15 10:38 ` [PATCH 1/4] ARM: mvebu_defconfig: oldconfig Uwe Kleine-König
@ 2016-09-15 10:38 ` Uwe Kleine-König
  2016-09-15 10:38 ` [PATCH 3/4] ARM: mvebu: select HAVE_DEFAULT_ENVIRONMENT_NEW Uwe Kleine-König
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2016-09-15 10:38 UTC (permalink / raw)
  To: barebox; +Cc: Thomas Petazzoni, Ezequiel Garcia

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/configs/mvebu_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/configs/mvebu_defconfig b/arch/arm/configs/mvebu_defconfig
index faaeb1de8476..9998ce42d6b0 100644
--- a/arch/arm/configs/mvebu_defconfig
+++ b/arch/arm/configs/mvebu_defconfig
@@ -6,7 +6,9 @@ CONFIG_MACH_MARVELL_ARMADA_XP_GP=y
 CONFIG_MACH_PLATHOME_OPENBLOCKS_AX3=y
 CONFIG_MACH_SOLIDRUN_CUBOX=y
 CONFIG_MACH_GLOBALSCALE_GURUPLUG=y
+CONFIG_MACH_PLATHOME_OPENBLOCKS_A6=y
 CONFIG_MACH_USI_TOPKICK=y
+CONFIG_AEABI=y
 CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
 CONFIG_TEXT_BASE=0x0
 CONFIG_MALLOC_SIZE=0x0
@@ -90,6 +92,7 @@ CONFIG_NET=y
 CONFIG_OFDEVICE=y
 CONFIG_OF_BAREBOX_DRIVERS=y
 CONFIG_DRIVER_SERIAL_NS16550=y
+CONFIG_DRIVER_NET_MVNETA=y
 CONFIG_DRIVER_NET_ORION=y
 CONFIG_MARVELL_PHY=y
 CONFIG_DRIVER_SPI_GPIO=y
@@ -100,6 +103,7 @@ CONFIG_MTD=y
 CONFIG_MTD_M25P80=y
 CONFIG_NAND=y
 CONFIG_NAND_ORION=y
+CONFIG_NAND_MRVL_NFC=y
 CONFIG_DISK_AHCI=y
 CONFIG_USB_HOST=y
 CONFIG_USB_EHCI=y
-- 
2.8.1


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

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

* [PATCH 3/4] ARM: mvebu: select HAVE_DEFAULT_ENVIRONMENT_NEW
  2016-09-15 10:38 [PATCH 0/4] Some updates for arm/mvebu Uwe Kleine-König
  2016-09-15 10:38 ` [PATCH 1/4] ARM: mvebu_defconfig: oldconfig Uwe Kleine-König
  2016-09-15 10:38 ` [PATCH 2/4] ARM: mvebu_defconfig: enable all machines, AEABI, nand and net driver Uwe Kleine-König
@ 2016-09-15 10:38 ` Uwe Kleine-König
  2016-09-15 10:38 ` [PATCH 4/4] net: mvneta: clean txdesc before usage Uwe Kleine-König
  2016-09-16  7:35 ` [PATCH 0/4] Some updates for arm/mvebu Sascha Hauer
  4 siblings, 0 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2016-09-15 10:38 UTC (permalink / raw)
  To: barebox; +Cc: Thomas Petazzoni, Ezequiel Garcia

None of the available boards for mvebu has any environment additions, so
this is safe.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/Kconfig                 | 1 +
 arch/arm/configs/mvebu_defconfig | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 150320c6af86..3c5572e700bb 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -125,6 +125,7 @@ config ARCH_MVEBU
 	select CLKDEV_LOOKUP
 	select GPIOLIB
 	select HAS_DEBUG_LL
+	select HAVE_DEFAULT_ENVIRONMENT_NEW
 	select HAVE_PBL_MULTI_IMAGES
 	select HW_HAS_PCI
 	select MVEBU_MBUS
diff --git a/arch/arm/configs/mvebu_defconfig b/arch/arm/configs/mvebu_defconfig
index 9998ce42d6b0..39e7ef1798f5 100644
--- a/arch/arm/configs/mvebu_defconfig
+++ b/arch/arm/configs/mvebu_defconfig
@@ -123,6 +123,8 @@ CONFIG_GPIO_ORION=y
 CONFIG_PCI_MVEBU=y
 CONFIG_FS_CRAMFS=y
 CONFIG_FS_EXT4=y
+CONFIG_FS_TFTP=y
+CONFIG_FS_NFS=y
 CONFIG_FS_FAT=y
 CONFIG_FS_FAT_WRITE=y
 CONFIG_FS_FAT_LFN=y
-- 
2.8.1


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

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

* [PATCH 4/4] net: mvneta: clean txdesc before usage
  2016-09-15 10:38 [PATCH 0/4] Some updates for arm/mvebu Uwe Kleine-König
                   ` (2 preceding siblings ...)
  2016-09-15 10:38 ` [PATCH 3/4] ARM: mvebu: select HAVE_DEFAULT_ENVIRONMENT_NEW Uwe Kleine-König
@ 2016-09-15 10:38 ` Uwe Kleine-König
  2016-09-16  7:35 ` [PATCH 0/4] Some updates for arm/mvebu Sascha Hauer
  4 siblings, 0 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2016-09-15 10:38 UTC (permalink / raw)
  To: barebox; +Cc: Thomas Petazzoni, Ezequiel Garcia

This fixes tx error detection which triggered way too often because the
hardware doesn't seem to clear the error bits on success

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/net/mvneta.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c
index 1690f3b576c7..5c163cebc7f4 100644
--- a/drivers/net/mvneta.c
+++ b/drivers/net/mvneta.c
@@ -395,6 +395,7 @@ static int mvneta_send(struct eth_device *edev, void *data, int len)
 	/* Flush transmit data */
 	dma_sync_single_for_device((unsigned long)data, len, DMA_TO_DEVICE);
 
+	memset(txdesc, 0, sizeof(*txdesc));
 	/* Fill the Tx descriptor */
 	txdesc->cmd_sts = MVNETA_TX_L4_CSUM_NOT | MVNETA_TXD_FLZ_DESC;
 	txdesc->buf_ptr = (u32)data;
-- 
2.8.1


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

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

* Re: [PATCH 0/4] Some updates for arm/mvebu
  2016-09-15 10:38 [PATCH 0/4] Some updates for arm/mvebu Uwe Kleine-König
                   ` (3 preceding siblings ...)
  2016-09-15 10:38 ` [PATCH 4/4] net: mvneta: clean txdesc before usage Uwe Kleine-König
@ 2016-09-16  7:35 ` Sascha Hauer
  4 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2016-09-16  7:35 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: Thomas Petazzoni, barebox, Ezequiel Garcia

On Thu, Sep 15, 2016 at 12:38:13PM +0200, Uwe Kleine-König wrote:
> Hello,
> 
> these are the first few patches I did while creating a port for a Netgear
> RN2120.
> 
> Best regards
> Uwe
> 
> Uwe Kleine-König (4):
>   ARM: mvebu_defconfig: oldconfig
>   ARM: mvebu_defconfig: enable all machines, AEABI, nand and net driver
>   ARM: mvebu: select HAVE_DEFAULT_ENVIRONMENT_NEW
>   net: mvneta: clean txdesc before usage
> 
>  arch/arm/Kconfig                 |  1 +
>  arch/arm/configs/mvebu_defconfig | 18 ++++++++++++------
>  drivers/net/mvneta.c             |  1 +
>  3 files changed, 14 insertions(+), 6 deletions(-)

Applied, thanks

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] 6+ messages in thread

end of thread, other threads:[~2016-09-16  7:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-15 10:38 [PATCH 0/4] Some updates for arm/mvebu Uwe Kleine-König
2016-09-15 10:38 ` [PATCH 1/4] ARM: mvebu_defconfig: oldconfig Uwe Kleine-König
2016-09-15 10:38 ` [PATCH 2/4] ARM: mvebu_defconfig: enable all machines, AEABI, nand and net driver Uwe Kleine-König
2016-09-15 10:38 ` [PATCH 3/4] ARM: mvebu: select HAVE_DEFAULT_ENVIRONMENT_NEW Uwe Kleine-König
2016-09-15 10:38 ` [PATCH 4/4] net: mvneta: clean txdesc before usage Uwe Kleine-König
2016-09-16  7:35 ` [PATCH 0/4] Some updates for arm/mvebu Sascha Hauer

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