完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
本帖最后由 一只耳朵怪 于 2018-6-5 16:16 编辑
大家好,在移植AM335X的时候又遇到了一个问题:在u-boot操作NAND Flash时很慢,具体情况如下: SDK版本:ti-processor-sdk-linux-am335x-evm-03.02.00.05 问题描述:我有两块板子,第一块是网上买的demo,上面是512MByte的NAND(型号:29F4G08ABADA);第二块是自己做的板子,上面是256MByte的NAND(型号:29F4G08ABADA),我编译好Uboot后在装置上运行,两块板子均能正确识别NAND,但是当执行nand erase.chip进行擦除时出了问题,第一块板子512M的NAND很快擦除,大概几秒钟就完成,但是第二块256M的NAND则很慢,大概需要20几分钟,这是什么原因呢? nand_pin_mux如下: static struct module_pin_mux hxdw_nand_pin_mux[] = [ [OFFSET(gpmc_ad0), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD0 */ [OFFSET(gpmc_ad1), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD1 */ [OFFSET(gpmc_ad2), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD2 */ [OFFSET(gpmc_ad3), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD3 */ [OFFSET(gpmc_ad4), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD4 */ [OFFSET(gpmc_ad5), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD5 */ [OFFSET(gpmc_ad6), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD6 */ [OFFSET(gpmc_ad7), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD7 */ #ifdef CONFIG_SYS_NAND_BUSWIDTH_16BIT [OFFSET(gpmc_ad8), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD8 */ [OFFSET(gpmc_ad9), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD9 */ [OFFSET(gpmc_ad10), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD10 */ [OFFSET(gpmc_ad11), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD11 */ [OFFSET(gpmc_ad12), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD12 */ [OFFSET(gpmc_ad13), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD13 */ [OFFSET(gpmc_ad14), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD14 */ [OFFSET(gpmc_ad15), (MODE(0) | PULLUDDIS | RXACTIVE)], /* AD15 */ #endif [OFFSET(gpmc_wait0), (MODE(0) | PULLUP_EN | RXACTIVE)], /* nWAIT */ [OFFSET(gpmc_wpn), (MODE(7) | PULLUP_EN)], /* nWP */ [OFFSET(gpmc_csn0), (MODE(0) | PULLUP_EN)], /* nCS */ [OFFSET(gpmc_wen), (MODE(0) | PULLDOWN_EN)], /* WEN */ [OFFSET(gpmc_oen_ren), (MODE(0) | PULLDOWN_EN)], /* OE */ [OFFSET(gpmc_advn_ale), (MODE(0) | PULLDOWN_EN)], /* ADV_ALE */ [OFFSET(gpmc_be0n_cle), (MODE(0) | PULLDOWN_EN)], /* BE_CLE */ [-1], ]; 配置代码如下: else if (board_is_hxdw()) [ configure_module_pin_mux(rgmii1_pin_mux); configure_module_pin_mux(hxdw_mmc0_pin_mux); configure_module_pin_mux(hxdw_nand_pin_mux); ] 各自的打印信息如下: 第二块板子: U-Boot SPL 2016.05-00304-gad06f64-dirty (Apr 09 2017 - 13:33:00) Trying to boot from MMC1 reading args spl_load_image_fat_os: error reading image args, err - -1 reading u-boot.img reading u-boot.img reading u-boot.img reading u-boot.img U-Boot 2016.05-00304-gad06f64-dirty (Apr 09 2017 - 13:33:00 +0800) CPU : AM335X-GP rev 2.1 Model: TI AM335x HXDW Watchdog enabled DRAM: 256 MiB NAND: 256 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 reading uboot.env ** Unable to read "uboot.env" from mmc0:1 ** Using default environment Net: Could not get PHY for ethernet@4a100000: addr 0 eth0: ethernet@4a100000 Warning: u***_ether MAC addresses don't match: Address in SROM is de:ad:be:ef:00:01 Address in environment is 84:eb:18:bd:a8:9e , eth1: u***_ether Press SPACE to abort autoboot in 2 seconds => nand erase.chip NAND erase.chip: device 0 whole chip Erasing at 0xbae0000 -- 73% complete.(很慢) 第一块板子: U-Boot SPL 2016.05-00304-gad06f64-dirty (Apr 09 2017 - 13:33:00) Trying to boot from MMC1 reading args spl_load_image_fat_os: error reading image args, err - -1 reading u-boot.img reading u-boot.img reading u-boot.img reading u-boot.img U-Boot 2016.05-00304-gad06f64-dirty (Apr 09 2017 - 13:33:00 +0800) CPU : AM335X-GP rev 2.1 Model: TI AM335x HXDW Watchdog enabled DRAM: 512 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 reading uboot.env ** Unable to read "uboot.env" from mmc0:1 ** Using default environment Net: Could not get PHY for ethernet@4a100000: addr 0 eth0: ethernet@4a100000 Warning: u***_ether MAC addresses don't match: Address in SROM is de:ad:be:ef:00:01 Address in environment is b0:d5:cc:81:84:a3 , eth1: u***_ether Press SPACE to abort autoboot in 2 seconds => nand erase.chip NAND erase.chip: device 0 whole chip Erasing at 0x1ffe0000 -- 100% complete. OK =>(很快) |
|
相关推荐
2个回答
|
|
OK,问题解决
|
|
|
|
OK,问题解决
|
|
|
|
只有小组成员才能发言,加入小组>>
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
709 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
618 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1080 浏览 1 评论
774 浏览 0 评论
普中科技F28335开发板每次上电复位后数码管都会显示,如何熄灭它?
537 浏览 1 评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
189浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
147浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
16浏览 13评论
在使用3254进行录音的时候出现一个奇怪的现象,右声道有吱吱声,请教一下,是否是什么寄存器设置存在问题?
138浏览 13评论
TLV320芯片内部自带数字滤波功能,请问linein进来的模拟信号是否是先经过ADC的超采样?
132浏览 12评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-4 02:31 , Processed in 1.042529 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号