Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-06 Thread 郭传鈜
The title should be [PATCH,v2] right...Shall I send it again? 2015-02-06 21:21 GMT+08:00 郭传鈜 : > Sorry,I forgot another simple problem of this device tree in the previus > patch. > The "pcie0" part in pcie@1014 should be defined as "pcie-bridge". > And 2ghz should be disabled on this router.

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-06 Thread Roger Pueyo Centelles
It works! I'm sending the patch right now! :) 2015-02-06 14:06 GMT+01:00 郭传鈜 : > Sorry I forget another thing. > It should be : > pcie-bridge { > mt76@0,0 { > > instead of: > pcie0 { > mt76@0,0 { > > I'll send another patch later > > 2015-02-06 20:22

[OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-06 Thread 郭传鈜
Sorry,I forgot another simple problem of this device tree in the previus patch. The "pcie0" part in pcie@1014 should be defined as "pcie-bridge". And 2ghz should be disabled on this router. I think the problem should be fixed now.Roger,Please test this patch:D Signed-off-by: 郭传鈜 --- target/l

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-06 Thread 郭传鈜
Sorry I forget another thing. It should be : pcie-bridge { mt76@0,0 { instead of: pcie0 { mt76@0,0 { I'll send another patch later 2015-02-06 20:22 GMT+08:00 Roger Pueyo Centelles : > Hi, > > I added some prints to the eeprom.c file and saw that i

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-06 Thread Roger Pueyo Centelles
Hi, I added some prints to the eeprom.c file and saw that in function: static int mt76_get_of_eeprom(struct mt76_dev *dev, int len) { int ret = -ENOENT; #ifdef CONFIG_OF struct device_node *np = dev->dev->of_node; struct mtd_info *mtd; const __be32 *list; const char *part;

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-05 Thread 郭传鈜
Actually, you only need to run "make target/linux/clean" :D 2015-02-05 22:40 GMT+08:00 Roger Pueyo Centelles : > Hi 郭传鈜, > > I did a make clean and then recompiled. Let me try with a completely new > build, I will tell you in an hour or so. > > Thanks! > > 2015-02-05 13:56 GMT+01:00 郭传鈜 : > >> I

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread Roger Pueyo Centelles
Yes, the MAC is where expected. I've tried unloading and reloading the mt76pci module; the second line of the log passed unnoticed for me before. root@OpenWrt:/# rmmod mt76pci && modprobe mt76pci && dmesg [...] [ 73.62] pci device driver detached [ 73.63] mt76pci :01:00.0: no of_no

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread John Crispin
On 04/02/2015 22:11, Roger Pueyo Centelles wrote: > root@OpenWrt:/# hexdump -C /dev/mtd2 > 20 76 05 01 64 09 80 01 66 5d ff ff ff ff ff ff | > v..d...f]..| > 0010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff > || > 0020 ff ff ff ff ff ff ff ff 64 09

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread Roger Pueyo Centelles
root@OpenWrt:/# hexdump -C /dev/mtd2 20 76 05 01 64 09 80 01 66 5d ff ff ff ff ff ff | v..d...f]..| 0010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff || 0020 ff ff ff ff ff ff ff ff 64 09 80 01 66 5c 00 d0 |d...f\..| 0030 59 60 00 04 22 0c

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread John Crispin
On 04/02/2015 20:18, Roger Pueyo Centelles wrote: > Hi, > > I tried with 0x8004 and I also got a random IP address. Actually, > I changed this block in in eeprom.c (line 571) [1]: can you do a "hexdump -C /dev/mtd2" and paste the output please ? ___ o

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread Roger Pueyo Centelles
Hi, I tried with 0x8004 and I also got a random IP address. Actually, I changed this block in in eeprom.c (line 571) [1]: if (!is_valid_ether_addr(dev->macaddr)) { eth_random_addr(dev->macaddr); dev_printk(KERN_INFO, dev->dev, "Invalid MAC address, using random address %pM\n",

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread John Crispin
On 04/02/2015 17:08, Roger Pueyo Centelles wrote: > Hi, > > > > 2015-02-04 12:44 GMT+01:00 Chuanhong Guo >: > > From: 郭传鈜 mailto:gch981...@gmail.com>> > > 2ghz should be disabled on this router. > > > You're right. This should be patched. > > > A

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread Roger Pueyo Centelles
Hi, 2015-02-04 12:44 GMT+01:00 Chuanhong Guo : > From: 郭传鈜 > > 2ghz should be disabled on this router. > You're right. This should be patched. > And I think 'mediatek,mtd-eeprom' should be defined as<&factory 32768> > instead of <&factory 0x8000> according to WHR-1166D.dts > Actually I didn

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread 郭传鈜
Ah.Sorry,I mean 2.4GHz support for MT7612E should be disabled. 2015-02-04 19:53 GMT+08:00 Gioacchino Mazzurco : > On Wednesday, February 04, 2015 06:44:44 AM Chuanhong Guo wrote: > > 2ghz should be disabled on this router. > > It doesn't have 2ghz wireless interface, or it is that we are not capa

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread 郭传鈜
This is a router with mt7620a soc for 2.4GHz wireless and mt7612e for 5.8GHz wireless. 2015-02-04 19:53 GMT+08:00 Gioacchino Mazzurco : > On Wednesday, February 04, 2015 06:44:44 AM Chuanhong Guo wrote: > > 2ghz should be disabled on this router. > > It doesn't have 2ghz wireless interface, or it

Re: [OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread Gioacchino Mazzurco
On Wednesday, February 04, 2015 06:44:44 AM Chuanhong Guo wrote: > 2ghz should be disabled on this router. It doesn't have 2ghz wireless interface, or it is that we are not capable of supporting it at moment? ___ openwrt-devel mailing list openwrt-devel

[OpenWrt-Devel] [PATCH] ramips:Fix mt7612 support for Xiaomi Mini.

2015-02-04 Thread Chuanhong Guo
From: 郭传鈜 2ghz should be disabled on this router. And I think 'mediatek,mtd-eeprom' should be defined as<&factory 32768> instead of <&factory 0x8000> according to WHR-1166D.dts Actually I didn't have this router.But I think this is the reason that the MT7612E radio always gets a random MAC addr