Any plans for DD-WRT on La Fonera? Source code is out!

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3 ... 19, 20, 21 ... 36, 37, 38  Next
Author Message
Camicia
DD-WRT User


Joined: 24 Dec 2006
Posts: 79

PostPosted: Thu Dec 28, 2006 8:42    Post subject: Reply with quote
I've always been too curious...
To make a long story short I download the fonera source and built it. I run "make" save the configuration without altering anything in order to write the "Config.in" and then I run "make world". Correct, right?

Once it was built I compared the result of output (openwrt-ar531x-2.4-vmlinux.lzma) with the mtd4 of my Fonera. Interesting enough the kernel images are a bit different. From ver 7.0 r1 to ver .71.r1 the kernel has not changed for what I know. This can mean that FON didn't really release the last firmware source:-/ Or maybe I didn't build it how I was suppose to Confused Another stange thing is that mtd_20050122.orig.tar.gz in the fonera source is not used to patch the kernel.

Anyway. I patched the kernel. Now all the MTD partions should be writeable. Please note that they were not writeable for a reason. Writing "Redboot config" is probably going to reset the FIS directory because it is on the same "erase sector". This is not a major problem since with Redboot we can easily recreate them and to install Openwrt we must do this anyway.

Ok... this is what is necessary to do starting with a Fonera with firmware FON 7.x already hacked (SSH access):
1 - Download the file http://rapidshare.com/files/9240866/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma.html on your on PC e move it on your Fonera /tmp folder
2 - Run "mtd -e vmlinux.bin.l7 write openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma vmlinux.bin.l7"
3 - Restart the router. If everything went OK, it should work as usual. If you have the serial console you will see the messages of my hack Wink
4 - Connect with SSH e move the Heini66 file ( http://rapidshare.com/files/9116527/out.hex.html ) on your /tmp
5 - Run: mtd -e "RedBoot config" write out.hex "RedBoot config"
6 - Reboot.

Your Fonera's Redboot should be now accessible at 192.168.1.254 through telnet.
NOTE: The procedure is UNTESTED yet. It's necessary that someone with a serial console tests it.

Heini66: thanks for your patience. Can you try this and let me know if it works?

Camicia
Sponsor
Heini66
DD-WRT User


Joined: 01 Dec 2006
Posts: 70

PostPosted: Thu Dec 28, 2006 9:47    Post subject: Reply with quote
Wink
think we could mark this thread as "solved"
Code:

 wget http://192.168.0.5/apache2-default/out.hex
Connecting to 192.168.0.5[192.168.0.5]:80
out.hex              100% |*****************************|  4096       00:00 ETA
root@(none):~# mtd -e "RedBoot config" write out.hex "RedBoot config"
Unlocking RedBoot config ...
Erasing RedBoot config ...
Writing from out.hex to RedBoot config ...  [w]
root@(none):~# reboot
The system is going down NOW !!
Sending SIGTERM to all processes.
Please stand by while rebooting the system.
Restarting system.
+PHY ID is 0022:5521
Ethernet eth0: MAC address 00:18:84:13:57:08
IP: 192.168.1.254/255.255.255.0, Gateway: 0.0.0.0
Default server: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version v1.3.0 - built 16:57:58, Aug  7 2006

Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

Board: ap51
RAM: 0x80000000-0x81000000, [0x80040450-0x80fe1000] available
FLASH: 0xa8000000 - 0xa87f0000, 128 blocks of 0x00010000 bytes each.
== Executing boot script in 10.000 seconds - enter ^C to abort
^C
RedBoot> fconfig
Run script at boot: true
Boot script:
.. fis load -l vmlinux.bin.l7
.. exec
Enter script, terminate with empty line
>>
Boot script timeout (1000ms resolution): 10
Use BOOTP for network configuration: false
Gateway IP address:
Local IP address: 192.168.1.254
Local IP address mask: 255.255.255.0
Default server IP address:
Console baud rate: 9600
GDB connection port: 9000
Force console for special debug messages: false
Network debug at boot time: false


thxs !!! to all !!!
all files could be reached better @:
http://coppercore.net/~kevin/fon/

_________________
freenode.net #openwrt

NO SUPPORT VIA PM !!!
Honki
DD-WRT User


Joined: 07 Jun 2006
Posts: 176

PostPosted: Thu Dec 28, 2006 10:16    Post subject: Reply with quote
Thank´s to all, too Cool

But next Step (come back to this Forum)... is it possible to make DD-WRT on it Question

@Brainslayer: Now the secret is disclose and i believe you can break your silence...can you help and do the recent amendment, please...
darkmind
DD-WRT Novice


Joined: 01 Dec 2006
Posts: 20

PostPosted: Thu Dec 28, 2006 12:50    Post subject: Reply with quote
I have just flashed my fonera with camicia's openwrt and executed redboot. But now i can't access my fonera anymore. I have no serial console, only ssh. How can i do? thanks
Heini66
DD-WRT User


Joined: 01 Dec 2006
Posts: 70

PostPosted: Thu Dec 28, 2006 12:55    Post subject: Reply with quote
telnet to ip 192.168.1.254 on port 9000.
works only 10 sec after power on.

_________________
freenode.net #openwrt

NO SUPPORT VIA PM !!!
darkmind
DD-WRT Novice


Joined: 01 Dec 2006
Posts: 20

PostPosted: Thu Dec 28, 2006 13:18    Post subject: Reply with quote
it works. but now what can I do with my fonera? thanks Very Happy
Heini66
DD-WRT User


Joined: 01 Dec 2006
Posts: 70

PostPosted: Thu Dec 28, 2006 13:19    Post subject: Reply with quote
fis load -l vmlinux.bin.l7
exec

or reflash it.

_________________
freenode.net #openwrt

NO SUPPORT VIA PM !!!
tuxi
DD-WRT Novice


Joined: 28 Dec 2006
Posts: 4

PostPosted: Thu Dec 28, 2006 13:49    Post subject: Reply with quote
damn... i think i bricked my unit.

Tried exact the way you descriped but after i "flashed" camicas openwrt my wlan-light dont starts to blink anymore. And i cant access the router through 169.254.255.1 via ssh even ping is impossible.

Tried to reset the router by pressing the button on the bottom but doesnt seem to work.
I used the files from the mirror perhaps they are broken?

hope theres a way to reset without serial cable.
Heini66
DD-WRT User


Joined: 01 Dec 2006
Posts: 70

PostPosted: Thu Dec 28, 2006 15:04    Post subject: Reply with quote
tuxi wrote:
And i cant access the router through 169.254.255.1 via ssh even ping is impossible.




telnet to ip 192.168.1.254 on port 9000.
works only 10 sec after power on.

_________________
freenode.net #openwrt

NO SUPPORT VIA PM !!!
tuxi
DD-WRT Novice


Joined: 28 Dec 2006
Posts: 4

PostPosted: Thu Dec 28, 2006 15:08    Post subject: Reply with quote
i didnt flash the redboot thing so this wont work i think
Heini66
DD-WRT User


Joined: 01 Dec 2006
Posts: 70

PostPosted: Thu Dec 28, 2006 15:11    Post subject: Reply with quote
if you have only writen the camica-kernel, the reset of fonera should work. (90-120sec until lan led starts to blink...)
when openwrt installed, this button isn't used anymore.

_________________
freenode.net #openwrt

NO SUPPORT VIA PM !!!
darkmind
DD-WRT Novice


Joined: 01 Dec 2006
Posts: 20

PostPosted: Thu Dec 28, 2006 15:16    Post subject: Reply with quote
How I flash my fonera to kamikaze? thanks Wink
Heini66
DD-WRT User


Joined: 01 Dec 2006
Posts: 70

PostPosted: Thu Dec 28, 2006 15:17    Post subject: Reply with quote
load -r -v -b 0x80040450 openwrt-atheros-2.6-root.jffs2-64k
fis create -b 0x80040450 -f 0xA8030000 -l 0x00700000 -e 0x00000000 rootfs
load -r -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma
fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7
fis load -l vmlinux.bin.l7
exec

_________________
freenode.net #openwrt

NO SUPPORT VIA PM !!!
vSaAmTp
DD-WRT User


Joined: 04 Nov 2006
Posts: 91

PostPosted: Thu Dec 28, 2006 15:22    Post subject: Reply with quote
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=8858 <-- in german :)

thanks for the hack
darkmind
DD-WRT Novice


Joined: 01 Dec 2006
Posts: 20

PostPosted: Thu Dec 28, 2006 16:32    Post subject: Reply with quote
I tried to flash my fonera to kamikaze. load command works but when i send "fis create..." putty doesn't respond anymore. I can flash my fonera with putty or I need serial connection?
Goto page Previous  1, 2, 3 ... 19, 20, 21 ... 36, 37, 38  Next Display posts from previous:    Page 20 of 38
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum