Go to file
Fabio Estevam f051a68e13 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>
(cherry picked from commit 0351a60b95)
[Peter: drop genimage.cfg.template_no_boot_part change, not in 2021.02.x]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2021-11-17 23:23:49 +01:00
arch ARC: Add support for generic HS48 processor 2021-01-16 09:58:26 +01:00
board board/freescale/common/imx: place rootfs at proper offset when BR2_LINUX_KERNEL_INSTALL_TARGET=y 2021-11-17 23:23:49 +01:00
boot boot/uboot: don't override dependencies 2021-11-17 16:04:08 +01:00
configs configs/sheevaplug_defconfig: bump linux kernel to 4.14.253 2021-11-03 22:01:04 +01:00
docs docs/manual: update the list of libffi unsupported archs 2021-11-17 23:17:43 +01:00
fs fs/ext2: fir (again) namespace for variables 2021-10-18 14:34:59 +02:00
linux {linux, linux-headers}: bump 4.{4, 9, 14, 19}.x / 5.{4, 10, 14}.x series 2021-11-04 13:01:12 +01:00
package package/gst1-interpipe: bump version to 1.1.7 2021-11-17 23:18:29 +01:00
support support/pkg-stats: support values with an equal sign in them 2021-11-17 23:03:28 +01:00
system system: support br2-external init systems 2020-10-14 22:48:42 +02:00
toolchain toolchain: improve conditions for gcc bug 99140 2021-09-06 21:06:37 +02:00
utils utils/genrandconfig: reduce the maximum "size" of random configurations 2021-11-17 23:12:59 +01:00
.defconfig arch: remove support for sh64 2016-09-08 22:15:15 +02:00
.flake8 Revert ".flake8: fix check for 80/132 columns" 2021-01-02 17:38:20 +01:00
.gitignore
.gitlab-ci.yml gitlab-ci: update the image version 2020-08-15 09:47:00 +02:00
CHANGES Update for 2021.02.7 2021-11-10 14:20:12 +01:00
Config.in Config.in: disable Fortify Source for microblaze 2021-09-06 17:36:05 +02:00
Config.in.legacy package/openjdk{-bin}: bump version to 17.0.1+12 2021-11-08 15:04:56 +01:00
COPYING
DEVELOPERS DEVELOPERS: add Joachim Wiberg as co-maintainer of SMCRoute 2021-11-17 23:05:42 +01:00
Makefile Update for 2021.02.7 2021-11-10 14:20:12 +01:00
Makefile.legacy Remove BR2_DEPRECATED 2016-10-15 23:14:45 +02:00
README docs: move the IRC channel away from Freenode 2021-06-10 08:36:37 +02:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on OFTC IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches