openwrt/package/system/mtd/src
nbd 955146573b mtd: Fix trx check after partition rename ("linux" to "firmware")
On brcm47xx (Huawei E970), I noticed that sysupgrade now tries to flash trx images which don't fit into the flash, resulting in non-booting system.

I found that mtd does trx size checking only when flashing to a partition called "linux". This patch changes this to be "firmware".

This matches the following patch which changed partition name in bcm47xxpart.c driver to "firmware":

commit 86b4d5ef68ca77ff6724ebb9bddd6b93239c87fc
Author: hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date:   Sun Dec 1 16:32:32 2013 +0000

    brcm47xx: use "firmware" partition name
    ...
    Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

    Backport of r38973

Signed-off-by: Mathias Adam <m.adam--openwrt@adamis.de>

Backport of r42403

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42404 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-02 17:14:24 +00:00
..
Makefile create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
crc32.c create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
crc32.h create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
fis.c create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
fis.h create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
imagetag.c create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
jffs2.c create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
jffs2.h create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
md5.c create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
md5.h create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
mtd.c create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
mtd.h create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
seama.c create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
seama.h create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
trx.c mtd: Fix trx check after partition rename ("linux" to "firmware") 2014-09-02 17:14:24 +00:00