#18086: Changing tplinkpart.c mask_flags doesn't unlock mtd for TL-WDR4300.
------------------------+-----------------------------------
Reporter: ettavolt@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: kernel | Version: Barrier Breaker 14.07
Keywords: |
------------------------+-----------------------------------
I've made changes as suggested here:
https://forum.openwrt.org/viewtopic.php?pid=179169#p179169, rebuilt,
flashed and:
{{{
root@ii-gw:~# mtd unlock /dev/mtd0
Could not open mtd device: /dev/mtd0
Could not open mtd device: /dev/mtd0
}}}
{{{/sys/class/mtd/mtd0/flags}}} says 0x800.
Excerpt from klog:
{{{
[ 0.000000] Linux version 3.10.49 (ptits@ptits) (gcc version 4.8.3
(OpenWrt/Linaro GCC 4.8-2014.04 r41852) ) #15 Thu Oct 9 11:32:14 MSK 2014
...
[ 0.490000] m25p80 spi0.0: found s25fl064k, expected m25p80
[ 0.490000] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[ 0.500000] 5 tp-link partitions found on MTD device spi0.0
[ 0.510000] Creating 5 MTD partitions on "spi0.0":
[ 0.510000] 0x000000000000-0x000000020000 : "u-boot"
[ 0.520000] 0x000000020000-0x00000011ef04 : "kernel"
[ 0.520000] mtd: partition "kernel" must either start or end on erase
block boundary or be smaller than an erase block -- forcing read-only
[ 0.540000] 0x00000011ef04-0x0000007f0000 : "rootfs"
[ 0.540000] mtd: partition "rootfs" must either start or end on erase
block boundary or be smaller than an erase block -- forcing read-only
[ 0.560000] mtd: device 2 (rootfs) set to be root filesystem
[ 0.560000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.570000] 0x000000410000-0x0000007f0000 : "rootfs_data"
[ 0.570000] 0x0000007f0000-0x000000800000 : "art"
[ 0.580000] 0x000000020000-0x0000007f0000 : "firmware"
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/18086>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets