Re: [OpenWrt-Devel] [PATCH] brcm47xx: move wrt610n_v2 and e3000_v1 to mips74k subtarget
Hi Rafał: Date: Sun, 19 Oct 2014 07:48:04 +0200 Subject: Re: [PATCH] brcm47xx: move wrt610n_v2 and e3000_v1 to mips74k subtarget From: zaj...@gmail.com To: nlhi...@hotmail.com CC: openwrt-devel@lists.openwrt.org; ha...@hauke-m.de On 19 October 2014 00:19, Nathan Hintz nlhi...@hotmail.com wrote: Neither are SSB Wifi They are. https://wikidevi.com/wiki/Linksys_WRT610N_v2 BCM4322 which is SSB based https://wikidevi.com/wiki/Linksys_E3000 BCM4322 which is SSB based I see your point; however, the E3000 and WRT610Nv2 are mips74k, and would get the same benefit from using the mips74k subtarget (mips32r2) as all of the others. The only difference that I can see is that the E3000 and WRT610nV2 are required to use the proprietary Broadcom wl driver (which is one of the supported profiles under the mips74k subtarget) in order to utilize the 5GHz radio; whereas, with at least some of the others, using the proprietary Broadcom wl driver is optional. I could modify the patch description to include this info and to keep the SSB Wifi comment if you think it is necessary. There are few devices we don't have perfect solution for. I'm aware that these 2 devices are MIPS 74K, but we're still bound to two solutions: 1) Use generic subtarget for E3000/WRT610Nv2 and make them suffer from less optimized code. That's what we do now. 2) Use mips74k subtarget for them, add ssb support to the mips74k, and make firmware bigger for dozens of other devices. There are no additional ssb bits that need to be added to the mips74k subtarget. The existing mips74k trx works out of the box on E3000 (and should work on WRT610nV2 as well). As you mentioned earlier, wl.ko doesn't require any of the in-kernel SSB parts, as it handles everything it needs internally. Simply build the mips74k target as it exists today; include the proprietary driver (or load it separately), and it all just works. The patch I've provided should be the only change that is needed (to build the device specific .bin files). In such situation we decided it's better option to make 2 devices suffer than dozens of other. We can't really afford running buildbot with dozens of subtargets. And no, forcing E3000/WRT610Nv2 to use closed source drivers, because we don't include ssb in a firmware is not an option. We are not DD-WRT :P Close source driver could be an *alternative*. Btw. b43 recently gained 5 GHz support for N-PHY cards (BCM4322), I'm not sure if it's available in BB stable, but should be in CC (shapshots) for sure. -- Rafał Nathan ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ramips: add support for Nexx WT3020 devices
From: Roger Pueyo Centelles roger.pu...@guifi.net --- target/linux/ramips/base-files/etc/board.d/01_leds | 3 + .../linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/etc/diag.sh | 3 + target/linux/ramips/base-files/lib/ramips.sh | 3 + .../ramips/base-files/lib/upgrade/platform.sh | 23 ++--- target/linux/ramips/dts/WT3020-4M.dts | 100 + target/linux/ramips/dts/WT3020-8M.dts | 100 + target/linux/ramips/image/Makefile | 2 + 8 files changed, 224 insertions(+), 11 deletions(-) create mode 100644 target/linux/ramips/dts/WT3020-4M.dts create mode 100644 target/linux/ramips/dts/WT3020-8M.dts diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 26f384d..7ca7ffb 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -213,6 +213,9 @@ case $board in wt1520) set_wifi_led rt2800pci-phy0::radio ;; + wt3020) + ucidef_set_led_default power power nexx:blue:power 0 + ;; y1 |\ y1s) ucidef_set_led_default power power lenovo:blue:power 1 diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 7ecec5f..ff8fbc0 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -127,6 +127,7 @@ ramips_setup_interfaces() hg255d | \ rt-n14u | \ wrtnode | \ + wt3020 | \ ur-326n4g | \ zbt-wa05) ucidef_set_interfaces_lan_wan eth0.1 eth0.2 diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index aed7d6a..2977099 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -170,6 +170,9 @@ get_status_led() { nexx-wt1520) status_led=nexx-wt1520:white:power ;; + nexx-wt3020) + status_led=nexx:blue:power + ;; mzk-w300nh2) status_led=mzkw300nh2:green:power ;; diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 08c5dff..88fa623 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -184,6 +184,9 @@ ramips_board_detect() { *Nexx WT1520) name=wt1520 ;; + *Nexx WT3020) + name=wt3020 + ;; *NW718) name=nw718 ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 52f3f0a..0d8bc44 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -78,30 +78,31 @@ platform_check_image() { sl-r7205 | \ tew-691gr | \ tew-692gr | \ - w306r-v20 |\ - w502u |\ - wr6202 |\ + ur-326n4g |\ + ur-336un |\ v22rw-2x2 | \ vocore | \ + w306r-v20 |\ + w502u |\ + whr-g300n |\ wl341v3 | \ wl-330n | \ wl-330n3g | \ wl-351 | \ - wnce2001 | \ wli-tx4-ag300n | \ - whr-g300n |\ - wt1520 |\ - ur-326n4g |\ - ur-336un |\ - wr512-3gn |\ wmr300 |\ + wnce2001 | \ + wr512-3gn |\ + wr6202 |\ wr8305rt |\ wrtnode |\ + wt1520 |\ + wt3020 |\ x5 |\ x8 |\ - zbt-wa05 |\ y1 |\ - y1s) + y1s |\ + zbt-wa05) [ $magic != 27051956 ] { echo Invalid image type. return 1 diff --git a/target/linux/ramips/dts/WT3020-4M.dts b/target/linux/ramips/dts/WT3020-4M.dts new file mode 100644 index 000..7583680 --- /dev/null +++ b/target/linux/ramips/dts/WT3020-4M.dts @@ -0,0 +1,100 @@ +/dts-v1/; + +/include/ mt7620n.dtsi + +/ { + compatible = wt3020, ralink,mt7620n-soc; + model = Nexx WT3020; + + palmbus@1000 { +gpio2: gpio@660 { +status = okay; +}; + +gpio3: gpio@688 { +status = okay; +}; + + spi@b00 { + status = okay; + + m25p80@0 { + #address-cells = 1; + #size-cells = 1; + compatible = w25q32; + reg = 0 0; + linux,modalias = m25p80, w25q32; +
Re: [OpenWrt-Devel] [PATCH] ramips: add support for Nexx WT3020 devices
Hi, can you send the reordering part of the patch as a separate patch please ? John On 19/10/2014 16:46, open...@rogerpueyo.com wrote: diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 52f3f0a..0d8bc44 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -78,30 +78,31 @@ platform_check_image() { sl-r7205 | \ tew-691gr | \ tew-692gr | \ - w306r-v20 |\ - w502u |\ - wr6202 |\ + ur-326n4g |\ + ur-336un |\ v22rw-2x2 | \ vocore | \ + w306r-v20 |\ + w502u |\ + whr-g300n |\ wl341v3 | \ wl-330n | \ wl-330n3g | \ wl-351 | \ - wnce2001 | \ wli-tx4-ag300n | \ - whr-g300n |\ - wt1520 |\ - ur-326n4g |\ - ur-336un |\ - wr512-3gn |\ wmr300 |\ + wnce2001 | \ + wr512-3gn |\ + wr6202 |\ wr8305rt |\ wrtnode |\ + wt1520 |\ + wt3020 |\ x5 |\ x8 |\ - zbt-wa05 |\ y1 |\ - y1s) + y1s |\ + zbt-wa05) [ $magic != 27051956 ] { echo Invalid image type. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ramips: sort boards in upgrade/platform.sh alphabetically
From: Roger Pueyo Centelles roger.pu...@guifi.net --- .../ramips/base-files/lib/upgrade/platform.sh | 36 +++--- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 52f3f0a..61a0935 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -17,7 +17,6 @@ platform_check_image() { 3g-6200n | \ 3g-6200nl | \ 3g300m | \ - w150m | \ air3gii | \ all0239-3g | \ all0256n | \ @@ -25,34 +24,33 @@ platform_check_image() { all5003 | \ ar725w | \ asl26555 | \ + awapn2403 | \ awm002-evb | \ awm003-evb | \ - awapn2403 | \ bc2 | \ broadway | \ carambola | \ d105 | \ + dap-1350 | \ dcs-930 | \ dir-300-b1 | \ dir-300-b7 | \ dir-320-b1 | \ dir-600-b1 | \ dir-600-b2 | \ - dir-615-h1 | \ dir-615-d | \ + dir-615-h1 | \ dir-620-a1 | \ dir-620-d1 | \ dir-810l | \ - dap-1350 | \ esr-9753 | \ f7c027 | \ fonera20n | \ - rt-n13u | \ freestation5 | \ - hw550-3g | \ hg255d | \ hlk-rm04 | \ ht-tm02 | \ + hw550-3g | \ ip2202 | \ m3 | \ m4 | \ @@ -71,6 +69,7 @@ platform_check_image() { rp-n53 | \ rt-g32-b1 | \ rt-n10-plus | \ + rt-n13u | \ rt-n14u | \ rt-n15 | \ rt-n56u | \ @@ -78,30 +77,31 @@ platform_check_image() { sl-r7205 | \ tew-691gr | \ tew-692gr | \ - w306r-v20 |\ - w502u |\ - wr6202 |\ + ur-326n4g |\ + ur-336un |\ v22rw-2x2 | \ vocore | \ - wl341v3 | \ + w150m | \ + w306r-v20 |\ + w502u |\ + whr-g300n |\ wl-330n | \ wl-330n3g | \ wl-351 | \ - wnce2001 | \ + wl341v3 | \ wli-tx4-ag300n | \ - whr-g300n |\ - wt1520 |\ - ur-326n4g |\ - ur-336un |\ - wr512-3gn |\ wmr300 |\ + wnce2001 | \ + wr512-3gn |\ + wr6202 |\ wr8305rt |\ wrtnode |\ + wt1520 |\ x5 |\ x8 |\ - zbt-wa05 |\ y1 |\ - y1s) + y1s |\ + zbt-wa05) [ $magic != 27051956 ] { echo Invalid image type. return 1 -- 2.1.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] ramips: add support for Nexx WT3020 devices
From: Roger Pueyo Centelles roger.pu...@guifi.net --- ...amips-add-support-for-Nexx-WT3020-devices.patch | 319 + target/linux/ramips/base-files/etc/board.d/01_leds | 3 + .../linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/etc/diag.sh | 3 + target/linux/ramips/base-files/lib/ramips.sh | 3 + .../ramips/base-files/lib/upgrade/platform.sh | 1 + target/linux/ramips/dts/WT3020-4M.dts | 100 +++ target/linux/ramips/dts/WT3020-8M.dts | 100 +++ target/linux/ramips/image/Makefile | 2 + 9 files changed, 532 insertions(+) create mode 100644 0001-ramips-add-support-for-Nexx-WT3020-devices.patch create mode 100644 target/linux/ramips/dts/WT3020-4M.dts create mode 100644 target/linux/ramips/dts/WT3020-8M.dts diff --git a/0001-ramips-add-support-for-Nexx-WT3020-devices.patch b/0001-ramips-add-support-for-Nexx-WT3020-devices.patch new file mode 100644 index 000..a67b275 --- /dev/null +++ b/0001-ramips-add-support-for-Nexx-WT3020-devices.patch @@ -0,0 +1,319 @@ +From fceb829eca2bc088ad66b18099b57dc96f1bae43 Mon Sep 17 00:00:00 2001 +From: Roger Pueyo Centelles roger.pu...@guifi.net +Date: Sun, 19 Oct 2014 17:50:01 +0200 +Subject: [PATCH] ramips: add support for Nexx WT3020 devices + +--- + target/linux/ramips/base-files/etc/board.d/01_leds | 3 + + .../linux/ramips/base-files/etc/board.d/02_network | 1 + + target/linux/ramips/base-files/etc/diag.sh | 3 + + target/linux/ramips/base-files/lib/ramips.sh | 3 + + .../ramips/base-files/lib/upgrade/platform.sh | 1 + + target/linux/ramips/dts/WT3020-4M.dts | 100 + + target/linux/ramips/dts/WT3020-8M.dts | 100 + + target/linux/ramips/image/Makefile | 2 + + 8 files changed, 213 insertions(+) + create mode 100644 target/linux/ramips/dts/WT3020-4M.dts + create mode 100644 target/linux/ramips/dts/WT3020-8M.dts + +diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds +index 26f384d..7ca7ffb 100755 +--- a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds +@@ -213,6 +213,9 @@ case $board in + wt1520) + set_wifi_led rt2800pci-phy0::radio + ;; ++ wt3020) ++ ucidef_set_led_default power power nexx:blue:power 0 ++ ;; + y1 |\ + y1s) + ucidef_set_led_default power power lenovo:blue:power 1 +diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network +index 7ecec5f..ff8fbc0 100755 +--- a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network +@@ -127,6 +127,7 @@ ramips_setup_interfaces() + hg255d | \ + rt-n14u | \ + wrtnode | \ ++ wt3020 | \ + ur-326n4g | \ + zbt-wa05) + ucidef_set_interfaces_lan_wan eth0.1 eth0.2 +diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh +index aed7d6a..2977099 100755 +--- a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh +@@ -170,6 +170,9 @@ get_status_led() { + nexx-wt1520) + status_led=nexx-wt1520:white:power + ;; ++ nexx-wt3020) ++ status_led=nexx:blue:power ++ ;; + mzk-w300nh2) + status_led=mzkw300nh2:green:power + ;; +diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh +index 08c5dff..88fa623 100755 +--- a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh +@@ -184,6 +184,9 @@ ramips_board_detect() { + *Nexx WT1520) + name=wt1520 + ;; ++ *Nexx WT3020) ++ name=wt3020 ++ ;; + *NW718) + name=nw718 + ;; +diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh +index 61a0935..c9a418e 100755 +--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh +@@ -97,6 +97,7 @@ platform_check_image() { + wr8305rt |\ + wrtnode |\ + wt1520 |\ ++ wt3020 |\ + x5 |\ + x8 |\ + y1 |\ +diff --git a/target/linux/ramips/dts/WT3020-4M.dts b/target/linux/ramips/dts/WT3020-4M.dts +new file mode 100644 +index 000..7583680 +--- /dev/null b/target/linux/ramips/dts/WT3020-4M.dts +@@ -0,0 +1,100 @@ ++/dts-v1/; ++ ++/include/ mt7620n.dtsi ++ ++/ { ++ compatible = wt3020, ralink,mt7620n-soc; ++ model = Nexx WT3020; ++ ++ palmbus@1000 { ++gpio2:
Re: [OpenWrt-Devel] [PATCH v4] brcm-wl: fix bash comparison error
* Nathan Hintz nlhi...@hotmail.com [19.10.2014 08:49]: case $leddc in '0x'*) leddc='0x005a000a' ;; esac IMHO the approach from felix does not work: root@box:~ echo $((0x)) 65535 root@box:~ echo $((0x\n)) -ash: arithmetic syntax error the real would be the fix the output of 'wlc'. 'wlc' is not broken, a simple test case demonstrates it works as expected: root@e3000-1:~# wlc ifname wl0 leddc 0x005a000a root@e3000-1:~# wlc ifname wl0 leddc 0x root@e3000-1:~# wlc ifname wl0 leddc 0x root@e3000-1:~# leddc=$(wlc ifname wl0 leddc) root@e3000-1:~# [ $leddc = 0x ] echo yes yes root@e3000-1:~# wlc ifname wl0 leddc 0x005a000a root@e3000-1:~# wlc ifname wl0 leddc 0x005a000a root@e3000-1:~# leddc=$(wlc ifname wl0 leddc) root@e3000-1:~# [ $leddc = 0x ] echo yes root@e3000-1:~# ah - ok. sorry felix - i really was thinking that it outputs a string '0x\n' (with the symbol of a newline). so your approach is correct but without quotes, so: [ $((leddc)) -eq $((0x)) ] ... bye, bastian - please Álvaro send a new patch ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Minicom - wrong Download
the download point to minicom-2.7. but in this directory exists only minicom-2.3. lg signature.asc Description: PGP signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Ubiquiti EdgeRouter Lite questions
Good evening, I've been told that this router is great only when using EdgeOS, because of proprietary drivers and optimizations. Is there anyone working on this router that can confirm this information? Is there any benchmarks I could do and compare between OpenWRT and EdgeOS? Thanks in advance ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Minicom - wrong Download
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have checked the package repositories and .. * the latest stable release contains minicom 2.7-1 * the latest snapshots contains minicom 2.7-1 I have also checked the package Makefiles and those are referring to version 2.7. Would you be so kind to refer what directory are you mentioning? Also do not forget to use opkg update! Have a nice day! Jiri Slachta Dne 20/10/2014 v 00:26 smile...@gmail.com napsal(a): the download point to minicom-2.7. but in this directory exists only minicom-2.3. lg ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJURJHMAAoJECilMVBDttCP3uYQAI9muS77bae6B20ODM3FP+U2 72gYNgwlPW+pLb4FS1uHPZImagXbLQTGGJMU+yVyaMsRpr8vpmo/xZ9m4ZgHM/jm 2DpEAetTa3rG8RzeBelBI2hreidJFkqfsiRnhcTvsiBHmf0de1U5mcQRF3oP7cq3 o7nJ2Jm6b29XCE4HJ0vhfODwgVy8hhw+6R7dvbuU8nDVOLy6hBbEYwnxpO6q/OOn feectwmlKoyO0IJASiD7uyxonmYz9ARa3H0d6Ncs39IRXNkStJ/QvyvplKYnZaSR IaU2M0qgQE/biiok1vDKyrlVxmqGy0t00vvxwES5iBlsGkCWA53jCn4WjEpDz1+n y9JiEprL6CkTUtlDETTEMH8ztecTccim6Pb0wa3VyTvdLVfkMdDkTEu/rKJZAOX3 IwU72Lwjxq7lWpImJ+M8febBuiiF9S5dnOXt7hLuX1GOyEufkb+GKHhdg4qSW2nn 5nJMeyaM6dpJrPNGyw+N+WfhTl9zDDVXlBo0dXkiwPa3ajLGmWq7j30E0z1kpPy0 OghUBsKvFKJqft0zTYJtvNSqhfmPmglQxFN8pf++1+4YW7H82tP2dx4Z2B7Fhrwx FYUtYDGyyKq8V2+xFExuEq1AkKy9kj7OnjA2MUNoMOd8Gbscqv/UKdVWu7CqwxJf TvWOD83YWXK2pzsxHlhS =UjUA -END PGP SIGNATURE- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel