How to copy new OpenWRT binary build to onion omega2?
-
Hi,
I did a fresh build of OpenWRT from the source, now im trying to flash the binary file to the board.
To do that i first tried copying the binary build using SCP command from the host to the tmp directory on OpenWRT like this
root@omega:/tmp# scp user@192.168.1.2:omega-squashfs-xxx.bin .
scp keeps failing with an error:
Connection to user xxxx exited: no matching also hostkeyDoesnt SCP work on Onion Omega?
Im basically trying to flash a new image to the onion omega2 hardware
-
If
scp
fails, run some simple HTTP server on your computer.
I use Node or Python server included in their standard libraries.
For example, if you havesysupgrade.bin
file underpath/to/your/binary/file/sysupgrade.bin
$ cd path/to/your/binary/file $ python3 -m http.server Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
Let's say your computer's IP address is
192.168.0.33
and it's in under the same router with your Omega2.
On your Omega2 terminal, fetch it like this.# cd /tmp # wget http://192.168.0.33/sysupgrade.bin # sysupgrade ./sysupgrade.bin
-
Another option is to use SFTP.
Usingopkg install
command, you can installopenssh-sftp-server
and connect from your computer to "upload" to Omega2.
Or you can installopenssh-sftp-client
and configure your computer as server, to "download" from computer.
-
scp -oHostKeyAlgorithms=+ssh-rsa omega-squashfs-xxx.bin root@192.168.1.2:/tmp