modification du meta-pengwyn pour l'integration d'un initramfs inclus dans le noyau pour chiffrer une partition avec dm-crypt/LUKS
This commit is contained in:
126
conf/machine/pengwyn_fitimage.conf
Normal file
126
conf/machine/pengwyn_fitimage.conf
Normal file
@@ -0,0 +1,126 @@
|
||||
#@TYPE: Machine
|
||||
#@NAME: AM335x Pengwyn
|
||||
#@DESCRIPTION: Machine configuration for the Silica Pengwyn Board
|
||||
|
||||
require conf/machine/include/ti33x.inc
|
||||
|
||||
IMAGE_CLASSES += "sdcard_image-pengwyn"
|
||||
|
||||
#IMAGE_FSTYPES ?= "tar.bz2 ext4 wic wic.bmap"
|
||||
IMAGE_FSTYPES = "tar.bz2 ext4"
|
||||
#MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-devicetree"
|
||||
#MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image kernel-modules"
|
||||
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-image"
|
||||
|
||||
# A list of machine-dependent packages not essential for booting the image.
|
||||
# Thus, the build does not fail if the packages do not exist.
|
||||
# However, the packages are required for a fully-featured image
|
||||
#MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
|
||||
|
||||
# Normally AM335 boards use ttyS0, but ICE uses ttyS3, so try both
|
||||
SERIAL_CONSOLES = "115200;ttyS0 115200;ttyO0 115200;ttyAMA0"
|
||||
SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
|
||||
|
||||
EXTRA_IMAGEDEPENDS += "virtual/bootloader virtual/dtb"
|
||||
|
||||
##########################################################
|
||||
#
|
||||
# Bootloader
|
||||
#
|
||||
##########################################################
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
|
||||
PREFERRED_VERSION_u-boot ?= "u-boot-ti-staging_2020.07%"
|
||||
|
||||
# The file type for the Secondary Program Loader (SPL)
|
||||
SPL_BINARY = "MLO"
|
||||
UBOOT_SUFFIX = "img"
|
||||
UBOOT_MACHINE = "pengwyn_defconfig"
|
||||
UBOOT_ENTRYPOINT = "0x80008000"
|
||||
UBOOT_LOADADDRESS = "0x80008000"
|
||||
UBOOT_DTB_LOADADDRESS = "0x80F80000"
|
||||
|
||||
# Localtion of the directory containing the RSA key and certificate used for signing image
|
||||
UBOOT_SIGN_KEYDIR = "${PWD}/scle_keys"
|
||||
# keys name in keydir (eg. "dev.crt", "dev.key")
|
||||
UBOOT_SIGN_KEYNAME = "scle"
|
||||
UBOOT_SIGN_ENABLE = "1"
|
||||
|
||||
# Localtion of the directory containing the RSA key and certificate used for signing bootloader
|
||||
SPL_SIGN_KEYDIR = "${PWD}/scle_keys"
|
||||
SPL_SIGN_KEYNAME = "scle"
|
||||
SPL_SIGN_ENABLE = "0"
|
||||
|
||||
##########################################################
|
||||
#
|
||||
# U-Boot FIT Image
|
||||
#
|
||||
##########################################################
|
||||
|
||||
# Enable use of a U-Boot fitImage
|
||||
UBOOT_FITIMAGE_ENABLE = "0"
|
||||
# U-Boot fitImage Hash Algo
|
||||
UBOOT_FIT_HASH_ALG = "sha256"
|
||||
# U-Boot fitImage Signature Algo
|
||||
UBOOT_FIT_SIGN_ALG = "rsa4096"
|
||||
# Generate keys for signing U-Boot fitImage
|
||||
UBOOT_FIT_GENERATE_KEYS = "0"
|
||||
# Size of private keys in number of bits
|
||||
UBOOT_FIT_SIGN_NUMBITS = "4096"
|
||||
|
||||
##########################################################
|
||||
#
|
||||
# Kernel FIT Image
|
||||
#
|
||||
##########################################################
|
||||
|
||||
# Decides whether to generate the keys for signing fitImage if they don’t already exist
|
||||
FIT_GENERATE_KEYS = "1"
|
||||
# Specifies the hash algorithm used in creating the FIT Image
|
||||
FIT_HASH_ALG = "sha256"
|
||||
# Specifies the signature algorithm used in creating the FIT Image
|
||||
FIT_SIGN_ALG = "rsa4096"
|
||||
# Size of private key in number of bits used in fitImage
|
||||
FIT_SIGN_NUMBITS = "4096"
|
||||
|
||||
##########################################################
|
||||
#
|
||||
# Linux
|
||||
#
|
||||
##########################################################
|
||||
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-ti-staging"
|
||||
PREFERRED_VERSION_linux-ti-staging ?= "5.4%"
|
||||
|
||||
#KERNEL_IMAGETYPE = "uImage"
|
||||
KERNEL_CLASSES ?= " kernel-fitimage "
|
||||
KERNEL_IMAGETYPE = "fitImage"
|
||||
# Not necessary => see devicetree recipe
|
||||
#KERNEL_DEVICETREE = "am335x-pengwyn.dtb"
|
||||
# Remove dtb from ti33x.inc
|
||||
KERNEL_DEVICETREE:remove = " \
|
||||
am335x-evm.dtb \
|
||||
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}"
|
||||
|
||||
##########################################################
|
||||
#
|
||||
# Devicetree blob
|
||||
#
|
||||
##########################################################
|
||||
|
||||
PREFERRED_PROVIDER_virtual/dtb ?= "devicetree"
|
||||
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 fitImage devicetree/am335x-pengwyn.dtb"
|
||||
|
||||
RM_WORK_EXCLUDE += "u-boot-ti-staging linux-ti-staging"
|
||||
Reference in New Issue
Block a user