1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-19 23:28:29 +02:00
openwrt/target
David Bentham d33f4f8565 ramips: reduce spi-max-frequency for Xiaomi MI Router 4AG
Reduce spi-max-frequency for Xiaomi MI Router 4AG model

Xiaomi MI Router 4AG MTD uses two flash chips (no specific on router versions when produced from factory) - GD25Q128C and W25Q128BV.

These flash chips are capable of high frequency, but due to poor board design or manufacture process.

We are seeing the following errors in the linux kernel bootup:

`spi-nor spi0.0: unrecognized JEDEC id bytes: cc 60 1c cc 60 1c
 spi-nor: probe of spi0.0 failed with error -2`

This causes the partitions not to be detected

`VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6`

Then creates a bootloop and a bricked router.

The solution to limit this race condition is to reduce the frequency from 80 mhz to 50 mhz.

Signed-off-by: David Bentham <db260179@gmail.com>
(cherry picked from commit 17e690017d)
2021-04-18 12:04:38 +02:00
..
imagebuilder build,ib: add STRIP_ABI option for manifest 2021-03-16 11:05:26 -10:00
linux ramips: reduce spi-max-frequency for Xiaomi MI Router 4AG 2021-04-18 12:04:38 +02:00
sdk target: fix copying of licenses for SDK/toolchain 2021-02-14 21:56:29 +01:00
toolchain target: fix copying of licenses for SDK/toolchain 2021-02-14 21:56:29 +01:00
Config.in build: define PWM_SUPPORT arch feature flag 2020-09-25 19:32:33 +02:00
Makefile