ramips: add support for Netgear EX3700#937
ramips: add support for Netgear EX3700#937jclehner wants to merge 2 commits intolede-project:masterfrom
Conversation
This patch makes specifying NETGEAR_REGION optional, in which case mkchkimage will default to region 1 (WW). Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
mkresin
left a comment
There was a problem hiding this comment.
Hey Joseph,
excellent work!
Would you please add Pauls Signed-off-by to the ocmmit message as well. Please add a short description how the initial install of LEDE can/should be done to the commit message.
There was a problem hiding this comment.
Drop this LED here, it is already handled by diag.sh.
I would suggests to use the green:power LED in diag.sh. Everything reddish indicates an error to me. You can drop the default-state = "on"; from the green power LED in dts afterwards.
In case the amber LED is is switched on by the bootloader, add a default-state = "off"; to the amber power led in the DTS (http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/leds/leds-gpio.txt).
There was a problem hiding this comment.
The blinking amber led on bootup is used by the stock firmware on this device, so we wanted to replicate this in LEDE. I did a similar thing in the EX2700 port.
There was a problem hiding this comment.
The blinking amber led on bootup is used by the stock firmware on this device, so we wanted to replicate this in LEDE. I did a similar thing in the EX2700 port.
We had similar discussion about LEDs in one of recent PR: #865 (comment).
If this device contains two LEDs which can be used as status LED, I also prefer to select the green one over the red/amber/orange.
There was a problem hiding this comment.
Please move the whole block a few lines up so that the file is in alphabetical order again.
target/linux/ramips/dts/EX3700.dts
Outdated
There was a problem hiding this comment.
Would you please swap the include lines so that they are in alphabetical order.
target/linux/ramips/dts/EX3700.dts
Outdated
7932cbc to
ab4ce9d
Compare
| endef | ||
| TARGET_DEVICES += wn3000rpv3 | ||
|
|
||
| define Device/ex3700 |
There was a problem hiding this comment.
Shouldn't that be after ex2700 (alphabetically-wise)?
There was a problem hiding this comment.
nope. this file is a mess anyway. I will sort it after the patch is merged.
|
|
||
| &wmac { | ||
| ralink,mtd-eeprom = <&factory 0x0>; | ||
| }; |
There was a problem hiding this comment.
what about mac-address? Is it correctly set? On the WN3000RPv3 the wireless MAC was stored at a different offset in the factory partition...
There was a problem hiding this comment.
Several tests have shown that the MAC address is correct (same as when using the stock image, on two different devices).
There was a problem hiding this comment.
Ok, thanks. I'm curious: if you change either of the MACs in u-boot, is that change correctly reflected in LEDE?
I notice this device's MTD appears to be structured quite differently from the ex2700/wn3000, which surprises me. Maybe there's room for improvement on these two?
There was a problem hiding this comment.
@f00b4r0 not sure what you are trying to find here. They have tested it on two devices and it was fine on both. It should be enough confirmation that the way it is done is the correct way.
There is no need to let them do more work than necessary. Especially since @jclehner has a good track record in submitting patches.
There was a problem hiding this comment.
@mkresin I noticed on the wn3000 that if I didn't specify the correct MAC address location, the wlan would seemingly get the right MAC address, but that address wasn't updated when changed in u-boot (contrary to stock firmware). Hence my concern. Forgive me if I look like I'm splitting hair here, I'm just trying to ensure that we get most accurate support.
There was a problem hiding this comment.
@mkresin ok. It's quite possible the ex2700/wn3000 are more different from the ex3700 than I expect, which would explain the discrepancy in DTS. As for the ability of changing the device MAC address, I'm told the primary use is to resolve collisions, though I never experienced one myself :)
There was a problem hiding this comment.
@f00b4r0 The EX2700 and WN3000* are both manufactured by Delta Networks, while the EX3700's ODM is Foxconn, so this explains the difference in MTD layouts. The stock firmware does store MAC addresses in the config and nvram partitions, but so far, these matched the EEPROM MACs on all tested devices.
@mkresin I've updated the patch, so the diagnostic LED thingy is the only thing holding back this PR at this point, correct?
There was a problem hiding this comment.
@f00b4r0 The EX2700 and WN3000* are both manufactured by Delta Networks, while the EX3700's ODM is Foxconn, so this explains the difference in MTD layouts. The stock firmware does store MAC addresses in the config and nvram partitions, but so far, these matched the EEPROM MACs on all tested devices.
Thanks for the clarification! Re MAC: I suppose this means that the WLAN MAC cannot be changed with the current DTS config then?
There was a problem hiding this comment.
@mkresin I've updated the patch, so the diagnostic LED thingy is the only thing holding back this PR at this point, correct?
Correct
There was a problem hiding this comment.
Latest patch fixes that too.
Specifications: * SoC: MT7620A * RAM: 64 MB DDR * Flash: 8MB NOR SPI flash * WiFi: MT7612E (5Ghz) and builtin MT7620A (2.4GHz) * LAN: 1x100M The -factory images can be flashed from the device's web interface or via nmrpflash. Co-authored-by: Paul Oranje <por@xs4all.nl> Signed-off-by: Paul Oranje <por@xs4all.nl> Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
ab4ce9d to
4755f82
Compare
|
merged, thanks. |
|
tested snapshot images of monday 2017-03-13: |
Specifications:
This patch would not have been possible without the help and input of
Paul Oranje (@poranje).