mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ARM: imx6: add new MarsBoard support
@ 2019-09-12  6:54 Ahmad Fatoum
  2019-09-12  6:54 ` [PATCH v2 1/2] ARM: imx6: add Embest MarSBoard support Ahmad Fatoum
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2019-09-12  6:54 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum, eric

I've picked up v1 of the patch from here:
https://barebox.infradead.narkive.com/mn9ZpGu6/patch-2-3-marsboard-add-new-board

and worked in the review feedback from back then.

v1 -> v2:
 - rebased on current upstream/next
 - removed seperate defconfig and added board to imx_v7_defconfig (Lucas)
 - added boot mode documentation
 - removed redundant VPU/IPU AXI configurations from DCD-Table (Sascha)
 - removed setting console in linux bootargs (Sascha)
 - have board-specific environment use bbenv-y in Makefile (Sascha)
 - added barebox device tree that includes kernel device tree
 - used imx6_uart_setup_ll and imx_setup_pad for debug_ll UART
 - used compressed DTB
 - used imx6q_barebox_entry instead of hardcoding RAM size

Ahmad Fatoum (2):
  ARM: imx6: add Embest MarSBoard support
  ARM: imx_v7_defconfig: enable Embdest MarS board

 Documentation/boards/imx/embest-marsboard.rst | 82 +++++++++++++++
 arch/arm/boards/Makefile                      |  1 +
 arch/arm/boards/embest-marsboard/Makefile     |  3 +
 arch/arm/boards/embest-marsboard/board.c      | 63 ++++++++++++
 .../defaultenv-mars/init/fastboot             |  7 ++
 .../flash-header-embest-marsboard.imxcfg      | 99 +++++++++++++++++++
 arch/arm/boards/embest-marsboard/lowlevel.c   | 41 ++++++++
 arch/arm/configs/imx_v7_defconfig             |  1 +
 arch/arm/dts/Makefile                         |  1 +
 arch/arm/dts/imx6q-marsboard.dts              | 43 ++++++++
 arch/arm/mach-imx/Kconfig                     |  5 +
 images/Makefile.imx                           |  5 +
 12 files changed, 351 insertions(+)
 create mode 100644 Documentation/boards/imx/embest-marsboard.rst
 create mode 100644 arch/arm/boards/embest-marsboard/Makefile
 create mode 100644 arch/arm/boards/embest-marsboard/board.c
 create mode 100644 arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
 create mode 100644 arch/arm/boards/embest-marsboard/flash-header-embest-marsboard.imxcfg
 create mode 100644 arch/arm/boards/embest-marsboard/lowlevel.c
 create mode 100644 arch/arm/dts/imx6q-marsboard.dts

-- 
2.23.0


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

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

* [PATCH v2 1/2] ARM: imx6: add Embest MarSBoard support
  2019-09-12  6:54 [PATCH v2 0/2] ARM: imx6: add new MarsBoard support Ahmad Fatoum
@ 2019-09-12  6:54 ` Ahmad Fatoum
  2019-09-15 20:01   ` Stefan Lengfeld
  2019-09-12  6:54 ` [PATCH v2 2/2] ARM: imx_v7_defconfig: enable Embdest MarS board Ahmad Fatoum
  2019-09-12  7:01 ` [PATCH v2 0/2] ARM: imx6: add new MarsBoard support Sascha Hauer
  2 siblings, 1 reply; 6+ messages in thread
From: Ahmad Fatoum @ 2019-09-12  6:54 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum, eric

This board is produced by Embest/Element 14 and is based on i.MX6 Dual.

For more informations on this board :
http://www.embest-tech.com/shop/star/marsboard.html

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 Documentation/boards/imx/embest-marsboard.rst | 82 +++++++++++++++
 arch/arm/boards/Makefile                      |  1 +
 arch/arm/boards/embest-marsboard/Makefile     |  3 +
 arch/arm/boards/embest-marsboard/board.c      | 63 ++++++++++++
 .../defaultenv-mars/init/fastboot             |  7 ++
 .../flash-header-embest-marsboard.imxcfg      | 99 +++++++++++++++++++
 arch/arm/boards/embest-marsboard/lowlevel.c   | 41 ++++++++
 arch/arm/dts/Makefile                         |  1 +
 arch/arm/dts/imx6q-marsboard.dts              | 43 ++++++++
 arch/arm/mach-imx/Kconfig                     |  5 +
 images/Makefile.imx                           |  5 +
 11 files changed, 350 insertions(+)
 create mode 100644 Documentation/boards/imx/embest-marsboard.rst
 create mode 100644 arch/arm/boards/embest-marsboard/Makefile
 create mode 100644 arch/arm/boards/embest-marsboard/board.c
 create mode 100644 arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
 create mode 100644 arch/arm/boards/embest-marsboard/flash-header-embest-marsboard.imxcfg
 create mode 100644 arch/arm/boards/embest-marsboard/lowlevel.c
 create mode 100644 arch/arm/dts/imx6q-marsboard.dts

diff --git a/Documentation/boards/imx/embest-marsboard.rst b/Documentation/boards/imx/embest-marsboard.rst
new file mode 100644
index 000000000000..1ee2a0b982e4
--- /dev/null
+++ b/Documentation/boards/imx/embest-marsboard.rst
@@ -0,0 +1,82 @@
+Embest MarS Board
+=================
+
+Board comes with:
+
+* 1G DDR3 SDRAM
+* 4G eMMC
+* 2M SPI-NOR Flash
+
+Layout::
+
+  .-----------------------------------------------------.
+  |O                                    OTG-->| V |    O|
+  |                              SW1    USB   '---'  .--|
+  |             .-----------.    v.---.           .->| <|
+  |             |           |    1|o--| O         |  `--|
+  |             | i.MX6Dual |    2|--o| N        Debug  |
+  |             |    SoC    |     `---'          USB    |
+  |             |           |                           |
+  |             `-----------'                           |
+  |                                                     |
+  |                                                     |
+  |                                                     |
+  |                                                     |
+  |O                                                   O|
+  `-----------------------------------------------------'
+
+Boot Configuration
+==================
+
+DIP Switch S1 on the board can be used to set ``BOOT_MODE1`` and
+``BOOT_MODE0`` going to the i.MX6:
+
+Set ``SW1 = 01`` for serial boot::
+
+        SW1
+        v.---.
+        1|o--| O
+        2|--o| N
+         `---'
+
+Set ``SW1 = 10`` for internal (SPI-NOR Flash) boot::
+
+        SW1
+        v.---.
+        1|--o| O
+        2|o--| N
+         `---'
+
+Set ``SW1 = 00`` for boot from eFuses::
+
+        SW1
+        v.---.
+        1|o--| O
+        2|o--| N
+         `---'
+
+Flashing barebox
+----------------
+
+  1. Connect to the boards's Debug Mini-USB (115200 8N1)
+
+  2. Set ``SW1 = 01`` for serial boot mode (see above)
+
+  3. Turn board's power on;
+
+  4. Upload barebox image to the board via imx-usb-loader
+
+.. code-block:: none
+
+  host$ imx-usb-loader images/barebox-embest-imx6q-marsboard.img
+..
+
+  4. Flash barebox to SPI-NOR Flash via Android Fastboot
+
+.. code-block:: none
+
+  target$ fastboot flash bbu-spiflash images/barebox-embest-imx6q-marsboard.img
+
+..
+
+  5. Resore ``SW1 = 10`` for internal (SPI-NOR) boot (see above)
diff --git a/arch/arm/boards/Makefile b/arch/arm/boards/Makefile
index a814ab8239e8..10cd0c413db6 100644
--- a/arch/arm/boards/Makefile
+++ b/arch/arm/boards/Makefile
@@ -36,6 +36,7 @@ obj-$(CONFIG_MACH_EDB9315A)			+= edb93xx/
 obj-$(CONFIG_MACH_EDB9315)			+= edb93xx/
 obj-$(CONFIG_MACH_EFIKA_MX_SMARTBOOK)		+= efika-mx-smartbook/
 obj-$(CONFIG_MACH_EMBEDSKY_E9)			+= embedsky-e9/
+obj-$(CONFIG_MACH_EMBEST_MARSBOARD)		+= embest-marsboard/
 obj-$(CONFIG_MACH_EMBEST_RIOTBOARD)		+= embest-riotboard/
 obj-$(CONFIG_MACH_EUKREA_CPUIMX25)		+= eukrea_cpuimx25/
 obj-$(CONFIG_MACH_EUKREA_CPUIMX27)		+= eukrea_cpuimx27/
diff --git a/arch/arm/boards/embest-marsboard/Makefile b/arch/arm/boards/embest-marsboard/Makefile
new file mode 100644
index 000000000000..ef5219444c0e
--- /dev/null
+++ b/arch/arm/boards/embest-marsboard/Makefile
@@ -0,0 +1,3 @@
+obj-y += board.o
+lwl-y += lowlevel.o
+bbenv-y += defaultenv-mars
diff --git a/arch/arm/boards/embest-marsboard/board.c b/arch/arm/boards/embest-marsboard/board.c
new file mode 100644
index 000000000000..66893434c2cc
--- /dev/null
+++ b/arch/arm/boards/embest-marsboard/board.c
@@ -0,0 +1,63 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2013 Lucas Stach <l.stach@pengutronix.de>
+ * Copyright (C) 2014 Eric Bénard <eric@eukrea.com>
+ * Copyright (C) 2019 Ahmad Fatoum <a.fatoum@pengutronix.de>
+ */
+
+#include <common.h>
+#include <init.h>
+#include <envfs.h>
+#include <mach/bbu.h>
+#include <linux/phy.h>
+
+static int ar8035_phy_fixup(struct phy_device *dev)
+{
+	u16 val;
+
+	/* Ar803x phy SmartEEE feature cause link status generates glitch,
+	 * which cause ethernet link down/up issue, so disable SmartEEE
+	 */
+	phy_write(dev, 0xd, 0x3);
+	phy_write(dev, 0xe, 0x805d);
+	phy_write(dev, 0xd, 0x4003);
+
+	val = phy_read(dev, 0xe);
+	phy_write(dev, 0xe, val & ~(1 << 8));
+
+	/* To enable AR8031 ouput a 125MHz clk from CLK_25M */
+	phy_write(dev, 0xd, 0x7);
+	phy_write(dev, 0xe, 0x8016);
+	phy_write(dev, 0xd, 0x4007);
+
+	val = phy_read(dev, 0xe);
+	val &= 0xffe3;
+	val |= 0x18;
+	phy_write(dev, 0xe, val);
+
+	/* introduce tx clock delay */
+	phy_write(dev, 0x1d, 0x5);
+	val = phy_read(dev, 0x1e);
+	val |= 0x0100;
+	phy_write(dev, 0x1e, val);
+
+	return 0;
+}
+
+static int marsboard_device_init(void)
+{
+	if (!of_machine_is_compatible("embest,imx6q-marsboard"))
+		return 0;
+
+	barebox_set_hostname("marsboard");
+
+	phy_register_fixup_for_uid(0x004dd072, 0xffffffef, ar8035_phy_fixup);
+
+	imx6_bbu_internal_spi_i2c_register_handler("spiflash",
+		"/dev/m25p0.barebox", BBU_HANDLER_FLAG_DEFAULT);
+
+	defaultenv_append_directory(defaultenv_mars);
+
+	return 0;
+}
+device_initcall(marsboard_device_init);
diff --git a/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot b/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
new file mode 100644
index 000000000000..9c784fb73b29
--- /dev/null
+++ b/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ "$bootsource" != "serial" ]; then
+    exit 0
+fi
+
+usbgadget -a -A "" -b
diff --git a/arch/arm/boards/embest-marsboard/flash-header-embest-marsboard.imxcfg b/arch/arm/boards/embest-marsboard/flash-header-embest-marsboard.imxcfg
new file mode 100644
index 000000000000..bdaf60cb4a2b
--- /dev/null
+++ b/arch/arm/boards/embest-marsboard/flash-header-embest-marsboard.imxcfg
@@ -0,0 +1,99 @@
+soc imx6
+loadaddr 0x20000000
+dcdofs 0x400
+
+wm 32 0x020e05a8 0x00000030
+wm 32 0x020e05b0 0x00000030
+wm 32 0x020e0524 0x00000030
+wm 32 0x020e051c 0x00000030
+wm 32 0x020e0518 0x00000030
+wm 32 0x020e050c 0x00000030
+wm 32 0x020e05b8 0x00000030
+wm 32 0x020e05c0 0x00000030
+wm 32 0x020e05ac 0x00020030
+wm 32 0x020e05b4 0x00020030
+wm 32 0x020e0528 0x00020030
+wm 32 0x020e0520 0x00020030
+wm 32 0x020e0514 0x00020030
+wm 32 0x020e0510 0x00020030
+wm 32 0x020e05bc 0x00020030
+wm 32 0x020e05c4 0x00020030
+wm 32 0x020e056c 0x00020030
+wm 32 0x020e0578 0x00020030
+wm 32 0x020e0588 0x00020030
+wm 32 0x020e0594 0x00020030
+wm 32 0x020e057c 0x00020030
+wm 32 0x020e0590 0x00003000
+wm 32 0x020e0598 0x00003000
+wm 32 0x020e058c 0x00000000
+wm 32 0x020e059c 0x00003030
+wm 32 0x020e05a0 0x00003030
+wm 32 0x020e0784 0x00000030
+wm 32 0x020e0788 0x00000030
+wm 32 0x020e0794 0x00000030
+wm 32 0x020e079c 0x00000030
+wm 32 0x020e07a0 0x00000030
+wm 32 0x020e07a4 0x00000030
+wm 32 0x020e07a8 0x00000030
+wm 32 0x020e0748 0x00000030
+wm 32 0x020e074c 0x00000030
+wm 32 0x020e0750 0x00020000
+wm 32 0x020e0758 0x00000000
+wm 32 0x020e0774 0x00020000
+wm 32 0x020e078c 0x00000030
+wm 32 0x020e0798 0x000c0000
+wm 32 0x021b081c 0x33333333
+wm 32 0x021b0820 0x33333333
+wm 32 0x021b0824 0x33333333
+wm 32 0x021b0828 0x33333333
+wm 32 0x021b481c 0x33333333
+wm 32 0x021b4820 0x33333333
+wm 32 0x021b4824 0x33333333
+wm 32 0x021b4828 0x33333333
+wm 32 0x021b0018 0x00081740
+wm 32 0x021b001c 0x00008000
+wm 32 0x021b000c 0x555a7975
+wm 32 0x021b0010 0xff538e64
+wm 32 0x021b0014 0x01ff00db
+wm 32 0x021b002c 0x000026d2
+wm 32 0x021b0030 0x005b0e21
+wm 32 0x021b0008 0x09444040
+wm 32 0x021b0004 0x00025576
+wm 32 0x021b0040 0x00000027
+wm 32 0x021b0000 0x831a0000
+wm 32 0x021b001c 0x04088032
+wm 32 0x021b001c 0x0408803a
+wm 32 0x021b001c 0x00008033
+wm 32 0x021b001c 0x0000803b
+wm 32 0x021b001c 0x00428031
+wm 32 0x021b001c 0x00428039
+wm 32 0x021b001c 0x09408030
+wm 32 0x021b001c 0x09408038
+wm 32 0x021b001c 0x04008040
+wm 32 0x021b001c 0x04008048
+wm 32 0x021b0800 0xa1380003
+wm 32 0x021b4800 0xa1380003
+wm 32 0x021b0020 0x00005800
+wm 32 0x021b0818 0x00022227
+wm 32 0x021b4818 0x00022227
+wm 32 0x021b083c 0x434b0350
+wm 32 0x021b0840 0x034c0359
+wm 32 0x021b483c 0x434b0350
+wm 32 0x021b4840 0x03650348
+wm 32 0x021b0848 0x4436383b
+wm 32 0x021b4848 0x39393341
+wm 32 0x021b0850 0x35373933
+wm 32 0x021b4850 0x48254A36
+wm 32 0x021b080c 0x001f001f
+wm 32 0x021b0810 0x001f001f
+wm 32 0x021b480c 0x00440044
+wm 32 0x021b4810 0x00440044
+wm 32 0x021b08b8 0x00000800
+wm 32 0x021b48b8 0x00000800
+wm 32 0x021b001c 0x00000000
+wm 32 0x021b0404 0x00011006
+wm 32 0x020c4068 0x00c03f3f
+wm 32 0x020c406c 0x0030fc03
+wm 32 0x020c4070 0x0fffc000
+wm 32 0x020c4074 0x3ff00000
+wm 32 0x020c4078 0x00fff300
diff --git a/arch/arm/boards/embest-marsboard/lowlevel.c b/arch/arm/boards/embest-marsboard/lowlevel.c
new file mode 100644
index 000000000000..9e20a2ec0645
--- /dev/null
+++ b/arch/arm/boards/embest-marsboard/lowlevel.c
@@ -0,0 +1,41 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2019 Ahmad Fatoum - Pengutronix
+ */
+
+#include <common.h>
+#include <io.h>
+#include <asm/barebox-arm.h>
+#include <mach/imx6.h>
+#include <mach/esdctl.h>
+#include <mach/iomux-mx6.h>
+#include <debug_ll.h>
+
+static inline void setup_uart(void)
+{
+	void __iomem *iomuxbase = IOMEM(MX6_IOMUXC_BASE_ADDR);
+
+	imx6_ungate_all_peripherals();
+
+	imx_setup_pad(iomuxbase, MX6Q_PAD_EIM_D26__UART2_TXD);
+
+	imx6_uart_setup_ll();
+
+	putc_ll('>');
+}
+
+extern char __dtb_z_imx6q_marsboard_start[];
+
+ENTRY_FUNCTION(start_imx6q_marsboard, r0, r1, r2)
+{
+	void *fdt;
+
+	imx6_cpu_lowlevel_init();
+
+	if (IS_ENABLED(CONFIG_DEBUG_LL))
+		setup_uart();
+
+	fdt = __dtb_z_imx6q_marsboard_start + get_runtime_offset();
+
+	imx6q_barebox_entry(fdt);
+}
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index f33e6a49894e..27d14f814a3c 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -16,6 +16,7 @@ pbl-dtb-$(CONFIG_MACH_DUCKBILL) += imx28-duckbill.dtb.o
 pbl-dtb-$(CONFIG_MACH_KINDLE_MX50) += imx50-kindle-d01100.dtb.o imx50-kindle-d01200.dtb.o imx50-kindle-ey21.dtb.o
 pbl-dtb-$(CONFIG_MACH_EFIKA_MX_SMARTBOOK) += imx51-genesi-efika-sb.dtb.o
 pbl-dtb-$(CONFIG_MACH_ELTEC_HIPERCAM) += imx6dl-eltec-hipercam.dtb.o
+pbl-dtb-$(CONFIG_MACH_EMBEST_MARSBOARD) += imx6q-marsboard.dtb.o
 pbl-dtb-$(CONFIG_MACH_EMBEST_RIOTBOARD) += imx6s-riotboard.dtb.o
 pbl-dtb-$(CONFIG_MACH_EMBEDSKY_E9) += imx6q-embedsky-e9.dtb.o
 pbl-dtb-$(CONFIG_MACH_FREESCALE_MX51_PDK) += imx51-babbage.dtb.o
diff --git a/arch/arm/dts/imx6q-marsboard.dts b/arch/arm/dts/imx6q-marsboard.dts
new file mode 100644
index 000000000000..1d9f8f005df7
--- /dev/null
+++ b/arch/arm/dts/imx6q-marsboard.dts
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: GPL-2.0 OR X11
+/*
+ * Copyright (C) 2019 Ahmad Fatoum - Pengutronix
+ */
+
+#include <arm/imx6q-marsboard.dts>
+#include "imx6q.dtsi"
+
+/ {
+	chosen {
+		stdout-path = &uart2;
+
+		environment {
+			compatible = "barebox,environment";
+			device-path = &environment_spinor;
+		};
+	};
+};
+
+&ecspi1 {
+	m25p80@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		partition@0 {
+			label = "barebox";
+			reg = <0x000000 0x100000>;
+		};
+
+		environment_spinor: partition@100000 {
+			label = "barebox-environment";
+			reg = <0x100000 0x80000>;
+		};
+	};
+};
+
+&fec {
+	phy-reset-duration = <2>;
+};
+
+&ocotp {
+	barebox,provide-mac-address = <&fec 0x620>;
+};
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index e7721621ab6f..5ca84f620f01 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -397,6 +397,11 @@ config MACH_TECHNEXION_WANDBOARD
 	select ARM_USE_COMPRESSED_DTB
 	select MCI_IMX_ESDHC_PBL
 
+config MACH_EMBEST_MARSBOARD
+	bool "Embest MarSboard"
+	select ARCH_IMX6
+	select ARM_USE_COMPRESSED_DTB
+
 config MACH_EMBEST_RIOTBOARD
 	bool "Embest RIoTboard"
 	select ARCH_IMX6
diff --git a/images/Makefile.imx b/images/Makefile.imx
index 84c4071b6c07..a8f8a9b7d622 100644
--- a/images/Makefile.imx
+++ b/images/Makefile.imx
@@ -406,6 +406,11 @@ CFG_start_imx6q_embedsky_e9.pblb.imximg = $(board)/embedsky-e9/flash-header-e9.i
 FILE_barebox-embedsky-imx6q-e9.img = start_imx6q_embedsky_e9.pblb.imximg
 image-$(CONFIG_MACH_EMBEDSKY_E9) += barebox-embedsky-imx6q-e9.img
 
+pblb-$(CONFIG_MACH_EMBEST_MARSBOARD) += start_imx6q_marsboard
+CFG_start_imx6q_marsboard.pblb.imximg = $(board)/embest-marsboard/flash-header-embest-marsboard.imxcfg
+FILE_barebox-embest-imx6q-marsboard.img = start_imx6q_marsboard.pblb.imximg
+image-$(CONFIG_MACH_EMBEST_MARSBOARD) += barebox-embest-imx6q-marsboard.img
+
 pblb-$(CONFIG_MACH_EMBEST_RIOTBOARD) += start_imx6s_riotboard
 CFG_start_imx6s_riotboard.pblb.imximg = $(board)/embest-riotboard/flash-header-embest-riotboard.imxcfg
 FILE_barebox-embest-imx6s-riotboard.img = start_imx6s_riotboard.pblb.imximg
-- 
2.23.0


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

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

* [PATCH v2 2/2] ARM: imx_v7_defconfig: enable Embdest MarS board
  2019-09-12  6:54 [PATCH v2 0/2] ARM: imx6: add new MarsBoard support Ahmad Fatoum
  2019-09-12  6:54 ` [PATCH v2 1/2] ARM: imx6: add Embest MarSBoard support Ahmad Fatoum
@ 2019-09-12  6:54 ` Ahmad Fatoum
  2019-09-12  7:01 ` [PATCH v2 0/2] ARM: imx6: add new MarsBoard support Sascha Hauer
  2 siblings, 0 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2019-09-12  6:54 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum, eric

From: Ahmad Fatoum <ahmad@a3f.at>

Have it compile as part of the defconfig, to improve coverage.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
---
 arch/arm/configs/imx_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/imx_v7_defconfig b/arch/arm/configs/imx_v7_defconfig
index 18c27756870e..8b8178a96fc9 100644
--- a/arch/arm/configs/imx_v7_defconfig
+++ b/arch/arm/configs/imx_v7_defconfig
@@ -27,6 +27,7 @@ CONFIG_MACH_NITROGEN6=y
 CONFIG_MACH_SOLIDRUN_MICROSOM=y
 CONFIG_MACH_TECHNEXION_PICO_HOBBIT=y
 CONFIG_MACH_TECHNEXION_WANDBOARD=y
+CONFIG_MACH_EMBEST_MARSBOARD=y
 CONFIG_MACH_EMBEST_RIOTBOARD=y
 CONFIG_MACH_UDOO=y
 CONFIG_MACH_VARISCITE_MX6=y
-- 
2.23.0


_______________________________________________
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 v2 0/2] ARM: imx6: add new MarsBoard support
  2019-09-12  6:54 [PATCH v2 0/2] ARM: imx6: add new MarsBoard support Ahmad Fatoum
  2019-09-12  6:54 ` [PATCH v2 1/2] ARM: imx6: add Embest MarSBoard support Ahmad Fatoum
  2019-09-12  6:54 ` [PATCH v2 2/2] ARM: imx_v7_defconfig: enable Embdest MarS board Ahmad Fatoum
@ 2019-09-12  7:01 ` Sascha Hauer
  2 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2019-09-12  7:01 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox, eric

On Thu, Sep 12, 2019 at 08:54:10AM +0200, Ahmad Fatoum wrote:
> I've picked up v1 of the patch from here:
> https://barebox.infradead.narkive.com/mn9ZpGu6/patch-2-3-marsboard-add-new-board
> 
> and worked in the review feedback from back then.
> 
> v1 -> v2:
>  - rebased on current upstream/next
>  - removed seperate defconfig and added board to imx_v7_defconfig (Lucas)
>  - added boot mode documentation
>  - removed redundant VPU/IPU AXI configurations from DCD-Table (Sascha)
>  - removed setting console in linux bootargs (Sascha)
>  - have board-specific environment use bbenv-y in Makefile (Sascha)
>  - added barebox device tree that includes kernel device tree
>  - used imx6_uart_setup_ll and imx_setup_pad for debug_ll UART
>  - used compressed DTB
>  - used imx6q_barebox_entry instead of hardcoding RAM size
> 
> Ahmad Fatoum (2):
>   ARM: imx6: add Embest MarSBoard support
>   ARM: imx_v7_defconfig: enable Embdest MarS board
> 

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

* Re: [PATCH v2 1/2] ARM: imx6: add Embest MarSBoard support
  2019-09-12  6:54 ` [PATCH v2 1/2] ARM: imx6: add Embest MarSBoard support Ahmad Fatoum
@ 2019-09-15 20:01   ` Stefan Lengfeld
  2019-09-16  7:49     ` Ahmad Fatoum
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Lengfeld @ 2019-09-15 20:01 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Hi Ahmad,

On Thu, Sep 12, 2019 at 08:54:11AM +0200, Ahmad Fatoum wrote:
> This board is produced by Embest/Element 14 and is based on i.MX6 Dual.
> 
> For more informations on this board :
> http://www.embest-tech.com/shop/star/marsboard.html
> 
> Signed-off-by: Eric Bénard <eric@eukrea.com>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
[...]

+1 for good docu. It's really nice to have the boot jumpers documented.

> +Flashing barebox
> +----------------
> +
> +  1. Connect to the boards's Debug Mini-USB (115200 8N1)
> +
> +  2. Set ``SW1 = 01`` for serial boot mode (see above)
> +
> +  3. Turn board's power on;
> +
> +  4. Upload barebox image to the board via imx-usb-loader
> +
> +.. code-block:: none
> +
> +  host$ imx-usb-loader images/barebox-embest-imx6q-marsboard.img
> +..
> +
> +  4. Flash barebox to SPI-NOR Flash via Android Fastboot
> +
> +.. code-block:: none
> +
> +  target$ fastboot flash bbu-spiflash images/barebox-embest-imx6q-marsboard.img

'target' -> 'host', because the fastboot command is also executed on the
host machine, like the 'imx-usb-loader' command.

Apart from that

Tested-by: Stefan Lengfeld <contact@stefanchrist.eu>

for both patches.

Kind regards,
Stefan

[Mostly by accident I got hold of a MarS Board just a few days ago ;-)]

_______________________________________________
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 v2 1/2] ARM: imx6: add Embest MarSBoard support
  2019-09-15 20:01   ` Stefan Lengfeld
