The flash tool version is 1.6.0.0,
In "Choose Targets", I select the Custom AM35XX Board, and have modified the config file like follows:
memory NANDINFO1BITKERNEL driver Targets\Flash-Drivers\nand_onfi_16bit_8bit.bin parameters gpmc 0x6E000000 cs 0 address 0x30000000 bberase 0 onfi 0 bpp 2048 sbpp 64 ppb 64 bpl 1024 l 1 acv 0x22 f 0x0019 eccoffset 40
memory NANDINFO1BITBOOT driver Targets\Flash-Drivers\nand_onfi_16bit_8bit.bin parameters gpmc 0x6E000000 cs 0 address 0x30000000 bberase 0 onfi 0 bpp 2048 sbpp 64 ppb 64 bpl 1024 l 1 acv 0x22 f 0x0019 eccoffset 2
....
# NAND on CS0
WRITE GPMC_CONFIG7_0 0x00000000
WAIT_N 0x1000
WRITE GPMC_CONFIG1_0 0x00000800
WRITE GPMC_CONFIG2_0 0x00080800
others setting is: USB, NAND, HWECC, 1BIT, Erase All, then click "GO", it can not work well, the log as follows:
-stdout
-omap 3
-no_force_package_alignment
-t 60
-p CUSTOM_AM35XX_BOARD
-2
chip_erase NANDINFO1BITBOOT 0
Leaving parameter file:temp_script.txt
@temp_script.txt
Looking for device (omap usb)
Please turn on device
Waiting for device (omap usb)
Found device (omap usb)
Awaiting ASIC id
AsicId items 05
AsicId id 01 05 01 34 30 07 58
AsicId secure_mode 13 02 01 00
AsicId public_id 12 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
AsicId root_key_hash 14 15 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
AsicId checksum 15 09 01 93 B6 BC 4A 00 00 00 00
Searching 2nd for: CUSTOM_AM35XX_BOARD 343007 58 GP
Loading second file Targets\2nd-Downloaders\dnld_startup_omap3_gp_2g.2nd
Entering parameter file:omapflash2nd.txt at line: 7
-pheriphalboot_reopen
Reading board configuration file Targets\Configurations\configuration_custom_am35xx.txt
Reading definition file .\targets\definitions\definitions_omap3.txt
-board_config Targets\Configurations\configuration_custom_am35xx.txt
Leaving parameter file:omapflash2nd.txt
Sending size of second file (0x00006804 bytes)
Transferring second file to target (0x6804 bytes)
Closing boot connection
Found device (omap usb)
Waiting for 2nd
Found 2nd
Looking for a driver for 'NANDINFO1BITBOOT'
chip_driver NANDINFO1BITBOOT Targets\Flash-Drivers\nand_onfi_16bit_8bit.bin gpmc 0x6E000000 cs 0 address 0x30000000 bberase 0 onfi 0 bpp 2048 sbpp 64 ppb 64 bpl 1024 l 1 acv 0x22 f 0x0019 eTxp...
Downloading driver
Downloading 'Targets\Flash-Drivers\nand_onfi_16bit_8bit.bin'
Sending data (41008 bytes) :::::::::::::::..... [32764]
Sending data (41008 bytes) :::::::::::::::::::: [41008]
Sending data (41008 bytes) :::::::::::::::::::: [41008]
Interface 'OMAPFLASH DRIVER v5'
Driver 'NAND ONFI 16/8 BIT'
Driver configuration: gpmc = 0x6E000000
Driver configuration: cs = 0x00000000
Driver configuration: address = 0x30000000
Driver configuration: bberase = 0x00000000
Driver configuration: onfi = 0x00000000
Driver configuration: bpp = 0x00000800
Driver configuration: sbpp = 0x00000040
Driver configuration: ppb = 0x00000040
Driver configuration: bpl = 0x00000400
Driver configuration: l = 0x00000001
Driver configuration: acv = 0x00000022
Driver configuration: f = 0x00000019
Driver configuration: eccoffset = 0x00000002
NAND HW ECC
NAND BCH Mode = 0
NAND HWECC offset = 2, size = 12
NAND NONEv0 VENDOR 0x00 UNKNOWN
NAND 16 BIT DEVICE 0x00 UNKNOWN
NAND NAND CYCLES 0x22 (2 ROW, 2 COLUMN)
NAND 2048 BYTES/PAGE (SPARE 64)
NAND 64 PAGES/BLOCK (131072 BYTES/BLOCK)
NAND 1024 BLOCKS/UNIT (134217728 BYTES/UNIT)
NAND 0 BIT(S) ECC REQUIRED
NAND 128 MB TOTAL SIZE
NAND ONFI DRIVER INIT COMPLETE
Downloading complete
Elapsed time: 0:00.578 (70948 bytes/s)
End loading driver
Erasing
Erasing to end of device starting at 0x30000000
NAND drv_dnld_erase: SKIPPING BAD BLOCK AT 0x00000000
NAND drv_dnld_erase: SKIPPING BAD BLOCK AT 0x00020000
NAND drv_dnld_erase: SKIPPING BAD BLOCK AT 0x00040000
NAND drv_dnld_erase: SKIPPING BAD BLOCK AT 0x00060000
NAND drv_dnld_erase: SKIPPING BAD BLOCK AT 0x00080000
NAND drv_dnld_erase: SKIPPING BAD BLOCK AT 0x000A0000
NAND drv_dnld_erase: SKIPPING BAD BLOCK AT 0x000C0000
......
Who can tell me where should I change more?
BTW, the parameter about the memeory in config file :
What is the meaning about the parameter of "f (mandatory if onfi = 0) Features - 16 bit value with bit 0 = 16 bit data operation, rest are don't-care", and how to use it. I am using a nandflash wich is k9f1g08, so how to set the memeory parameters?