Hi Ross,
is it possible to pipe two files to nand? I have this in specific *.xml profiles file:
<CMD state="Updater" type="push" body="nandinit addr=0x80000">Initializing NAND</CMD>
<CMD state="Updater" type="push" body="pipenand addr=0x80000" file="files/u-boot-nand.vybrid">Sending and writing NAND U-Boot</CMD>
<CMD state="Updater" type="push" body="pipenand addr=0xE0000" file="files/mtd1">Sending and writing ENVIRONMENT</CMD>
I see this on serial console:
---------------
nandwrite 80000 0x3f41d954 10000
Flashing image @ 0x3f41d954; size 65536 to 0x80000
Erasing 0x80000
after write to nand flash
utp_handle_message: Sending UTP_SS_BUSY
Type 0x0, tag 0x00000002, param 0
Type 0x3, tag 0x00000002, param 1
utp_handle_message: PUT, 65536 bytes
got data chunk, size: 10000
blkcnt: 20, index: 20, bufsize: 10000
nandwrite 90000 0x3f41d954 10000
Flashing image @ 0x3f41d954; size 65536 to 0x90000
after write to nand flash
utp_handle_message: Sending UTP_SS_BUSY
Type 0x0, tag 0x00000002, param 0
Type 0x3, tag 0x00000002, param 2
utp_handle_message: PUT, 65536 bytes
got data chunk, size: 10000
blkcnt: 20, index: 40, bufsize: 10000
nandwrite a0000 0x3f41d954 10000
Flashing image @ 0x3f41d954; size 65536 to 0xa0000
Erasing 0xa0000
after write to nand flash
utp_handle_message: Sending UTP_SS_BUSY
Type 0x0, tag 0x00000002, param 0
Type 0x3, tag 0x00000002, param 3
utp_handle_message: PUT, 56880 bytes
got data chunk, size: de30
blkcnt: 1c, index: 60, bufsize: de30
nandwrite b0000 0x3f41d954 de30
Flashing image @ 0x3f41d954; size 56880 to 0xb0000
after write to nand flash
utp_handle_message: Sending UTP_SS_PASS
Type 0x0, tag 0x00000002, param 0
Type 0x1, tag 0x00000003, param 0
utp_handle_message: EXEC
utp_exec: pass
/Type 0x0, tag 0x00000003, param 0
Type 0x1, tag 0x00000004, param 20000
utp_handle_message: EXEC
addr: 0xe0000
utp_exec: pass
Type 0x0, tag 0x00000004, param 0
Type 0x3, tag 0x00000004, param 0
utp_handle_message: PUT, 65536 bytes
got data chunk, size: 10000
blkcnt: 20, index: 7c, bufsize: 10000
nandwrite 11e000 0x3f41d8f4 10000
Flashing image @ 0x3f41d8f4; size 65536 to 0x11e000
after write to nand flash
utp_handle_message: Sending UTP_SS_BUSY
Type 0x0, tag 0x00000004, param 0
Type 0x3, tag 0x00000004, param 1
utp_handle_message: PUT, 65536 bytes
got data chunk, size: 10000
blkcnt: 20, index: 9c, bufsize: 10000
nandwrite 12e000 0x3f41d954 10000
Flashing image @ 0x3f41d954; size 65536 to 0x12e000
--------------
U-boot programs well, you may see 4 chunks of data up to 64k bytes long to 0x80000, 0x90000 and so on.
What I can't understand why mtd1 file, which is supposed to go to 0xE0000, seems being programmed to 0x11e000?
I'm going to find a way to program whole nand in one MfgTool programming step. Do I need to combine all my files to single file and program it? It is not possible to call MfgTool several times to program each partition separately. U-boot, which comes with MfgTool has following line in vf610twr_nand.h and thus has to be recompiled.
#define CONFIG_BOOTCOMMAND "nand erase.chip; ums 0"
Every time