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 board/aarch64-efi/genimage.cfg: beautify file 2021-11-08 22:20:31 +01:00
acmesystems board/acmesystems/arietta-g25/genimage.cfg: beautify file 2021-11-08 22:20:39 +01:00
altera/socrates_cyclone5 board/altera/socrates_cyclone5/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
amarula board/amarula/a64-relic/genimage.cfg: beautify file 2021-11-08 22:20:41 +01:00
andes
arcturus configs/arcturus_ucls1012a: bump kernel to 4.14.140 and u-boot version to 2019.10 2020-08-12 16:41:06 +02:00
arm configs/arm_foundationv8: bump to Linux 5.9.11 2020-12-01 23:39:08 +01:00
armadeus
arrow/avenger96 configs/avenger96_defconfig: add support for Arrow Avenger96 board 2021-02-08 16:25:00 +01:00
asus/tinker configs/asus_tinker_rk3288: bump to Linux kernel 5.14.13 and u-boot 2021.10 2021-10-24 16:05:00 +02:00
atmel board/atmel/sama5d4_xplained_mmc/genimage.cfg: beautify file 2021-11-08 22:20:57 +01:00
avnet/s6lx9_microboard
bananapi board/bananapi/bananapi-m2-zero/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
beagleboardx15 board/beagleboardx15/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
beaglebone board/beaglebone/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
beagleboneai configs/beagleboneai_defconfig: backport gcc >= 10 u-boot patch 2021-11-13 15:23:55 +01:00
beaglev board/beaglev/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
beelink/gs1 board/beelink/gs1/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
boundarydevices/common board/boundarydevices: update readme.txt for nitrogen8mp 2021-04-28 23:37:00 +02:00
chromebook configs/chromebook_elm: bump to Linux v5.10 2021-07-03 22:55:25 +02:00
ci20 board/ci20/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
csky
cubietech/cubieboard2 board/cubietech/cubieboard2/genimage.cfg: beautify file 2021-11-08 22:59:25 +01:00
embest/riotboard board/embest/riotboard/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
engicam board/engicam/isiot/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
firefly/roc-rk3399-pc configs/roc_rk3399_pc: new defconfig 2020-03-29 15:09:48 +02:00
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 configs/globalscale_espressobin: new defconfig 2020-07-25 23:01:55 +02:00
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 configs/kontron_pitx_imx8m: new defconfig 2021-06-29 21:27:58 +02:00
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 configs/lafrite: new defconfig 2019-09-15 16:00:56 +02:00
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 configs/nezha_defconfig: new defconfig 2021-11-08 09:45:50 +01:00
olimex board/olimex/a64_olinuxino/genimage.cfg: beautify file 2021-11-08 22:59:29 +01:00
olpc board/olpc/xo-1.75: enable drivers that were added in 5.8 2020-09-11 08:51:16 +02:00
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 configs/pcengines_apu2: new defconfig 2020-09-03 21:06:31 +02:00
pine64 board/pine64/sopine/genimage.cfg: beautify file 2021-11-08 22:59:32 +01:00
qemu board/qemu/aarch64-sbsa/genimage.cfg: beautify file 2021-11-08 22:59:26 +01:00
qmtech/zynq configs/zynq_qmtech: new defconfig 2020-04-19 21:43:35 +02:00
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 configs/stm32mp157c_odyssey: new defconfig 2021-09-11 18:15:55 +02:00
sheevaplug configs/sheevaplug_defconfig: backport gcc >= 10 u-boot patch 2021-11-13 15:23:54 +01:00
sifive/hifive-unleashed configs/hifive_unleashed: use mainline Linux + U-Boot 2021-01-31 23:26:33 +01:00
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 board/udoo: use common freescale infrastructure 2020-10-15 18:02:35 +02:00
uevm5432 board/uevm5432/genimage.cfg: beautify file 2021-11-08 22:59:35 +01:00
wandboard board/wandboard: switch to extlinux.conf 2021-07-18 23:41:59 +02:00
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 configs/raspberrypi4_64: new defconfig 2019-12-08 21:49:08 +01:00
raspberrypicm4io board/raspberrypi: add Compute Module 4/IO Board support 2021-05-20 09:53:29 +02:00
raspberrypicm4io-64 board/raspberrypi: add Compute Module 4/IO Board support (64 Bit) 2021-05-20 09:53:30 +02:00