Tool/software: Linux
Hi SIr
1. below is the bin2nand usage list
./bin2nand -help
Usage: bin2nand [options] input output
Options:
-type raw|one - NAND type, default: raw
-page 512|2048|... - Page size, default: 2048
-spare 16|64|218|... - Size of the page spare area, default: 64
-block 16|32|64|128 - Block size (number of pages), default: 64
-verbose - Print ecc's.
-corr <sector> - Generates correctable error(s).
-uncorr <sector> - Generates uncorrectable error(s).
-bigspare - Spare area size = page size (Denali).
-badblock - Marks blocks as invalid.
-bch 8 - Use BCH as ECC algorithm.
Error correction capability is 8 bits only.
If not set, then no ECC is used.
2.we will use below command to generate file
bin2nand -bch 8 u-boot.min.nand u-boot.min.nand.rawoob
bin2nand -bch 8 u-boot.bin u-boot.bin.rawoob
bin2nand -bch 8 uImage uImage.rawoob
bin2nand -bch 8 ubifs_ipnc_full_feature.bin ubifs_ipnc_full_feature.bin.rawoob
3. Then burn them separately
Burn u-boot.min.nand.rawoob to 0x00000000
Burn u-boot.bin.rawoob to 0x00020000
Burn uImage.rawoob to 0x00280000
Burn ubifs_ipnc_full_feature.bin.rawoob to 0x006C0000
But we found the file size is smaller than original files.
If we add -block parameter as below , the file size is almost the same with original file.
./bin2nand -bch 8 -block 1024 uImage uImage.rawoob
Q1: Does TI have any example about how to use bin2nand command or we need to add -block parameter ?
Q2: there are many parameters in above item1. Should we add all of the parameters( ex:page .....) when we use bin2nand command ?
BR
Yimin