OpenWrt Forum Archive

Topic: Help flashing whiterussian from kamikaze via ssh

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hey everyone,

I'm very new to this and decided to play around with my wrtsl54gs since i didn't think i would need it anymore. I used the gui to flash kamikaze 7.09 and left it alone. I've now realized i will need the router so I'm trying to flash whiterussian onto the router and am having trouble.

The router won't access the internet so I set my pc up as a web server and i am trying to using ssh to flash via the command line

wget http://192.168.1.223/openwrt-bcrm-2.4-squashfs.trx
mtd -r write openwrt-bcrm-2.4-squashfs.trx linux

wget always returns connection failure due to timeout, I have no firewall running on the computer and a browser can access the web server no problem. I'm using putty to ssh, apache 2.2 to run the web server and the os is vista. Does anyone know if there are any permissions to change in vista to allow the router to access the pc or if I just doing something incorrectly?

PdDo wrote:

Hey everyone,

I'm very new to this and decided to play around with my wrtsl54gs since i didn't think i would need it anymore. I used the gui to flash kamikaze 7.09 and left it alone. I've now realized i will need the router so I'm trying to flash whiterussian onto the router and am having trouble.

The router won't access the internet so I set my pc up as a web server and i am trying to using ssh to flash via the command line

wget http://192.168.1.223/openwrt-bcrm-2.4-squashfs.trx
mtd -r write openwrt-bcrm-2.4-squashfs.trx linux

wget always returns connection failure due to timeout, I have no firewall running on the computer and a browser can access the web server no problem. I'm using putty to ssh, apache 2.2 to run the web server and the os is vista. Does anyone know if there are any permissions to change in vista to allow the router to access the pc or if I just doing something incorrectly?

Why don't you just use winscp to tranfer the image to the router?
Kind regards,
B

Use WinSCP and transfer the TRX image to the routers RAM disk (/tmp). Then use: mtd -r write openwrt-bcrm-2.4-squashfs.trx linux

Or you can use the BIN image for TFTP flashing.

Thanks for the responses, WinSCP worked great was able to reflash and am up and running.

forum2008 wrote:

Use WinSCP and transfer the TRX image to the routers RAM disk (/tmp). Then use: mtd -r write openwrt-bcrm-2.4-squashfs.trx linux

Or you can use the BIN image for TFTP flashing.

My WRT54GL doesn't seem to have TFTP service running. Which .ipk do I need to isntall to flash .bin files via TFTP?

beone wrote:
PdDo wrote:

Hey everyone,

I'm very new to this and decided to play around with my wrtsl54gs since i didn't think i would need it anymore. I used the gui to flash kamikaze 7.09 and left it alone. I've now realized i will need the router so I'm trying to flash whiterussian onto the router and am having trouble.

The router won't access the internet so I set my pc up as a web server and i am trying to using ssh to flash via the command line

wget http://192.168.1.223/openwrt-bcrm-2.4-squashfs.trx
mtd -r write openwrt-bcrm-2.4-squashfs.trx linux

wget always returns connection failure due to timeout, I have no firewall running on the computer and a browser can access the web server no problem. I'm using putty to ssh, apache 2.2 to run the web server and the os is vista. Does anyone know if there are any permissions to change in vista to allow the router to access the pc or if I just doing something incorrectly?

Why don't you just use winscp to tranfer the image to the router?
Kind regards,
B

Is there a way to convert .bin file to .trx so that I can use WinSCP to transfer the .trx file to /tmp?

Kamikaze54GL wrote:
forum2008 wrote:

Use WinSCP and transfer the TRX image to the routers RAM disk (/tmp). Then use: mtd -r write openwrt-bcrm-2.4-squashfs.trx linux

Or you can use the BIN image for TFTP flashing.

My WRT54GL doesn't seem to have TFTP service running. Which .ipk do I need to isntall to flash .bin files via TFTP?

You've to install the sftp server : ipkg list | grep sftp

Regards.

The discussion might have continued from here.