All pastes #397799 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-16 20:00 UTC
rendered paste body
 Your LaFonera should not be able to completely boot, because the FIS directory will be erased. However, you should be able to connect to the Redboot prompt. To connect to Redboot you need to:

    * a) Configure your PC so you have an address like 192.168.1.166.
    * b) Connect your PC and the LaFonera through a crossover ethernet cable or a switch and 2 normal cables (note: Many NICs can connect to the LaFonera directly with a normal cable, the LaFonera may have an autosensing auto-sensing port making a crossover cable unnecessary).
    * c) Disconnect and reconnect the power to your LaFonera. In the first 10 secs you can access to RedBoot via a plain Telnet connection on port 9000.
          o Open a Command Prompt or terminal window and type in the following: 

telnet 192.168.1.254 9000

    Note the 9000 after the IP. This specifies port 9000, which is the port Redboot is listening on. 
    If the RedBoot> prompt is not immediately visible, try pressing enter once you've connected. 
    [You can use a ip/port scan program like Angry IP Scanner (http://www.angryziber.com/ipscan/), and as soon as it can ping to your LaFonera you can telnet to it for 10 seconds and you can also check if port 9000 is availaible] 
    [Sometimes you may have to use another telnet client such as Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/). Windows' built-in telnet may fail to show the prompt after rebooting the LaFonera] 

    If everything goes well you should have a "RedBoot>" prompt in telnet. 



7. Copy openwrt-atheros-2.6-root.jffs2-64k and openwrt-atheros-2.6-vmlinux.lzma to your tftp server directory.

    No matter what you use for a TFTP server, RedBoot will try to fetch the files from the root directory, e.g., /root.fs. Make sure your TFTP server is configured to do this as some are not by default. 

8. Configure RedBoot for local IP and tftp server enter in telnet.

ip_address -l [local ip address/24] -h [remote server address]

    Replace "[local ip address/24]" with "192.168.1.254/24" and "[remote server address]" with whatever you entered as the IP address of your TFTP server, 192.168.1.166 in this case. If the local IP address changes from 192.168.1.254 your telnet session will die and you will need to reconnect to the newly entered IP address. 

next enter these commands....it will take alot longer to flash to openwrt than it did dd-wrt because of the jffs...at least 30 mins on the next commands

RedBoot> fis init
RedBoot> load -r -v -b 0x80040450 openwrt-atheros-2.6-root.jffs2-64k
RedBoot> fis create -b 0x80040450 -f 0xA8030000 -l 0x00700000 -e 0x00000000 rootfs
RedBoot> load -r -v -b %{FREEMEMLO} openwrt-atheros-2.6-vmlinux.lzma
RedBoot> fis create -r 0x80041000 -e 0x80041000 vmlinux.bin.l7

after that...enter these commands

RedBoot> fis load -l vmlinux.bin.l7
Image loaded from 0x80041000-0x8028e086
RedBoot> exec

now reboot your new openwrt router...