Xiaomi MiWiFi R1D working build (Tested)

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
Phreaky
DD-WRT Novice


Joined: 01 Dec 2014
Posts: 6

PostPosted: Sat Dec 13, 2014 8:37    Post subject: Reply with quote
Trying to install a torrent downloader to make use of the drive but cant seem to find anything to point me to the procedure. Any help ?
Sponsor
<Kong>
DD-WRT Guru


Joined: 15 Dec 2010
Posts: 4339
Location: Germany

PostPosted: Sat Dec 13, 2014 9:11    Post subject: Reply with quote
Phreaky wrote:
Trying to install a torrent downloader to make use of the drive but cant seem to find anything to point me to the procedure. Any help ?


Regular dd-wrt builds for arm routers come with transmission.
Maybe they did not have enough flashspace to add transmission and a backdoor:-)
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Sat Dec 13, 2014 13:05    Post subject: Reply with quote
<Kong> wrote:

Maybe they did not have enough flashspace to add transmission and a backdoor:-)

But sources are on github, aren't they? Wink
Is there a chance this device will be supported officialy? $150 for AC ARM + 1TB HDD + NFC quite good offer Wink
Phreaky
DD-WRT Novice


Joined: 01 Dec 2014
Posts: 6

PostPosted: Sat Dec 13, 2014 15:43    Post subject: Reply with quote
The original thread on the Chinese forum does talk about Thunder ? Rolling Eyes
<Kong>
DD-WRT Guru


Joined: 15 Dec 2010
Posts: 4339
Location: Germany

PostPosted: Sat Dec 13, 2014 18:32    Post subject: Reply with quote
tsynik wrote:
<Kong> wrote:

Maybe they did not have enough flashspace to add transmission and a backdoor:-)

But sources are on github, aren't they? Wink


I only see a dd-wrt clone on github, with zero modification.

Does not contain any code related to this router. But that is not important, for this platform it takes us max 30 min to add support for, if we have a unit.
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Sun Dec 14, 2014 12:15    Post subject: Reply with quote
<Kong> wrote:

I only see a dd-wrt clone on github, with zero modification.

There was more before Wink
<Kong> wrote:

Does not contain any code related to this router. But that is not important, for this platform it takes us max 30 min to add support for, if we have a unit.

I can provide any info what needed, including serial outputs.

p.s. After I flashed chinese DD-WRT, MTD layout changed from:
Code:
0x000000000000-0x000000040000 : "boot" 0 -> 262144
0x000000040000-0x000000340000 : "os" 262144 -> 3407872
0x000000340000-0x000000640000 : "os1" 3407872 -> 6553600
0x000000640000-0x000000ed0000 : "squashfs" 6553600 -> 15532032
0x000000ed0000-0x000000ee0000 : "crash" 15532032 -> 15597568
0x000000ee0000-0x000000fe0000 : "overlay" 15597568 -> 16646144
0x000000fe0000-0x000000ff0000 : "board_data" 16646144 -> 16711680
0x000000ff0000-0x000001000000 : "nvram" 16711680 -> 16777216
0x000000000000-0x000000fe0000 : "firmware" 0 -> 16646144
0x0000007d8474-0x000000dcd000 : "os2" 8225908 -> 14471168

to
Code:

0x000000000000-0x000000040000 : "boot" 0 -> 262144
0x000000040000-0x000000ff0000 : "linux" 262144 -> 16711680
0x0000001a0000-0x000000cb0000 : "rootfs" 1703936 -> 13303808
0x000000cb0000-0x0000001f0000 : "ddwrt" 13303808 -> 2031616 (WFT?)
0x0000001e0000-0x0000001f0000 : "nvram" 1966080 -> 2031616


i wonder, what happened with board_data then, and does it contains usefull data? Wink also, ddwrt partition size is buggy in current dd-wrt. nvram placed in different space.


Last edited by tsynik on Thu Dec 18, 2014 17:34; edited 3 times in total
chchia
DD-WRT User


Joined: 20 Dec 2009
Posts: 63

PostPosted: Wed Dec 17, 2014 4:39    Post subject: Reply with quote
<Kong> wrote:


I only see a dd-wrt clone on github, with zero modification.

Does not contain any code related to this router. But that is not important, for this platform it takes us max 30 min to add support for, if we have a unit.


Kong, how do I send you an unit? Laughing

by the way, may i know what information required to add support for it? I can be a tester, I have both serial TTL and flash programmer, i am not worry to brick. if you can start blind build I can be your tester.
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Sat Dec 20, 2014 16:03    Post subject: Reply with quote
I got self-compiled images for Northstar.
Now the tricky part...
Kong, can you guide us, which parts in kernel must be edited first to add support for R1D? Where mtd partitions defined? And what a proper way to pack firmware in case R1D?
Here is block diagram of this router.
Here is thread on openwrt forum with useful information about R1D boot process and initial attempts to describe R1D in 3.x kernel.
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Sun Dec 21, 2014 1:32    Post subject: Reply with quote
tsynik wrote:
I got self-compiled images for Northstar.
Now the tricky part...
Kong, can you guide us, which parts in kernel must be edited first to add support for R1D? Where mtd partitions defined? And what a proper way to pack firmware in case R1D?
Here is block diagram of this router.
Here is thread on openwrt forum with useful information about R1D boot process and initial attempts to describe R1D in 3.x kernel.



The first question you should ask yourself before attempting to support Xiaomis sales of hardware is:

Does Xiaomi make the GPL source code available for their stock firmware as required in order for them to be allowed to use linux as operating system?

_________________
Kernel panic: Aiee, killing interrupt handler!
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Sun Dec 21, 2014 2:01    Post subject: Reply with quote
LOM wrote:

Does Xiaomi make the GPL source code available for their stock firmware as required in order for them to be allowed to use linux as operating system?


Chinese always violate GPL and it suxxxx (
But Y699 including 1TB Samsung HDD for ARM AC-router is best offer on the market )
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Sun Dec 21, 2014 22:39    Post subject: Reply with quote
If anyone interested, initial flash layout described at
arch/arm/mach-brcm-hnd/board_ns.c
nvram variables for R1D:
boardnum=32
boardtype=0x0665
boardrev=0x1301
boardflags=0x00000110
boardflags2=0x00000000
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7647

PostPosted: Mon Dec 22, 2014 0:16    Post subject: Reply with quote
tsynik wrote:
LOM wrote:

Does Xiaomi make the GPL source code available for their stock firmware as required in order for them to be allowed to use linux as operating system?


Chinese always violate GPL and it suxxxx (
But Y699 including 1TB Samsung HDD for ARM AC-router is best offer on the market )


No, they don't always violate GPL, Asus and TP-Link are examples of some who doesn't.
Xiaomi is one of the worst violators recently and you can as a consumer tell them what you think about that, you can vote with your wallet.
They do btw include spyware/phone-home in their firmwares and it is difficult to see what they report back without access to the source code.

I guess that you don't care about Xiaomis behaviour, that "interesting hardware" is more important than morale. Twisted Evil

_________________
Kernel panic: Aiee, killing interrupt handler!
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Mon Dec 22, 2014 0:58    Post subject: Reply with quote
LOM wrote:

They do btw include spyware/phone-home in their firmwares and it is difficult to see what they report back without access to the source code.

That's not true ) People call their cloud services "spyware", but can you provide a proof of your sentence? Wink
LOM wrote:

I guess that you don't care about Xiaomis behaviour, that "interesting hardware" is more important than morale. Twisted Evil

Morale? I'm interested to drive that good and cheap hardware with opensource FW like dd-wrt or openwrt and be free. It's definitely possible, with debian and kernel 2.6 at least. It's piece of metal. Ofcourse it's better to charge Cisco or overpriced Asus, you told me )
chchia
DD-WRT User


Joined: 20 Dec 2009
Posts: 63

PostPosted: Wed Dec 24, 2014 8:58    Post subject: Reply with quote
i do not have proof to say that xiaomi is not putting spyware/backdoor in thier firmware, however i also have no proof to say that xiaomi is doing it. Shocked

anyway i get in touch with the guy who compiled ddwrt for xiaomi router, if he provide his source code for the working ddwrt, will it help?
<Kong>
DD-WRT Guru


Joined: 15 Dec 2010
Posts: 4339
Location: Germany

PostPosted: Wed Dec 24, 2014 10:36    Post subject: Reply with quote
chchia wrote:
i do not have proof to say that xiaomi is not putting spyware/backdoor in thier firmware, however i also have no proof to say that xiaomi is doing it. Shocked

anyway i get in touch with the guy who compiled ddwrt for xiaomi router, if he provide his source code for the working ddwrt, will it help?


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.
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next Display posts from previous:    Page 2 of 7
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum