Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] uboot: Config.in: Update BR2_TARGET_UBOOT_SPL_NAME help text
@ 2017-03-14 11:01 Jagan Teki
  2017-03-14 11:01 ` [Buildroot] [PATCH 2/2] board: Add support for Engicam i.CoreM6 Quad Jagan Teki
  2017-03-14 22:39 ` [Buildroot] [PATCH 1/2] uboot: Config.in: Update BR2_TARGET_UBOOT_SPL_NAME help text Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Jagan Teki @ 2017-03-14 11:01 UTC (permalink / raw)
  To: buildroot

From: Jagan Teki <jagan@amarulasolutions.com>

SPL is the name used for spl on i.MX6, so update the
same on BR2_TARGET_UBOOT_SPL_NAME help text.

Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 boot/uboot/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index 7a73877..571c9b1 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -328,7 +328,7 @@ config BR2_TARGET_UBOOT_SPL_NAME
 	help
 	  A space-separated list of SPL binaries, generated during
 	  u-boot build. For most platform it is spl/u-boot-spl.bin
-	  but not always. It is MLO on OMAP for example.
+	  but not always. It is MLO on OMAP and SPL on i.MX6 for example.
 
 config BR2_TARGET_UBOOT_ZYNQ_IMAGE
 	bool "Generate image for Xilinx Zynq"
-- 
1.9.1

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

* [Buildroot] [PATCH 2/2] board: Add support for Engicam i.CoreM6 Quad
  2017-03-14 11:01 [Buildroot] [PATCH 1/2] uboot: Config.in: Update BR2_TARGET_UBOOT_SPL_NAME help text Jagan Teki
@ 2017-03-14 11:01 ` Jagan Teki
  2017-03-19 14:20   ` Thomas Petazzoni
  2017-03-14 22:39 ` [Buildroot] [PATCH 1/2] uboot: Config.in: Update BR2_TARGET_UBOOT_SPL_NAME help text Thomas Petazzoni
  1 sibling, 1 reply; 5+ messages in thread
From: Jagan Teki @ 2017-03-14 11:01 UTC (permalink / raw)
  To: buildroot

From: Jagan Teki <jagan@amarulasolutions.com>

Add initial support for Engicam i.CoreM6 Quad board with
below features:
- U-Boot 2017.03 with mmc boot
- Linux 4.10.1
- Default packages from buildroot

Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 DEVELOPERS                    |  4 ++++
 board/engicam/readme.txt      | 38 ++++++++++++++++++++++++++++++++++++++
 configs/imx6q_icore_defconfig | 33 +++++++++++++++++++++++++++++++++
 3 files changed, 75 insertions(+)
 create mode 100644 board/engicam/readme.txt
 create mode 100644 configs/imx6q_icore_defconfig

diff --git a/DEVELOPERS b/DEVELOPERS
index e08b65d..fd46232 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -788,6 +788,10 @@ F:	package/angularjs/
 N:	Ilias Apalodimas <apalos@gmail.com>
 F:	package/keepalived/
 
+N:	Jagan Teki <jagan@amarulasolutions.com>
+F:	board/engicam/
+F:	configs/imx6q_icore_defconfig
+
 N:	James Knight <james.knight@rockwellcollins.com>
 F:	package/atkmm/
 F:	package/cairomm/
diff --git a/board/engicam/readme.txt b/board/engicam/readme.txt
new file mode 100644
index 0000000..55fdf53
--- /dev/null
+++ b/board/engicam/readme.txt
@@ -0,0 +1,38 @@
+Buildroot build:
+----------------
+
+- Building for i.CoreM6 Quad/Dual Starter Kit
+
+$ make ARCH=arm imx6q_icore_defconfig
+$ make ARCH=arm menuconfig
+$ make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabi- -j 12
+
+images copy:
+-----------
+
+$ cd output/images
+
+- Flash the SPL image into the micro SD card:
+
+$ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
+
+- Flash the u-boot-dtb.img image into the micro SD card:
+
+$ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69; sync
+
+- Copy output/images/uImage to mmc card first partition
+
+- Copy output/images/imx6q-icore.dtb to mmc card first partition
+
+- Copy output/images/rootfs.tar.xz to mmc card second partition and untar there.
+
+MMC Boot:
+--------
+
+Jumpers: JM3 Closed
+
+- Connect the Serial cable between the Starter Kit and the PC for the console.
+(J28 is the Linux Serial console connector)
+
+- Insert the micro SD card in the board, power it up and U-Boot messages should
+come up and then Linux will autoboot.
diff --git a/configs/imx6q_icore_defconfig b/configs/imx6q_icore_defconfig
new file mode 100644
index 0000000..9c3ff4b
--- /dev/null
+++ b/configs/imx6q_icore_defconfig
@@ -0,0 +1,33 @@
+BR2_arm=y
+BR2_cortex_a9=y
+BR2_ARM_ENABLE_NEON=y
+BR2_ARM_ENABLE_VFP=y
+BR2_ARM_FPU_VFPV3=y
+
+# System
+BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
+
+# Filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_ROOTFS_TAR_XZ=y
+
+# Bootloader
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_LATEST_VERSION=y
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx6q_icore_mmc"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
+BR2_TARGET_UBOOT_FORMAT_DTB_IMG=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="SPL"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_LATEST_VERSION=y
+BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
+BR2_LINUX_KERNEL_UIMAGE=y
+BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x10008000"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-icore"
-- 
1.9.1

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

* [Buildroot] [PATCH 1/2] uboot: Config.in: Update BR2_TARGET_UBOOT_SPL_NAME help text
  2017-03-14 11:01 [Buildroot] [PATCH 1/2] uboot: Config.in: Update BR2_TARGET_UBOOT_SPL_NAME help text Jagan Teki
  2017-03-14 11:01 ` [Buildroot] [PATCH 2/2] board: Add support for Engicam i.CoreM6 Quad Jagan Teki
