Hi Team,
AM3352 is currently being developed using SDK8.02.
1) U-boot is slow to write and read nand, writing is about 360KB/S and reading is about 960KB/S. Config_NAND_OMAP_GPMC_prefetch and config_CMD_cache are turned on but the speed does not increase much. The speed is fast in kernel and the start log is as follows:
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) Using TFTP download under U-boot is slow, approximately 1MB/S. The network download speed is fast after entering the 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) Download rootfs to nand under u-boot, nand write fails if the file system is greater than 256M or if you write large files (not more than 450M) with the following error: “nand: error: invalid bit-flip location”
nand info:
=> nand info
Device 0: nand0, sector size 512 KiB
Page size 4096 b
OOB size 224 b
Erase size 524288 b
subpagesize 1024 b
options 0x4000400c
bbt options 0x00000000
nand config:
/* 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
Could you help check this case? Thanks.
Best Regards,
Cherry