# # Guardian Flash programming example for 440EP Ebony # # play ppc_440gp_ebony_flash.def # # #guard_on # # set up flash parameters opt wsaddr 0xC0000000 # workspace address(in IRAM) 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 8 # flash with is 8 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 # make sure a TLB exists for FLASH # make sure a TLB exists for RAM # this will take several seconds @play ppc_440gp_ebony.def # 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 # make sure SDRAM is intialized for workspace programming @play ppc_440gp_ebony_SDRAMinit.def # program the uboot image fl -p u-boot_ebony.bin 0xFFF80000 -BIN #reset opt clk 1 # try slowing clock if you have reset problems reset opt clk 16 # speed up after reset #guardoff