No, if it comes to porting we don't use foreign code, unless we know it comes from someone who is an expert in this, without the unit you can't check if it is correct and does not have potential to destroy a unit. Plus there are usually small things that are not implemented, but users constantly ask for it to be fixed, like leds/buttons etc.
I've accepted code once and the "porter" missed a few details, which caused serious trouble. This hurts my reputation, the units I port are supposed to have full working buttons/leds... and can be flashed back and forth with oem/ddwrt fw without any tricks.
R1D worst unit to port in that case. I already soft bricked mine. There is no reset button at all (it's GPIO seen by kernel) and uart_en and boot_wait are OFF by default, so CFE hard accessible after reset nvram.
It have sflash with only 16MB and dual-boot kernel image, but, in case you switch to second and it's broken, it can be no way to switch back to 1st after resetting nvram (from CFE web for example).
No, if it comes to porting we don't use foreign code, unless we know it comes from someone who is an expert in this, without the unit you can't check if it is correct and does not have potential to destroy a unit. Plus there are usually small things that are not implemented, but users constantly ask for it to be fixed, like leds/buttons etc.
I've accepted code once and the "porter" missed a few details, which caused serious trouble. This hurts my reputation, the units I port are supposed to have full working buttons/leds... and can be flashed back and forth with oem/ddwrt fw without any tricks.
R1D worst unit to port in that case. I already soft bricked mine. There is no reset button at all (it's GPIO seen by kernel) and uart_en and boot_wait are OFF by default, so CFE hard accessible after reset nvram.
It have sflash with only 16MB and dual-boot kernel image, but, in case you switch to second and it's broken, it can be no way to switch back to 1st after resetting nvram (from CFE web for example).
The 16MB flash is a bit small, but better than the 8MB in the EX6200, not sure if the current dd-wrt kernel would recognize the 16MB macronix correctly though. Wrong flash detection can perma brick your unit unless you can reprogramm the flash and I haven't seen any jtag on these boards. Thus no one knows how to jtag/swd these boards.
This is no problem for me though, even if I fully trash the flash. I built my self a little flasher that can backup/restore the flash in circuit, no need to power on the device, no soldering required:-)
This is no problem for me though, even if I fully trash the flash. I built my self a little flasher that can backup/restore the flash in circuit, no need to power on the device, no soldering required:-)
You are lucky then ) Is it like spiflash.org unit? That's what I need to back it to life. I have full dump, but need a programmer and unsolder that macronix chip to switch with new correctly programmed one (it costs only $2).
This is no problem for me though, even if I fully trash the flash. I built my self a little flasher that can backup/restore the flash in circuit, no need to power on the device, no soldering required:-)
You are lucky then ) Is it like spiflash.org unit? That's what I need to back it to life. I have full dump, but need a programmer and unsolder that macronix chip to switch with new correctly programmed one (it costs only $2).
Does it starts and sports a red led light?
I did manage to get mine back to life from a brick like that using it's firmware flash capability on boot, just need to stick the firmware on usb, connect it, then start it with the reset button pressed and it will usually restore to stock. It is a bit tricky with the timing but after some tries i managed to make it work!
I did manage to get mine back to life from a brick like that using it's firmware flash capability on boot, just need to stick the firmware on usb, connect it, then start it with the reset button pressed and it will usually restore to stock. It is a bit tricky with the timing but after some tries i managed to make it work!
Nope. Amber light with no action, HDD not powered too. It was stuck after flashing custom kernel to 2-nd flash partition and resetting nvram variables from CFE WEB interface, then switching to boot from that custom kernel by nvram option. Reset button do nothing, if kernel not booted (in case of R1D it's not hardware reset button, seen by CFE, but simple GPIO which is controlled by kernel itself). I think it's stupid idea to make design like this ) UART disabled by default, reset button do nothing for CFE itself.
I did manage to get mine back to life from a brick like that using it's firmware flash capability on boot, just need to stick the firmware on usb, connect it, then start it with the reset button pressed and it will usually restore to stock. It is a bit tricky with the timing but after some tries i managed to make it work!
Nope. Amber light with no action, HDD not powered too. It was stuck after flashing custom kernel to 2-nd flash partition and resetting nvram variables from CFE WEB interface, then switching to boot from that custom kernel by nvram option. Reset button do nothing, if kernel not booted (in case of R1D it's not hardware reset button, seen by CFE, but simple GPIO which is controlled by kernel itself). I think it's stupid idea to make design like this ) UART disabled by default, reset button do nothing for CFE itself.
Sucks, sorry for your brick then, i guess only way is to get a flasher and flash the chip :/
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.
Suggested build is now DD-WRT v24-sp2 (11/08/14) - build fkpwolf@24880 for MiWiFi R1D -> dd-r1d-2014.11.8.trx
I also repartitioned the HD and reserved some space for future experiments with optware.
Flashing is not that hard, but you need to enable SSH access on your stock firmware R1D, the official procedure is here:
It is important to login with your Xiaomi account and having the router registered under it (best way is with the android app, google it, I'm not going to spend time on this here) as the file is personalized for your router and the page will also tell you your root password.
The file you need to flash to enable SSH is 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-2014.11.8.trx attached to this post.
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:
Browse for dd-r1d-2014.11.8.trx and click Upload
Be patient, you'll get a message of successful upload and the router will reboot, it will take a while, as soon as it pings and the led is blue 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:
Scroll down and select English from the dropdown box:
Scroll at the end of the page and click Apply Settings:
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 these commands:
nvram set fancontrol=off
nvram commit
Going back to the original firmware
THIS WILL FORMAT YOUR HD, BACKUP YOUR DATA
1. Download miwifi-stock.bin attached to this post and copy it on a FAT32 formatted USB key.
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. this will take a while so be patient, the stock firmware will be flashed and the HD formatted, when the led is blue, you're done.
Do not try to flash the firmware from DD-WRT web interface, it will get stuck and brick the router!
Revisions
20-11-2014
- new build tested and it fixes several bugs:
* long term file transfers no longer hang the router
* led is now blue after boot
* HD temp is now visible in UI
* router can be used without internal HD
* several UI fixes and enhancements
- removed the miwifi_ssh.bin attachment as each router needs its specific one
- revised the installation procedure
- better and tested back to stock procedure
I use the app, register, downloaded the miwifi_ssh.bin, transfered to a thumb drive, plug in the thumb drive, power on with reset button hold down, until it reboots.
but i am unable to SSH using putty on port 22, where went wrong?
Posted: Sun Apr 05, 2015 6:16 Post subject: Re: Xiaomi MiWiFi R1D working build (Tested)
please move to "Services" -> "Services" -> "Secure Shell" section
enable the 'SSHd','SSH TCP Forwarding','Password Login' and 'Authorized Keys' should be empty.
aniki wrote:
I use the app, register, downloaded the miwifi_ssh.bin, transfered to a thumb drive, plug in the thumb drive, power on with reset button hold down, until it reboots.
but i am unable to SSH using putty on port 22, where went wrong?
Posted: Sat Apr 18, 2015 17:53 Post subject: Re: Xiaomi MiWiFi R1D working build (Tested)
firmwu wrote:
please move to "Services" -> "Services" -> "Secure Shell" section
enable the 'SSHd','SSH TCP Forwarding','Password Login' and 'Authorized Keys' should be empty.
aniki wrote:
I use the app, register, downloaded the miwifi_ssh.bin, transfered to a thumb drive, plug in the thumb drive, power on with reset button hold down, until it reboots.
but i am unable to SSH using putty on port 22, where went wrong?
Learn to read new guy.. i found out the issue.. the ssh will not work on new xiaomi, you have to downgrade to old version first.
The issue nos is i am only getting 260mbps whereas i should be getting 600mbps previously
this dd-wrt build for xiaomi have bad mtd layout and may have issues.
it's better to flash custom CFE (so you can always restore your router in case of any failure) and Tomato firmware on it. More info and all binaries here.
And here is the source code of Tomato 129 with R1D support + ML (multi language support) + Advanced Tomato UI + USB audio modules + HFS FS support. Currently it's translated to Russian, but there are also Chinese dict in /www dir which can be easely added too.
Posted: Sun May 03, 2015 5:29 Post subject: help for newbie - Unable to flash
Hi folks
i followed the steps that bubbl3 mentioned.
i was able to login using putty and enter the nvram commands.
however i am unable to get the broadcom webpage to come up.
How does one change network interface address. Is it via IP setting in windows or some commands in putty client. i changed and then i started pinging but it says destination port unreachable.