R328-S2使用W25N02问题
-
我在R328-S2上使用W25N02KVZEIR,在uboot-id.c文件添加这个器件的支持,但是烧录的时候失败了。
日志:
[904]fes begin [906]set pll start [909]set pll end [910]board init ok [912]beign to init dram [915]the chip id is 0x1 [917]the chip id is 0x1 [919]the chip id is 0x1 [922]the chip id is 0x1 [924]the chip id is 0x1 [927]chip id check OK [929][AUTO DEBUG] Bstart detect DDR3... [934][AUTO DEBUG] Bstart detect DDR2... [938][AUTO DEBUG] two rank and full DQ! [942][AUTO DEBUG] DDR2 try success [946][AUTO DEBUG] single rank and full DQ! [951][AUTO DEBUG] rank 0 row = 13 [954][AUTO DEBUG] rank 0 bank = 4 [957][AUTO DEBUG] rank 0 page size = 2 KB [962]DRAM BOOT DRIVE INFO: V0.18 [965]DRAM CLK = 528 MHz [967]DRAM Type = 2 (2:DDR2,3:DDR3) [971]DRAMC read ODT off. [973]DRAM ODT off. [976]DRAM SIZE =64 M [982]DRAM simple test OK. [984]init dram ok U-Boot 2018.05 (Jul 24 2023 - 15:36:42 +0800) Allwinner Technology [03.673]CPU: Allwinner Family [03.675]Model: sun8iw18 I2C: Error, wrong i2c adapter 1 max 1 possible ready [03.682]DRAM: 64 MiB [03.685]Relocation Offset is: 00f0e000 [03.711]secure enable bit: 0 [03.714]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=264Mhz Error, wrong i2c adapter 1 max 1 possible [03.724]gic: normal mode [03.727]flash init start [03.729]workmode = 16,storage type = 0 [03.733]NAND_UbootProbe start [03.735]NB1 : enter phy init [03.738]nand_physic_init [03.745]nand not support! channel 0 chip 0: 03 03 03 03 03 03 03 03 [03.750]nand not support! channel 0 chip 1: 03 03 03 03 03 03 03 03 [03.756]nand not support! channel 0 chip 2: 03 03 03 03 03 03 03 03 [03.762]nand not support! channel 0 chip 3: 03 03 03 03 03 03 03 03 Change PC_Power Mode Select to 1.8V [03.772]nand not support! channel 0 chip 0: 03 03 03 03 03 03 03 03 [03.778]nand not support! channel 0 chip 1: 03 03 03 03 03 03 03 03 [03.784]nand not support! channel 0 chip 2: 03 03 03 03 03 03 03 03 [03.790]nand not support! channel 0 chip 3: 03 03 03 03 03 03 03 03 Change PC_Power Mode Select to 3.3V [03.799] no nand found ! [03.801]nand_physic_init nand_build_nsi error [03.805]nand_physic_init error -1 [03.808]SpiNandHwInit: Start Nand Hardware initializing ..... [03.814]uboot: nand version: 3 6066 20190725 18212019 [03.822]request spi gpio ok! [03.824]uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43fa22c8 [03.832]request general tx dma channel ok! [03.836]uboot nand_request_tx_dma: reqest genernal dma for nand success, 0x43fa22e4 [03.843]request general rx dma channel ok! sclk0_reg_adr: 0x8300030e, src clock: 0xb8003100 sclk0_reg_adr: 0x8300020e, src clock: 0xb8003100 [03.855]SPI nand ID: 22aaef 0 [03.858]SPI nand ID: 22aaef00 0 [03.861]_SearchNandArchi fail [03.864][ERR]SpiNandHwInit: SCN_AnalyzeNandSystem() failed! [03.869]SpiNandHwInit: End Nand Hardware initializing ..... FAIL! [03.875]NB1 : nand phy init fail [03.878]NAND_UbootProbe end: 0xffffffff try nand fail [03.883]unrecognized JEDEC id bytes: ff, ef, aa data abort pc : [<43f28ba2>] lr : [<43f28b85>] reloc pc : [<4301aba2>] lr : [<4301ab85>] sp : 42adac40 ip : 00000007 fp : 43010fd9 r10: 43010fb9 r9 : 42aeda78 r8 : 00000000 r7 : 42b278d0 r6 : 43f6d670 r5 : ffffffed r4 : 42b27908 r3 : 00003000 r2 : 00000001 r1 : 0000000a r0 : c0000000 Flags: Nzcv IRQs on FIQs off Mode SVC_32 Resetting CPU ... resetting ...
id.c
{ .Model = "W25N02KVZEIR", .NandID = {0xef, 0xaa, 0x22, 0xff, 0xff, 0xff, 0xff, 0xff}, .DieCntPerChip = 2, .SectCntPerPage = 4, .PageCntPerBlk = 64, .BlkCntPerDie = 1024, .OobSizePerPage = 64, .OperationOpt = SPINAND_QUAD_READ | SPINAND_QUAD_PROGRAM | SPINAND_DUAL_READ, .MaxEraseTimes = 65000, .EccType = BIT2_LIMIT1_ERR2, .EccProtectedType = SIZE16_OFF4_LEN4_OFF8, .BadBlockFlag = BAD_BLK_FLAG_FRIST_1_PAGE, },
请教一下各位大佬,这是什么问题呢?id.c上的配置信息这样填写正确吗?
-
@qinlinbin 在 R328-S2使用W25N02问题 中说:
[03.745]nand not support! channel 0 chip 0: 03 03 03 03 03 03 03 03
[03.750]nand not support! channel 0 chip 1: 03 03 03 03 03 03 03 03
[03.756]nand not support! channel 0 chip 2: 03 03 03 03 03 03 03 03
[03.762]nand not support! channel 0 chip 3: 03 03 03 03 03 03 03 03参数有问题,没识别到NAND
-
@whycanservice 我对比了正常的flash芯片(支持列表里面的),这里也是会打印这个log,到了打印“SPI nand ID: 22aaef 0”之后,log才不一样。我看晕哥在其它帖子上说d1s/d1h支持了W25N02,那这个配置参数能发一下吗?
-
@qinlinbin R328的spinand驱动目前是不开源的
-
@qinlinbin 另外,目前在R328平台,释放了开源物料补丁,若是有R328 SDK权限的话,是可以在SDK下载页面获取到该补丁的
-
@daizebin 好的,非常感谢。再请教一下,这个开源物料补丁是什么东西呢
-
@qinlinbin 需要有R328的SDK权限,在对应的SDK下载页面下拉,会看到一个补丁名称为“R328方案添加spinand开源移植库”,按照里面的README操作即可
-
@daizebin 好的,非常感谢
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号