[OpenWrt-Devel] Random data on rootfs_data for tp-wr2543nd-v1 only with ath79

Chuanhong Guo gch981213 at gmail.com
Tue Feb 11 02:11:28 EST 2020


On Tue, Feb 11, 2020 at 1:44 AM Luiz Angelo Daros de Luca
<luizluca at gmail.com> wrote:
> I guess it is simply safer to reimplement the old interface using
> spi-mem. It worked in the past
> and it might work again. I'll give it a try. I'm thinking about
> introducing a new DTS prop to optionally use it.

There's no need for this. If it's implemented we could simply
use it on all chips and gain the increased flash reading speed.

On memory-mapped flash reading, spi controller issues 0x0b
fast-read instruction. for the sake of correctness in spi-mem
we should check whether spi-mem-op matches 0x0b + 3-byte
address + 1-byte dummy before executing the operation.
You'll need to set m25p,fast-read for spi-nor code to generate
this matching operation.

Chuanhong Guo

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list