All pastes #1232052 Raw Edit

Someone

public text v1 · immutable
#1232052 ·published 2008-10-20 18:07 UTC
rendered paste body
^C
RedBoot> ip_address -h 10.0.0.2 -l 10.0.0.1/24
IP: 10.0.0.1/255.255.255.0, Gateway: 0.0.0.0
Default server: 10.0.0.2
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma

(or: load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma )

Using default protocol (TFTP)
Raw file loaded 0x80041000-0x800f0fff, assumed entry at 0x80041000
RedBoot> fis init

The values for the -e and -r switches in the 'fis create' RedBoot command below is the Kernel entry point. Do not change this value.

RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
An image named 'vmlinux.bin.l7' exists - continue (y/n)? y
... Erase from 0xa8730000-0xa87e0000: ...........
... Program from 0x80041000-0x800f1000 at 0xa8730000: ...........
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .

"fis free" will print the first and last free block

RedBoot> fis free
      0xA80F0000 .. 0xA87E0000

Now do the math (last - first, cause you need the difference)

server:~# bc
obase=16
ibase=16
A87E0000 - A80F0000
6F0000

Replace 0xLENGTH with the value above (0x006F0000 in my case) and flash the the rootfs:

RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-root.squashfs    ###(OR: load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs  )###
Using default protocol (TFTP)
|
Raw file loaded 0x80041000-0x80200fff, assumed entry at 0x80041000
RedBoot> fis create -l 0xLENGTH rootfs     ###(  Example: fis create -l 0x6F0000 rootfs   )###
An image named 'rootfs' exists - continue (y/n)? y
... Erase from 0xa8030000-0xa8730000: ................................................................................................................
... Program from 0x80041000-0x80741000 at 0xa8030000: ..............................................................................................................
... Erase from 0xa87e0000-0xa87f0000: .
... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .
RedBoot> reset

DONE! 
       \o/
        |
       / \