#========================================================
# Reset the current flash and the partition table
#========================================================
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
#========================================================
# Tell RedBoot about the TFTP-Server's IP
#========================================================
RedBoot> ip_address -l 192.168.1.1/24 -h 192.168.1.2
IP: 192.168.1.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.1.2
#========================================================
# write the 2nd stage bootloader into flash
#========================================================
RedBoot> load -r -b %{FREEMEMLO} loader.bin
Using default protocol (TFTP)
Raw file loaded 0x80040400-0x800503ff, assumed entry at 0x80040400
RedBoot> fis create -e 0x80100000 -r 0x80100000 loader
... Erase from 0xa8030000-0xa8040000: .
... Program from 0x80040400-0x80050400 at 0xa8030000: .
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
#========================================================
# load into RAM and write the failsafe image into flash
#========================================================
RedBoot> load -r -b %{FREEMEMLO} failsafe.image
Using default protocol (TFTP)
Raw file loaded 0x80040400-0x801803ff, assumed entry at 0x80040400
RedBoot> fis create -f 0xA8660000 image2
... Erase from 0xa8660000-0xa87a0000: ....................
... Program from 0x80040400-0x80180400 at 0xa8660000: ....................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
#========================================================
# load into RAM and write the image (4+ MB) into flash
#========================================================
RedBoot> load -r -b %{FREEMEMLO} flipper.image
Using default protocol (TFTP)
Raw file loaded 0x80040400-0x804b0403, assumed entry at 0x80040400
RedBoot> fis create image
... Erase from 0xa8040000-0xa84b0004: ........................................................................
... Program from 0x80040400-0x804b0404 at 0xa8040000: ........................................................................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot>