[OpenWrt-Devel] Issues with MTD parsing in absence of rootfs - Proposed patch, advice please

Rafał Miłecki zajec5 at gmail.com
Wed Oct 29 02:23:32 EDT 2014


On 29 October 2014 02:17, Stephen G. Parry <sgparry at 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
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list