Thanks, that's close to what I've come up with myself. I'll test this evening. If it works can we commit the patch please?
On 29 October 2014 06:23:32 GMT+00:00, "Rafał Miłecki" <zaj...@gmail.com> wrote: >On 29 October 2014 02:17, Stephen G. Parry <sgpa...@mainscreen.com> >wrote: >> As some of you will be aware I have been working on an initramfs only >> image with no lzma-loader, used to kexec main kernel from external >> storage on a bcrm47xx based router (Netgear WNR3500L v1). I have >> encountered two unpleasant issues: >> >> 1. The parsing routines in bcm47xxpart.c do not currently cope with a >> non-existent rootfs, i.e. one where the trx header shows zero >relative >> offset after the main linux image. the result is thus: >> >> [ 1.040000] 7 bcm47xxpart partitions found on MTD device >bcm47xxsflash >> [ 1.050000] Creating 7 MTD partitions on "bcm47xxsflash": >> [ 1.060000] 0x000000000000-0x000000040000 : "boot" >> [ 1.060000] 0x000000040000-0x0000007d0000 : "firmware" >> [ 1.070000] 0x00000004001c-0x000000040000 : "linux" >> [ 1.080000] mtd: partition "linux" must either start or end on >erase >> block boundary or be smaller than an erase block -- forcing read-only >> [ 1.090000] 0x000000040000-0x0000007d0000 : "rootfs" >> [ 1.100000] mtd: device 3 (rootfs) set to be root filesystem >> [ 1.110000] mtdsplit: no squashfs found in "rootfs" >> [ 1.110000] mtdsplit: no squashfs found in "bcm47xxsflash" >> [ 1.120000] 0x0000007d0000-0x0000007e0000 : "POT" >> [ 1.130000] 0x0000007e0000-0x0000007f0000 : "board_data" >> [ 1.130000] 0x0000007f0000-0x000000800000 : "nvram" > >Try this: >http://git.infradead.org/l2-mtd.git/commitdiff/a1ff7d64c5361c15bac653708a679de13506d283 -- Sent from my Android device with K-9 Mail. Please excuse my brevity. _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel