board/kontron/pitx-imx8m: use extlinux instead of U-Boot boot script
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
c8bf60c50c
commit
ed380f62e0
|
@ -1,8 +0,0 @@
|
|||
echo "Root File Sytem on MMC${devnum}"
|
||||
setenv rootfs /dev/mmcblk${devnum}p1
|
||||
setenv bootargs root=${rootfs} rootwait rw ${extrabootargs}
|
||||
|
||||
load ${devtype} ${devnum} ${kernel_addr_r} boot/Image
|
||||
load ${devtype} ${devnum} ${fdt_addr_r} boot/imx8mq-kontron-pitx-imx8m.dtb
|
||||
|
||||
booti ${kernel_addr_r} - ${fdt_addr_r}
|
4
board/kontron/pitx-imx8m/extlinux.conf
Normal file
4
board/kontron/pitx-imx8m/extlinux.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
label buildroot
|
||||
kernel /boot/Image
|
||||
devicetree /boot/freescale/imx8mq-kontron-pitx-imx8m.dtb
|
||||
append root=PARTUUID=%PARTUUID% rootwait rw
|
|
@ -1,5 +1,6 @@
|
|||
image sdcard.img {
|
||||
hdimage {
|
||||
partition-table-type = "gpt"
|
||||
}
|
||||
|
||||
partition imx-boot {
|
||||
|
@ -9,8 +10,8 @@ image sdcard.img {
|
|||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
offset = 8M
|
||||
image = "rootfs.ext4"
|
||||
partition-uuid = %PARTUUID%
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
#!/bin/sh
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
PARTUUID="$($HOST_DIR/bin/uuidgen)"
|
||||
|
||||
mkdir -p $TARGET_DIR/boot/
|
||||
cp $BINARIES_DIR/boot.scr $TARGET_DIR/boot/boot.scr
|
||||
install -d "$TARGET_DIR/boot/extlinux/"
|
||||
sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/extlinux.conf" > "$TARGET_DIR/boot/extlinux/extlinux.conf"
|
||||
sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/genimage.cfg" > "$BINARIES_DIR/genimage.cfg"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
support/scripts/genimage.sh -c $(dirname $0)/genimage.cfg
|
||||
support/scripts/genimage.sh -c ${BINARIES_DIR}/genimage.cfg
|
||||
|
|
|
@ -14,6 +14,7 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.13"
|
|||
BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/imx8mq-kontron-pitx-imx8m"
|
||||
BR2_LINUX_KERNEL_DTB_KEEP_DIRNAME=y
|
||||
BR2_LINUX_KERNEL_INSTALL_TARGET=y
|
||||
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
|
||||
|
||||
|
@ -49,5 +50,3 @@ BR2_PACKAGE_HOST_GENIMAGE=y
|
|||
BR2_PACKAGE_HOST_IMX_MKIMAGE=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/kontron/pitx-imx8m/boot.cmd"
|
||||
|
|
Loading…
Reference in a new issue