La Fonera's IPKG Bug
Posted by coldtobi | 6 Jul, 2007, 23:12An Article in the category: Do Not Brick Your Fonera Router. If you break it, you'll have to keep the pieces.
The ipkg binary in the fonera is broken. It is not really the ipkg binary, which is broken. So it can happen, that -- especially a ipkg remove -- can delete some essential directories. /lib/ for example, effectivly break the router.
But there is an script available, which replaces ipkg to get it safe. Just execute the following (on Fonera)
wget http://blog.coldtobi.de/gallery/1/ipkg.txt -O /usr/bin/ipgk; chmod 0750 /usr/bin/ipkg
[Update:] Safer is:
wget http://blog.coldtobi.de/gallery/1/ipkg.txt -O /tmp/ipgk && md5sum /tmp/ipkg
Only proceed, if the outputted md5 is "3a3db0906383bd16bbcebd7dfd8a663a /tmp/ipgk". If not, at least check the downloaded file if it looks like a shell script.
After you verified it, you can
mv /tmp/ipkg /usr/bin/ipgk
But stay away from ipgk update! As the kernel image is not writeable, and "newer" kernel modules would be installed, these won't match leading to unbootable box.
La Fonera | Comments (3) | Trackbacks (0)
Related Articles:
- Manually upgrading horde3 on debian
- [Updated] La Fonera: A bunch of Autoupdates (to 0.7.2.2)
- What NAS?
- Installing Debian on the Thecus N2100 -- PART 4 -- Installing Debian (2)
- Installing Debian on the Thecus N2100 -- PART 3 -- Installing Debian
Lth : Don't do this!
11/04/2008, at 13:08 [ Reply ]
I stucked my fonera!
This is output from console:
root@OpenWrt:~# wget http://blog.coldtobi.de/gallery/1/ipkg.txt -o /usr/bin/ipgk; chmod 0750 /usr/bin/ipkg
wget: illegal option -- o
BusyBox v1.1.3 (2006.09.11-19:54+0000) multi-call binary
Usage: wget [-c|--continue] [-q|--quiet] [-O|--output-document file]
[--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url
wget retrieves files via HTTP or FTP
Options:
-c continue retrieval of aborted transfers
-q quiet mode - do not print
-P Set directory prefix to DIR
-O save to filename ('-' for stdout)
-Y use proxy ('on' or 'off')
konrad@amidala:~$
(logged out!)
My Fonera is stucked, and reset don't work:(
What was happened?
coldtobi : Re: Don't do this
11/04/2008, at 13:41 [ Reply ]
The small "-o" was wrong. Needed be "-O"
However this won't break your Fonera: The command simply fails -- doing nothing -- not touching any file.
However, even if it'd screwed ipkg: It is not required for a successful boot.
I suppose you should give it a second try to let it boot or/and retry factory reset (follow the instructions on this blog.)
Lth : Re: Don't do this
23/04/2008, at 22:49 [ Reply ]
OK. Now I know this.. but my fonera hangs after this operation, and newer booted again :/
I'm going to flash it by RS232, but I'm waiting for all elements to build cable to connection :P
Internet LED is flashing, but WLAN don't.