如题,uboot是下载的这个https://github.com/Lichee-Pi/u-boot nano-v2018.01分支
在drivers/mtd/spi/spi_flash_ids.c中添加了
{"xt25f128b", INFO(0x0b4018, 0x0, 64 * 1024, 256, SECT_4K)},
重新编译烧写后还是报unrecognized JEDEC id bytes
离线
只改这个地方恐怕不行, make menuconfig 里面也得改(加?)
menuconfig里面找不到,这句是直接加到winbond的flash下面的,设备树里也改了,不知道哪里出问题了。。。
离线
U-Boot SPL 2018.01-05676-g00188782ee-dirty (May 19 2018 - 15:47:49)
DRAM: 32 MiB
SPL: Unsupported Boot Device!
Trying to boot from sunxi SPI
U-Boot 2018.01-05676-g00188782ee-dirty (May 19 2018 - 15:47:49 +0800) Allwinner Technology
CPU: Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM: 32 MiB
Using default environment
Setting up a 800x480 lcd console (overscan 0x0)
In: serial@1c25000
Out: serial@1c25000
Err: serial@1c25000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: unrecognized JEDEC id bytes: 0b, 40, 18
Failed to initialize SPI flash at 0:0 (error -2)
No SPI flash selected. Please run `sf probe'
No SPI flash selected. Please run `sf probe'
=>
离线
spi_flash_ids.c 需要添加 xt25f128b 的描述 SECT_4K 用0看看
离线