meta-digi-arm: rename kernel and fdt files to uboot defaults

https://jira.digi.com/browse/DEL-1057

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2014-05-06 14:07:41 +02:00
parent f14807643c
commit e639db7ebf
2 changed files with 4 additions and 6 deletions

View File

@ -72,7 +72,7 @@ IMAGE_CMD_boot.vfat() {
# Image generation code for image type 'boot.vfat'
#
BOOTIMG_FILES="$(readlink -e ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE})"
BOOTIMG_FILES_SYMLINK="${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}"
BOOTIMG_FILES_SYMLINK="${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin"
if [ -n "${KERNEL_DEVICETREE}" ]; then
for DTB in ${KERNEL_DEVICETREE}; do
if [ -e "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTB}" ]; then
@ -97,12 +97,9 @@ IMAGE_CMD_boot.vfat() {
# the use of 16 instead of 32.
BOOTIMG_BLOCKS="$(expr \( \( ${BOOTIMG_BLOCKS} + 15 \) / 16 \) \* 16)"
# Build VFAT boot image in copy the contents
# Build VFAT boot image and copy files into it
mkfs.vfat -n "Boot ${MACHINE}" -S 512 -C ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.vfat ${BOOTIMG_BLOCKS}
# Copy files into the FAT image (renaming DTB's on the fly)
for i in ${BOOTIMG_FILES_SYMLINK}; do
mcopy -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.vfat ${i} ::/$(basename ${i} | sed -e '/dtb$/s,^${KERNEL_IMAGETYPE}-,,g')
done
mcopy -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.boot.vfat ${BOOTIMG_FILES_SYMLINK} ::/
# Truncate the image to speed up the downloading/writing to the EMMC
if [ -n "${BOARD_BOOTIMAGE_PARTITION_SIZE}" ]; then

View File

@ -12,4 +12,5 @@
#
setenv mmcroot /dev/mmcblk${mmcdev}p2
setenv uimage uImage
setenv fdt_file imx6-ccimx6adpt-ldo.dtb
dboot linux mmc ${mmcdev}:${mmcpart}