I have bought this dev-kit which has openwrt 14.07 and i was wondering if there is any chance to upgrade it to the latest version.
I have never worked with openwrt except for doing a few simple things like ssh connection, mjpeg_streamer stuff.
I basically want to use mjpeg_streamer or ffmpeg to stream 2x 1280x720px video streams from 2 usb cameras to one smart device like a tablet or smartphone.
The module in this kit has a MT7628 SOC.
I was able to access the webgui @ 192.168.16.254, login and change the root password.
I have a linux distro mint cinnamon 20.1 running inside a VM.
I created my pub & private keys with:
$ ssh-keygen -t rsa -b 4096
After doing so i added my pub key to the devkit (System->Administration->SSH keys).
So i tried SSHing to connect to the devkit.
Unfortunately i get the following error after running the command:
$ ssh root@192.168.16.254
Error:
Unable to negotiate with 192.168.16.254 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,kexguess2@matt.ucc.asn.au
I googled it and i saw a few links suggesting that there is no common cipher between server & client (if i understand well).
So my question now is whether i can safely upgrade to the latest openwrt. Another thing that worries me if whether i have to upgrade uboot as well (no experience there).
I asked them and they did sent to me a doc regarding upgrade.
Can you pls have a look and tell me if the upgrade instructions make any sense?
$ nmap 192.168.16.254
Starting Nmap 7.80 ( https://nmap.org ) at 2021-06-23 14:34 EEST
Nmap scan report for OpenWrt.lan (192.168.16.254)
Host is up (0.0016s latency).
Not shown: 996 filtered ports
PORT STATE SERVICE
22/tcp open ssh
23/tcp open telnet
53/tcp open domain
80/tcp open http
I tried telnet and i got this:
$ telnet 192.168.16.254
Trying 192.168.16.254...
Connected to 192.168.16.254.
Escape character is '^]'.
Connection closed by foreign host.
I tried again SSHing after deleting pub/private keys from my .ssh dir:
$ ssh root@192.168.16.254
Unable to negotiate with 192.168.16.254 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,kexguess2@matt.ucc.asn.au
Seems like my only chance is using a serial cable to get access to a terminal.
During my first attempt i had to confirm as per the following:
The authenticity of host '192.168.16.254 (192.168.16.254)' can't be established.
RSA key fingerprint is SHA256:PZKsKWyz9Eiofkkq2ymTOVAD+5CnQoGOG5oaVlqRhRY.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.16.254' (RSA) to the list of known hosts.
and i was asked for the root's password since i had deleted my pub/pri keys at that point.
I later on re-created keys with:
$ ssh-keygen -t rsa -b 4096
Added the pub key in the webgui and then retried SSHing which also worked without the server asking me for the root's password as expected.
This off course means that i have to upgrade anyway.
Do you thing that i could safely do this via ssh or should i do the upgrade via serial?
Should i be worried about uboot? Will the upgrade be as simple as uploading a bin file via the webgui?
Should i be looking for anything specific now that i have access via ssh?
It sounds like a painfully slow process. I work as a hw engineer in a company and i was unlucky to buy this crap from a chinese supplier. We are on a deadline here and looking for something that simply works.
Do you know anyone that supplies similar SOC boards that have tiny footprint and reasonable price and off course latest openwrt pre-installed or upgradable to the latest ver?
Depends on how tiny tiny should be
I'd probably go for the Raspberries, OrangePis or NanoPis.
When buying devices with preinstalled openwrt, assume it's going to be old.
The only manufacturer I can think of, that's keeping up with the openwrt releases is GL.iNet.
They run their own branch, but you can reflash (most, if not all) their boxes with vanilla Openwrt.
I did my first tests on a GL-MT300N i had bought a while ago and the ver was the latest!
However flash was 16MB and i could not install some packages i was willing to.
Unfortunately i wrongly assumed that this solution would suffice.
I suppose i could try to uninstall some packages in order to make space.
But the thing is the board i bought (the 32/128MB) has the perfect dimensions.
We are R&Ding here and the price of the GL-MT300N and its' dimensions, ports etc are a problem.
So i was hopping to find the board in the dimensions i want for the specific project in the expected price.
I know it is too much to ask!
Well i am considering a few options even dealing myself with uboot/customized tweeking of the old version already installed...
Not sure what the perfect solution is right now...
There will be no way around porting (current) OpenWrt to this device (XOR working within their SDK, but that's out of scope for this venue), everything else would just brick the device.
My task is to set-up mjpeg-streamer or ffmpeg.
I have done it for one camera with mjpeg-streamer with a reso of FHD and the bandwidth consumption was around 40MBits/s, 1280x720px consumed around 30MBits/s both at 30fps. I am talking about streaming the video instead of encoding it! The CPU on both cases was around 15-25% so i am guessing that 2 streams is doable.
I have got 2 MT7628 boards and was thinking to try something like that but before doing that i will try to fix the broken repos and see if there are any possibilities to download packages and do what i want with the current openwrt.
Is there any straightforward way to fix the broken repos?