6e14a61d412eb87ef7bdcec8b08a95bead771a78 |
|
01-Dec-2013 |
Axel Lin <axel.lin@ingics.com> |
mtd: make register_mtd_parser return void register_mtd_parser never fails; hence make it return void. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
|
d085eea16c05e5fecf258fc254059e9bc1e6db91 |
|
23-Mar-2013 |
Jonas Gorski <jogo@openwrt.org> |
mtd: bcm63xxpart: use nvram for PSI size 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 <jogo@openwrt.org> Acked-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
c88fd9d9705506b5d75757735745183e5f2ff2cd |
|
23-Mar-2013 |
Jonas Gorski <jogo@openwrt.org> |
mtd: bcm63xxpart: use size macro for CFE block size Signed-off-by: Jonas Gorski <jogo@openwrt.org> Acked-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
60768368b76b2794b088bb66fbd07557a10fa77e |
|
12-Nov-2012 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: bcm63xxpart: use correct printk format for partitions Use ll to be able to remove the casts. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Reviewed-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
f3f9a5dac79880af9a27f520fbeff11314ef9dde |
|
12-Nov-2012 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: bcm63xxpart: move the last curpart++ to its correct place The line belongs above the comment, not below it. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Reviewed-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
4e4fb63955650e39ccfbd376733fa258adfb1e5d |
|
12-Nov-2012 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: bcm63xxpart: make fixed part length calculation more generic 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 <jonas.gorski@gmail.com> Reviewed-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
e190401ba1ca20d76f22c1f0aada0abd5bdc1afe |
|
12-Nov-2012 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: bcm63xxpart: merge sparelen calculation 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 <jonas.gorski@gmail.com> Reviewed-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
fafc3d6880b28fe55af935fd43b23a29d61c537d |
|
12-Nov-2012 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: bcm63xxpart: remove unused variable namelen is never used, so drop it. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Reviewed-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
5329d67cc32c0306426dc4bc4b5e66a36cb87ce0 |
|
19-Apr-2012 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: bcm63xxpart: handle Broadcom partition order 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 <jonas.gorski@gmail.com> Acked-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
329ad399a9b3adf52c90637b21ca029fcf7f8795 |
|
23-Dec-2011 |
Artem Bityutskiy <artem.bityutskiy@linux.intel.com> |
mtd: introduce mtd_read interface Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
f98872fc14ecb96f796443911b6bc4767e58e885 |
|
17-Dec-2011 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: bcm63xxpart: check the image tag's crc32 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 <jonas.gorski@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
327c62c554a78af399938445094a7dc834b7fd0b |
|
17-Dec-2011 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: bcm63xxpart: don't assume NVRAM is always the fourth partition Instead of referencing the sizes of fixed partitions, use the precomputed CFE/NVRAM lengths. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
678eb9bb8114c47a7b89fd1288ff5dc760c53c1c |
|
19-Dec-2011 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: bcm63xxpart: make sure CFE and NVRAM partitions are at least 64KiB 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 <jonas.gorski@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
f2d9739b8e0bc9bdcc972950dd433b5083edf72f |
|
17-Dec-2011 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: bcm63xxpart: check version marker string for newer CFEs 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 <jonas.gorski@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|
70a3c167c4bf38b5ffd07d8506230ecc20ef7ab1 |
|
05-Dec-2011 |
Jonas Gorski <jonas.gorski@gmail.com> |
mtd: maps: bcm963xx-flash: make CFE partition parsing an mtd parser 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 <jonas.gorski@gmail.com> Acked-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
|