Newb - Installing OpenWRT on AX3000T firmware version 1.0.49

Hi Everyone, I'm following the instructions on page https://openwrt.org/inbox/toh/xiaomi/ax3000t and coming unstuck at trying to run the script to get ssh onto the router. I'm getting a load of errors on the console when I run the script using the sub system for Linux on Windows. I suspect I need to replace some parameters and maybe remove some lines, as there appears to be text in the script that doesnt look like code. Can anyone help?

Tried the banana trick to fix the error ?

Tragically, I'm not furnished with the knowledge of The Banana, can you impart the details Sir?

xrLu3If

should do the trick, but we can't be 100% sure until you've actually posted the error(s) you're getting.

For reference:

I pasted the stok in.. the script seem to be running now, but doesnt like it, though its the correct token.Do I need to remove the braces?

Usage: ./ssh.sh [misystem | xqsystem] [96f7d2e9009c06a70deaf347b560c953]
e.g. ./ssh.sh misystem e6ea114ba2cddb0c70fbbc417bb2706c
Copy the stok-string from a browser's URL-line, while logged to the router

without braces.. Any idea where I paste the stock value?

dodds@Dodds:~$ ./ssh.sh
Usage: ./ssh.sh [misystem | xqsystem] 96f7d2e9009c06a70deaf347b560c953
e.g. ./ssh.sh misystem e6ea114ba2cddb0c70fbbc417bb2706c
Copy the stok-string from a browser's URL-line, while logged to the router

script looks like this

#!/bin/sh

if [ $# -ne 2 ]; then
cat <<EOF
Usage: $0 [misystem | xqsystem] [96f7d2e9009c06a70deaf347b560c953]
e.g. $0 misystem e6ea114ba2cddb0c70fbbc417bb2706c

... won't actually do anything without the params it wants.

so far, no errors, but user errors.

What are the params it wants, how do I do that? :slight_smile:

it's on the page you linked to in your 1st post.
RTFM

It is not on the page... there is no mention of params, where to add the params...or what the params should be

really ? the 2nd one you even posted yourself.

Sorry, I'm not sure what that means.

As indicated, I'm a self confessed "newb". If you want to help, that would be great, if you just want to point out I don't know what I'm doing -- why bother, I have already admitted that. lol..why waste your time? :smiley:

So, I have added params in the only way I know how, and now have

`dodds@Dodds:~$ ./ssh.sh xqsystem 96f7d2e9009c06a70deaf347b560c953

301 Moved Permanently

301 Moved Permanently


nginx 301 Moved Permanently

301 Moved Permanently


nginx 301 Moved Permanently

301 Moved Permanently


nginx 301 Moved Permanently

301 Moved Permanently


nginx 301 Moved Permanently

301 Moved Permanently


nginx `

looks correct to me, assuming the stok matches.

script assumes your router's IP's 192.168.31.1, is it ?

Yeah, i'm logged into it on that IP

dodds@Dodds:~$ ping 192.168.31.1
PING 192.168.31.1 (192.168.31.1) 56(84) bytes of data.
64 bytes from 192.168.31.1: icmp_seq=1 ttl=63 time=1.32 ms
64 bytes from 192.168.31.1: icmp_seq=2 ttl=63 time=1.40 ms
64 bytes from 192.168.31.1: icmp_seq=3 ttl=63 time=1.71 ms

Im on MiWiFi Stable version 1.0.49 now... which according to the page works.

I'm also using the Windows 10, sub-system for Linux, but I have the browser with the session to the router open in the Linux vm and the same stok in the param

that could be a problem, but I've never tried it myself ...

2 Likes

Well I can try installing proper linux and see..

1 Like