OpenWrt Forum Archive

Topic: XIAOMI 6TB R2D Router English?

The content of this topic has been archived between 22 Mar 2018 and 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

BIGPIT wrote:

Now my Questions:
Why the router is not listed as offical supported? It is based on openwrt with a chinese LUCI Webinterface.

My guess is because they are using proprietary drivers

I can see still a chance.
I found out that in the switch(devmode) in the English translatet router app isn't working.
With the webinterface I found it is still inactive.
The next problem is now, that xiaomi requires a registration as dev and you need to get an dev/plugin/app id to do this.

Let you know when I have real root access.

makarel wrote:

check /overlay folder if its writable
and if it has a structure like /overlay/lib/lua/luci/view/


Hi Makarel,

i am not really much further. I haven't found the way how i could modify the interface.
But this i probalbly also based on my bad knowledge.

What ever, i tried to understand what you mentioned with this overlay folder.
I understand that the overlay folder will make a mixture of the changed files and the original ones on the router.
Is this correct?

I tried to create a new file in the overlay folder in the past. This wasnt successful.
But I found out, if i mount a writeable folder on the overlay onces it becomes also writeable.
Is this a possibility to carry on somehow?

For all who are interessted in the inner life of the router,
http://www.dd-wrt.com/phpBB2/download.php?id=33128
sorry i dont know how to upload here some files.

no worry.. nobody knows all

from what i know /overlay(RW fs) contains information on top of /rom(RO fs); its a trick to make /rom writable; so if a file exist both in /overlay and /rom it will execute the one from /overlay

another trick is extroot used to move whole OWRT on external drive(read not from internal flash)
http://wiki.openwrt.org/doc/howto/extroot?s[]=overlay

i wander
-can the chinese fw install packages to achieve this feature?
-is the external drive used only for user storage? maybe it has the OWRT on it..

you could ask xiaomi dudes to give you an unlocked fw.. big_smile im loughfing myself of such thing.. but who knows.. email them..

Thanks for answer.
Regarding the rom and overlay topic i read the same.
But if it belongs only to the rom folder it seems maybe not helpful.
In the rom folder i only find a note with this text:

SQUASHFS USERS:
After firstboot has been run, / will be jffs2 and /rom will be squashfs
(* except when in failsafe)


I will double check this ext root thing the near time.

The chinese fw has a future to develop plugins and install them. But therefor it seems i need some studys things what i haven't heard until now.
But i already have my xiaomi dev license.
On the external drive i can see some folders, similar like openwrt but the most are empty, some have some configfiles, like Macadress, Mappingfolderconfigurations, and there is a Folder (OTAdownloaded, witch contains the Routerfirmware as .bin

I haven't asked further things to xiaomi, but maybe i should try.
Even i think that its lost time.

What i also have prepared, i soldierd now the Serial interfaces and connected the a TTL adapter from my arduino equipment.
Just looking for a way to backup CFE and NVRAM sections.

Hi,
i have checked the external drive. Seems you are right, there area a lot of datas stored.
The path is the following /userdisk/appdata/chroot_file/lib/lua/luci/view/web/setting

The files of the webinterface are not there, but the folder structure is the same.
I have no glue about it, but for a noob i would say it could also look like a overlay.
I copied a modified html file in the right folder on this path, but nothing changes. I also tried to restart the router.

Not all the files are there but it looks good.
As i was searching for some configfiles i found some files look very interessting, but i dont knwo how to usw.

See the attached file and folderstructure.

http://fs2.directupload.net/images/150907/temp/jgqihgfi.jpg

Do you think there is a possibility that i get the sytem somehow to use the datas from the drive.

makarel wrote:

if you take out external drive.. does it remembers settings? if it doesnt then it stores settings on external drive.. maybe interface also

...
so does it remember settings?

chroot.. looks promissing
check again regarding "copied a modified html file in the right folder on this path, but nothing changes."

Hi BIGPIT,

I have worked with squashfs and overlay fs before. If openWRT overlays behave the same by default as f.e. ubuntu or slax, you would have to make a vfat (fat32) partition on the 1TB hard disk. Then mount this partition under /overlay as rw. This would make any changes made to the entire / filesystem persistent.
If you can mount a folder onto it and that makes it wrwritabl maybe that would happen too if you mount a writable filesystem. However I can't see how this would not require root.

For obtaining root on your device, you can flash the deveolpment bin. Another trick you could try is sudo passwd root. (Should you have sudo priviledges, but very doubtfull as this would be a serious flaw in security).

Anyway, the dev rom for R2D can be douwnloaded from here :
http://www1.miwifi.com/wap_download.html
(Google chrome can auto-translate this page for you).

Please let me know how if anything is any help/provide feedback.

I intent to buy thus router and my purpose is to get wpa_supplicant working on it. I can't use WDS as I don't have access to the main router configuration, but I'm hoping pluggin xioami wifi amplifier into this will yield a wl1 or wlan1, after wich I can use basic routing or bridging to amplify the 802.1x network.

If anyting else fails, I could try and build dd-wrt for the R2D, which has wpa_supplicant by default.

So exciting days of hacking ahead. And hoped to have been of any help.
Ps. Sorry for any typos, the text is really small on my phone...

EDIT : persistency is only possible if the --persistent kernel option is present. But once root, you should be able to change this in the bootloader. It's possible they've added it by default.

(Last edited by wimv on 18 Dec 2015, 12:12)

Did anyone ever succeed in compiling it's own OpenWRT for Xiaomi R2D Router? I bought it, cause i wanted to serve the internal stored files through minimserver (DLNA Server) and years ago i managed to compile OpenWRT for oxnas device including java support - which is needed for minimserver. As java doesn't seems to run out of the box on R2D router i guess OpenWRT needs to be compiled with java support for this device too!? So any steps into that direction (running java on R2D or compiling OpenWRT for it) would be more than welcome. :-)

The discussion might have continued from here.