kumquat-buildroot/board
Fabio Estevam 0351a60b95 board/freescale/common/imx: place rootfs at proper offset when BR2_LINUX_KERNEL_INSTALL_TARGET=y
Currently, when BR2_LINUX_KERNEL_INSTALL_TARGET=y is selected, issuing
a "saveenv" command in the U-Boot prompt may lead to rootfs corruption.

When BR2_LINUX_KERNEL_INSTALL_TARGET is not selected, then
board/freescale/common/imx/genimage.cfg.template is used as per the logic
inside board/freescale/common/imx/post-image.sh.

board/freescale/common/imx/genimage.cfg.template correctly puts the
rootfs at a safe offset.

With BR2_LINUX_KERNEL_INSTALL_TARGET=y, then
board/freescale/common/imx/genimage.cfg.template_no_boot_part or
board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl
are used and no offset to the rootfs is given, which may cause U-Boot
environment area to write into the rootfs area, causing the rootfs
corruption.

Avoid this problem by placing the rootfs at an 8MB offset, just like
it is done in board/freescale/common/imx/genimage.cfg.

Tested on a imx6qp-wandboard and also on a custom imx6ull based board.

"saveenv" does not corrupt the rootfs anymore after this change.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-11-14 15:15:14 +01:00
..
aarch64-efi
acmesystems
altera/socrates_cyclone5 board/altera/socrates_cyclone5/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
amarula
andes
arcturus
arm
armadeus
arrow/avenger96
asus/tinker
atmel
avnet/s6lx9_microboard
bananapi board/bananapi/bananapi-m2-zero/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
beagleboardx15
beaglebone
beagleboneai configs/beagleboneai_defconfig: backport gcc >= 10 u-boot patch 2021-11-13 15:23:55 +01:00
beaglev
beelink/gs1
boundarydevices/common
chromebook
ci20
csky
cubietech/cubieboard2
embest/riotboard
engicam board/engicam/isiot/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
firefly/roc-rk3399-pc
freescale board/freescale/common/imx: place rootfs at proper offset when BR2_LINUX_KERNEL_INSTALL_TARGET=y 2021-11-14 15:15:14 +01:00
friendlyarm board/friendlyarm/nanopi-r1/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
globalscale/espressobin
grinn board/grinn/liteboard/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
hardkernel board/hardkernel/odroidxu4/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
intel/galileo board/intel/galileo/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
kontron
lego/ev3 board/lego/ev3/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
lemaker/bananapro board/lemaker/bananapro/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
librecomputer/lafrite
licheepi board/licheepi/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
linksprite/pcduino board/linksprite/pcduino/genimage.cfg: beautify file 2021-11-08 22:59:28 +01:00
microchip board/microchip/sama5d2_icp/genimage.cfg: beautify file 2021-11-08 22:59:29 +01:00
minnowboard board/minnowboard/genimage.cfg: beautify file 2021-11-08 22:59:29 +01:00
nexbox/a95x board/nexbox/a95x/genimage.cfg: beautify file 2021-11-08 22:59:29 +01:00
nezha
olimex board/olimex/a64_olinuxino/genimage.cfg: beautify file 2021-11-08 22:59:29 +01:00
olpc
openblocks/a6
orangepi board/orangepi/orangepi-zero/genimage.cfg: beautify file 2021-11-08 22:59:31 +01:00
pandaboard board/pandaboard/genimage.cfg: beautify file 2021-11-08 22:59:31 +01:00
pc board/pc/genimage-efi.cfg: beautify file 2021-11-08 22:59:32 +01:00
pcengines/apu2
pine64 board/pine64/sopine/genimage.cfg: beautify file 2021-11-08 22:59:32 +01:00
qemu
qmtech/zynq
radxa board/radxa/rockpi-n8/genimage.cfg: beautify file 2021-11-08 22:59:33 +01:00
raspberrypi board/raspberrypi/genimage-raspberrypicm4io.cfg: beautify file 2021-11-08 22:59:34 +01:00
roseapplepi board/roseapplepi/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
seeed/stm32mp157c-odyssey
sheevaplug configs/sheevaplug_defconfig: backport gcc >= 10 u-boot patch 2021-11-13 15:23:54 +01:00
sifive/hifive-unleashed
sinovoip board/sinovoip/m2-plus/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
solidrun board/solidrun/macchiatobin/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
stmicroelectronics board/stmicroelectronics/stm32f469-disco/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
synopsys board/synopsys/hsdk/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
technexion
technologic board/technologic/ts7680/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
terasic/de10nano_cyclone5 board/terasic/de10nano_cyclone5/genimage.cfg: beautify file 2021-11-08 22:59:34 +01:00
toradex/apalis-imx6 board/toradex/apalis-imx6/genimage.cfg: beautify file 2021-11-08 22:59:35 +01:00
udoo
uevm5432 board/uevm5432/genimage.cfg: beautify file 2021-11-08 22:59:35 +01:00
wandboard
warp7
zynq board/zynq/genimage.cfg: beautify file 2021-11-08 22:59:35 +01:00
zynqmp board/zynqmp/genimage.cfg: beautify file 2021-11-08 22:59:35 +01:00
raspberrypi0
raspberrypi0w
raspberrypi2
raspberrypi3
raspberrypi3-64
raspberrypi4
raspberrypi4-64
raspberrypicm4io
raspberrypicm4io-64