Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/class_bootstrap.php(430) : eval()'d code on line 123
HOW TO: Get basic router functionality from the openWRT firmware
Results 1 to 15 of 18

Thread: HOW TO: Get basic router functionality from the openWRT firmware

Threaded View

  1. #1

    HOW TO: Get basic router functionality from the openWRT firmware

    Ok, thought I'd start off the openWRT HOWTOS :P

    Part 1. Flashing the firmware
    1. Get the openWRT firmware (with modified mount_root) from here
    2. Get the root2hdd.sh script from here
    3. Unrar that file to give you the .trx image
    4. Put your router into flash mode (unplug power, hold down EZ-Setup and plug power back in. Hold down EZ-Setup until ready light stops flashing)
    5. Check that your computer can ping the router at
    6. Upload the trx image ('tftp -i imagename.trx' in windows or
      tftp>put imagename.trx
      for linux
    7. Wait 30 seconds, then unplug router and plug back in again
    8. once the ready light has gone out, telnet to
    9. Set a password for root
      passwd root
      (from now on, you will have to login via ssh instead of telnet)
    10. do 'fdisk -l' to list the detected hard drives - note the name of the IDE drive device
    11. do 'fdisk /dev/harddrivename'
    12. issue the following commands to create a new ext3 partition WARNING - this will erase anything on your drive!
    13. n, enter, 1, enter, enter, t, enter, 1, enter, 83, enter
    14. pressing p and enter should show that you now have one partition on the disc of type linux
    15. press w and enter to write the disk changes, then do 'fdisk -l' again to get the partition name
    16. copy root2hdd.sh to /tmp using scp (puttyscp.exe for windows I think)
    17. modify the boot_partition variable to your hard drive device (with the part1 on the end)
    18. chmod +x /tmp/root2hdd.sh
    19. /tmp/root2hdd.sh
    20. as long as this completes successfully, you should now be able to reboot your router

    Part 2. Configuring the router
    Some extra packages need to be installed to enable full functionality of the router. You can compile them yourself by downloading the openWRT kamikaze source and putting M next to programs you want in the configuration(important ones listed below) - you can now find the ipkgs in a rar file here - kindly hosted by markc.
    1. Install the important ipkgs - that is, bridge, dnsmasq, iptables, the updated kernel with wifi drivers, kernel module brcm-wl.
    2. edit dnsmasq.cont as required (you need to set the fields with @@ parameters in them)
    3. start and stop the firewall to create the /etc/config/firewall file (/etc/init.d/firewall start/stop)
    4. follow the examples in that firewall file to setup port forwarding as required
    5. symbolically link /etc/init.d/dnsmasq to /etc/rc.d/S41dnsmasq - so that it runs on startup
    6. do the same with /etc/init.d/firewall (choose a different number from 41 for conventions sake )
    7. NOTE: the default layout of firewall will now prevent you connecting to ssh from the WAN side, uncomment the 2 rules in /etc/firewall.user to allow login from WAN-side
    8. reboot the router to get the new kernel running
    9. login to the router again and run /sbin/wifi detect > /etc/config/wireless
    10. edit this wireless file as you see fit to match your requirements (change ssid etc) more info on this here
    11. This should give you the basic router setup requirements!
    Last edited by d3viant; 29-01-2007 at 19:15.

Similar Threads

  1. Firmware upgrading HOWTO
    By Styno in forum WL-500g/WL-500gx Tutorials
    Replies: 6
    Last Post: 30-07-2008, 21:00
  2. Replies: 0
    Last Post: 24-01-2007, 03:54
  3. How-to: updating the firmware (need comments)
    By GerardNL in forum WL-700g Tutorials
    Replies: 13
    Last Post: 25-09-2006, 07:25
  4. Completely new WL700gE router crashed after firmware update - plz help!
    By ClaudeX in forum WL-700g Firmware Discussion
    Replies: 4
    Last Post: 20-07-2006, 00:03
  5. WL700GE openwrt or Oleg firmware
    By lewislin in forum WL-700g Q&A
    Replies: 7
    Last Post: 30-06-2006, 16:50

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts