# # Guardian Flash programming example for 440GR Yellowstone # # play ppc_440gr_yellowstone_flash.def # # #guard_on # # make sure a TLB exists for FLASH # make sure SDRAM is intialized for workspace programming @play ppc_440gr_yellowstone.def # set up flash parameters opt wsaddr 0x10000 # workspace address opt wssize 0x2000 # workspace size opt fltout 0x1e # timeout for flash operations opt fltype AMD29F # flash type/algorithm opt flssize 0x10000 # size of a sector opt flnsec 0x8 # number of sectors(if not specified in the command) opt flwidth 16 # flash with is 16 bits # turn workspace on and set up a large tftp buffer space(for speed) opt flwork on # turn workspace on opt tbufsiz 32 # if for some reason, workspace is not available, # turn off workspace, and reduce the tftp buffer size(to prevent timeouts) #opt flwork off # turn workspace off #opt tbufsiz 2 # set the base address for the uboot image opt flbase 0xFFF80000 # if we can ID the part, we should be able to program and erase fl -id 0xFFF80000 # erase the 8 sectors that cover uboot fl -es 0xFFF80000 0x8 # program the uboot image fl -p u-boot_yellowstone.bin 0xFFF80000 -BIN #guardoff