Need help installing OpenWrt to MR90X

Here are the steps I have followed alongwith the mentioned errors in bold italics:

  1. Connected lan cable from Lan 1 port of the router to PC

  2. Logged in as root via SSH (router IP, port 20001)

  3. Opened the 65-iptv file for editing -
    Added a newline after #!/bin/sh:
    telnetd -l /bin/login.sh
    Got an error stating operation not successful, no permission, however when I closed and reopened the file it shows edited.

  4. Toggled ITPV.VLAN Enable

              Mode:Bridge
              LAN1:Internet
              LAN2:IPTV
             1Gbps LAN:Internet
    
  5. Tried checking telnet, but not sure whether I have actually logged in to router IP port 23 because on the post it was mentioned that no username and password are required. But on opening the telnet it asked for the router password.

Got the below response

/dev$ netstat -ltunp | grep 23
netstat: can't scan /proc - are you root?
tcp 0 0 :::23 :::*

  1. Uploaded kernel and bysybox-arm64 file to the /tmp folder

  2. Unable to delete the old kernel
    ubirmvol /dev/ubi0 -N kernel

image

Can someone please help. I am new to all this. Trying to install Open Wrt only to force 5GHz band to use 160MHz channel width, as on the stock firmware it keeps deciding the width (20/40/80/160MHz) as per the range.

Welcome to the community!

Just FYI, you can set the bandwidth; but the client will decide if it will TX at a given bandwidth, usually based on congestion and other factors.

Please provide the the output of:

ubinfo -a

Yes, but I want to avoid that and I want only the 160MHz channel width to be used always with 5GHz band

admin@Akronite:/root$ ubinfo -a
UBI version: 1
Count of UBI devices: 3
UBI control device major/minor: 10:62
Present UBI devices: ubi0, ubi1, ubi2

ubi0
Volumes count: 3
Logical eraseblock size: 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks: 400 (50790400 bytes, 48.4 MiB)
Amount of available logical eraseblocks: 176 (22347776 bytes, 21.3 MiB)
Maximum count of volumes 128
Count of bad physical eraseblocks: 0
Count of reserved physical eraseblocks: 20
Current maximum erase counter value: 3
Minimum input/output unit size: 2048 bytes
Character device major/minor: 250:0
Present volumes: 0, 1, 2

Volume ID: 0 (on ubi0)
Type: static
Alignment: 1
Size: 6 LEBs (761856 bytes, 744.0 KiB)
Data bytes: 747152 bytes (729.6 KiB)
State: OK
Name: uboot
Character device major/minor: 250:1

Volume ID: 1 (on ubi0)
Type: static
Alignment: 1
Size: 26 LEBs (3301376 bytes, 3.1 MiB)
Data bytes: 3219820 bytes (3.0 MiB)
State: OK
Name: kernel
Character device major/minor: 250:2

Volume ID: 2 (on ubi0)
Type: static
Alignment: 1
Size: 168 LEBs (21331968 bytes, 20.3 MiB)
Data bytes: 21266432 bytes (20.2 MiB)
State: OK
Name: rootfs
Character device major/minor: 250:3

===================================

ubi1
Volumes count: 1
Logical eraseblock size: 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks: 32 (4063232 bytes, 3.8 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes 128
Count of bad physical eraseblocks: 0
Count of reserved physical eraseblocks: 10
Current maximum erase counter value: 6
Minimum input/output unit size: 2048 bytes
Character device major/minor: 249:0
Present volumes: 0

Volume ID: 0 (on ubi1)
Type: dynamic
Alignment: 1
Size: 18 LEBs (2285568 bytes, 2.1 MiB)
State: OK
Name: tp_data
Character device major/minor: 249:1

===================================

ubi2
Volumes count: 2
Logical eraseblock size: 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks: 64 (8126464 bytes, 7.7 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes 128
Count of bad physical eraseblocks: 0
Count of reserved physical eraseblocks: 20
Current maximum erase counter value: 10
Minimum input/output unit size: 2048 bytes
Character device major/minor: 248:0
Present volumes: 0, 1

Volume ID: 0 (on ubi2)
Type: dynamic
Alignment: 1
Size: 20 LEBs (2539520 bytes, 2.4 MiB)
State: OK
Name: user_data1
Character device major/minor: 248:1

Volume ID: 1 (on ubi2)
Type: dynamic
Alignment: 1
Size: 20 LEBs (2539520 bytes, 2.4 MiB)
State: OK
Name: user_data2
Character device major/minor: 248:2
admin@Akronite:/root$
admin@Akronite:/root$

it has been a while since I have installed my MR90X, but the instructions did work flawlessly for me at that time.

Examining your notes, one thing looks suspicious:
Your screenshot after your step 7 shows „admin“ as logged-in user, while the screenshot in the MR90X doc needs „root“ as logged in user after doc step 9.
From my perspective this could likely mean that you are not logged in with the required user and not via telnet.

Your del-partition-error message and your comment that you were forced to login with the admin password (though the doc said a credential-free login taking place) seems to underline this.

My guess is that the telnet connection did not work as expected, you likely are not logged in via telnet. If you have used putty as telnet client, please verify that the protocol is telnet instead of „ssh“ and port 23 instead of ssh port.

1 Like

Yes I was not logged in via telnet, I was using the in built putty with WCP software as I was not aware of how to use telnet. Downloaded the latest version of putty and now I am able to successfully install Open WRT on the router.

Thanks @Pico @lleachii for the much needed help and guide.

My mr90x arrived today,
Login as root over ssh successful
Enable telnet successful
Erase kernel successful
Install Openwrt initramfs kernel successful
Install Openwrt 23.05.0 sysupgrade via Luci using Firefox failed
Tried 23.05.2 sysupgrade failed
Shall I log in via SSH and force the upgrade using sysupgrade -F or?
scp the sysupgrade across, ran sysupgrade -n same issue.

found the issue:

fw_setenv baudrate 115200
       fw_setenv bootargs "ubi.mtd=ubi0 console=ttyS0,115200n1 loglevel=8 earlycon=uart8250,mmio32,0x11002000 init=/etc/preinit"
       fw_setenv fdtcontroladdr 5ffc0e70
       fw_setenv ipaddr 192.168.1.1
       fw_setenv loadaddr 0x46000000
       fw_setenv mtdids "spi-nand0=spi-nand0"
       fw_setenv mtdparts "spi-nand0:2M(boot),1M(u-boot-env),50M(ubi0),50M(ubi1),8M(userconfig),4M(tp_data)"
       fw_setenv netmask 255.255.255.0
       fw_setenv serverip 192.168.1.2
       fw_setenv stderr serial@11002000
       fw_setenv stdin serial@11002000
       fw_setenv stdout serial@11002000
       fw_setenv tp_boot_idx 0

Is missing from the toh page, when you are in the initramfs boot the uboot-env is wrong or blank and needs overwriting.

edit: updated the wiki with required information, currently posting from mr90x