Skip to contentSkip to conversation

board: add support for liteBoard

PATCH New Marcin Niestroj 3 participants 3 messages Oct 3, 2016 – Oct 5, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 board: add support for liteBoard

Board support package includes:

* Buildroot defconfig
* Mainline Linux kernel v4.8 with board support patches
* Mainline U-Boot v2016.09 with board support patches
* genimage config to create sdcard image
* Board readme.txt

---
Changes v1 -> v2:
* Bumped Linux version to 4.8
* Updated Linux patches to newest upstreamable version
* Updated U-Boot patches to upstreamable ones

 board/grinn/liteboard/genimage.cfg                 |  48 ++
 ...ARM-dts-imx6ul-Add-DTS-for-liteSOM-module.patch | 112 ++++
 ...0002-ARM-dts-imx6ul-Add-DTS-for-liteBoard.patch | 195 +++++++
 .../0001-ARM-imx6ul-Add-support-for-liteSOM.patch  | 311 +++++++++++
 ...board-liteboard-Add-support-for-liteBoard.patch | 621 +++++++++++++++++++++
 board/grinn/liteboard/post-image.sh                |  16 +
 board/grinn/liteboard/readme.txt                   |  46 ++
 configs/grinn_liteboard_defconfig                  |  26 +
 8 files changed, 1375 insertions(+)
 create mode 100644 board/grinn/liteboard/genimage.cfg
 create mode 100644 board/grinn/liteboard/patches/linux/0001-ARM-dts-imx6ul-Add-DTS-for-liteSOM-module.patch
 create mode 100644 board/grinn/liteboard/patches/linux/0002-ARM-dts-imx6ul-Add-DTS-for-liteBoard.patch
 create mode 100644 board/grinn/liteboard/patches/uboot/0001-ARM-imx6ul-Add-support-for-liteSOM.patch
 create mode 100644 board/grinn/liteboard/patches/uboot/0002-board-liteboard-Add-support-for-liteBoard.patch
 create mode 100755 board/grinn/liteboard/post-image.sh
 create mode 100644 board/grinn/liteboard/readme.txt
 create mode 100644 configs/grinn_liteboard_defconfig
board/grinn/liteboard/genimage.cfg new file +48 -0
new file mode 100644
index 0000000..cbce2db
@@ -0,0 +1,48 @@
+# Minimal microSD card image for Grinn's liteBoard
+#
+# We mimic the .sdcard Freescale's image format for i.MX6UL:
+# * the microSD card must have 1 kB free space at the beginning,
+# * SPL is dumped as is,
+# * U-Boot is dumped at 69K offset, as configured in SPL
+# * a FAT partition at offset 8 MB is containing zImage and dtbs,
+# * a single root filesystem partition is required (Ext4 in this case).
+#
+
+image boot.vfat {
+  vfat {
+    files = {
+      "imx6ul-liteboard.dtb",
+      "zImage"
+    }
+  }
+  size = 16M
+}
+
+image sdcard.img {
+  hdimage {
+  }
+
+  partition SPL {
+    in-partition-table = "no"
+    image = "SPL"
+    offset = 1K
+  }
+
+  partition u-boot {
+    in-partition-table = "no"
+    image = "u-boot.img"
+    offset = 69K
+  }
+
+  partition boot {
+    partition-type = 0xC
+    bootable = "true"
+    image = "boot.vfat"
+    offset = 8M
+  }
+
+  partition rootfs {
+    partition-type = 0x83
+    image = "rootfs.ext4"
+  }
+}
board/grinn/liteboard/patches/linux/0001-ARM-dts-imx6ul-Add-DTS-for-liteSOM-module.patch new file +112 -0

112 lines not on this page · raw message

board/grinn/liteboard/patches/linux/0002-ARM-dts-imx6ul-Add-DTS-for-liteBoard.patch new file +195 -0

195 lines not on this page · raw message

board/grinn/liteboard/patches/uboot/0001-ARM-imx6ul-Add-support-for-liteSOM.patch new file +311 -0

311 lines not on this page · raw message

board/grinn/liteboard/patches/uboot/0002-board-liteboard-Add-support-for-liteBoard.patch new file +621 -0

621 lines not on this page · raw message

board/grinn/liteboard/post-image.sh new file +16 -0
new file mode 100755
index 0000000..8757355
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+rm -rf "${GENIMAGE_TMP}"
+
+genimage \
+  --rootpath "${TARGET_DIR}" \
+  --tmppath "${GENIMAGE_TMP}" \
+  --inputpath "${BINARIES_DIR}" \
+  --outputpath "${BINARIES_DIR}" \
+  --config "${GENIMAGE_CFG}"
+
+exit $?
board/grinn/liteboard/readme.txt new file +46 -0

46 lines not on this page · raw message

configs/grinn_liteboard_defconfig new file +26 -0
new file mode 100644
index 0000000..5edb375
@@ -0,0 +1,26 @@
+BR2_arm=y
+BR2_cortex_a7=y
+BR2_GLOBAL_PATCH_DIR="board/grinn/liteboard/patches"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_8=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
+BR2_SYSTEM_DHCP="eth0"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/grinn/liteboard/post-image.sh"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8"
+BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6ul-liteboard"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.09"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="liteboard"
+BR2_TARGET_UBOOT_FORMAT_IMG=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="SPL"
+BR2_PACKAGE_HOST_DOSFSTOOLS=y
+BR2_PACKAGE_HOST_GENIMAGE=y
+BR2_PACKAGE_HOST_MTOOLS=y
Signature · 1 line
2.10.0
#2 lore raw

PATCH v2 1/1 board: add support for liteBoard

In reply to Marcin Niestroj

Hello,

Quoted 8 lines · Marcin Niestroj

Board support package includes:

* Buildroot defconfig
* Mainline Linux kernel v4.8 with board support patches
* Mainline U-Boot v2016.09 with board support patches
* genimage config to create sdcard image
* Board readme.txt

Quoted 6 lines

---
Changes v1 -> v2:
* Bumped Linux version to 4.8
* Updated Linux patches to newest upstreamable version
* Updated U-Boot patches to upstreamable ones

Applied to master, thanks. Thanks Fabio for the review!

Best regards,

Thomas

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