Writing the Flash with Microblaze
From Milkymist Wiki
From Onur:
fyi.
Probably there are more options for accessing nor flash on ML401. But I created an ACE file, with microblaze hardware, u-boot and milkymist bios. When you use this file to configure your board. When you boot you will see u-boot command prompt. Current version of milkymist bios binary is located on 0x8c000000 address. (we can also use tftp to load another binary) To burn milkymist image to nor flash, see log below.
======================================SDRAM :
Enabling caches :
Icache:OK
Dcache:OK
U-Boot Start:0x8ffc0000
Malloc Start:0x8ff80000
Board Info Start:0x8ff7ffd0
Boot Parameters Start:0x8ff6ffd0
FLASH: 8 MB
ETHERNET: MAC:00:0a:35:00:fa:fa
*** Warning - bad CRC, using default environment
Hit any key to stop autoboot: 0
U-Boot> protect off all
Un-Protect Flash Bank # 1
................................ done
U-Boot> erase all
Erase Flash Bank # 1
................................ done
U-Boot> cp.b 0x8c000000 0x90000000 0x10000
Copy to Flash... done
U-Boot> md 0x90000000
90000000: b0000000 b8080028 b0000000 b8080028 .......(.......(
90000010: b0000000 b8080028 b0000000 b8080028 .......(.......(
90000020: b0000000 b8080028 b0000000 31a0520c .......(....1.R.
90000030: b0000000 3040520c b0002000 30201000 ....0@R... .0 ..
90000040: b0000000 b9f4020c 80000000 b0002000 .............. .
90000050: 20c00000 b0002000 20e0042c 06463800 ..... . ..,.F8.
90000060: bc720014 d8060000 20c60004 06463800 .r...... ....F8.
90000070: bc92fff4 b0000000 b9f40530 80000000 ...........0....
90000080: b800ffa8 b0000000 30600bd8 b60f0008 ........0`......
90000090: 80000000 b0002000 3060042c b60f0008 ...... .0`.,....
900000a0: 80000000 b0002000 30601000 b60f0008 ...... .0`......
900000b0: 80000000 10600800 b60f0008 80000000 .....`..........
900000c0: 10650000 10202800 b60f0008 80000000 .e... (.........
900000d0: 16473003 bcb2001c c8603000 30c60004 .G0......`0.0...
900000e0: d8602800 16473003 be52fff0 30a50004 .`(..G0..R..0...
900000f0: b60f0008 80000000 94608001 b60f0008 .........`......
U-Boot>
and I got u-boot and microblaze hw from petalogix. Thanks to them.
Example SystemACE image for ML401: File:Flasher microblaze.tar.bz2

