FON NEW KERNEL >= 2.6.21.1 SPECIAL FLASH METHOD

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2, 3 ... 14, 15, 16  Next
Author Message
meltyblood
DD-WRT User


Joined: 06 May 2007
Posts: 114

PostPosted: Mon Jun 11, 2007 6:11    Post subject: FON NEW KERNEL >= 2.6.21.1 SPECIAL FLASH METHOD Reply with quote
For most firmwares, you an follow your favorite method of flashing and come out okay. 2.6.21.1 changes all of that. For DD-WRT the same flash instructions can still be used EVEN NOW WITH THE 2.6.22.1 kernel versions.
As for Openwrt images with 2.6.21.1 or later (potentially) kernels, the kernel file is several kilobytes bigger than usual, and more space needs to be allocated to the kernel (lzma) file on the flash via redboot commands.

Therefore...
You could use this utility: http://berlin.freifunk.net/sven-ola/fonera/ap51-flash-fonera-gui-1.0-33.exe
http://fon.testbox.dk/flashing/GUIflasher/ (Secondary link)
WINDOWS GUI

http://berlin.freifunk.net/sven-ola/fonera/ap51-flash-fonera-1.0-27
Should be for Linux
To AUTOMATICALLY (YES I SAID AUTOMATICALLY) FLASH YOUR Fonera

Quote:
1) Connect the Fonera to the ethernet jack.
2) Browse to http://winpcap.org/ , download the installer and install it.
3) Download http://download.olsrexperiment.de/fonera/ap51-flash-fonera-gui-1.0-33.exe
4) Run the program. Select interface. Click Go. Switch on the Fonera.


SO here's a quick guide to flashing for both pre-kernel-enlargement and post-kernel enlargement firmwares if you want to do it the old-fashioned way.

<2.6.21.1 (all DD-WRT firmwares and most Openwrt firmwares)

Method ONE:
USE the fonera-flash-gui software above with winpcap (the easy way)
For the Freifunk flash utility you will have to rename your files to bin (root.fs) or lzma (vmlinux.bin.l7) extensions to get them to load for DD-WRT fimwares.
If you are seeing only a dialup adaptor or otherwise, you need to update to winPcap 4.

Method TWO:
Follow the guide below WITH THE PRE-2.6.21.1 REDBOOT COMMANDS


>= 2.6.21.1 (new Openwrt firmwares)

Method ONE:
Use the fonera-flash-gui software above with winpcap
For the Freifunk flash utility you will have to rename your files to bin or lzma to get them to load for DD-WRT fimwares.
Method TWO:
Set your networking card to IP:192.168.1.166 (the "166" can be any legitimate IP number but 254) gateway 192.168.1.254, dns 192.168.1.254. Plug a networking cable from your fon into your PC.
Host the image files with tftpd32 ( http://moo.akacrasher.com/~philippej/tftpd32_download.html ) or pumpkin ( http://kin.klever.net/dist/pumpkin-2.7.exe ). You'll want the files in the same directory as the uploader application (I use tftpd32). Which files do I mean?...

for DD-WRT:
root.fs
vmlinux.bin.l7

for OpenWrt:
openwrt-atheros-2.6-root.jffs2-64k
openwrt-atheros-2.6-vmlinux.lzma

Start the TFTP application and make sure it's setup to the right IP address (192.168.1.166).

If you JUST installed redboot and its out.hex configuration file, you will not have to catch Redboot before it loads a firmware, it will be waiting for you.
If you need to catch it:

Run cmd.exe in windows, type in "ping 192.168.1.254" but don't hit enter yet. Pull up Putty and set it to TELNET 192.168.1.254 and then port 9000, but don't connect yet. Unplug the foneras power, plug it back in, and as so soon as your network cards LEDs light up, press enter on the cmd command prompt window to ping (this is after a few seconds, if you use a switch in-between the lights will already be on). As soon as the "no route to host" lines end and the you start getting replies, immediately connect with Putty. You'll have redboot waiting, quickly hit Ctrl-C to stop it from going anywhere.

Now that you have access to Redboot (if you had serial access you would have been here 20 minutes ago), type in the following commands ONE-BY-ONE
(FOR 2.6.21.1 or greater kernel-based firmwares)

DD-WRT

Code:

SAME AS BEFORE, CHECK BELOW.  NOTHING HAS CHANGED FOR DD-WRT.


OPENWRT
Code:

ip_addr -h 192.168.1.166 -l 192.168.1.254/24

fis init

load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-root.jffs2-64k

fis create -f 0xA8030000 -l 0x006F0000 rootfs

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

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

reset


NEW, for Meraki (GZ KERNEL)
Code:

fis init
load -r -v -b 0x80041000 openwrt-atheros-2.6-root.jffs2-64k
fis create -b 0x80041000 -f 0xA8030000 -l 0x006A0000 -e 0x00000000 rootfs
load -r -v -b 0x80041000 openwrt-atheros-2.6-vmlinux.gz
fis create -r 0x80041000 -l 0x00100000 -e 0x80041000 linux
reset

BEFORE YOU RESET YOUR MERAKI, MAKE SURE THE BOOT SCRIPT IS SET TO:
Code:
fis load -d linux
exec

By running fconfig


(FOR < 2.6.21.1 kernel-based firmwares or any DD-WRT version)
DD-WRT

Code:

ip_addr -h 192.168.1.166 -l 192.168.1.254/24

fis init

load -r -v -b %{FREEMEMLO} root.fs

fis create -f 0xA8030000 -l 0x002C0000 rootfs

load -r -v -b %{FREEMEMLO} vmlinux.bin.l7

fis create -r 0x80041000 -e 0x80041000 -l 0x000E0000 vmlinux.bin.l7

fis create -f 0xA83D0000 -l 0x00010000 -n nvram

reset


OPENWRT
Code:

ip_addr -h 192.168.1.166 -l 192.168.1.254/24

fis init

load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-root.jffs2-64k

fis create -f 0xA8030000 -l 0x00700000 rootfs

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

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

reset


Note that if you are loading openwrt the first 'fis create' command can take up to 45 minutes, be patient, IT WON'T CRASH ON YOU.

Note that these instructions work with both fon2100 and fon2200 models, so feel at ease that there is finally a unified flashing guide. You'll need to have followed one of the fon hacking guides to have either enabled SSH or used the serial port to install Redboot (kolofonium hack still works, but you need to permanently enable SSH once kolofonium temporarily grants it to you: http://stefans.datenbruch.de/lafonera/ ) before you can follow the above instructions, because RedBoot is an essential component. If you have upgraded to 32MB of RAM then search for the special Redboot image in the DD-WRT forum (32MB mod thread). It will not affect the above instructions.

To flash my firmware onto a Meraki Mini, you'll need the special kernel in the meraki_mini folder AND the openwrt-atheros-2.6-root.jffs2-64k root filesystem from the fonera folder.

PLEASE USE THE NEWER FIRMWARE FROM THE SITE. THE FIRMWARE ON THIS THREAD WILL BE UDPATED WHEN Rev4.5 IS FINALLY READY.

_________________
BNP.org.uk


Last edited by meltyblood on Thu Aug 30, 2007 21:43; edited 12 times in total
Sponsor
cybero2912
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1187
Location: Berlin

PostPosted: Mon Jun 11, 2007 9:29    Post subject: Reply with quote
but is the new kernel already implemented in DD-WRT?
I don't think so and there is no announcement from brainslayer.
meltyblood
DD-WRT User


Joined: 06 May 2007
Posts: 114

PostPosted: Mon Jun 11, 2007 10:39    Post subject: Reply with quote
------NEW Legend PRE-4.5 FIRMWARE-----
READ THIS FIRST : http://fon.testbox.dk/Legend/pre4.5/fonera/LISTOFSCRIPTSANDCHANGES.txt
2.6.22.1
http://fon.testbox.dk/Legend/pre4.5/fonera/openwrt-atheros-2.6-vmlinux.lzma
http://fon.testbox.dk/Legend/pre4.5/fonera/openwrt-atheros-2.6-root.jffs2-64k
http://fon.testbox.dk/packages/mmc/phrozendriver/2.6.22.1/26221_4pinfon2100_7143.ipk
http://fon.testbox.dk/packages/mmc/phrozendriver/2.6.22.1/26221_3pinfon2100_14_143.ipk
2.6.21.5-USE THIS IF YOU HAVE A FON2200 WITH AN MMC Card...GPIO-RELATED FIX
http://fon.testbox.dk/Legend/pre4.5/fonera/FON2200MMCCAPABLE/openwrt-atheros-2.6-vmlinux.lzma
http://fon.testbox.dk/Legend/pre4.5/fonera/FON2200MMCCAPABLE/openwrt-atheros-2.6-root.jffs2-64k
http://fon.testbox.dk/packages/mmc/phrozendriver/2.6.21.5/26215-fon2200Driver14_762.ipk
USE THIS firmware with the gz kernel and the listed reboot instructions if you have a Meraki Mini. The Meraki Mini cannot be flashed with gz kernels and the GUI flasher because of a kernel size limitation. If you have a Meraki Mini, you will need to use Redboot.
Meraki (2.6.22.1):
http://fon.testbox.dk/Legend/pre4.5/meraki_mini/openwrt-atheros-2.6-vmlinux.gz
http://fon.testbox.dk/Legend/pre4.5/meraki_mini/openwrt-atheros-2.6-root.jffs2-64k

NOW, the new 2.6.22.1 kernel is in DD-WRT. Almost ALL of my Openwrt packages should be compatible, although the closed filesystem of DD-WRT might still be a hinderance (packages like madwifi shouldn't work since another madwifi is already in dd-wrt, there might be a way around this).
TO GET MY NEW LIBRARY OF PACKAGES, visit:
http://fon.testbox.dk/packages/

You can use wget to download them directly to your router.]

Patched Madwifi-ng, MDK3, CIFS, Aircrack-ng, aircrack-ptw, kmod-gpio, the X-wrt webinterface, bwm, and several other neat features are built-in. NOW ONLY THE MMC DRIVER NEEDS TO BE INSTALLED TO USE MMC, and a kismet config is prewritten in /etc/kismet. Many new scripts and functions have been added.[/b]
_________________________________________________________________
The Freifunk flasher looks pretty advanced (there is a new version by the way, it's on my site). Note that in order for it to work, you need to have the ethernet cable connected between your fon and the ethernet card and you must press "Go!" button (in the Windows GUI version) BEFORE you plug the power cable into your fon. You still need Redboot on it, remember that. It works with the latest DD-WRT (nothing's changed), and should work with the new OpenWRT. This is a great way to painlessly switch between the two. Just plug it in and load. If you don't like the firmware, load again. The Redboot install is only necessary once unless you upgrade your ram to 32MB. Remember that the Freifunk meshing firmware is built into the flasher, so if you just press "Go!" without selecting any images you will flash that.

If it warns you about hostapd, ignore it, the webif still doesn't detect hostapd-mini

For ipkg storage on mount point 1 with mounted CIFs, 'ipkg -d cifs install [package]'. For mount points 2-9, replace cifs with 'cifs[number]'. You must run mountcifs to create the mount script first. Run it again to select the correct mount script.

_________________
BNP.org.uk


Last edited by meltyblood on Sun Aug 12, 2007 6:19; edited 16 times in total
rt_rex
DD-WRT User


Joined: 07 Jun 2006
Posts: 106

PostPosted: Tue Jun 12, 2007 22:27    Post subject: Reply with quote
Is this using the webif X-WRT?
Is it finished ?
I know it was being done but not complete

_________________
wireless link @ 76 km
https://www.youtube.com/watch?v=rrXanzlro78
meltyblood
DD-WRT User


Joined: 06 May 2007
Posts: 114

PostPosted: Tue Jun 12, 2007 22:56    Post subject: Reply with quote
Yes that's right. The webif version is 3.3.x. It hasn't changed it in a little while. This is the latest stuff from svn. I have uploaded a third revision of the firmware with custom mount scripts and airoscript (as well as custom banners, there is a DD-WRT banner in there, see /etc/banner/helpguide.txt). To see all banners, use this command: "cat /etc/banners/*", use "cat /etc/banners/* | more" if you want to scroll through them. I promised predone X-wrt configurations, but that's practically spoon-feeding. If you can't manage a GUI, well, I'm not sure where to begin. I will keep the openwrt stuff to a minimum from now on unless someone puts in a request. I don't want to run the tangent beyond reason. If anyone can recommend a stable and relatively high-bandwidth place to post files, please do. I'm very tired of hosting sites (tripod is the worst) stripping-off what you put on.
_________________
BNP.org.uk


Last edited by meltyblood on Sun Jun 24, 2007 16:25; edited 6 times in total
intrax
DD-WRT User


Joined: 08 Dec 2006
Posts: 234

PostPosted: Tue Jun 12, 2007 23:11    Post subject: Reply with quote
Interesting, but isn't this the dd-wrt forum and aren't we still on the 2.6.20.11 kernel ? So what the heck ? And why are you pushing the open-wrt fw here ? In my opinion this should be on the open-wrt forum not here...
meltyblood
DD-WRT User


Joined: 06 May 2007
Posts: 114

PostPosted: Tue Jun 12, 2007 23:40    Post subject: Reply with quote
I knew that was coming. DD-WRT and OpenWRT are highly related. This thread presents a fluid means of switching between 3 different firmwares (not including firmwares not mentioned here), so that one can use Atheros hardware in new ways. As OpenWrt and DD-WRT get more and more similar, the DD-WRT platform picks up more applications.
_________________
BNP.org.uk
shinobee
DD-WRT Novice


Joined: 12 Jun 2007
Posts: 1

PostPosted: Wed Jun 13, 2007 9:43    Post subject: Reply with quote
keep posting openWRT related things meltyblood, it is VERY helpful
I'll try your new openWRT tonight and report here
ccbiker
DD-WRT Novice


Joined: 30 May 2007
Posts: 20

PostPosted: Thu Jun 14, 2007 4:38    Post subject: Reply with quote
fyi, meltyblood, you're my OpenWRT hero!

thanks for all the help in your many posts regarding aircrack and injection drivers and such; keep up the good work.
meltyblood
DD-WRT User


Joined: 06 May 2007
Posts: 114

PostPosted: Thu Jun 14, 2007 5:19    Post subject: Reply with quote
Comment acknowledged. I have several tablets and a subnotebook I used to use for "mobile security analysis". They have since been replaced by my handful of foneras. There are many neat packages immediately available that can make this a bit more interesting (and I can port others), but everything starts with storage. Cifs (networked storage) is an option, but SD/MMC cards mean operation without a computer attached which is a nice extra. I have the SD and Cifs drivers compiled (there are a set of packages to install) which you will need. Remember that I can store up to three files per post.

On the DD-WRT side of things, I've downloaded the sources from SVN. That's around six gigabytes of unexpected files, quite a lot of resources to sort through. Most of that is for platforms I have no experience with. It must have been a full hour and a half before the x-scale sources finished. I can't promise anything for DD-WRT except hardware tips and software, it might take me a while to grasp enough to build drivers with it.

I am currently rewiring the SD-card on my fon2200. It wasn't difficult to get it functioning with the fon2100, but the 2200 is very stubborn. I have four GPIOs, and I've built the driver to use the right ones, but the card doesn't mount. I'm trying different pin arrangements with the driver, but nothing's really happening yet. It seems that at least one of the GPIOs might be a bit different in profile. Perhaps it can't switch fast enough. I wonder if the reset button gpio (6) has a hardware debounce in (terms of capacitors and resistors). It isn't likely, but this is odd behavior.

SD and CIFS packages below. These are in ZiP files!

When attaching a SD card for the first time:
Watch the router leds. Dimming or unexpected inactivity can spell trouble
Hold the free end of the card between two fingers. If it gets warm or hot, pull out the card immediately (and check you wiring afterward).

_________________
BNP.org.uk


Last edited by meltyblood on Mon Jun 18, 2007 20:11; edited 2 times in total
meltyblood
DD-WRT User


Joined: 06 May 2007
Posts: 114

PostPosted: Thu Jun 14, 2007 8:10    Post subject: Reply with quote
For the fon2200, use this: (-)762. This means ground/(-)=Chip Select/SD pin 1 (BEWARE: the first pin that is lower than the others near the notch is pin 9, which is not used), gpio7 is SD pin 2, gpio6 is SD pin 5, and gpio2 is SD pin 7. Pin 8, which is placed very close to 7, is not used. This is NOT the only arrangement that will work. GPIO 1 is Chip select, which activates the card when applied to GND, and since the fonera has only three easily accessible GPIOs, we will want to leave GPIO 5 for more important things. The attached driver uses the configuration 14-7-6-2. Ignore gpio14. It is not on the board and you do not need it. Attach gpio7 (power LED resistor), gpio2 (wifi LED resistor), and gpio6 (reset button--end nearer to the LEDs) only in addition to power and ground.

ASCII depiction in this forum is limited due to text shifting.
_____________
/ 1 2 3 4 5 6 78
/ 9
|
|
|
|
|
|_____________

If you want to use a GPIO arrangement where GPIO6 is not on CS (sd pin 1), remove capacitor 66 (c66) from the fon2200 board (near the reset button). This is the troublemaking capacitor on GPIO6. If you lose R1 in the process, don't be frustrated, you don't need it.
Photographs:
2200 GPIO PINOUTS:
http://i204.photobucket.com/albums/bb94/DDWRTmeltyblood/IM000322.jpg
http://i204.photobucket.com/albums/bb94/DDWRTmeltyblood/IM000325.jpg
AA power supplies:
http://i204.photobucket.com/albums/bb94/DDWRTmeltyblood/IM000329.jpg
http://i204.photobucket.com/albums/bb94/DDWRTmeltyblood/IM000330.jpg

For the Fon2100 the pinout is explained here:
http://www.larsen-b.com/Article/262.html
If that site goes down, I'll write my own version.

_________________
BNP.org.uk


Last edited by meltyblood on Mon Jun 18, 2007 20:13; edited 5 times in total
nils27
DD-WRT User


Joined: 12 Feb 2007
Posts: 191
Location: Aachen (NRW)

PostPosted: Thu Jun 14, 2007 13:37    Post subject: Reply with quote
Hello meltyblood,
I`m sort of confused right now Rolling Eyes
Until now I was a DD-WRT user with the Fonera from the very beginning.
Now as certain limitations (no CIFS, SD support, some nice tools are missing, etc.) I started looking for alternatives and I came along your postings.
But what exactly do I need to have e.g. CIFS on DD-WRT, or do I need OPENWRT for this and which of your packages can be used for what firmware.

Don't get me wrong I appreciate your work! Could you just make some sort of a list for dummies what is required for which solution in some list, like

DD-WRT + CIFS + Tools == this package
OPENWRT with kernely xyz + CIFS + SD .... == that package

Thanks a lot and keep on the great work.
Nils
meltyblood
DD-WRT User


Joined: 06 May 2007
Posts: 114

PostPosted: Thu Jun 14, 2007 16:16    Post subject: Reply with quote
CIFs and SD support require special drivers. Drivers are always kernel-specific. I have to use the 2.6.21.1 kernel (subversion gives me the latest one), I don't have anything else to compile with right now. Is anyone aware of an OpenWRT kernel matching 2.6.20.11?

Eventuallly, DD-WRT should support CIFS and MMC/SD cards. The latest version is proof of that, as it lists MMC, CIFs, and JFFS (JFFS is already present) to show mount status. But it could be several months before CIFS and MMC come to task. I don't advocate it, but you can flash now to a version of OpenWrt to try out certain functions you want in ~30 minutes of your spare time (one-click flashing), and flash back when DD-WRT hits the next milestone. Foneras are somewhere between free and $20 (use invites). I would recommend flashing some foneras with DD-WRT and some with other firmwares of your choice. when you go to make a paypal payment (I also don't advocate paying FON), try to add a request for a fon2200 instead of the 2100. I understand that the paypal page that comes up doesn't have space for a message, but if you send the payment slightly differently you might get an opportunity. The fon2200 practically runs cold, meaning additional power savings and longer system life.

_________________
BNP.org.uk
whitewiz
DD-WRT Novice


Joined: 02 Jun 2007
Posts: 14

PostPosted: Fri Jun 15, 2007 10:56    Post subject: Reply with quote
@meltyblood
Im currently trying your OpenWrt(posted above) and i tried installing the mmc packages using the webif. Is this the right way to do it?
Because the sdcard wount mount any way. Have doublechecked the soldering and even removed the caps as it was written on the page you linked to.
nils27
DD-WRT User


Joined: 12 Feb 2007
Posts: 191
Location: Aachen (NRW)

PostPosted: Fri Jun 15, 2007 11:58    Post subject: Reply with quote
....and I did my first tries with your openWRT packages. Got it installed with the auto patch program from Freifunk. That worked like a charm Wink
The aircrack suite is at least able to start. Haven't yet tried packet injection though.

My question:
After installing your CIFS packaged I wasn't able to mount stuff. Error message:
Code:
mount error: cifs filesystem not supported by the system
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

Any ideas?

Speaking of the SD card thingy. Has anyone a good and brief installation instruction for the soldering part, the driver part etc. on openWRT?

Thanks guys.
Goto page 1, 2, 3 ... 14, 15, 16  Next Display posts from previous:    Page 1 of 16
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