TI中文支持网
TI专业的中文技术问题搜集分享网站

AM335x nand的时序计算

AM3358配用K9K8G08U0A的NandFlash,使用K9F2G08U0B的时序配置,找不到NandFlash,log如下:

boot from SD card…

PISMO1_NAND_BASE=4000000

gpmc_cfg is 800,141400,141400,F010F01,10C1414,1F0F0A80,44

func name is nand_init_chip

func is board_nand_init

Searching for NAND device @ GPMC CS:0

HW ECC Hamming Code selected

NAND busw is 0

chip select chip is 0

chip->cmdfunc is nand_command

nand cmd is ff,ctrl is 83

Func name is ti81xx_nand_hwcontrol

nand_cmd is 5000007c

Func name is ti81xx_nand_hwcontrol

nand_dat is 50000084

Func name is ti81xx_nand_hwcontrol

nand_cmd is 5000007c

Func name is ti81xx_nand_hwcontrol

nand_dat is 50000084

nand read addr is 50000084

chip->cmdfunc is nand_command

nand cmd is 90,ctrl is 83

Func name is ti81xx_nand_hwcontrol

nand_cmd is 5000007c

Func name is ti81xx_nand_hwcontrol

nand_adr is 50000080

Func name is ti81xx_nand_hwcontrol

nand_dat is 50000084

nand read addr is 50000084

nand read addr is 50000084

maf_id:00,dev_id:00

No NAND device found!!!

*** Warning – readenv() failed, using default environment

找不到NandFlash的原因应该是读取的ID号错误,

该怎样计算下面几个寄存器的参数?

#define M_NAND_GPMC_CONFIG2    0x00141400
#define M_NAND_GPMC_CONFIG3   0x00141400
#define M_NAND_GPMC_CONFIG4     0x0F010F01
#define M_NAND_GPMC_CONFIG5    0x010C1414
#define M_NAND_GPMC_CONFIG6        0x1F0F0A80
//hxs add end

附件是K9K8G08U0A的DataSheet

Gary Wu:

请确认硬件焊接等是否ok?

寄存器配置十分简单,可以参考AM335X的TRM

cheng feng:

这几个寄存器的参数是怎么来的,我也很想知道,可否详聊,QQ:76931958

cheng feng:

还有你那开发板的NAND的基地址是否也改为0x04000000,为啥这样改?

leo chen:

回复 cheng feng:

基地址我在一直在手册中也没找到过,可以参考一下这篇文章

http://bbs.eeworld.com.cn/thread-355960-1-1.html     EE_BeagleBone_Cape之NAND

再看看256MB的系统的打印信息吧

[    0.885371]  omap_hsmmc.0: alias fck already exists

[    0.894289] mtdoops: mtd device (mtddev=name/number) must be supplied

[    0.901336] omap2-nand driver initializing

[    0.906150] NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)

[    0.915251] Creating 8 MTD partitions on "omap2-nand.0":

[    0.920854] 0x000000000000-0x000000020000 : "SPL"

[    0.927785] 0x000000020000-0x000000040000 : "SPL.backup1"

[    0.935221] 0x000000040000-0x000000060000 : "SPL.backup2"

[    0.942519] 0x000000060000-0x000000080000 : "SPL.backup3"

[    0.950013] 0x000000080000-0x000000260000 : "U-Boot"

[    0.957714] 0x000000260000-0x000000280000 : "U-Boot Env"

[    0.965087] 0x000000280000-0x000000780000 : "Kernel"

[    0.974097] 0x000000780000-0x000010000000 : "File System"

赞(0)
未经允许不得转载:TI中文支持网 » AM335x nand的时序计算
分享到: 更多 (0)