[OpenWrt-Devel] [PATCH RFT] kernel: mtdsplit_uimage: debug buf/header sizes

Rafał Miłecki zajec5 at gmail.com
Thu Feb 12 15:18:33 EST 2015


On 12 February 2015 at 21:04, John Crispin <blogic at openwrt.org> wrote:
> [    0.564000] Creating 4 MTD partitions on "spi32766.0":
> [    0.568000] 0x000000000000-0x000000010000 : "uboot"
> [    0.572000] 0x000000010000-0x000000020000 : "uboot-env"
> [    0.580000] 0x000000020000-0x000000030000 : "calibration"
> [    0.584000] 0x000000050000-0x000000ff0000 : "firmware"
> [    0.596000] mtdsplit_uimage: [__mtdsplit_parse_uimage] buf:c0049000
> sizeof(*buf):1
> [    0.600000] mtdsplit_uimage: [__mtdsplit_parse_uimage] sizeof(*header):64
> [    0.608000] mtdsplit_uimage: [read_uimage_header] buf:c0049000
> header_len:1
> [    0.616000] mtdsplit_uimage: [uimage_find_edimax] buf:c0049000 len:1
> FW_EDIMAX_OFFSET + sizeof(*header):84
> [    0.624000] mtdsplit_uimage: Buffer too small for checking Edimax header
> [    0.784000] Dedicated partitioner didn't split firmware partition,
> please fill a bug report!
> [    0.788000] 0x000000172108-0x000000ff0000 : "rootfs"
> [    0.796000] mtd: partition "rootfs" must either start or end on erase
> block boundary or be smaller than an erase block -- forcing read-only
> [    0.808000] mtd: device 4 (rootfs) set to be root filesystem
> [    0.812000] 1 squashfs-split partitions found on MTD device rootfs
> [    0.820000] 0x000000340000-0x000000ff0000 : "rootfs_data"
> [    1.916000] Realtek RTL8366RB ethernet switch driver version 0.2.4
> [    1.924000] rtl8366rb rtl8366rb: using GPIO pins 491 (SDA) and 493 (SCK)
> [    1.928000] rtl8366rb rtl8366rb: RTL5937 ver. 3 chip found

Thank you! My obvious bug was fixed in
https://dev.openwrt.org/changeset/44424/

Please note that if you still get
> Dedicated partitioner didn't split firmware partition, please fill a bug report!
with 44424, it means that there is something wrong in
target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c
and we/you should look for a working reference code in
405-mtd-old-firmware-uimage-splitter.patch
_______________________________________________
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