Xiaomi MiWiFi R1D working DD-WRT build (Tested)


bubbl3

Members
Jan 3, 2011
20
15
I claim no credit for the build or the flashing procedure, this is the original chinese thread: http://bbs.xiaomi.cn/thread-10591878-1-2.html

Build is based on Kong 24880, everything is working, WiFi 2.4GHz and 5GHz, USB, NAS. Don't mind the disabled WAN in my screens as I flashed DD-WRT mainly because I wanted to use this as AP/NAS.

ddwrt1.png

ddwrt2.png

ddwrt3.png

ddwrt4.png

ssh1.png


I also repartitioned the HD and reserved some space for future experiments with optware.
ssh2.png


Flashing is not that hard, but you need to enable SSH access on your stock firmware R1D, the official procedure is here:

https://d.miwifi.com/rom/ssh

It is important to login with your Xiaomi account as the page will also tell you your root password.

The file you need to flash to enable SSH is miwifi_ssh.bin, you can download it here:

https://dl.dropboxusercontent.com/u/1767311/r1d/miwifi_ssh.bin

Procedure to flash miwifi_ssh.bin:

1. copy miwifi_ssh.bin on the root folder of a FAT32 formatted USB key.

2. disconnect the power from the router and connect the USB key to it.

3. keep the reset button pressed while you connect the power, release the reset button when the router orange led starts flashing.

4. wait 3-5 seconds, router will restart and SSH will be available on port 22


Procedure to flash DD-WRT

1. Download somewhere on your PC the file DD-R1D.trx, download it here:

https://dl.dropboxusercontent.com/u/1767311/r1d/DD-R1D.trx

2. Open an SSH connection with the router.

3. In command line give these commands:

nvram set boot_wait=on
nvram set wait_time=10
nvram commit


4. Set your network interface address as 192.168.1.100 and open a command prompt, once opened give this command:

ping -t 192.168.1.1

5. Reboot the router and as soon as it pings open http://192.168.1.1 in Firefox/Chrome

You'll see a page like this:
flash1.png


Browse for DD-R1D.trx and click Upload

Be patient, you'll get a message of successful upload and the router will reboot, it will take a while, led will always be orange from now on so don't worry, as soon as it pings you can login on DD-WRT web interface.

The firmware language defaults to chinese, on the usual first boot screen set username, password, password confirmation.

Then follow this to set the language to English:
lang1.png


Scroll down and select English from the dropdown box:
lang2.png


Scroll at the end of the page and click Apply Settings:
lang3.png


Then go to Services->NAS and enable Samba, reboot the router and it will automount the internal HD.
All the files you had on it will be in /mnt/sda4

If you wish to repartition your HD, easiest way is to take it out, connect it to a PC (USB or internal) and partition it (ext2/ext3) with an utility (Acronis Disk Director for Windows or GParted for Linux).


FAN Noise

If you think the FAN is too loud, you can turn off fan speed management and it will run at the slowest speed.
Open an SSH connection and use this commands:

nvram set fancontrol=off
nvram commit


Going back to the original firmware

1. Download miwifi-stock.bin and copy it on the internal HD of the router.

https://dl.dropboxusercontent.com/u/1767311/r1d/miwifi-stock.bin

2. Open an SSH connection and move to the path containing the file.

3. Use this command to flash the firmware:

mtd -r write miwifi-stock.bin linux

Do not try to flash the firmware from DD-WRT web interface, it will get stuck and brick the router!

There is a new build that came out today, I didn't have the time to test it, adventurous guys can give it a spin:

https://dl.dropboxusercontent.com/u/1767311/r1d/dd-r1d-2014.11.8.trx

Be careful as I didn't test it so I can't say it will work or have issues!!
 
  • Like
Reactions: s01o
Very good!

80ºC on this CPU is normal?

If this CPU reaches this temperature easily, I cannot imagine on the Summer here in Portugal.
Does anyone have problems with it?