How to copy new OpenWRT binary build to onion omega2?
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 firstname.lastname@example.org:omega-squashfs-xxx.bin .
scp keeps failing with an error:
Connection to user xxxx exited: no matching also hostkey
Doesnt SCP work on Onion Omega?
Im basically trying to flash a new image to the onion omega2 hardware
DumTux last edited by DumTux
scpfails, run some simple HTTP server on your computer.
I use Node or Python server included in their standard libraries.
For example, if you have
$ 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.33and 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
DumTux last edited by
Another option is to use SFTP.
opkg installcommand, you can install
openssh-sftp-serverand connect from your computer to "upload" to Omega2.
Or you can install
openssh-sftp-clientand configure your computer as server, to "download" from computer.