Router reflashed

I tried to reinstall the firmware but in the recover mode I wasn’t able to connect to “192.168.1.1″. The problem is that in this state you cannot reflash your router. Then I googled and googled and googled. After a while I found three possibilities to solve my problem.

The first one was to clear my NVRAM. Because the author of that code used another distribution I couldn’t execute it ;) Even if it worked for him it wasn’t guaranteed that it would have worked for me too. Furthermore I’m still a newbie in terms of Linux especially OpenWrt. In fact I should have been able to connect to “192.168.1.1″ after cleaning my NVRAM but what if not? Then the router would neither run correctly nor it could be reflashed. To not brick my router I looked for a better solution.

The second solution wasn’t really better. It was about deleting the NVRAM by a “hardware reset” with a special sequence of pushing and releasing the reset button in combination with unplugging and plugging the power supply. Of course Murphy’s law was true once again so it didn’t work :D

So far I didn’t know that I can delete my NVRAM and install a new firmware in only one step. The last solution I found disabused me. The code looks like this:

cd /tmp
wget http://www.example.org/original.trx
mtd -e linux -r write original.trx linux

Congratulations! The new firmware has been installed :-)

Update: If the router is bricked you can try to open it and short some pins in order to reanimate your friend ;)

DeliciousDiggTechnorati FavoritesRedditLinkedInFacebookSpurlTwitterWebnewsYiGGMySpaceYahoo BookmarksFriendFeedGoogle BookmarksLiveJournalShare

Subversion on WL 500W

Maybe you are interested in installing subversion on your router. Well, I’m working on it what takes a bit time at the moment to solve some problems. I’m updating this post lateron.

Update:
First you need a Linux distribution installed on your router. I recommend OpenWrt because there’s a lot of documentation available for many types of routers. After I had flashed my router I wanted to set up subversion as soon as possible but I wasn’t familiar with OpenWrt.
The standard configuration didn’t allow me to install the package subversion-server. Even if I used the repository http://downloads.x-wrt.org/xwrt/kamikaze/7.07/brcm-2.4/packages/.
So I had to do it manually:
ipkg install http://downloads.x-wrt.org/xwrt/kamikaze/7.07/brcm-2.4/packages/subversion-server_1.4.4-1_mipsel.ipk
The subversion package depends on apr, apr-util, libexpat, libiconv, libintl, libpthread, libxml2, neon, subversion-libs. Most of them were installed automatically but libintl and subversion-libs didn’t. Again I had to do it manually as described above.

First it seemed to work but it failed with the message “can't load library 'libsqlite.so.0'“. This means that libsqlite2 has to be installed too. After this last step you can set up subversion :-) .

Now you can create your repository, change into config directory and edit passwd and svnserver to create user accounts. Otherwise you get an authentication error when you try to access your repository.

DeliciousDiggTechnorati FavoritesRedditLinkedInFacebookSpurlTwitterWebnewsYiGGMySpaceYahoo BookmarksFriendFeedGoogle BookmarksLiveJournalShare