- 26 Nov, 2019 4 commits
-
-
Adrian Schmutzler authored
TP-Link Archer C60v1 is a dual-band AC1350 router, based on Qualcomm/Atheros QCA9561+QCA9886. Specification: - 775/650/258 MHz (CPU/DDR/AHB) - 64 MB of RAM (DDR2) - 8 MB of FLASH (SPI NOR) - 3T3R 2.4 GHz - 2T2R 5 GHz - 5x 10/100 Mbps Ethernet - 7x LED, 2x button - UART header on PCB Flash instruction (WebUI): Download *-factory.bin image and upload it via the firmwary upgrade function of the stock firmware WebUI. Flash instruction (TFTP): 1. Set PC to fixed ip address 192.168.0.66 2. Download *-factory.bin image and rename it to tp_recovery.bin 3. Start a tftp server with the file tp_recovery.bin in its root directory 4. Turn off the router 5. Press and hold Reset button 6. Turn on router with the reset button pressed and wait ~15 seconds 7. Release the reset button and after a short time the firmware should be transferred from the tftp server 8. Wait ~30 second to complete recovery. Flash instruction under U-Boot, using UART: 1. tftp 0x81000000 ...-sysupgrade.bin 2. erase 0x9f020000 +$filesize 3. cp.b $fileaddr 0x9f020000 $filesize 4. reset Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 6d313da6)
-
Sungbo Eo authored
netifd does not handle network.@device[x].name properly if it contains multiple ifaces separated by spaces. Due to this, board.d lan_mac setup does not work if multiple ifaces are set to LAN by ucidef_set_interface_lan. To fix this, create a device node for each member iface when running config_generate instead. Those are named based on the member ifname: ucidef_set_interface_lan "eth0 eth1.1" ucidef_set_interface_macaddr "lan" "yy:yy:yy:yy:yy:01" will return config device 'lan_eth0_dev' option name 'eth0' option macaddr 'yy:yy:yy:yy:yy:01' config device 'lan_eth1_1_dev' option name 'eth1.1' option macaddr 'yy:yy:yy:yy:yy:01' ref: https://github.com/openwrt/openwrt/pull/2542 Signed-off-by:
Sungbo Eo <mans0n@gorani.run> [always use new scheme, extend description, change commit title] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 298814e6)
-
Lech Perczak authored
In order to make RSSI indicator on the device work out of box, include "rssileds" package in per-device rootfs image by default for Ubiquiti XM and XW devices, namely: - Bullet M (XM/XW) - Rocket M (XM/XW) - Nanostation M (XM/XW) - Nanostation Loco-M (XW) This moves the package addition to the individual devices in order to prevent accidental inclusions of the package when not looking at the parent node carefully enough. Signed-off-by:
Lech Perczak <lech.perczak@gmail.com> [add bullet-m-xw, remove rocket-m-ti, extend commit message] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 08d9c954)
-
Adrian Schmutzler authored
This adds the gpio switch to enable PoE passthrough on Ubiquiti Nanostation (XM/XW). Values are copied from the implementation in ar71xx. GPIO values checked on: - NanoStation M5 XW - NanoStation M2 XM Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 317e98a5)
-
- 24 Nov, 2019 7 commits
-
-
Piotr Dymacz authored
Signed-off-by:
Piotr Dymacz <pepe2k@gmail.com> (cherry picked from commit 10bcf1eb)
-
Piotr Dymacz authored
ALFA Network Quad-E4G is a universal Wi-Fi/4G platform, which offers three miniPCIe (PCIe, USB 2.0, SIM) and a single M.2 B-key (dual-SIM, USB 3.0) slots, RTC and five Gigabit Ethernet ports with PoE support. Specification: - MT7621A (880 MHz) - 256/512 MB of RAM (DDR3) - 16/32+ MB of FLASH (SPI NOR) - optional second SPI flash (8-pin WSON/SOIC) - 1x microSD (SDXC) flash card reader - 5x 10/100/1000 Mbps Ethernet, with passive PoE support (24 V) in LAN1 - optional 802.3at/af PoE module for WAN - 3x miniPCIe slot (with PCIe and USB 2.0 buses, micro SIM and 5 V) - 1x M.2/NGFF B-key 3042 (USB 3.0/2.0, mini + micro SIM) - RTC (TI BQ32002, I2C bus) with backup battery (CR2032) - external hardware watchdog (EM Microelectronic EM6324) - 1x USB 2.0 Type-A - 1x micro USB Type-B for system serial console (Holtek HT42B534) - 11x LED (5 for Ethernet, 5 driven by GPIO, 1x power indicator) - 3x button (reset, user1, user2) - 1x I2C (4-pin, 2.54 mm pitch) header on PCB - 4x SIM (6-pin, 2.00 mm pitch) headers on PCB - 2x UART2/3 (4-pin, 2.54 mm pitch) headers on PCB - 1x mechanical power switch - 1x DC jack with lock (24 V) Other: - U-Boot selects default SIM slot, based on value of 'default_sim' env variable: '1' or unset -> SIM1 (mini), '2' -> SIM2 (micro). This board has additional logic circuit for M.2 SIM switching. The 'sim-select' will work only if both SIM slots are occupied. Otherwise, always slot with SIM inside is selected, no matter 'sim-select' value. - U-Boot enables power in all three miniPCIe and M.2 slots before loading the kernel - this board supports 'dual image' feature (controlled by 'dual_image' U-Boot environment variable) - all three miniPCIe slots have additional 5 V supply on pins 47 and 49 - the board allows to install up to two oversized miniPCIe cards (vendor has dedicated MediaTek MT7615N/D cards for this board) - this board has additional logic circuit controlling PERSTn pins inside miniPCIe slots. By default, PERSTn (GPIO19) is routed to all miniPCIe slots but setting GPIO22 to high allows PERSTn control per slot, using GPIO23-25 (value is inverted) Flash instructions: You can use the 'sysupgrade' image directly in vendor firmware which is based on OpenWrt (make sure to not preserve settings - use 'sysupgrade -n -F ...' command). Alternatively, use web recovery mode in U-Boot: 1. Power the device with reset button pressed, the modem LED will start blinking slowly and after ~3 seconds, when it starts blinking faster, you can release the button. 2. Setup static IP 192.168.1.2/24 on your PC. 3. Go to 192.168.1.1 in browser and upload 'sysupgrade' image. Signed-off-by:
Piotr Dymacz <pepe2k@gmail.com> (backported from commit e68539ac)
-
Piotr Dymacz authored
Signed-off-by:
Piotr Dymacz <pepe2k@gmail.com> (cherry picked from commit 3cfea3a3)
-
Piotr Dymacz authored
ALFA Network R36M-E4G is a dual-SIM, N300 Wi-Fi, compact size platform based on MediaTek MT7620A WiSoC. This product is designed for operation with 4G modem (can be bought in bundle with Quectel EC25, EG25 or EP06) but supports also Wi-Fi modules (miniPCIe slot has USB and PCIe buses). Specification: - MT7620A (580 MHz) - 64/128/256 MB of RAM (DDR2) - 16/32+ MB of FLASH (SPI NOR) - 2x 10/100 Mbps Ethernet, with passive PoE support (24 V) - 2T2R 2.4 GHz (MT7620A), with ext. LNA (RFFM4227) - 1x miniPCIe slot (with PCIe and USB 2.0 buses and optional 5 V) - 2x SIM slot (mini, micro) with detect and switch driven by GPIO - 2x u.fl antenna connectors (for Wi-Fi) - 8x LED (7 driven by GPIO) - 2x button (reset, wifi) - 2x UART (4-pin/2.54 mm pitch, 10-pin/1.27 mm pitch) headers on PCB - 1x I2C (4-pin, 1.27 mm pitch) header on PCB - 1x LED (8-pin, 1.27 mm pitch) header on PCB - 1x DC jack with lock (12 V) Other: - there is a dedicated, 4-pin connector for optional RTC module (Holtek HT138x) with 'enable' input, not available at the time of preparing support for this board - miniPCIe slot supports additional 5 V supply on pins 47 and 49 but a jumper resistor (R174) is not installed by default - U-Boot selects default SIM slot, based on value of 'default_sim' env variable: '1' or unset -> SIM1 (mini), '2' -> SIM2 (micro). This will work only if both slots are occupied, otherwise U-Boot will always select slot with SIM card inside (user can override it later, in user-space) - U-Boot resets the modem, using PERSTn signal, before starting kernel - this board supports 'dual image' feature (controlled by 'dual_image' U-Boot environment variable) Flash instruction: You can use the 'sysupgrade' image directly in vendor firmware which is based on OpenWrt (make sure to not preserve settings - use 'sysupgrade -n -F ...' command). Alternatively, use web recovery mode in U-Boot: 1. Power the device with reset button pressed, the modem LED will start blinking slowly and after ~3 seconds, when it starts blinking faster, you can release the button. 2. Setup static IP 192.168.1.2/24 on your PC. 3. Go to 192.168.1.1 in browser and upload 'sysupgrade' image. Signed-off-by:
Piotr Dymacz <pepe2k@gmail.com> (backported from commit dfecf94c)
-
Piotr Dymacz authored
New U-Boot version for MediaTek MT76x8/MT762x based ALFA Network boards includes support for a 'dual image' feature. Users can enable it using U-Boot environment variable 'dual_image' ('1' -> enabled). When 'dual image' feature is enabled, U-Boot will modify DTB and divide the original 'firmware' flash area into two, equal in size and aligned to 64 KB partitions: 'firmware' and 'backup'. U-Boot will also adjust size of 'firmware' area to match installed flash chip size. U-Boot will load kernel from active partition which is marked with env variable 'bootactive' ('1' -> first partition, '2' -> second partition) and rename both partitions accordingly ('firmware' <-> 'backup'). There are 3 additional env variables used to control 'dual image' mode: - bootlimit - maximum number of unsuccessful boot tries (default: '3') - bootcount - current number of boot tries - bootchanged - flag which informs that active partition was changed; if it is set and 'bootcount' reaches 'bootlimit' value, U-Boot will start web-based recovery which then updates both partitions with provided image Signed-off-by:
Piotr Dymacz <pepe2k@gmail.com> (backported from commit bc173ddd)
-
Piotr Dymacz authored
Signed-off-by:
Piotr Dymacz <pepe2k@gmail.com>
-
Chuanhong Guo authored
Upstream kernel added support for RAW_APPENDED_DTB on ralink arch in the following commit: 02564fc89d3d ("ralink: Introduce fw_passed_dtb to arch/mips/ralink") Use upstream solution and get rid of our OWRTDTB hack. This commit set DEVICE_DTS to $$(DTS) instead of replacing DTS with DEVICE_DTS in device profile because DTS variable will be dropped in later commits. Signed-off-by:
Chuanhong Guo <gch981213@gmail.com> [Tested on mt7621/mt76x8] Tested-by:
Chuanhong Guo <gch981213@gmail.com> [Tested on rt305x/mt7620] Tested-by:
INAGAKI Hiroshi <musashino.open@gmail.com> (cherry picked from commit 7a8d3432 ) Signed-off-by:
Piotr Dymacz <pepe2k@gmail.com>
-
- 23 Nov, 2019 6 commits
-
-
Stijn Segers authored
Ath10k packages were removed from ar71xx in master in commit 34113999 ("ar71xx: Remove ath10k packages from archer-c7-v1 (fixes FS#1743)") but ath79 in master and the 19.07 branch still suffer from the issue. Signed-off-by:
Stijn Segers <foss@volatilesystems.org> [commit subject and description facelift] Signed-off-by:
Petr Štetiar <ynezz@true.cz>
-
Yousong Zhou authored
Fixes b7c58a1e ("kernel: nf_conntrack_rtcache: fix cleanup on netns delete and rmmod") Signed-off-by:
Yousong Zhou <yszhou4tech@gmail.com> (cherry picked from commit b3779e92)
-
Yousong Zhou authored
Fixes b7c58a1e ("kernel: nf_conntrack_rtcache: fix cleanup on netns delete and rmmod") Resolves FS#2624 Signed-off-by:
Yousong Zhou <yszhou4tech@gmail.com> (cherry picked from commit 1c5df850)
-
Kamil Wcislo authored
It seems that there is a missing PKG_SOURCE_URL_FILE support. This little fix adds the support for packages to change the name of the downloaded file. Sometimes it is desirable to change the downloaded archive file name, like for mitigating name conflicts for different packages (some files on the server could be named like, e.g. 2018-01-01.tar.gz) or for the cases that there is no name for the file in the URL (e.g. http://someserver.com/download ). Signed-off-by:
Kamil Wcislo <kamil.wcislo@lpnplant.io> Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net> (cherry picked from commit 09c428ec)
-
Yousong Zhou authored
Fixes FS#1472, FS#2353, FS#2426 Fixes: b3f95490 ("kernel: generic: Add kernel 4.14 support") Signed-off-by:
Yousong Zhou <yszhou4tech@gmail.com> Acked-by:
Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit b7c58a1e)
-
Sebastian Kemper authored
Commit b3d8b3ab introduced a new test: [ -n "$noscan" -a "$noscan" -gt 0 ] && hostapd_noscan=1 But if length of "$noscan" is zero (noscan is not set) this doesn't stop the shell to evaluate the rest of the test. root@hank2:~# [ -n "$noscan" -a "$noscan" -gt 0 ] ash: out of range root@hank2:~# So when radios are brought up this shows in the log: Sat Nov 23 10:51:38 2019 daemon.info procd: - init complete - Sat Nov 23 10:52:24 2019 daemon.notice netifd: radio1 (1243): sh: out of range Sat Nov 23 10:52:25 2019 user.notice firewall: Reloading firewall due to ifup of wan (eth0.2) Sat Nov 23 10:52:25 2019 daemon.notice netifd: radio0 (1242): sh: out of range Sat Nov 23 10:52:26 2019 authpriv.info dropbear[1536]: Not backgrounding This commit sets noscan to 0 if unset and removes the gratuitous length check, preventing the warning. Signed-off-by:
Sebastian Kemper <sebastian_ml@gmx.net> (cherry picked from commit 28d84331 ) Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
- 22 Nov, 2019 18 commits
-
-
Hauke Mehrtens authored
This adds the following patch from debian: https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?h=debian/stable&id=09fe1fd2a1f9efc3091b4fc61f1876d0785956a8 libsupport: add checks to prevent buffer overrun bugs in quota code Signed-off-by:
Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 0062aad8)
-
David Bauer authored
Hardware -------- SoC: Qualcomm IPQ4019 RAM: 256M DDR3 FLASH: 128M NAND WiFi: 2T2R IPQ4019 bgn 2T2R IPQ4019 a/n/ac ETH: Atheros AR8033 RGMII PHY BTN: 1x Connect (WPS) LED: Power (green/red/yellow) Installation ------------ 1. Grab the uboot for the Device from the 'u-boot-fritz1200' subdirectory. Place it in the same directory as the 'eva_ramboot.py' script. It is located in the 'scripts/flashing' subdirectory of the OpenWRT tree. 2. Assign yourself the IP address 192.168.178.10/24. Connect your Computer to one of the boxes LAN ports. 3. Connect Power to the Box. As soon as the LAN port of your computer shows link, load the U-Boot to the box using following command. > ./eva_ramboot.py --offset 0x85000000 192.168.178.1 uboot-fritz1200.bin 4. The U-Boot will now start. Now assign yourself the IP address 192.168.1.70/24. Copy the OpenWRT initramfs (!) image to a TFTP server root directory and rename it to 'FRITZ1200.bin'. 5. The Box will now boot OpenWRT from RAM. This can take up to two minutes. 6. Copy the U-Boot and the OpenWRT sysupgrade (!) image to the Box using scp. SSH into the Box and first write the Bootloader to both previous kernel partitions. > mtd write /path/to/uboot-fritz1200.bin uboot0 > mtd write /path/to/uboot-fritz1200.bin uboot1 7. Remove the AVM filesystem partitions to make room for our kernel + rootfs + overlayfs. > ubirmvol /dev/ubi0 --name=avm_filesys_0 > ubirmvol /dev/ubi0 --name=avm_filesys_1 8. Flash OpenWRT peristently using sysupgrade. > sysupgrade -n /path/to/openwrt-sysupgrade.bin Signed-off-by:
David Bauer <mail@david-bauer.net> (cherry picked from commit 7f187229 ) Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net>
-
David Bauer authored
Signed-off-by:
David Bauer <mail@david-bauer.net> (cherry picked from commit c0f40781 ) Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net>
-
David Bauer authored
f92be9d add support for AVM FRITZ!Repeater 1200 d651302 enable support for Atheros AR8033 PHY e4c857c add machtype override hack Signed-off-by:
David Bauer <mail@david-bauer.net> (cherry picked from commit 36f43b61 ) Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net>
-
Hauke Mehrtens authored
Signed-off-by:
Hauke Mehrtens <hauke@hauke-m.de> Tested-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
Hauke Mehrtens authored
The kernel update added one "+" too much. Fixes: db345220 ("kernel: bump 4.14 to 4.14.155") Signed-off-by:
Hauke Mehrtens <hauke@hauke-m.de>
-
Hauke Mehrtens authored
This was found by the build bot. Fixes: db345220 ("kernel: bump 4.14 to 4.14.155") Signed-off-by:
Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 103e49f6)
-
Jo-Philipp Wich authored
8174814 utils: persist effective extra_src and extra_dest options in state file 72a486f zones: fix emitting match rules for zones with only "extra" options Signed-off-by:
Jo-Philipp Wich <jo@mein.io> (cherry picked from commit 482114d3)
-
Hans Dedecker authored
daed0cf utils: fix resource leak Signed-off-by:
Hans Dedecker <dedeckeh@gmail.com> (cherry picked from commit 27bf8abe)
-
Koen Vandeputte authored
While at it, also reorder the items for improved readability. Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com> (cherry picked from commit 6b2f953db346cfb4ddf05654efa3ad7eb84ed99f)
-
Koen Vandeputte authored
Refreshed all patches. Altered patches: - 707-dpaa-ethernet-support-layerscape.patch Remove upstreamed: - 034-v4.20-MIPS-BCM47XX-Enable-USB-power-on-Netgear-WNDR3400v3.patch - 001-4.21-01-BCM63XX-fix-switch-core-reset-on-BCM6368.patch - 073-qcom-ipq4019-fix-cpu0-s-qcom-saw2-reg-value.patch Compile-tested on: cns3xxx Runtime-tested on: cns3xxx Signed-off-by:
Koen Vandeputte <koen.vandeputte@ncentric.com>
-
Petr Štetiar authored
wireless-regdb fails to build if there is python2 installed from package feeds, as staging_dir/hostpkg/bin/python is python2 and staging_dir/hostpkg/bin takes precedence over staging_dir/host/bin (proper place with python -> python3 symlink) which leads to the build failure of wireless-regdb, so this patch makes it explicit which python should be used. Reported-by:
Hauke Mehrtens <hauke@hauke-m.de> Tested-by:
Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> Tested-by:
Russell Senior <russell@personaltelco.net> Tested-by:
Lucian Cristian <lucian.cristian@gmail.com> Signed-off-by:
Petr Štetiar <ynezz@true.cz> (cherry picked from commit b6bae4a2)
-
Kevin Darbyshire-Bryant authored
Refresh patches to tidy up some fuzz warnings Signed-off-by:
Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> (cherry picked from commit 12840674)
-
John Crispin authored
Signed-off-by:
John Crispin <john@phrozen.org> (cherry picked from commit 8562e779)
-
Petr Štetiar authored
As it's an architecture-independent binary file. Ref: https://github.com/openwrt/openwrt/pull/1521#issuecomment-514687053 Suggested-by:
Deng Qingfang <dengqf6@mail2.sysu.edu.cn> Signed-off-by:
Petr Štetiar <ynezz@true.cz> (cherry picked from commit 57d1c05e)
-
Petr Štetiar authored
Usage of predefined make variables is preferred. Signed-off-by:
Petr Štetiar <ynezz@true.cz> (cherry picked from commit d3853d17)
-
Hauke Mehrtens authored
This backports a patch to build it work with python2 in addition to python3. Signed-off-by:
Hauke Mehrtens <hauke@hauke-m.de> Acked-by:
Petr Štetiar <ynezz@true.cz> (cherry picked from commit d3a8a626)
-
Zachary Riedlshah authored
Fixes build issues on a python3 host (issues with the print statement formatting in the current build). Includes 100-regdb-write-firmware-file-format-version-code-20.patch and other fixes. Closes bugs.openwrt.org/index.php?do=details&task_id=1605. Uses the tarball as requested. Signed-off-by:
Zachary Riedlshah <git@zacharyrs.me> (cherry picked from commit ef3f868d)
-
- 21 Nov, 2019 5 commits
-
-
Adrian Schmutzler authored
TP-Link TL-WDR4900 v2 only has one combined WPS/Reset button, so don't set up an RFKILL for this device. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 25127f58)
-
Adrian Schmutzler authored
In ar71xx there is only one combined mach file for Archer C5/C7 and TL-WDR4900 v2. This one uses the same LED struct for all devices, defining "green" LEDs for them. However, WDR4900 uses blue front LEDs, while only C5/C7 uses green ones. Despite, in base-files WDR4900 is actually set up with "blue" for the mentioned LEDs. Thus, this patch creates a separate LED struct for WDR4900, so the LEDs can be set up correctly. Despite, the wlan5g LED is removed as it is controlled by ath9k chip for WDR4900 (in contrast to C5/C7). Note: While front LEDs are blue, USB LEDs (on the back) are green, so colors are mixed intentionally for the WDR4900 v2. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit 93f2bcc3)
-
Sungbo Eo authored
The stock firmware and bootloader only accept uImage with names that match certain patterns. This patch enables OpenWrt installation from stock firmware without having to reflash the bootloader or access the UART console. Installation via web interface: 1. Flash **initramfs** image through the stock web interface. 2. Boot into OpenWrt and perform sysupgrade with sysupgrade image. Signed-off-by:
Sungbo Eo <mans0n@gorani.run> (cherry picked from commit 19800ac0 ) [backported] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Adrian Schmutzler authored
The MAC address setup of the TL-WDR4900 v2 is different from the C5/C7. This aligns ar71xx with the setup in ath79: wlan0 (5GHz) : -2 wlan1 (2.4GHz) : -1 eth1 (LAN) : 0 eth0 (WAN) : 1 Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit a9d3084b)
-
Adrian Schmutzler authored
As discussed in 1d18a14a ("ath79: really fix TP-Link Archer C7 v2 MAC address"), stock firmware MAC address assignment is actually as follows: wlan0 (5GHz) : -1 wlan1 (2.4GHz) : 0 eth1 (LAN) : 0 eth0 (WAN) : 1 This has never been fixed for ar71xx, so let's do it now. Note that with WDR4900 v2 even both wlan0 and wlan1 where assigned to basemac-1 before ... Fixes: FS#408 Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> (cherry picked from commit a0212680)
-