RB1xx goes OpenWRT

Credits go to: Andrea Conti, David Goodenough and the friendly and helpful yaffs2 development community.

Build your own firmware

Checkout the code of Backfire ( svn://svn.openwrt.org/openwrt/branches/backfire/ ), then build it selecting the RB1xx model and the ADM5210 since its our proc. The toolchain is embedded in the svn, don't worry about that.

Search the image format as you'll need a netboot image. You will need to build the kernel and a rootfs in tgz format.

Prepare your router

Erase everything on your router to get some space. You will need a serial cable to do that. During boot, you have 2s to press a key to enter the bootloader menu of your RouterBoard. Press e to format your nand.

Then press o and then e to boot from BootP protocol instead of the nand.

Boot your router on your new kernel

To do that, you'll need a tftp server and a bootp server. I recommend you to use the ptftpd suite made by Maxime Petazzoni.

It will be really easy to use, plug an ethernet cable between your router and machine.

Start bootpd :

bootpd eth0 -g 192.168.0.1 netboot-kernel

Then in another terminal, start tftpd :

ptftpd /path/to/kernel

Your router will boot from your new kernel, yeah !

Attention : The ethernet cable _MUST_ be in the port NEAR the power plug. (on your router obviously)

Install your new kernel

For this part, you'll need a webserver, if you don't have one already, use woof, it's a pretty script that will allow you to create a webserver to transfer a file one or multiple time.

Your router must be able to ping your machine !

mount /dev/mtdblock2 /mnt
cd /mnt
wget http://your.machine.ip:8080/
mv index.html kernel

And now for rootfs

cd /
umount /mnt
mount /dev/mtdblock3 /mnt
cd /mnt
wget http://your.machine.ip:8080/
mv index.html rootfs.tgz
gzip -d rootfs.tgz
tar xvf rootfs.tar
rm rootfs.tar
cd /
umount /mnt
sync
reboot

Then press a key to enter the bootloader menu and press o and then o to select nand as your boot device.

Then you're set ! OpenWRT Backfire is live on your device, enjoy !

tutorial/divers/tutorial_flash_ta_box_rb1xx_routerboard.txt · Dernière modification: 2011/07/15 20:45 par kinji
Piste: playground tutorial_debian_on_5big_network2 tutorial_flash_ta_box_rb1xx_routerboard
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0