OpenWrt Forum Archive

Topic: Install OpenWrt Kamikaze on FON 2200

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,
If someone is interested here's the steps I have followed to successfully install Kamikaze 7.09 on Fon 2200 once obtained the redboot access.

Davide

RedBoot> fis init -f

... wait a few seconds ......

RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma

...wait for a few seconds and ignore all the error messages...

/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000145
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000145
...a lot of lines ....
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000145
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000145

RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7

...wait for a few minutes and ignore all the error messages...

/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000145
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000145
...a lot of lines ....
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000145
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000145

RedBoot> fis free
0xA80F0000 .. 0xA87E0000
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-root.squashfs

... wait a few seconds ......

RedBoot> fis create -l 0xLENGTH rootfs

...wait for a lot of minutes and ignore all the error messages...

/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000145
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000145
...a lot of lines ....
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#393:ae531x_send AHB ERROR status_4 = 00000145
/home/alfa/Atheros_Beta5.0/linuxsrc/src/redboot_fon1/ecos/packages/devs/eth/mips/ar531x/current/src/ae531xecos.c#390:ae531x_send AHB ERROR: AR531X_DEBUG_ERROR = 00000145

RedBoot> fconfig -l -n
boot_script: true
boot_script_data:
.. fis load -l vmlinux.bin.l7
.. exec
boot_script_timeout: 2
bootp: false
bootp_my_gateway_ip: 0.0.0.0
bootp_my_ip: 192.168.1.1
bootp_my_ip_mask: 0.0.0.0
bootp_server_ip: 192.168.1.254
console_baud_rate: 9600
gdb_port: 9000
info_console_force: false
net_debug: false

davide_lenza wrote:

RedBoot> fis create -l 0xLENGTH rootfs

You failed to calculate LENGTH! Have a look here.

Hi Mazilo,
I have intentionally writed 0xLENGTH in order to let the user to calculate on its own the proper value.
The meaning of this post was only to show that the reflashing of the FON 2200 can be done also if some error messages are present.
Thanks
Davide

davide_lenza wrote:

I have intentionally writed 0xLENGTH in order to let the user to calculate on its own the proper value.

If you want to do such a thing, please kindly add some notes to clearly show about your intention to readers; otherwise, your intention is really BAD here even though you're trying to help!

(Last edited by mazilo on 6 Apr 2008, 01:04)

Ok

davide_lenza wrote:

Ok

can u explain us how to calc length please?

(Last edited by cyberstorm on 6 Apr 2008, 08:38)

RedBoot> fis free
0xA80F0000 .. 0xA87E0000

0xLENGTH = 0xA87E0000-0xA80F0000

openwrt@ubuntu-laptop:~$ bc

obase=16
ibase=16
A87E0000 - A80F0000
6F0000

LENGTH = 6F0000

And for flashing the fon2100 it's like this if you use the serial console to transfer the images.

fis init
load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma -m xmodem
fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
fis free
load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs -m xmodem
fis create -l 0xLENGTH rootfs
reset

(Last edited by forum2008 on 6 Apr 2008, 09:34)

cyberstorm wrote:

can u explain us how to calc length please?

If you read posts in this thread carefully, I already provided the link to show how to calculate the LENGTH. big_smile

The discussion might have continued from here.