@ 2017-03-14 22:39 ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2017-03-14 22:39 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 14 Mar 2017 16:31:05 +0530, Jagan Teki wrote:
> From: Jagan Teki <jagan@amarulasolutions.com>
> 
> SPL is the name used for spl on i.MX6, so update the
> same on BR2_TARGET_UBOOT_SPL_NAME help text.
> 
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
> ---
>  boot/uboot/Config.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I've applied, after rewrapping the Config.in help text. We obviously
won't be listing the name of SPL images for all platforms, but having
two examples is nice, which is why I've applied your patch.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 2/2] board: Add support for Engicam i.CoreM6 Quad
  2017-03-14 11:01 ` [Buildroot] [PATCH 2/2] board: Add support for Engicam i.CoreM6 Quad Jagan Teki
@ 2017-03-19 14:20   ` Thomas Petazzoni
       [not found]     ` <CAMty3ZA275KNiBcuM_YvZVmYcQQXp-Zq2R0o7_y2w7p6xxfZ-Q@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2017-03-19 14:20 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 14 Mar 2017 16:31:06 +0530, Jagan Teki wrote:
> From: Jagan Teki <jagan@amarulasolutions.com>
> 
> Add initial support for Engicam i.CoreM6 Quad board with
> below features:
> - U-Boot 2017.03 with mmc boot
> - Linux 4.10.1
> - Default packages from buildroot
> 
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Cc: Matteo Lisi <matteo.lisi@engicam.com>
> Cc: Michael Trimarchi <michael@amarulasolutions.com>
> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>

Thanks for this patch! I have a few comments, see below.

> diff --git a/board/engicam/readme.txt b/board/engicam/readme.txt
> new file mode 100644
> index 0000000..55fdf53
> --- /dev/null
> +++ b/board/engicam/readme.txt
> @@ -0,0 +1,38 @@

Here, a few details about the board, like a link to the webpage, etc.
would be nice.

> +Buildroot build:

Look at other readme.txt files to see how they are structured, and the
section titles they are using. board/freescale/imx6sabre/readme.txt is
a good example.

> +----------------
> +
> +- Building for i.CoreM6 Quad/Dual Starter Kit
> +
> +$ make ARCH=arm imx6q_icore_defconfig
> +$ make ARCH=arm menuconfig
> +$ make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabi- -j 12

ARCH and CROSS_COMPILE are completely useless for Buildroot.

Also, your defconfig should be named engicam_imx6q_icore_defconfig.

> +images copy:
> +-----------
> +
> +$ cd output/images
> +
> +- Flash the SPL image into the micro SD card:
> +
> +$ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
> +
> +- Flash the u-boot-dtb.img image into the micro SD card:
> +
> +$ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69; sync
> +
> +- Copy output/images/uImage to mmc card first partition
> +
> +- Copy output/images/imx6q-icore.dtb to mmc card first partition
> +
> +- Copy output/images/rootfs.tar.xz to mmc card second partition and untar there.

Please replace all of this by using genimage so that Buildroot directly
produces a ready-to-use SD card image. There are numerous examples in
the Buildroot tree for i.MX6 platforms.

> diff --git a/configs/imx6q_icore_defconfig b/configs/imx6q_icore_defconfig
> new file mode 100644
> index 0000000..9c3ff4b
> --- /dev/null
> +++ b/configs/imx6q_icore_defconfig
> @@ -0,0 +1,33 @@
> +BR2_arm=y
> +BR2_cortex_a9=y
> +BR2_ARM_ENABLE_NEON=y
> +BR2_ARM_ENABLE_VFP=y
> +BR2_ARM_FPU_VFPV3=y
> +
> +# System
> +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
> +
> +# Filesystem
> +BR2_TARGET_ROOTFS_EXT2=y
> +BR2_TARGET_ROOTFS_EXT2_4=y
> +BR2_TARGET_ROOTFS_TAR_XZ=y

No real point in having both an ext2 filesystem and a tar filesystem.

> +# Bootloader
> +BR2_TARGET_UBOOT=y

Please use a fixed version of U-Boot.

> +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
> +BR2_TARGET_UBOOT_LATEST_VERSION=y
> +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="imx6q_icore_mmc"
> +BR2_TARGET_UBOOT_NEEDS_DTC=y
> +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
> +BR2_TARGET_UBOOT_FORMAT_DTB_IMG=y
> +BR2_TARGET_UBOOT_SPL=y
> +BR2_TARGET_UBOOT_SPL_NAME="SPL"
> +
> +# Kernel
> +BR2_LINUX_KERNEL=y
> +BR2_LINUX_KERNEL_LATEST_VERSION=y

Please used a fixed version of the kernel. Also, remember to set the
kernel headers version properly. See
configs/freescale_imx6qsabresd_defconfig for a good defconfig.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 2/2] board: Add support for Engicam i.CoreM6 Quad
       [not found]     ` <CAMty3ZA275KNiBcuM_YvZVmYcQQXp-Zq2R0o7_y2w7p6xxfZ-Q@mail.gmail.com>
@ 2017-03-24 12:49       ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2017-03-24 12:49 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 24 Mar 2017 16:08:22 +0530, Jagan Teki wrote:

> > Also, your defconfig should be named engicam_imx6q_icore_defconfig.  
> 
> Just for my understanding, why we add prefix engicam_ here because
> these boards always use Mainline code instead of freescale or some
> other source. I guess the reason behind
> freescale_imx6qsabresd_defconfig and imx6q-sabresd_defconfig based on
> the source where it cloned is that correct?

No, the main reason is just inconsistency I'd say. Ideally, all
defconfigs should follow this <vendor>_<product>_defconfig format I
believe.

> > Please use a fixed version of U-Boot.  
> 
> I'm planning to sync with Latest sources instead of some specific
> version, so-that I don't need to change my config again for next
> available/suitable version of source.

That's not how our defconfigs work. We want to build a fixed version of
the kernel and U-Boot, which has been tested by the person submitting
the defconfig. So please adopt the convention used in other defconfigs,
thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

end of thread, other threads:[~2017-03-24 12:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-14 11:01 [Buildroot] [PATCH 1/2] uboot: Config.in: Update BR2_TARGET_UBOOT_SPL_NAME help text Jagan Teki
2017-03-14 11:01 ` [Buildroot] [PATCH 2/2] board: Add support for Engicam i.CoreM6 Quad Jagan Teki
2017-03-19 14:20   ` Thomas Petazzoni
     [not found]     ` <CAMty3ZA275KNiBcuM_YvZVmYcQQXp-Zq2R0o7_y2w7p6xxfZ-Q@mail.gmail.com>
2017-03-24 12:49       ` Thomas Petazzoni
2017-03-14 22:39 ` [Buildroot] [PATCH 1/2] uboot: Config.in: Update BR2_TARGET_UBOOT_SPL_NAME help text Thomas Petazzoni

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