04 Oct, 2017
1 commit
-
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:# define __compiletime_error(message) __attribute__((error(message)))
This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux. (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)Let's convert error() into now treewide-available pr_err().
Done with the help of Coccinelle, excluing tools/ directory.
The semantic patch I used is as follows:
//
@@@@
-error
+pr_err
(...)
//Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini
12 Jul, 2017
1 commit
-
As part of preparation for nand DM conversion the new API has been
introduced to remove direct access to nand_info array. So, use it here
instead of accessing to nand_info array directly.Signed-off-by: Grygorii Strashko
28 Jun, 2016
4 commits
-
In order to process the CHUNK_TYPE_DONT_CARE properly, there is
a requirement to be able to 'reserve' a specified number of blocks
in the storage media. Because of the special handling of "bad blocks"
in NAND devices, this is implemented in a storage abstraction function.Signed-off-by: Steve Rae
Reviewed-by: Maxime Ripard -
- update fastboot_okay() and fastboot_fail()
This file originally came from upstream code.
While retaining the storage abstraction feature, this is the second
set of the changes required to resync with the
cmd_flash_mmc_sparse_img()
in the file
aboot.c
from
https://us.codeaurora.org/cgit/quic/la/kernel/lk/plain/app/aboot/aboot.c?h=LE.BR.1.2.1Signed-off-by: Steve Rae
-
This file originally came from upstream code.
While retaining the storage abstraction feature, this is the first
set of the changes required to resync with the
cmd_flash_mmc_sparse_img()
in the file
aboot.c
from
https://us.codeaurora.org/cgit/quic/la/kernel/lk/plain/app/aboot/aboot.c?h=LE.BR.1.2.1Signed-off-by: Steve Rae
-
This "session-id" alogrithm is not required, and currently corrupts
the stored image whenever more the one "session" is required.Signed-off-by: Steve Rae
20 Jun, 2016
1 commit
-
Somehow this got overlooked when getting rid of nand_info.
Small patch, won't affect anything else, no reason to wait for the
next cycle.Signed-off-by: Sergey Kubushyn
04 Jun, 2016
2 commits
-
nand_info[] is now an array of pointers, with the actual mtd_info
instance embedded in struct nand_chip.This is in preparation for syncing the NAND code with Linux 4.6,
which makes the same change to struct nand_chip. It's in a separate
commit due to the large amount of changes required to accommodate the
change to nand_info[].Signed-off-by: Scott Wood
-
This typedef serves no purpose other than causing confusion with
struct nand_chip.Signed-off-by: Scott Wood
13 Nov, 2015
3 commits
-
The Android sparse image format is currently supported through a file
called aboot, which isn't really such a great name, since the sparse image
format is only used for transferring data with fastboot.Rename the file and header to a file called "sparse", which also makes it
consistent with the header defining the image structures.Signed-off-by: Maxime Ripard
Reviewed-by: Tom Rini -
Some devices might need to do some per-partition initialization
(ECC/Randomizer settings change for example) before actually accessing it.Add some hooks before the write and erase operations to let the boards
define what they need to do if needed.Signed-off-by: Maxime Ripard
Reviewed-by: Tom Rini -
So far the fastboot code was only supporting MMC-backed devices for its
flashing operations (flash and erase).Add a storage backend for NAND-backed devices.
Signed-off-by: Maxime Ripard