U-BOOT-fw-config: adapt to fwupdate

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
Change-Id: I39a00bee11e39cb4e6a688839dc66e92fb277dd2
This commit is contained in:
Christophe Priouzeau 2022-06-06 15:29:18 +02:00 committed by bernard PUEL
parent 4257f9ed9f
commit c5b7d77a70
4 changed files with 6 additions and 11 deletions

View File

@ -10,6 +10,6 @@
# end of the device/partition, rather than a forwards offset from the start. # end of the device/partition, rather than a forwards offset from the start.
# Block device example # Block device example
/dev/disk/by-partlabel/ssbl -0x2000 0x2000 /dev/disk/by-partlabel/u-boot-env -0x2000 0x2000
/dev/disk/by-partlabel/ssbl -0x4000 0x2000 /dev/disk/by-partlabel/u-boot-env -0x2000 0x2000

View File

@ -7,5 +7,5 @@
# Device offset must be prefixed with 0x to be parsed as a hexadecimal value. # Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
# UBI volume by name # UBI volume by name
/dev/ubi0:uboot_config 0x0 0x4000 0x40000 /dev/ubi0:uboot_config 0x0 0x2000 0x40000
/dev/ubi0:uboot_config_r 0x0 0x4000 0x40000 /dev/ubi0:uboot_config_r 0x0 0x2000 0x40000

View File

@ -8,5 +8,5 @@
# NOR example # NOR example
# MTD device name Device offset Env. size Flash sector size Number of sectors # MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd4 0x280000 0x2000 0x10000 /dev/mtd7 0x900000 0x2000 0x10000
/dev/mtd4 0x2C0000 0x2000 0x10000 /dev/mtd7 0x940000 0x2000 0x10000

View File

@ -13,11 +13,6 @@ DEPENDS += "u-boot-fw-utils"
do_install () { do_install () {
install -d ${D}${sysconfdir} install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/fw_env.config.* ${D}${sysconfdir}/ install -m 0644 ${WORKDIR}/fw_env.config.* ${D}${sysconfdir}/
if ${@bb.utils.contains('MACHINE_FEATURES','fip','true','false',d)}; then
sed -i 's/ssbl/fip/g' ${D}${sysconfdir}/fw_env.config.mmc
sed -i 's/0x280000/0x480000/g' ${D}${sysconfdir}/fw_env.config.nor
sed -i 's/0x2C0000/0x4C0000/g' ${D}${sysconfdir}/fw_env.config.nor
fi
} }
FILES:${PN} += "${sysconfdir}/" FILES:${PN} += "${sysconfdir}/"