compilation d'une fitImage pour la pengwyn en lieu et place de uImage

This commit is contained in:
2023-03-07 16:21:27 +00:00
parent 69dd34b709
commit 46c88d0ea3

View File

@@ -7,16 +7,17 @@ require conf/machine/include/ti33x.inc
IMAGE_CLASSES += "sdcard_image-pengwyn"
#IMAGE_FSTYPES += "ubifs ubi tar.bz2 jffs2 wic wic.bmap"
IMAGE_FSTYPES ?= "tar.bz2 ext4 wic wic.bmap"
WKS_FILE ?= "pengwyn.wks"
#IMAGE_FSTYPES ?= "tar.bz2 ext4 wic wic.bmap"
IMAGE_FSTYPES = "tar.bz2 ext4"
#WKS_FILE ?= "pengwyn.wks"
#MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-modules"
do_image_wic[depends] += " \
mtools-native:do_populate_sysroot \
dosfstools-native:do_populate_sysroot \
virtual/bootloader:do_deploy \
virtual/dtb:do_deploy \
"
#do_image_wic[depends] += " \
# mtools-native:do_populate_sysroot \
# dosfstools-native:do_populate_sysroot \
# virtual/bootloader:do_deploy \
# virtual/dtb:do_deploy \
#"
# A list of machine-dependent packages not essential for booting the image.
# Thus, the build does not fail if the packages do not exist.
@@ -54,9 +55,19 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
PREFERRED_VERSION_linux-ti-staging ?= "5.4%"
#KERNEL_IMAGETYPE = "zImage"
KERNEL_IMAGETYPE = "uImage"
#KERNEL_IMAGETYPE = "uImage"
KERNEL_CLASSES ?= " kernel-fitimage "
KERNEL_IMAGETYPE = "fitImage"
# Not necessary => see devicetree recipe
#KERNEL_DEVICETREE = "am335x-pengwyn.dtb"
KERNEL_DEVICETREE:remove = " \
am335x-evmsk.dtb \
am335x-icev2.dtb \
am335x-pocketbeagle.dtb am335x-bone.dtb am335x-boneblue.dtb \
am335x-bonegreen.dtb am335x-bonegreen-wireless.dtb \
am335x-boneblack.dtb am335x-boneblack-wireless.dtb \
am335x-sancloud-bbe.dtb \
"
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
##########################################################
@@ -70,6 +81,7 @@ PREFERRED_VERSION_dtb ?= "1.0%"
MACHINE_FEATURES = "usbgadget usbhost vfat"
IMAGE_BOOT_FILES = "MLO u-boot.${UBOOT_SUFFIX} uEnv.txt uImage devicetree/am335x-pengwyn.dtb"
#IMAGE_BOOT_FILES = "MLO u-boot.${UBOOT_SUFFIX} uEnv.txt uImage devicetree/am335x-pengwyn.dtb"
IMAGE_BOOT_FILES = "MLO u-boot.${UBOOT_SUFFIX} uEnv.txt fitImage devicetree/am335x-pengwyn.dtb"
RM_WORK_EXCLUDE += "u-boot-ti-staging linux-ti-staging"