Need a kernel upgrade for Xiaomi Mi WiFi R3

Hello,
i recently flashed my stock mir3 router to openwrt to a version with a date 26.07.2020 found on 4pda.ru and the version as shown below

the issue is that when i want to add the sqm package i get the dependencies error due to the old kernel version .
so i want to know from the official releases which version i can update the firmware to since i dont find my router in the list

thanks in advance

There's a device page in the wiki but there's no official support. See this topic as well:

You can, however, run a recent build yourself if you are able to:

2 Likes

Hello @Borromini thank you for ur feedback,
for the 1st point i read somewhere about that
for the 2nd point after ur reply i found a video explaining how to build and want to know if after that the kernel will b in the latest version required for sqm ?
also whats the easiest soft that i can start right away on it for the build ?

much appreciated

AFAIK all current kernel versions used in OpenWrt just work fine with SQM. The patch is for master, so you'll be using kernel 5.4.

@Borromini yes that was what i noticed after flashing the router
i followed @romandas tutorial and got stuck in the last step make -j5 , i get directed again to the make menuconfig screen and got these messages afterward

whats wrong ?

Do not run this make as superuser. Run everything as regular user.

Running as superuser will have totally messed up the file ownership and permissions in the OpenWrt build tree, so it would be best to remove it and start over.

1 Like

@mk24 without sudo i get permission denied

Your best bet is to nuke the whole openwrt-mir directory, re-download the source code, and start over. Since previous use of sudo has created some files owned by root, sudo will be necessary to delete them. sudo rm -rf openwrt-mir from the next directory up.

2 Likes

It might be better to follow a thorough walkthrough like documented in the wiki. And, like mk24 pointed out, not to run any part of the build process as root.

1 Like

so i did wkt mk suggested and all went well but i got this error even after trying again everytime

meanwhile am gonna remove again and try and see

edited: i think theres a duplicated package

You have added libustream-openssl but that conflicts with libustream-wolfssl. You should make the latter modular [m] instead of [*].

Also, please copy/paste your output using code tags, instead of posting screenshots. Screenshots cannot be searched unlike text, so for people with a similar problem they are utterly useless.

2 Likes

am new to this thats why i posted scrnshot
so i started over and i didnt select much option beside wht was in the tutorial and now i get the below error and every time i get stuck at the package install step

find /home/blitznats/openwrt-mir/build_dir/target-mipsel_24kc_musl/root-ramips/ -mindepth 1 -execdir touch -hcd "@1603376018" "{}" +
find: The relative path 'Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc' is included in the PATH environment variable, which is insecure in combination with the -execdir action of find.  Please remove that entry from $PATH
make[2]: *** [package/Makefile:72: package/install] Error 1
make[2]: Leaving directory '/home/blitznats/openwrt-mir'
make[1]: *** [package/Makefile:109: /home/blitznats/openwrt-mir/staging_dir/target-mipsel_24kc_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/blitznats/openwrt-mir'
make: *** [/home/blitznats/openwrt-mir/include/toplevel.mk:236: world] Error 2

edited: am using ubunto from windows store and acter activating linux under windows feature could that b a problem ?
br,

Ubuntu and WSL2 is good for building but the default PATH including Windows directories will cause problems.

Using sudo, add a file /etc/wsl.conf with these contents:

[interop]
appendWindowsPath = false

then close the Ubuntu window and log in again.

meanwhile am downloading ubunto.iso

for the /etc/wsl.conf would b created in (in my case openwrt-mir3 folder) or user directory ?

You don't need an Ubuntu ISO, everything there is already included when you install from Windows Store.

The config file goes in the root level /etc directory in the Linux tree. For example using the nano CLI based text editor:
sudo nano /etc/wsl.conf
(type the text in)
Save file and exit nano with ctrl-X, Y, enter.

1 Like

i did it and got the same issue with or without pc restart

I thought that was all I had to do to make it work.
In the Ubuntu window, checking the PATH should look only something like this:

user@box:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

and not have a bunch of other directories in the C drive listed.

This topic is outside the scope of this forum so you may want to look for Windows specific help on the Internet.

1 Like

indeed,
i will try it on another user otherwise on a vm and see wht happens,it took so long its getting frustrating

thanks 4 ur feedback

good news,
i moved the distribution to another partition and did the same steps and made it to the end

 make[2] package/install
 make[2] target/install
 make[3] -C target/linux install
 make[2] package/index
 make[2] json_overview_image_info
 make[2] checksum
blitz@muslimgold:~/openwrt-mir3$

i will try it and hopefully it will work

Edited IT works !!!!

@mk24 @Borromini @romandas BIG thanks to you all !!! :smile:

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.