OpenWrt Forum Archive

Topic: Need Help, stucked in middle in flashing FON 2100 A/B/C

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

I followed the document http://wiki.openwrt.org/OpenWrtDocs/Hardware/Fon/Fonera
Got the SSH and  RedBoot access and started with ..

Installing OpenWrt with RedBoot


^C
RedBoot> ip_address -h 192.168.5.2 -l 192.168.5.75/24
IP: 192.168.5.75/255.255.255.0, Gateway: 0.0.0.0
Default server: 192.168.5.2
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma
Using default protocol (TFTP)
Raw file loaded 0x80041000-0x800f0fff, assumed entry at 0x80041000
RedBoot> fis init

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: .

RedBoot> fis free
      0xA80F0000 .. 0xA87E0000

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

RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-root.squashfs
Using default protocol (TFTP)
|
Raw file loaded 0x80041000-0x80200fff, assumed entry at 0x80041000
RedBoot> fis create -l 0x006F0000 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

--------------------------------Above worked without any issue--------

== Executing boot script in 8.610 seconds - enter ^C to abort

CRTL-c is not working any more and only special char get display.
i am not getting RedBoot prompt...


Please Help.
Thanks

Hi,
Set your PC to 192.168.1.254 and reboot your fonera.
You are not able to see the successful ping to 192.168.1.1?
Davide

davide_lenza wrote:

Hi,
Set your PC to 192.168.1.254 and reboot your fonera.
You are not able to see the successful ping to 192.168.1.1?
Davide

Hello.

Yes, i did that and it worked half way

my initial setup for TFTP is ..my PC is set to 192.168.1.166

ip_addr -h 192.168.1.166 -l 192.168.1.254/24

RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma
RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-root.squashfs

RedBoot> fis create -l 0x006F0000 rootfs

All above worked OK, Now CTRL-C is not working after reset.. i see message in telnet window

== Executing boot script in 8.610 seconds - enter ^C to abort

Thanks

Hi,

Maybe you need to modify the REDBOOT fconfig to contain those lines:
fis load -l vmlinux.bin.l7
exec

Those are the command to be launched by the bootstrap

Please post the result of the command "fconfig -l -n".

Davide

davide_lenza wrote:

Hi,

Maybe you need to modify the REDBOOT fconfig to contain those lines:
fis load -l vmlinux.bin.l7
exec

Those are the command to be launched by the bootstrap

Please post the result of the command "fconfig -l -n".

Davide

Thanks

This time as soon i had
telnet 192.168.1.254 9000
i started hitting CTRL-C cotineously and got RedBoot prompt. Looks like earlier i was little slow to hit CTRL-C

Now doing
fis load -l vmlinux.bin.l7
exec

Thanks for your help

Hi,
So now are you able to access OpenWrt or not?
Davide

davide_lenza wrote:

Hi,
So now are you able to access OpenWrt or not?
Davide

Yes, i am now

Thanks

Actually it's:

RedBoot> ip_address -h 192.168.5.2 -l 192.168.5.75/24
RedBoot> fis init                                   <---------------------
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma
RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
RedBoot> fis free

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

RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-root.squashfs
RedBoot> fis create -l 0x6F0000 rootfs              <---------------------
RedBoot> reset

That always worked for me smile

(Last edited by forum2008 on 11 Apr 2008, 19:03)

forum2008 wrote:

Actually it's:

RedBoot> ip_address -h 192.168.5.2 -l 192.168.5.75/24
RedBoot> fis init                                   <---------------------
RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma
RedBoot> fis create -e 0x80041000 -r 0x80041000 vmlinux.bin.l7
RedBoot> fis free

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

RedBoot> load -r -b %{FREEMEMLO} openwrt-atheros-2.6-root.squashfs
RedBoot> fis create -l 0x6F0000 rootfs              <---------------------
RedBoot> reset

That always worked for me smile

Thanks Forum2008

Now my Fonera is stable with wifi (its my workaround to use it until the Kamekaze 2.4 wifi issue resolve for Asus with broadcom)

Quick question please..
1. The wifi sigal strength for FON is not so good and file transfer is not great.  I just compiled the packages from latest trunk using
svn checkout https://svn.openwrt.org/openwrt/trunk/ ~/trunk/
cd ~/trunk/
./scripts/feeds update
./scripts/feeds install <pkg_name_1> <pkg_name_2> ... <pkg_name_N>
make menuconfig
make world

is new packages
kmod-madwifi_2.6.23.16+r3314-atheros-1_mips.ipk
wireless-tools_29-2_mips.ipk
will help in wifi performance?

2. If yes, just removing above two package and installing the latest will work or i have to reflash the router ? is reflash process is same as you described?

Thanks

You will have to reflash the router, which uses the same process as above. Packages from trunk cannot be used on Kamikaze because we have updated uClibc (breaks binary compatibility.)

The discussion might have continued from here.