Modified genimage.cfg for correct environment offset

This commit is contained in:
Giulio 2020-09-16 17:16:58 +02:00
parent c01cd28458
commit 233b7f2936
4 changed files with 42 additions and 2 deletions

View File

@ -0,0 +1,41 @@
# Minimal SD card image for the Freescale iMX8 boards
#
# We mimic the .sdcard Freescale's image format:
# * the SD card must have 33 kB free space at the beginning,
# * U-Boot is integrated into imx8-boot-sd.bin and is dumped as is,
# * a FAT partition at offset 8MB is containing Image and DTB files
# * a single root filesystem partition is required (ext2, ext3 or ext4)
#
image boot.vfat {
vfat {
label = "boot"
files = {
%FILES%
}
}
size = 64M
}
image sdcard.img {
hdimage {
}
partition imx-boot {
in-partition-table = "no"
image = "imx8-boot-sd.bin"
offset = %IMXOFFSET%
}
partition boot {
partition-type = 0xC
bootable = "true"
image = "boot.vfat"
offset = 8M
}
partition rootfs {
partition-type = 0x83
image = "rootfs.ext2"
}
}

View File

@ -868,4 +868,3 @@ CONFIG_CRYPTO_AES_ARM64_CE_CCM=y
CONFIG_CRYPTO_AES_ARM64_CE_BLK=y
CONFIG_CRYPTO_CHACHA20_NEON=m
CONFIG_CRYPTO_AES_ARM64_BS=m
CONFIG_QCOM_WCNSS_CTRL=y

View File

@ -1,6 +1,6 @@
#!/bin/sh
/bin/echo "Usage: clearpassword=<password> sudo -E update.sh"
/bin/echo "Usage: sudo clearpassword=<password> -E update.sh"
password=`/bin/cat /etc/txtpwd`
auth=`/bin/echo -n $clearpassword | /bin/sha512sum | /bin/cut -d' ' -f 1`