]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: Transition from the MMC to a FAT-based environment
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 23 Jan 2018 20:17:03 +0000 (21:17 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 27 Jan 2018 14:23:22 +0000 (09:23 -0500)
commitb39117cad9d7a0c48fbcb5963f9bce36ba37cd39
treea1e1dfe75f60b97adbb813839bc62c8f578d12a0
parent40c08a68b9acec6ef5a029708834c5a229bde421
sunxi: Transition from the MMC to a FAT-based environment

The current environment has been hardcoded to an offset that starts to be
an issue given the current size of our main U-Boot binary.

By implementing a custom environment location routine, we can always favor
the FAT-based environment, and fallback to the MMC if we don't find
something in the FAT partition. We also implement the same order when
saving the environment, so that hopefully we can slowly migrate the users
over to FAT-based environment and away from the raw MMC one.

Eventually, and hopefully before we reach that limit again, we will have
most of our users using that setup, and we'll be able to retire the raw
environment, and gain more room for the U-Boot binary.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
board/sunxi/board.c