mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
configs/imx6ulpico: Use common script for image generation
Using the common board/freescale/common/post-image.sh can lead to some good amount of simplification. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
3fcde2f9db
commit
2e091135be
@ -1,41 +0,0 @@
|
|||||||
# Minimal eMMC card image for the Technexion's i.MX6UL Pico board
|
|
||||||
#
|
|
||||||
# We mimic the .sdcard Freescale's image format for i.MX6UL:
|
|
||||||
# * the eMMC must have 1 kB free space at the beginning,
|
|
||||||
# * U-Boot is dumped as is,
|
|
||||||
# * 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-pico-hobbit.dtb",
|
|
||||||
"zImage"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
size = 16M
|
|
||||||
}
|
|
||||||
|
|
||||||
image sdcard.img {
|
|
||||||
hdimage {
|
|
||||||
}
|
|
||||||
|
|
||||||
partition u-boot {
|
|
||||||
in-partition-table = "no"
|
|
||||||
image = "u-boot.imx"
|
|
||||||
offset = 1024
|
|
||||||
}
|
|
||||||
|
|
||||||
partition boot {
|
|
||||||
partition-type = 0xC
|
|
||||||
bootable = "true"
|
|
||||||
image = "boot.vfat"
|
|
||||||
offset = 8M
|
|
||||||
}
|
|
||||||
|
|
||||||
partition rootfs {
|
|
||||||
partition-type = 0x83
|
|
||||||
image = "rootfs.ext4"
|
|
||||||
}
|
|
||||||
}
|
|
@ -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}"
|
|
@ -45,6 +45,6 @@ BR2_PACKAGE_HOST_GENIMAGE=y
|
|||||||
BR2_PACKAGE_HOST_MTOOLS=y
|
BR2_PACKAGE_HOST_MTOOLS=y
|
||||||
|
|
||||||
# filesystem / image
|
# filesystem / image
|
||||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/technexion/imx6ulpico/post-image.sh"
|
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/post-image.sh"
|
||||||
BR2_TARGET_ROOTFS_EXT2=y
|
BR2_TARGET_ROOTFS_EXT2=y
|
||||||
BR2_TARGET_ROOTFS_EXT2_4=y
|
BR2_TARGET_ROOTFS_EXT2_4=y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user