06 Aug, 2013
2 commits
-
Read out the SPI size from nvram instead of defaulting to 64KiB — some
vendors actually use values larger than the "max" value of 64.Signed-off-by: Jonas Gorski
Acked-by: Florian Fainelli
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
Signed-off-by: Jonas Gorski
Acked-by: Florian Fainelli
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
21 Nov, 2012
5 commits
-
Use ll to be able to remove the casts.
Signed-off-by: Jonas Gorski
Reviewed-by: Florian Fainelli
Signed-off-by: Artem Bityutskiy -
The line belongs above the comment, not below it.
Signed-off-by: Jonas Gorski
Reviewed-by: Florian Fainelli
Signed-off-by: Artem Bityutskiy -
The CFE does not use 4K sectors even if the flash supports it, so
for the fixed partitions like CFE itself or NVRAM the erase block
size is always 64k or bigger.Signed-off-by: Jonas Gorski
Reviewed-by: Florian Fainelli
Signed-off-by: Artem Bityutskiy -
The length of the spare part is calculated the same way in both branches
so move to a common place.Signed-off-by: Jonas Gorski
Reviewed-by: Florian Fainelli
Signed-off-by: Artem Bityutskiy -
namelen is never used, so drop it.
Signed-off-by: Jonas Gorski
Reviewed-by: Florian Fainelli
Signed-off-by: Artem Bityutskiy
14 May, 2012
1 commit
-
The original Broadcom partition order has the root fs in front of the
kernel, which resulted in miscalculated partition sizes.
Detect when such an image is on the flash and also reorder the partitions
accordingly.Signed-off-by: Jonas Gorski
Acked-by: Florian Fainelli
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
10 Jan, 2012
6 commits
-
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
Only use the values from the image tag if it is valid. Always create
the CFE, NVRAM and linux partitions, to allow flashing a new image even
if the old is invalid without overwriting CFE or NVRAM.Signed-off-by: Jonas Gorski
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
Instead of referencing the sizes of fixed partitions, use the
precomputed CFE/NVRAM lengths.Signed-off-by: Jonas Gorski
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
The CFE boot loader on BCM63XX platforms assumes itself and the NVRAM
partition to be 64 KiB (or erase block sized, if larger).
Ensure this assumption is also met when creating the partitions to
prevent accidential erasure of CFE or NVRAM.Signed-off-by: Jonas Gorski
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
Recent CFEs do not contain the CFE1CFE1 magic anymore, so check for the
"cfe-v" version marker string instead. As very old CFEs do not have
this string, leave the CFE1CFE1 magic as a fallback for detection.Signed-off-by: Jonas Gorski
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse -
Recent BCM63XX devices support a variety of flash types (parallel, SPI,
NAND) and share the partition layout. To prevent code duplication make
the CFE partition parsing code a stand alone mtd parser to allow SPI or
NAND flash drivers to use it.Signed-off-by: Jonas Gorski
Acked-by: Florian Fainelli
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse