aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-07-04 11:56:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-07-04 11:56:25 +0000
commitee00fbb09b8c72992ad386a4d2bdc52b42e6cbdb (patch)
treeeeb6edd91012b078f68cd3bb0b57ad150e931ef0 /target/linux
parenta39f21d5b0b8cb265e8f2c855d149a5d3932aec3 (diff)
downloadupstream-ee00fbb09b8c72992ad386a4d2bdc52b42e6cbdb.tar.gz
upstream-ee00fbb09b8c72992ad386a4d2bdc52b42e6cbdb.tar.bz2
upstream-ee00fbb09b8c72992ad386a4d2bdc52b42e6cbdb.zip
mtd - remove partition table assumption when writing fis table
When mtd alters the fis partition table it assumes that the first partition table entry also is the first logical parition table entry. For instance our table could look like this (irrelevant partitions put aside): * vmlinux.bin.l7 0xA8710000 * rootfs 0xA8030000 Here mtd would assume vmlinux.bin.l7 being the first partition and use its address to calculate the size and offset which ultimately leads to a broken partition table. This patch alters the behavior by checking what partition has the smaller address to do the calculations based on that address. Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32601 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
0 files changed, 0 insertions, 0 deletions