[OpenWrt-Devel] Issues with MTD parsing in absence of rootfs - Proposed patch, advice please
sgparry at mainscreen.com
Wed Oct 29 12:56:35 EDT 2014
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" <zajec5 at gmail.com> wrote:
>On 29 October 2014 02:17, Stephen G. Parry <sgparry at mainscreen.com>
>> 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
>> offset after the main linux image. the result is thus:
>> [ 1.040000] 7 bcm47xxpart partitions found on MTD device
>> [ 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
>> 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"
Sent from my Android device with K-9 Mail. Please excuse my brevity.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel