diff options
author | John Crispin <john@openwrt.org> | 2014-03-30 09:16:35 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-03-30 09:16:35 +0000 |
commit | 8b0507c9ca55ca6ee2bc0a83f02a5b636d39b198 (patch) | |
tree | 78705f3982b9218cad8209e76fe48826fc885048 /target/linux/lantiq/patches-3.10/0100-mtd-split.patch | |
parent | 0c73e85cd0475ecaedc92802f9a993a26fe79a11 (diff) | |
download | upstream-8b0507c9ca55ca6ee2bc0a83f02a5b636d39b198.tar.gz upstream-8b0507c9ca55ca6ee2bc0a83f02a5b636d39b198.tar.bz2 upstream-8b0507c9ca55ca6ee2bc0a83f02a5b636d39b198.zip |
lantiq: fix mtd_split for brnboot firmware images
The existing code only tries to split a parition with name "rootfs"
while actually looking for kernel+rootfs, where usually "firmware" is
used as a partition name. This doesn't make sense, as even if there
was a partition 'rootfs' given by mtdparts or via device-tree, this
code would lead to another partition called 'rootfs' being created
which would not be properly distinguished in the current user-space
code.
While potentially we could use CONFIG_MTD_SPLIT_FIRMWARE_NAME to make
that configurable, the lack of users of brnboot and the fact that we
can freely decide the partition name made me simply change the
hard-coded string constant from "rootfs" to "firmware".
(I'm going to add support for ARV7506PW which run brnboot and needs
this change)
SVN-Revision: 40324
Diffstat (limited to 'target/linux/lantiq/patches-3.10/0100-mtd-split.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.10/0100-mtd-split.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/lantiq/patches-3.10/0100-mtd-split.patch b/target/linux/lantiq/patches-3.10/0100-mtd-split.patch index 1911b4451e..c2ce9c1b42 100644 --- a/target/linux/lantiq/patches-3.10/0100-mtd-split.patch +++ b/target/linux/lantiq/patches-3.10/0100-mtd-split.patch @@ -34,7 +34,7 @@ + size_t len; + int ret; + -+ if (strcmp(name, "rootfs") != 0) ++ if (strcmp(name, "firmware") != 0) + return; + while (part_size < end) { + long size_min = part_size - 0x400 - 12 - offset; |