自己做的3358的板子,使用gpmc的cs0接nand(8位异步读写),gpmc的cs1接同步SRAM(16位同步读写),
使用norflash的时序配置了dts。linux起来后,通过驱动对cs1的空间进行读写,示波器能测到片选信号,但是测不
到gpmc_clk的信号(已经配了gpmc,sync-read和gpmc,sync-write);而且,linux出现不能正常响应命令的现象,
出错信息如下:
root@am335x-evm:~# rmmod dualram_dev.ko[ 693.100338] UBI warning: ubi_io_read: error -74 (ECC error) while reading 176 bytes from PEB 45:55712, read only 176 bytes, retry
[ 693.113791] UBI warning: ubi_io_read: error -74 (ECC error) while reading 176 bytes from PEB 45:55712, read only 176 bytes, retry
[ 693.126891] UBI warning: ubi_io_read: error -74 (ECC error) while reading 176 bytes from PEB 45:55712, read only 176 bytes, retry
[ 693.139917] UBI error: ubi_io_read: error -74 (ECC error) while reading 176 bytes from PEB 45:55712, read 176 bytes
[ 693.150868] CPU: 0 PID: 1208 Comm: sh Tainted: G O 3.14.26-g07d13c6-dirty #7
[ 693.159164] Backtrace:[ 693.161759] [<c0011268>] (dump_backtrace) from [<c0011404>] (show_stack+0x18/0x1c)
[ 693.169690] r6:dda9b000 r5:000000b0 r4:ffffffb6 r3:00000000
[ 693.175638] [<c00113ec>] (show_stack) from [<c04ba7f0>] (dump_stack+0x20/0x28)
………
请问下,gpmc外接同步SRAM时,需要如何配置才对?
谢谢!
QingKai Ji1:
补充一下:在没有配gpmc,sync-read和gpmc,sync-write的时候,一样测不到gpmc_clk,但不会对影响命令执行(如ls,rmmod)。
QingKai Ji1:
回复 QingKai Ji1:
gpmc外接设备,片选0接异步读写nand,其它片选接同步读写设备(如同步SRAM),这种使用方法可行不呢?