@ 2019-09-16  7:49     ` Ahmad Fatoum
  0 siblings, 0 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2019-09-16  7:49 UTC (permalink / raw)
  To: Stefan Lengfeld, barebox, Sascha Hauer

Hello Stefan,

On 9/15/19 10:01 PM, Stefan Lengfeld wrote:
> Hi Ahmad,
> 
> On Thu, Sep 12, 2019 at 08:54:11AM +0200, Ahmad Fatoum wrote:
>> This board is produced by Embest/Element 14 and is based on i.MX6 Dual.
>>
>> For more informations on this board :
>> http://www.embest-tech.com/shop/star/marsboard.html
>>
>> Signed-off-by: Eric Bénard <eric@eukrea.com>
>> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
>> ---
> [...]
> 
> +1 for good docu. It's really nice to have the boot jumpers documented.
> 
>> +Flashing barebox
>> +----------------
>> +
>> +  1. Connect to the boards's Debug Mini-USB (115200 8N1)
>> +
>> +  2. Set ``SW1 = 01`` for serial boot mode (see above)
>> +
>> +  3. Turn board's power on;
>> +
>> +  4. Upload barebox image to the board via imx-usb-loader
>> +
>> +.. code-block:: none
>> +
>> +  host$ imx-usb-loader images/barebox-embest-imx6q-marsboard.img
>> +..
>> +
>> +  4. Flash barebox to SPI-NOR Flash via Android Fastboot
>> +
>> +.. code-block:: none
>> +
>> +  target$ fastboot flash bbu-spiflash images/barebox-embest-imx6q-marsboard.img
> 
> 'target' -> 'host', because the fastboot command is also executed on the
> host machine, like the 'imx-usb-loader' command.

I've sent out a fixup.

> 
> Apart from that
> 
> Tested-by: Stefan Lengfeld <contact@stefanchrist.eu>
> 
> for both patches.

Thanks for trying it out.

Sascha, could you squash in the Tested-By when applying the fixup? Thanks.

> 
> Kind regards,
> Stefan
> 
> [Mostly by accident I got hold of a MarS Board just a few days ago ;-)]
> 

-- 
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:[~2019-09-16  7:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-12  6:54 [PATCH v2 0/2] ARM: imx6: add new MarsBoard support Ahmad Fatoum
2019-09-12  6:54 ` [PATCH v2 1/2] ARM: imx6: add Embest MarSBoard support Ahmad Fatoum
2019-09-15 20:01   ` Stefan Lengfeld
2019-09-16  7:49     ` Ahmad Fatoum
2019-09-12  6:54 ` [PATCH v2 2/2] ARM: imx_v7_defconfig: enable Embdest MarS board Ahmad Fatoum
2019-09-12  7:01 ` [PATCH v2 0/2] ARM: imx6: add new MarsBoard support Sascha Hauer

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