ajout de patches pour essayer de compiler U-Boot avec SPL_OF_CONTROL (sans succès)
This commit is contained in:
@@ -6,18 +6,11 @@ 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"
|
||||
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 \
|
||||
#"
|
||||
#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.
|
||||
@@ -39,11 +32,56 @@ EXTRA_IMAGEDEPENDS += "virtual/bootloader virtual/dtb"
|
||||
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"
|
||||
|
||||
##########################################################
|
||||
#
|
||||
@@ -60,7 +98,9 @@ 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 \
|
||||
|
||||
Reference in New Issue
Block a user