Modify

Opened 3 years ago

Last modified 3 years ago

#18086 new defect

Changing tplinkpart.c mask_flags doesn't unlock mtd for TL-WDR4300.

Reported by: ettavolt@… Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Barrier Breaker 14.07
Keywords: Cc:

Description

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"

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by ettavolt@…

Weird: works on CC. KLog is the same.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.