1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-17 14:38:27 +02:00
Commit Graph

6 Commits

Author SHA1 Message Date
jow
dd97bbee8a 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
2012-07-04 11:56:25 +00:00
jow
800c8c564b [package] mtd: request locked pages when mmap'ing the FIS table, cures random segfaults in table rewrite until
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=2d4dc890b5c8fabd818a8586607e6843c4375e62
is added.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21823 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-16 23:34:38 +00:00
juhosg
a24b24783c package/mtd: fix automatic partition size detection in fis_remap
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20537 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 07:16:27 +00:00
jow
baab9a6aec [package] mtd: treat failure to open FIS partition as fatal when a fis_layout is given, aborts mtd write if reformat is needed and FIS table not available
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19231 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-19 21:28:22 +00:00
nbd
2c2e02d729 mtd: update copyright headers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17660 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 10:09:02 +00:00
nbd
3a0a80e129 mtd: add support for rewriting the fis table layout on redboot based systems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-21 09:58:41 +00:00