mx6: udoo: Create a mx6qdl directory for consistency
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 14 Dec 2016 15:03:21 +0000 (13:03 -0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 14 Dec 2016 15:15:06 +0000 (16:15 +0100)
The udoo neo files are currently placed inside udoo/neo directory.

Place the mx6qdl udoo related files inside udoo/mx6dl for consistency.

[Peter also update path in readme.txt]
Suggested-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/udoo/genimage.cfg [deleted file]
board/udoo/linux.fragment [deleted file]
board/udoo/mx6qdl/genimage.cfg [new file with mode: 0644]
board/udoo/mx6qdl/linux.fragment [new file with mode: 0644]
board/udoo/mx6qdl/post-image.sh [new file with mode: 0755]
board/udoo/mx6qdl/readme.txt [new file with mode: 0644]
board/udoo/post-image.sh [deleted file]
board/udoo/readme.txt [deleted file]
configs/mx6udoo_defconfig

diff --git a/board/udoo/genimage.cfg b/board/udoo/genimage.cfg
deleted file mode 100644 (file)
index 4361d54..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-# Minimal microSD card image for Udoo MX6Q/DL boards
-#
-# We mimic the .sdcard Freescale's image format for i.MX6:
-# * the microSD card must have 1 kB free space at the beginning,
-# * U-Boot is dumped as is,
-# * a FAT partition at offset 16 MB is containing zImage and dtbs,
-# * a single root filesystem partition is required (Ext4 in this case).
-#
-
-image boot.vfat {
-       vfat {
-               files = {
-                       "imx6q-udoo.dtb",
-                       "imx6dl-udoo.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 = 16M
-       }
-
-       partition rootfs {
-               partition-type = 0x83
-               image = "rootfs.ext4"
-       }
-}
diff --git a/board/udoo/linux.fragment b/board/udoo/linux.fragment
deleted file mode 100644 (file)
index 2acad15..0000000
+++ /dev/null
@@ -1 +0,0 @@
-CONFIG_USB=n
diff --git a/board/udoo/mx6qdl/genimage.cfg b/board/udoo/mx6qdl/genimage.cfg
new file mode 100644 (file)
index 0000000..4361d54
--- /dev/null
@@ -0,0 +1,48 @@
+# Minimal microSD card image for Udoo MX6Q/DL boards
+#
+# We mimic the .sdcard Freescale's image format for i.MX6:
+# * the microSD card must have 1 kB free space at the beginning,
+# * U-Boot is dumped as is,
+# * a FAT partition at offset 16 MB is containing zImage and dtbs,
+# * a single root filesystem partition is required (Ext4 in this case).
+#
+
+image boot.vfat {
+       vfat {
+               files = {
+                       "imx6q-udoo.dtb",
+                       "imx6dl-udoo.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 = 16M
+       }
+
+       partition rootfs {
+               partition-type = 0x83
+               image = "rootfs.ext4"
+       }
+}
diff --git a/board/udoo/mx6qdl/linux.fragment b/board/udoo/mx6qdl/linux.fragment
new file mode 100644 (file)
index 0000000..2acad15
--- /dev/null
@@ -0,0 +1 @@
+CONFIG_USB=n
diff --git a/board/udoo/mx6qdl/post-image.sh b/board/udoo/mx6qdl/post-image.sh
new file mode 100755 (executable)
index 0000000..b4ac460
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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}"
diff --git a/board/udoo/mx6qdl/readme.txt b/board/udoo/mx6qdl/readme.txt
new file mode 100644 (file)
index 0000000..cf1a610
--- /dev/null
@@ -0,0 +1,17 @@
+Udoo MX6Q/DL board
+
+For information about MX6 Udoo boards:
+http://www.udoo.org/
+
+To build a minimal support for these boards:
+
+    $ make mx6udoo_defconfig
+    $ make
+
+Buildroot prepares a bootable "sdcard.img" image in the output/images/
+directory, ready to be dumped on a micro SD card:
+
+dd if=output/images/sdcard.img of=/dev/<your-microsd-device>
+
+For details about the medium image layout, see the definition in
+board/udoo/mx6qdl/genimage.cfg.
diff --git a/board/udoo/post-image.sh b/board/udoo/post-image.sh
deleted file mode 100755 (executable)
index b4ac460..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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}"
diff --git a/board/udoo/readme.txt b/board/udoo/readme.txt
deleted file mode 100644 (file)
index acd05f6..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-Udoo MX6Q/DL board
-
-For information about MX6 Udoo boards:
-http://www.udoo.org/
-
-To build a minimal support for these boards:
-
-    $ make mx6udoo_defconfig
-    $ make
-
-Buildroot prepares a bootable "sdcard.img" image in the output/images/
-directory, ready to be dumped on a micro SD card:
-
-dd if=output/images/sdcard.img of=/dev/<your-microsd-device>
-
-For details about the medium image layout, see the definition in
-board/udoo/genimage.cfg.
index 8c1b28ab5e4712774a4a4440bf14457e24fa8de2..394580b8208b40c853aad35cac248a4d4ccdd2f4 100644 (file)
@@ -3,7 +3,7 @@ BR2_cortex_a9=y
 # Linux headers same as kernel, a 4.8 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_8=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1"
-BR2_ROOTFS_POST_IMAGE_SCRIPT="board/udoo/post-image.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/udoo/mx6qdl/post-image.sh"
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_UBOOT=y
@@ -17,7 +17,7 @@ BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.11"
 BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
-BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/udoo/linux.fragment"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/udoo/mx6qdl/linux.fragment"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-udoo imx6dl-udoo"
 # required tools to create the SD card image