您好:
目前使用SDK8.02版本进行AM3352开发,遇到如下问题,还请各位工程师帮忙解答,感谢:
1. U-BOOT下,写入和读取nand速度慢,写入大概只有360KB/S,读取大概960KB/S,已开启CONFIG_NAND_OMAP_GPMC_PREFETCH,和CONFIG_CMD_CACHE,但是速度没有太大提升;在kernel下速度很快,启动log如下:
CCC
U-Boot SPL 2021.01-00001-gc59bf25a38-dirty (Nov 29 2023 - 13:54:05 +0800)
Trying to boot from NAND
nand: using OMAP_ECC_BCH16_CODE_HW
use GPMC prefetch read.
Loading element from 0x00080000 (size 0x00000040) to 0x80800000
(持续打印:uncorrectable ECC errors)
U-Boot 2021.01-00001-gc59bf25a38-dirty (Nov 29 2023 - 13:54:05 +0800)
CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM: 512 MiB
Setting QCA7000 and wifi&ble power
WDT: Started with servicing (60s timeout)
NAND: nand: using OMAP_ECC_BCH16_CODE_HW
use GPMC prefetch read.
nand_base: device found, Manufacturer ID: 0x2c, Chip ID: 0x48
nand_base: Micron MT29F16G08ABACAWP
nand_base: 2048 MiB, SLC, erase size: 512 KiB, page size: 4096, OOB size: 224
2048 MiB
2. U-BOOT下使用TFTP下载速度慢,速度大概只有1MB/S,进kernel后网络下载速度很快
link up on port 0, speed 100, full duplex
Using ethernet@4a100000 device
TFTP from server 192.168.0.8; our IP address is 192.168.0.10
Filename 'zImage.bin'.
Load address: 0x82000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
################################
1 MiB/s
done
Bytes transferred = 5239296 (4ff200 hex)
3. 在u-boot下下载rootfs到nand中,如果文件系统大于256M或者大文件写入(没有超过450M),nand写入失败,报错显示:
其他信息: nand info: => nand info Device 0: nand0, sector size 512 KiB nand配置: /* NAND: device related configs */ #define CONFIG_SYS_NAND_5_ADDR_CYCLE #define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \ CONFIG_SYS_NAND_PAGE_SIZE) #define CONFIG_SYS_NAND_PAGE_SIZE 4096 #define CONFIG_SYS_NAND_OOBSIZE 224 #define CONFIG_SYS_NAND_BLOCK_SIZE (512*1024) /* NAND: driver related configs */ #define CONFIG_SYS_NAND_BAD_BLOCK_POS NAND_LARGE_BADBLOCK_POS #define CONFIG_SYS_NAND_ECCPOS { \ 2, 3, 4, 5, 6, 7, 8, 9, \ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, \ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, \ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, \ 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, \ 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, \ 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, \ 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, \ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, \ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, \ 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, \ 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, \ 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, \ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, \ 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, \ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, \ 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, \ 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, \ 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, \ 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, \ 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, \ }
#define CONFIG_SYS_NAND_ECCSIZE 512 #define CONFIG_SYS_NAND_ECCBYTES 26 #define CONFIG_SYS_NAND_ONFI_DETECTION #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH16_CODE_HW |