Matt Merhar [Mon, 30 Jul 2018 21:21:57 +0000 (17:21 -0400)]
kernel: switch compatible property for RedBoot DT binding
This changes the DT binding's compatible property to
"ecoscentric,redboot-fis-partitions", removing the existing reference to
Red Hat.
Per the documentation hosted at eCosCentric's website, eCosCentric is
RedBoot's sole commercial maintainer since 2002, and the project has
been under the stewardship of the Free Software Foundation since 2008.
This also updates the property in the Inventel Livebox 1 .dts, the
binding's only current user.
Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
(backported from
a2eaaaaf4b88f8e917203d79d833a9686a61022f)
Christian Lamparter [Mon, 30 Jul 2018 20:33:51 +0000 (22:33 +0200)]
kernel: modules: fix kmod-regmap
This patch fixes the a compile issue that was triggered by
apm821xx/sata when kmod-regmap was selected.
The CONFIG_REGMAP is declared in drivers/base/regmap/Kconfig
as type "bool" and not "tristate". Hence the symbol should
never be set to module, as this confuses the #if CONFIG_REGMAP
guards in include/linux/regmap.h:
|.../drivers/regulator/core.c:4041: undefined reference to `dev_get_regmap'
|.../drivers/regulator/core.c:4042: undefined reference to `dev_get_regmap'
|.../drivers/regulator/core.c:4044: undefined reference to `dev_get_regmap'
|.../drivers/regulator/helpers.o: In function `regulator_is_enabled_regmap':
|.../drivers/regulator/helpers.c:36: undefined reference to `regmap_read'
|...
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from
d00913d1215b4877da67431b3dadf51fe5d0c443)
Sven Eckelmann [Mon, 30 Jul 2018 15:43:48 +0000 (17:43 +0200)]
ipq40xx: Limit usable channels for OpenMesh A62 PHYs
The OpenMesh A62 is a tri-band device (1x 2.4GHz, 2x 5GHz) with special
filters in front of the RX+TX paths to the 5GHz PHYs. These filtered
channel can in theory still be used by the hardware but the signal strength
is reduced so much that it makes no sense.
Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
(backported from
e3b8ae2b09e137ce2eae33551923daf302293a0c)
Sven Eckelmann [Mon, 30 Jul 2018 15:43:09 +0000 (17:43 +0200)]
mac80211: ath10k: Limit available channels via DT ieee80211-freq-limit
Tri-band devices (1x 2.4GHz + 2x 5GHz) often incorporate special filters in
the RX and TX path. These filtered channel can in theory still be used by
the hardware but the signal strength is reduced so much that it makes no
sense.
There is already a DT property to limit the available channels but ath10k
has to manually call this functionality to limit the currrently set wiphy
channels further.
Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
(backported from
ef39d0079b4efd18f0d39971c66989d5a6f34eca)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Torbjörn Jansson [Mon, 30 Jul 2018 13:59:20 +0000 (15:59 +0200)]
kernel: add kmod-iio-htu21
This adds support for the htu21 humidity and temperature sensor.
To get it to work you have to do something like this:
echo "htu21 0x40" >/sys/class/i2c-dev/i2c-1/device/new_device
for example by adding it to rc.local
Compile tested on brcm2708 and I have used an earlier version of this
patch for more than a year.
Signed-off-by: Torbjörn Jansson <torbjorn.jansson@mbox200.swipnet.se>
(backported from
af9a96d23eda3c9989e8b80c9ad2a9c41334aefd)
John Crispin [Mon, 30 Jul 2018 15:47:06 +0000 (17:47 +0200)]
ar71xx: fix TL-WR1043N v5 port mapping
fixes
5660c8fb20 ("ar71xx: TL-WR1043N v5: fix mapping of LAN ports to labels on housing.")
Signed-off-by: John Crispin <john@phrozen.org>
(backported from
eddf4eae9777bf7328ece08451752abeab315919)
Tim Thorpe [Wed, 18 Apr 2018 22:50:05 +0000 (17:50 -0500)]
ar71xx: TL-WR1043N v5: fix mapping of LAN ports to labels on housing.
Reversed the numbering of the LAN ports in Luci so as to match the port numbers on the housing.
Signed-off-by: Tim Thorpe <tim@tfthorpe.net>
(backported from
5660c8fb20d056eac495647bb1116883f269ed8d)
Tim Thorpe [Tue, 13 Feb 2018 15:26:18 +0000 (09:26 -0600)]
ar71xx: TL-WR1043N v4/v5: add orange WAN LED support
Add missing definitions for the orange WAN LED on the
TL-WR1043N(D) v4 and v5.
Change the name of a MAC address offset constant to
make it consistent with the format of the
existing constants.
Signed-off-by: Tim Thorpe <tim@tfthorpe.net>
(backported from
d834ad9ac34a1a94195cee08e1d389e7b7edab20)
INAGAKI Hiroshi [Thu, 26 Jul 2018 14:24:22 +0000 (23:24 +0900)]
ramips: add support for ELECOM WRC-2533GST
ELECOM WRC-2533GST is a 2.4/5 GHz band 11ac rotuer, based on
MediaTek MT7621A.
Specification:
- MT7621A (2-Core, 4-Threads)
- 128 MB of RAM (DDR3)
- 16 MB of Flash (SPI)
- 4T4R 2.4/5 GHz wifi
- MediaTek MT7615
- 5x 10/100/1000 Mbps Ethernet
- 4x LEDs, 6 keys (2x buttons, 1x slide switch)
- UART header on PCB
- Vcc, GND, TX, RX from ethernet port side
- baudrate: 57600 bps
Flash instruction using factory image:
1. Connect the computer to the LAN port of WRC-2533GST
2. Connect power cable to WRC-2533GST and turn on it
3. Access to "https://192.168.2.1/" and open firmware update
page ("ファームウェア更新")
4. Select the OpenWrt factory image and click apply ("適用")
button
5. Wait ~150 seconds to complete flashing
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
(backported from
ce93445cd6058ae37ca3d257792f68cd98e758da)
Kjel Delaey [Tue, 5 Jun 2018 13:47:05 +0000 (15:47 +0200)]
x86: add support to set GRUB menu entry title
$ make menuconfig
Target Images -> Title for the menu entry in GRUB
Signed-off-by: Kjel Delaey <kjel_delaey@hotmail.com>
(backported from
8492ad0cc183550137ea5afadcbebbfb4fd68fed)
Ademar Arvati Filho [Fri, 6 Jul 2018 00:56:58 +0000 (00:56 +0000)]
kirkwood: add support for Iomega Storcenter ix2-200
Iomega Storcenter ix2-200 is a dual SATA NAS powered by a Marvell
Kirkwood SoC clocked at 1GHz. It has 256MB of RAM and 32MB of
flash memory, 3x USB 2.0 and 1x 1Gbit/s NIC
Specification:
- SoC: Marvell Kirkwood
88F6281
- CPU/Speed: 1000Mhz
- Flash-Chip: Hynix NAND
- Flash size: 32 MiB,erase size:16 KiB,page size:512,OOB size:16
- RAM: 256MB
- LAN: 1x 1000 Mbps Ethernet
- WiFi: none
- 3x USB 2.0
- UART: for serial console
Installation instructions - easy steps:
1. download factory.bin and copy into tftp server
2. access uboot environment with serial cable and run
```
setenv mainlineLinux yes
setenv arcNumber 1682
setenv console 'console=ttyS0,115200n8'
setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(u-boot)ro,0x20000@0xA0000(u-boot environment)ro,0x300000@0x100000(kernel),0x1C00000@0x400000(ubi)'
setenv bootargs_root 'root='
setenv bootcmd 'setenv bootargs ${console} ${mtdparts} ${bootargs_root}; nand read.e 0x800000 0x100000 0x300000; bootm 0x00800000'
saveenv
setenv serverip 192.168.1.1
setenv ipaddr 192.168.1.13
tftpboot 0x00800000 factory.bin
nand erase 0x100000 $(filesize)
nand write 0x00800000 0x100000 $(filesize)
run bootcmd
```
3. access openwrt by dhcp ip address assigned by your router (p.ex: 192.168.1.13)
Installation steps nand bad blocks proof:
1. download initramfs-uImage and copy into usb ext2 partition
```
mkfs.ext2 -L ext2 /dev/sdh1
mount -t ext2 /dev/sdh1 /mnt
cp initramfs-uImage /mnt/initramfs.bin
umount /mnt
```
2. access uboot environment with serial cable and run
```
setenv mainlineLinux yes
setenv arcNumber 1682
setenv console 'console=ttyS0,115200n8'
setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(u-boot)ro,0x20000@0xA0000(u-boot environment)ro,0x300000@0x100000(kernel),0x1C00000@0x400000(ubi)'
setenv bootargs_root 'root='
setenv bootcmd 'setenv bootargs ${console} ${mtdparts} ${bootargs_root}; nand read.e 0x800000 0x100000 0x300000; bootm 0x00800000'
saveenv
usb reset; ext2load usb 0:1 0x00800000 /initramfs.bin; bootm 0x00800000
```
3. log into openwrt and sysupgrade to install into flash
```
sysupgrade -n /tmp/sysupgrade.bin
```
4. access openwrt by dhcp ip address assigned by your router (p.ex: 192.168.1.13)
Signed-off-by: Ademar Arvati Filho <arvati@hotmail.com>
(backported from
27b2f0fc0fc5513304a5be3c5b8cb23aeb09e6f5)
Jo-Philipp Wich [Mon, 30 Jul 2018 13:00:53 +0000 (15:00 +0200)]
ath10k-ct: fix build with current mac80211 package
Commit
2dcd955aea ("mac80211: backport and update patches for ath10k")
changed the DFS detector API, causing ath10k-ct to fail building due to
a missing add_pulse() argument.
Extend the already existing kernel compatibility patch to also adjust
the add_pulse() call accordingly.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from
3083962dd409360059199753bb465427c667daf5)
Julien Dusser [Tue, 17 Jul 2018 16:29:34 +0000 (18:29 +0200)]
Jianhui Zhao [Tue, 17 Apr 2018 03:09:14 +0000 (11:09 +0800)]
samsung/s5pv210: New target
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
(backported from
84c212da44cf5df210ae166ed7e64adf764ccf3f)
Keith Maika [Fri, 15 Jun 2018 04:39:09 +0000 (00:39 -0400)]
ar71xx: add support for TP-Link Archer C59 v2
TP-Link Archer C59v2 is a dual-band AC1350 router based on
Qualcomm/Atheros QCA9561+QCA9886 chips.
Specification:
- 775/650/258 MHz (CPU/DDR/AHB)
- 128 MB of RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz
- 2T2R 5 GHz
- 5x 10/100 Mbps Ethernet
- USB 2.0 port
- UART header on PCB
Flash instruction:
- via web UI:
1. Download openwrt-ar71xx-generic-archer-c59-v2-squashfs-factory.bin
2. Login to router and open the Advanced tab
3. Navigate to System Tools -> Firmware Upgrade
4. Upload firmware using the Manual Upgrade form
- via TFTP:
1. Set PC to fixed ip address 192.168.0.66
2. Download openwrt-ar71xx-generic-archer-c59-v2-squashfs-factory.bin
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.
Signed-off-by: Keith Maika <keithm@aoeex.com>
(backported from
4caab808300ad75575d778bae6e184caa26aeabc)
Rafał Miłecki [Mon, 30 Jul 2018 10:06:20 +0000 (12:06 +0200)]
kernel: add missing include to redboot.c
This fixes:
drivers/mtd/redboot.c:299:34: error: array type has incomplete element type 'struct of_device_id'
Fixes: 5e8b4be53177 ("kernel: add DT binding support to the mtd redboot parser")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(backported from
a3d2448fae5499356a31d71585a812ac65e7a39a)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Rafał Miłecki [Mon, 30 Jul 2018 06:45:41 +0000 (08:45 +0200)]
brcm63xx: update DT RedBoot binding for the Inventel Livebox 1
linux,part-probe should be avoided as its only supported with OpenWrt
downstream patch that is going to be dropped eventually.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(backported from
23197e4580e933b2f81bfd06be051d6038bf24a9)
Lucian Cristian [Thu, 19 Jul 2018 06:59:43 +0000 (09:59 +0300)]
omap: disable ubifs
ubifs image are not working, until there is a fix, disable them
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(backported from
569b6c82460aed3df2d0ea90cdee1b54ddd34fd2)
Lucian Cristian [Thu, 19 Jul 2018 06:58:42 +0000 (09:58 +0300)]
omap: add support for f2fs/ext4 overlay creation
add kernel support and include the tools for creating an overlay partition (f2fs or ext4)
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(backported from
ca529e60d2dde215b3199583bda0f37454e0b896)
Lucian Cristian [Thu, 19 Jul 2018 06:55:19 +0000 (09:55 +0300)]
omap: add sysupgrade support
add sysupgrade missing script files
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(backported from
6a095e858718e91a56dc69f21b5ecb76237e7c28)
Lucian Cristian [Thu, 19 Jul 2018 06:48:56 +0000 (09:48 +0300)]
omap: rename image for sysupgrade compatibility
for sysupgrade to work we need to change the image name based on dts target name
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(backported from
40f66f1431b1a6638f05b75952d7b5a94e385e8d)
Lucian Cristian [Thu, 19 Jul 2018 06:45:25 +0000 (09:45 +0300)]
omap: fix squashfs image boot and creation
fixes FS#1034, squash fs images fails to boot because of missing ARM BCJ filter decoder
also activate squashf image creation
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(backported from
f9af9be8abb72838011c206029ee9274ccd8738e)
Nick Hainke [Thu, 17 May 2018 10:35:23 +0000 (12:35 +0200)]
hostapd: add ht and vht support in handle event function Add ht and vht capabilities. If a device sends a probe request, the capabilities are added.
Signed-off-by: Nick Hainke <vincent@systemli.org>
(backported from
abefb4fda30936abff58736ed81572a127695e65)
Nick Hainke [Wed, 25 Apr 2018 22:03:05 +0000 (00:03 +0200)]
hostapd: add ubus call for ap features
The call "get_features" allows to gather hostapd config options
via ubus. As first infos we add the ht and vht support.
Although nl80211 supports to gather informations about
ht and vht capabilities, the hostapd configuration can disable
vht and ht. However, it is possible that the iw output is not
representing the actual hostapd configuration.
Signed-off-by: Nick Hainke <vincent@systemli.org>
(backported from
74ac74227715aec4b6a3badf7a69bdde13431e04)
Mathew McBride [Wed, 25 Apr 2018 02:51:48 +0000 (12:51 +1000)]
uboot-envtools: add configuration for Traverse LS1043 boards.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from
ae95a8ad3ee08995f16092820aa495b46ddcfdb9)
Mathew McBride [Mon, 30 Apr 2018 12:42:39 +0000 (22:42 +1000)]
layerscape: add Traverse LS1043-S support
The Traverse LS1043-S board is a router board based on
NXP/Freescale's LS1043 SoC, with 4x1GBase-T, 1 SFP and 1 SFP+,
as well as miniPCIe and M.2 LTE.
Unlike the Layerscape reference boards, the LS1043-S board has
NAND flash and uses the mainline U-Boot.
This patch implements support for the LS1043-S board, as well as
the earlier LS1043-V board. It is our intention that all boards
in this family (LS1043-S and later, Five64) will boot the same binary.
Not included in this patchset are the hwmon drivers not in the kernel
(emc1704,pac1934) or the bootloader.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from
08714738d2c8d7710f8fd2b7deac795f49e7d7c2)
Mathew McBride [Mon, 30 Apr 2018 12:43:29 +0000 (22:43 +1000)]
layerscape: add multiple-configuration generator for FIT images
This is required for the Traverse LS1043 family, we generate a FIT image
that works on all boards across the family. This is done by creating
multiple configurations that select the right DTB for the board.
The bootloader on these boards is configured to boot like this:
bootm $kernel_load#ls1043s
bootm $kernel_load#ls1043v
This is based on earlier work by Jason Wu for Zynq:
https://lists.openwrt.org/pipermail/openwrt-devel/2016-March/040460.html
Modified to add FDT load addresses and multiple configurations with DTB.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from
481f870a02a29974eca943f3b926434d5e517679)
Mathew McBride [Mon, 16 Apr 2018 23:45:11 +0000 (09:45 +1000)]
layerscape: add support for fixed-link on RGMII interfaces
This is required on the Traverse LS1043 boards to support SFP
and xDSL plug-ins.
This will not be needed on kernel 4.14.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from
2203815f05162c357fbf96b3da8098f687a86d04)
Mathew McBride [Mon, 16 Apr 2018 23:43:38 +0000 (09:43 +1000)]
layerscape: enable QorIQ thermal driver
This provides access to the CPU die temperature sensor and
the thermal throttling integration
Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from
40120ca6709c4f47d739688797a39c31859d3a85)
Mathew McBride [Mon, 16 Apr 2018 23:43:03 +0000 (09:43 +1000)]
layerscape: remove DEVICE_TYPE=developerboard
The Traverse LS1043 series are router boards and need the default router package
selection
Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from
efc1096ef0d15f1bfa6d5f7890fff7420e30fbee)
Thibaut VARÈNE [Sun, 29 Jul 2018 09:07:23 +0000 (11:07 +0200)]
ramips: fix RBM11G name
The device name is corrected to match the hardware-stored (in hard config
flash space) device name.
Tested-by: Tobias Schramm <tobleminer@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(backported from
3fd4db76b06bfcf7c69a6bef62f073fb537ab977)
Thibaut VARÈNE [Sun, 29 Jul 2018 09:07:21 +0000 (11:07 +0200)]
ramips: fix RBM33G name
The device name is corrected to match the hardware-stored (in hard config
flash space) device name.
Tested-by: Tobias Schramm <tobleminer@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(backported from
a9494bb4254d1fa91eb82c04e14d97445e225a06)
Leon M. George [Mon, 31 Oct 2016 13:55:44 +0000 (14:55 +0100)]
libevent: update to 2.1.8
Signed-off-by: Leon M. George <leon@georgemail.eu>
(backported from
025688794d516d5b020abfdaabf47fe341e37da6)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
LoveSy [Mon, 28 May 2018 01:47:19 +0000 (09:47 +0800)]
ramips: mmc: Add SD card support to HC5661A
Tested on HC5661A and it now fixes the issue that when enabling sd card
in HC5661A, the wan and 3 lan ports will down.
Known issue:
- When enabling SD card support, the led light of system will down and the rest 2 lights keep working.
Signed-off-by: LoveSy <shana@zju.edu.cn>
(backported from
974a2b1aa9b0f8bd7a7442efa069d954e6b354ce)
LoveSy [Mon, 28 May 2018 01:46:28 +0000 (09:46 +0800)]
ramips: mmc: Fix init for MT7628AN
There is another thing about crc to do when initialize SD card on
MT7628.
This commit is to fix this init issue.
Signed-off-by: LoveSy <shana@zju.edu.cn>
(backported from
3a8efaef00d6b7317c46fe6b7e923912d8bf3500)
Martin Strobel [Sat, 7 Jul 2018 07:24:30 +0000 (09:24 +0200)]
iptables: add ip[6|]tables-compat packages + libxtables-compat depends on IPTABLES_NFTABLES
allows iptables-compat to use nft packet filtering
allows to translate iptables-style to nft-style
Signed-off-by: Martin Strobel <arctus@crza.de>
(backported from
7d7323bccd6df4917f3a97e54cb237ee3849ca17)
Paul Schulz [Thu, 21 Jun 2018 08:49:39 +0000 (18:19 +0930)]
config: Change conf.c remove compiler warnings
Compiler is producing the warning:
warning: format not a string literal and no format arguments
[-Wformat-security]
This patch makes the format a literal string in printf statements.
This with: gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) in Ubuntu 18.04
Signed-off-by: Paul Schulz <paul@mawsonlakes.org>
(backported from
7bbd1855cd06db7552c14d91f1151c8100e8813e)
Daniel F. Dickinson [Thu, 26 Jul 2018 06:57:37 +0000 (02:57 -0400)]
ar71xx: ag71xx: Prevent kernel oops for board def
The driver is written in such a way that with a board defintion that
connects a fixed phy, mdio, and switch in a certain way, a kernel oops could
result because of lack of previously probed mdio bus.
This commit allows for easier debugging in this case by casting the
correct blame with serial console messages.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
7a3e133751870a3431e2430386a77a002eb24117)
Daniel F. Dickinson [Wed, 25 Jul 2018 23:15:32 +0000 (19:15 -0400)]
ar71xx: ag71xx: Add connect message: fixed phy
It's a little noisier but makes it obvious when the ar7240 switch was
connected to the MDIO bus, and to which phy device (or the failure
to do so).
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
0b9f4e880807e3cfd22d12b929202e1edcdc577c)
Daniel F. Dickinson [Wed, 25 Jul 2018 23:14:26 +0000 (19:14 -0400)]
ar71xx: ag71xx_phy: Fix compilation for debug messages
NB: Error only appears with ag71xx debug messages and dynamic printk
enabled. This is probably why no one has caught it before.
Previously phy probe debug messages used old (now wrong) functions
to get the phy name for printing. There was also the chance of
a NULL pointer in the event no phy_device was found.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
2655fbe8efb2a596aa8db92cffa817e3bf0c64ea)
Massimo Tum [Tue, 3 Jul 2018 12:57:41 +0000 (14:57 +0200)]
ath10k: update QCA4019 firmware
With AVM Fritz!Box 4040 and OpenWrt 18.06 RC1 there are many kernel warnings
kern.warn kernel: [87771.917049] ath10k_ahb
a000000.wifi: Invalid VHT mcs 15 peer stats
and there are disconnections when the connected clients are many, at the moment I tried with 16 clients on 2.4 GHz and 8 on 5 GHZ.
Firmware 10.4-3.5.3-00057 fixes these warnings and the problem of disconnections of some clients.
Signed-off-by: Massimo Tum <masnia@tiscali.it>
(backported from
0a492ee39e1c1a226dc34923909459117077b4c5)
Daniel F. Dickinson [Wed, 25 Jul 2018 23:18:36 +0000 (19:18 -0400)]
ar71xx: cap324: Drop support for defunct cloud
Only build images for straight OpenWrt (using all flash; wipes out
partitions that contain information only important for accessing a
now defunct cloud service with the stock firmware) since the stock
firmware is now irrelevant.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
098267db4cd3a80470b0015fba2d0e6bcfffe10e)
Daniel F. Dickinson [Sun, 29 Jul 2018 08:13:25 +0000 (04:13 -0400)]
ar71xx: cap324: Use correct company name
It's 'PowerCloud Systems' not just 'PowerCloud'
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
37ab944ac5752a23fef63b56f6a6d35047d8ac7f)
Daniel F. Dickinson [Sun, 29 Jul 2018 08:33:24 +0000 (04:33 -0400)]
ar71xx: cap324: Use correct MAC addresses
The wrong MAC addresses (from the point of view of the physical device
label) were being assigned to the wrong interfaces. Fix that.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
739eaae9ca86b243b81009fc21fb7ecc8a7b5b82)
Daniel F. Dickinson [Sun, 29 Jul 2018 08:30:52 +0000 (04:30 -0400)]
ar71xx: cap324: Use standard eth as static lan
While the stock firmware and previous ar71xx versions of openwrt used the
single ethernet port as a DHCP client, for unmodified openwrt usage it
makes more sense to do the standard openwrt thing and make the ethernet
port a static lan with known address so that users can find the device on
the network more easily.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
d2f7dba309857014c8f414463c6fd7636b4ad4b9)
Daniel F. Dickinson [Wed, 25 Jul 2018 23:07:21 +0000 (19:07 -0400)]
ar71xx: cr5000: use correct company name
It's 'PowerCloud Systems' not just 'PowerCloud'
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
fedc826c320d27759ac551c8427eddf582f7b343)
Daniel F. Dickinson [Sat, 21 Jul 2018 01:04:56 +0000 (21:04 -0400)]
ar71xx: cr5000: Drop support for defunct cloud
The Skydog cloud service no longer exists hence supporting going back
to stock firmware with cloud support is no longer applicable.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
50caf9d452b8ee48f937703a366738346d48a9e4)
Daniel F. Dickinson [Sat, 21 Jul 2018 01:03:27 +0000 (21:03 -0400)]
ar71xx: cr5000: Tweak switch LED settings
This is basically cosmetic and sets the Port 1-4 LEDs to blink on
10/100/1000M.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
c666851ce7250cdb027770938d86c7ac9e3195db)
Daniel F. Dickinson [Sat, 21 Jul 2018 01:01:23 +0000 (21:01 -0400)]
ar71xx: cr5000: Fix the reset button as KEY_RESTART
The reset button was incorrectly returning KEY_WPS_BUTTON as the key
code. We want KEY_RESTART., so make that fix.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
ffc71cd2d07148e5fa4257b31402e7756aaab238)
Daniel F. Dickinson [Sat, 21 Jul 2018 00:59:40 +0000 (20:59 -0400)]
ar71xx: cr5000: board data: Use better macro name
The PCIe wireless MAC address address is better labelled as WMAC
than MAC to emphasize that it is for a wireless interface.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from
a208e0779084e17e981a93927ca44ac36ff07db7)
Edi Turn [Mon, 23 Jul 2018 14:08:18 +0000 (22:08 +0800)]
grub2: fix packed-not-aligned error on GCC 8
Fix the compile error "packed-not-aligned" when using GCC 8.
Signed-off-by: Edi Turn <yyxstter@gmail.com>
(backported from
e9dee194876ffda0bf610ea9382d586c1e619caf)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Daniel Engberg [Fri, 20 Jul 2018 18:29:47 +0000 (20:29 +0200)]
toolchain/binutils: Add binutils 2.31.1
Add binutils 2.31.1 to repo
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from
a93b6edfec1482b58be4623d999ca69458d432ea)
Thibaut VARÈNE [Sun, 29 Jul 2018 10:15:00 +0000 (12:15 +0200)]
ar71xx: improve MikroTik wAP R support
81d446b045176e3e25bb0ef74e3d060b51a0a353 introduced incomplete
support for this device.
This patch attempts to correct the situation based on OEM source
code.
LED1-3 are GSM mode on OFW (2G/3G/4G) hence unassigned here.
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Tested-by: David Ehrmann <ehrmann@gmail.com>
(backported from
091e915d994ff77a2677266e9e8cc831a7091deb)
Thibaut VARÈNE [Sun, 29 Jul 2018 10:14:58 +0000 (12:14 +0200)]
ar71xx: rbspi: mark rb911L user led as active low
The active_low flag was missing for the user LED. This LED is open drain
(confirmed in OEM source) and open drain only makes sense for active low
GPIOs.
The two wireless LEDs mentioned in the comments are also #defined for
future reference.
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Tested-by: Ryan Mounce <ryan@mounce.com.au>
(backported from
e76c048d344097b48dae90f447398549b391e4e9)
Thibaut VARÈNE [Sun, 29 Jul 2018 10:14:56 +0000 (12:14 +0200)]
ar71xx: rbspi: clarify USB power gpios action
The gpios that control power toggle for USB on the RouterBOARD devices
are active low _off_ switches.
When they are active (low), power is off. When they are inactive
(high), power is on.
Rename GPIO defines, set gpios to GPIOF_ACTIVE_LOW for consistency and
reflect their true action in the display name. This brings openwrt code
in line with OEM.
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Tested-by: Ryan Mounce <ryan@mounce.com.au>
(backported from
03562bfcdb1acc4be33e72a7adf138c135720eab)
Rosen Penev [Sun, 29 Jul 2018 17:02:08 +0000 (10:02 -0700)]
admswconfig: Remove dead URL + HTTPS
Found using uscan.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from
0394ca26c37dead9b676c4e03845bba5f3a6765d)
Rafał Miłecki [Mon, 30 Jul 2018 06:38:30 +0000 (08:38 +0200)]
kernel: add DT binding support to the mtd redboot parser
It allows using that parser with the "compatible" set in DT.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(backported from
5e8b4be531778aa8b6783fa431e6dd3f2865c926)
Christian Lamparter [Sun, 29 Jul 2018 09:55:17 +0000 (11:55 +0200)]
apm821xx: clean up gpio-hogs
convert the usb and both sata port power related gpio-hogs to
what they really are: fixed-regulators.
The ethernet phy-reset gpio-hog is replaced by a proper
upstream (4.15+) reset-gpios property in the mdio-node.
So this will work eventually.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from
b70d3557e050484081f59291a81e5180f8b4fea5)
Christian Lamparter [Sun, 29 Jul 2018 09:55:16 +0000 (11:55 +0200)]
apm821xx: split MBL's rootfs.img.gz into a sysupgrade and factory image
@vahid-dan reported a issue with extracting the rpi images with
Gnome's Archive Manager:
"Ubuntu Archive Manager cannot extract the file and it just
throws a general error message: "An error occurred while
extracting files".
<https://forum.lede-project.org/t/corrupted-pre-built-v18-06-0-rc2-image-for-rpi>
The MBL's rootfs.img.gz image is generated in much the same way.
Hence this patch preemptively splits the rootfs.img.gz image into
a sysupgrade and a factory image.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from
cff6548948f76b8d0c922ef5e5d456a88a78ab2e)
Christian Lamparter [Sun, 29 Jul 2018 09:55:15 +0000 (11:55 +0200)]
apm821xx: build squashfs-rootfs images for the MBL
This patch adds support for squashfs as the root filesystem.
advantages:
- migrate from a existing -ext4 installation and back
with the sysupgrade utility
- existing partition layout will not be lost during switch
- slightly smaller image size as compared to the -ext4 image.
disadvantages:
- needs f2fs + tools. This is because fstools rootdisk.c decides based
on the partition size (currently root partitions > 100 MiB) f2fs is
used as the rootfs_data filesystem.
- rootfs_data is placed into the rootfs partition after the squashfs.
This makes it difficult for tools that expect a /dev/sda${X} device.
It also makes it difficult for data recovery tools as they might not
expect to find a embedded partition or will be slightly confused.
... or will not support f2fs.
For people with existing build configurations: make sure to include mkf2fs
and f2fsck packages into the image. Otherwise the new -squashfs image will
only boot from the ram-overlay.
Note:
All overlay data (configurations/all installed packages/...) will be
placed in inside the rootfs partition (i.e. /dev/sda2) just after the
squashfs image.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from
aed4799d6d05d89dbca1bd5f14cc3d09ac563f3b)
Christian Lamparter [Sun, 29 Jul 2018 09:55:13 +0000 (11:55 +0200)]
ipq-wifi: add a note / reminder about upstreaming new board files
|Please send a mail with your device-specific board files upstream.
|You can find instructions and examples on the linux-wireless wiki:
|<https://wireless.wiki.kernel.org/en/users/drivers/ath10k/boardfiles>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from
df495305f36216c972255f62d0d0b6f8d4567b87)
Jonas Gorski [Sun, 29 Jul 2018 11:09:22 +0000 (13:09 +0200)]
brcm63xx: drop linux,part-probe usage where possible
It was present as 4.4 compatibility, but since we now use 4.9 or later
with the new upstream solution, we don't need it anymore.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(backported from
7880a6f7fee89efe9e5e4c707b59ba45f02e21cf)
Jonas Gorski [Sun, 29 Jul 2018 10:53:49 +0000 (12:53 +0200)]
brcm63xx: drop own implementation of DT partitions in favour of upstream
The binding works the same, so we can just drop the revert and the patch.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(backported from
abb28bec251a0b243dff87f87d09763792128349)
Rosen Penev [Sun, 29 Jul 2018 07:35:58 +0000 (00:35 -0700)]
thc-ipv6: Update URLs
Development has moved to GitHub. Found using UScan.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from
fc89831ae8f5c0313a1f9e80afd4e129c6a2303e)
Daniel Engberg [Sun, 22 Jul 2018 16:31:38 +0000 (18:31 +0200)]
tools/cmake: Update to 3.12.0
Update cmake to 3.12.0
Remove 140-curl-fix-libressl.patch as fix is in upstream
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from
b078229412e37ccf9ca8d9a437af6b8861bd2dbb)
Daniel Golle [Fri, 27 Jul 2018 10:50:35 +0000 (12:50 +0200)]
util-linux: package blockdev executable
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(backported from
af4b23dde2886ffea7374cbb22807d0be8a21b76)
Syrone Wong [Thu, 26 Jul 2018 14:46:39 +0000 (22:46 +0800)]
ead: use new protocol setting API since libpcap 1.9.0
Dropped the protocol API specific symbol: HAS_PROTO_EXTENSION and
switch to the official API
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
(backported from
7dfd72dffff914b8d9cc941c62019004532c566f)
Syrone Wong [Thu, 26 Jul 2018 14:46:38 +0000 (22:46 +0800)]
libpcap: update to 1.9.0
001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch dropped due to upstream
002-Add-missing-compiler_state_t-parameter.patch dropped due to upstream
202-protocol_api.patch dropped due to implemented upstream by another way
upstream commit: https://github.com/the-tcpdump-group/libpcap/commit/
55c690f6f834b4762697d7a134de439c9096c921
and renamed via: https://github.com/the-tcpdump-group/libpcap/commit/
697b1f7e9b1d6f5a5be04f821d7c5dc62458bb3b
ead is the only user who use the protocol api, we have to use the new api since libpcap 1.9.0
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
(backported from
4d57c696b1504bc672416b9ba27eab4e1729b622)
John Crispin [Tue, 24 Jul 2018 14:04:44 +0000 (16:04 +0200)]
ipq40xx: move essedma patches into same range
Signed-off-by: John Crispin <john@phrozen.org>
(backported from
ffc40d2eae90e8cf526d0f7f28992066da5d7477)
John Crispin [Tue, 24 Jul 2018 12:34:34 +0000 (14:34 +0200)]
ipq40xx: sync kernel config
Signed-off-by: John Crispin <john@phrozen.org>
(backported from
e725d3080c81f413c4a650c7531dc649ddfd4ccf)
John Crispin [Tue, 24 Jul 2018 14:02:20 +0000 (16:02 +0200)]
ipq40xx: move dts file patches to end of series
Signed-off-by: John Crispin <john@phrozen.org>
(backported from
e8c58e7ddd29df41a26b20e0930292d911f5f788)
John Crispin [Tue, 24 Jul 2018 12:41:02 +0000 (14:41 +0200)]
ipq40xx: drop no-op cpu_idle symbol patch
Signed-off-by: John Crispin <john@phrozen.org>
(backported from
3d456a50f47f4b48e294b0e4ca3df836729bf39c)
Mathias Kresin [Mon, 23 Jul 2018 05:57:45 +0000 (07:57 +0200)]
ramips: remove stale get_status_led call
The get_status_led() function was removed due to the convertion to dts
alias based status led.
Since we don't need the boardname any longer, the functions.sh include
isn't required any more.
Fixes: c9c4b2116c09 ("ramips: Use dts alias based status led")
Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from
4cbf5601f9621d0f8973237f3133b821f472845c)
Ted Hess [Tue, 24 Jul 2018 18:32:20 +0000 (14:32 -0400)]
elfutils: Copy missing libraries to staging and packages
Newer shared libraries seem to have the package version as part of their name.
E.g.: libelf-0.173.so
Signed-off-by: Ted Hess <thess@kitschensync.net>
(backported from
354de22bad37ef8f91f9a8f65b65f402713629ec)
Daniel Engberg [Tue, 24 Jul 2018 11:59:30 +0000 (13:59 +0200)]
utils/curl: Disable libpsl
Disabled libpsl to fix build issue reported by buildbots
Package libcurl is missing dependencies for the following libraries:
libpsl.so.5
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>(backported from f486f81c649fe897f7070cbf14df504aea104029)
(backported from
f486f81c649fe897f7070cbf14df504aea104029)
John Crispin [Tue, 24 Jul 2018 07:35:16 +0000 (09:35 +0200)]
ipq40xx: drop bus driver, its a no-op and only does lots of alloc/free
Signed-off-by: John Crispin <john@phrozen.org>
(backported from
1e48e56c50c9423049ec41fda0c7f435c0bba6c9)
Ansuel Smith [Sun, 8 Jul 2018 14:04:15 +0000 (16:04 +0200)]
mac80211: backport and update patches for ath10k
This commit refreshes and updates the VHT160 ath10k support fix patches
and adds a number of backports from ath-next:
*
8ed05ed06fca ath10k: handle tdls peer events
*
229329ff345f ath10k: wmi: modify svc bitmap parsing for wcn3990
*
14d65775687c ath10k: advertise TDLS wider bandwidth support for 5GHz
*
bc64d05220f3 ath10k: debugfs support to get final TPC stats for 10.4 variants
*
8b2d93dd2261 ath10k: Fix kernel panic while using worker (ath10k_sta_rc_update_wk)
*
4b190675ad06 ath10k: fix kernel panic while reading tpc_stats
*
be8cce96f14d ath10k: add support to configure channel dwell time
*
f40105e67478 ath: add support to get the detected radar specifications
*
6f6eb1bcbeff ath10k: DFS Host Confirmation
*
260e629bbf44 ath10k: fix memory leak of tpc_stats
*
38441fb6fcbb ath10k: support use of channel 173
*
2e9bcd0d7324 ath10k: fix spectral scan for QCA9984 and QCA9888 chipsets
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
[move backported patches in the 3xx number space, bring in upstream order,
replace incomplete patch files with git format-patch ones, rewrite commit
message, fix subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from
2dcd955aea1ab715d048910322b05d1af0b69748)
Syrone Wong [Thu, 21 Jun 2018 15:08:11 +0000 (23:08 +0800)]
rules.mk: replace iremap when using GCC 8
The original -iremap is replaced by -fmacro-prefix-map in GCC 8
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
(backported from
da9d760ea1c0450e9e6b1c0cdd5331e633c75887)
Syrone Wong [Thu, 21 Jun 2018 15:08:10 +0000 (23:08 +0800)]
toolchain/gcc: add GCC 8.1.0
Changes compared to GCC 7.x
001-revert_register_mode_search.patch dropped
The underlying issue is described at the end of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58139
It is fixed by the upstream commit:
https://github.com/gcc-mirror/gcc/commit/
3fa2798aa887d141d86985240f03e2f3809e7e62
020-PR-libstdc-81797-Add-.NOTPARALLEL-to-include-Makefil.patch dropped due to already upstream
100-PR-rtl-optimization-83496.patch dropped due to already upstream
910-mbsd_multi.patch
modified to fix ambiguous overloaded inform() call error
gcc/input.h
header: define UNKNOWN_LOCATION ((source_location) 0)
- inform (0, "someone does not honour COPTS correctly, passed %d times",
- honour_copts);
+ inform (UNKNOWN_LOCATION, "someone does not honour COPTS correctly, passed %d times",
+ honour_copts);
940-no-clobber-stamp-bits.patch dropped due to fixed upstream by another way
upstream commit: https://github.com/gcc-mirror/gcc/commit/
87b2d547f8ac9778d66909b8726fe967d1efbc74
950-cpp_file_path_translation.patch dropped, Both -fmacro-prefix-map and -ffile-prefix-map are added
to gcc 8.1.0, if I understand it correctly, we should use -fmacro-prefix-map
usage: -fmacro-prefix-map=@var{old}=@var{new}
upstream commit: https://github.com/gcc-mirror/gcc/commit/
859b51f83662d01e4f158ea9327db9ca37fe70b3
-iremap exists as a flag for a long time, for backward compatibility, I think we should keep the
variable name unchanged but change its value in rules.mk for gcc 8.x and higher.
Compile and run tested on x86_64
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
(backported from
139f99c05880508b19308eed366d8fbf5804fbf9)
Felix Fietkau [Sun, 22 Jul 2018 14:52:44 +0000 (16:52 +0200)]
kernel: backport fixes for GCC 8 errors in syscall definitions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from
c527d0ec189bc3493c15dee15fcfd635b8fa54ff)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Rosen Penev [Mon, 16 Jul 2018 18:17:08 +0000 (11:17 -0700)]
ipq806x: dts: Remove device_type = "ethernet-phy"
device_type is deprecated. Upstream doesn't seem to like it either.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from
e22cc57593127bc888c6b04587a3a2e8e43abe66)
Christian Lamparter [Mon, 16 Jul 2018 20:56:36 +0000 (22:56 +0200)]
apm821xx: unify My Book Live Single + Duo images
By takimata:
"Come to think of it, an MBL Single board boots up just fine on an
MBL Duo image, and the MBL Single board identifies completely
identical to the MBL Duo
(Board: Apollo-3G - APM82181 Board, 2*SATA, 1*USB).
I wonder if there is any downside to just using the MBL Duo firmware
on a MBL Single. I wonder if the two firmwares could even be unified."
<https://forum.lede-project.org/t/wd-mybook-live-duo-two-disks/16195/9>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from
9b47aa93c76ba87b7d84dacd2c881cef6334e3f5)
Thibaut VARÈNE [Thu, 19 Jul 2018 16:06:21 +0000 (18:06 +0200)]
ramips: define common MikroTik RouterBOARD image recipe
All these devices share the exact same image format.
The usb3 kmod is added for the rbm11g, as the rbm11g has a mini-pcie
slot like its bigger sibling. The usb kmod is necessary for
usb-over-pcie support, which is mandatory for a lot of LTE modules.
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(backported from
c4f09fc9f8e97b11519e52d2f1e6a7bc02e4d2be)
Johann Neuhauser [Thu, 17 May 2018 17:12:35 +0000 (19:12 +0200)]
lantiq: add support for FritzBox 7312
The FritzBox 7312 is also known as 1&1 WLAN-MODEM. The device is almost
the same as FB7330, but only one ETH-Port and no USB.
Hardware
SoC: Lantiq Xway ARX188 PSB 50812 EL
RAM: 64MB DDR1 (Zentel A4S12D40FTP-G5)
Ethernet: Atheros 8030
Wireless: Atheros AR9227 b/g/n 2x2
DSL: Lantiq ADSL2+
DECT: Dialog SC14441
Buttons: WiFi, DECT
LEDs: Power/DSL, Fon, DECT, WLAN, Info
LEDs
Power: GPIO#44 (active low)
Internet: GPIO#47 (active low)
DECT: GPIO#38 (active low)
WLAN: GPIO#37 (active low)
Info: GPIO#35 (active low)
The Fon LED is labeled as internet in avm gpl sources.
Buttons
WLAN: GPIO#1 (active low)
DECT: GPIO#2 (active low)
Phy
GPIO#03: 25 MHz
GPIO#34: Reset (active low)
GPIO#39: Int
GPIO#42: MII MDIO
GPIO#43: MII MDC
PCIe
GPIO#21: reset (active low)
Installation:
To install OpenWrt via Eva bootloader, within the first seconds after
power on a ftp connection need to be established to the FRITZ!Box at
192.168.178.1 and the the following ftp commands need to be run:
ftp> quote USER adam2
ftp> quote PASS adam2
ftp> binary
ftp> debug
ftp> passive
ftp> quote MEDIA FLSH
ftp> put /path/to/openwrt-lantiq-xway-avm_fritz7312-squashfs-sysupgrade.bin mtd1
ftp> quote REBOOT
Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
(backported from
02d53e6a2113f80ae429664e7990d167fbf44604)
Johann Neuhauser [Thu, 17 May 2018 17:12:35 +0000 (19:12 +0200)]
lantiq: etop: pass devicetree node to phy driver
Use of_mdiobus_register() to pass the ethernet phy node to the phy
drivers. This is needed for the at8030 phy driver which needs to know
the GPIO which is connected to the ar8030 reset pin.
This driver expects a child in gsw/etop node named "mdio-bus", which has
the ethernet phys defined:
&gsw {
phy-mode = "rmii";
phy-handle = <&phy0>;
mtd-mac-address = <&ath9k_cal 0xa91>;
mtd-mac-address-increment = <(-2)>;
mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
phy0: ethernet-phy@0 {
reg = <0>;
reset-gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
};
};
};
Fallback to mdiobus_register() if no mdio-bus child node exists. This
way we don't need to touch all xway dts files, for which we don't know
the actual address on the mdio bus.
Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
(backported from
f2f7802148f3d070b27f65b169efebfc6bf8286d)
Jo-Philipp Wich [Tue, 17 Jul 2018 18:21:39 +0000 (20:21 +0200)]
ppp: fix building pptp plugin
The pptp.so plugin needs to be built with -fPIC as well in order to be
linkable again.
Fixes
888a15ff83 ("ppp: add missing -fPIC to rp-pppoe.so CFLAGS")
Fixes
e7397eef69 ("ppp: compile with LTO enabled")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from
9019323ec1109d636b6e2ca9fe991dce45635f96)
Yousong Zhou [Tue, 17 Jul 2018 17:05:53 +0000 (17:05 +0000)]
scripts/dl_github_archive.py: stringify exception
Closes openwrt/openwrt#1163
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(backported from
ac10975cd704af465f8200f504032bc0d7b0d1ba)
Kin Chan [Mon, 5 Mar 2018 07:30:56 +0000 (07:30 +0000)]
ar71xx: Move F9K1115v2 under ar71xx tiny target
F9K1115v2 has a kernel partition size of 1408 kB.
Since kernel 4.9.x+ the kernel image for this device compiled had exceeded
the kernel partition size limit and thus failing size check.
The kernel image generated for this device
under ar71xx tiny target is 1329.67 kB < 1408 kB.
Signed-off-by: Kin Chan <kcchan1@outlook.com>
(backported from
18b87b10a99bc445b3beae737ddce38d228c5d24)
Chuanhong Guo [Mon, 16 Jul 2018 08:27:22 +0000 (16:27 +0800)]
ramips: Use dts alias based status led
Also fix several typos in led node name.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
(backported from
c9c4b2116c0984eb8baeff03e806030ee9c6175f)
Steffen Förster [Sun, 8 Jul 2018 20:18:07 +0000 (22:18 +0200)]
kernel: insmod phy-broadcom module during preinit
Some HP Thin clients use the broadcom nextreme chip as integrated NIC.
It is connected via PCI express and will only be found automatically if
phy-broadcom is loaded before tg3. This small change makes the thin
client usable for Freifunk with gluon out of the box.
Signed-off-by: Steffen Förster <steffen@chemnitz.freifunk.net>
(backported from
1ef65ceeafa9f1d5f4c0e0fe851907a4c8afa483)
Daniel Engberg [Sat, 14 Jul 2018 21:05:29 +0000 (23:05 +0200)]
popt: Replace dead upstream site with mirror
We can safely assume by now that rpm5.org is dead and isn't coming back
so just add another mirror instead.
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from
09d794ab928bb8a02e1d296e32cc8fbac7085049)
Daniel Engberg [Sat, 14 Jul 2018 20:52:35 +0000 (22:52 +0200)]
package/utils/f2fs-tools: Update to 1.11.0
Update f2fs-tools to 1.11.0
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from
0a4cd1a6828f61acdc12348c69ca5c97fcb54c1d)
Daniel Engberg [Sat, 14 Jul 2018 20:35:34 +0000 (22:35 +0200)]
package/utils/e2fsprogs: Update to 1.44.3
Update e2fsprogs to 1.44.3
Enable threads
Enable LTO
Numbers on mips_24kc (a few packages):
Old --> New --> LTO and threads
e2fsprogs_*_mips_24kc.ipk: 173 --> 174 --> 154kbyte
libblkid_*_mips_24kc.ipk: 114 --> 114 --> 114kbyte
libext2fs_*_mips_24kc.ipk: 138 --> 139 --> 139kbyte
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from
804c51e1e661819c5a7532e66fb8a12166eef9a9)
Thibaut VARÈNE [Thu, 12 Jul 2018 11:43:36 +0000 (13:43 +0200)]
ar71xx: add support for MikroTik RB931-2nD
This patch adds support for the MikroTik RB931-2nD (hAP mini):
https://mikrotik.com/product/RB931-2nD
Specifications:
* SoC: Qualcomm QCA9533 (650MHz)
* RAM: 32MiB
* Storage: 16MiB SPI NOR flash
* Ethernet: 3x100M
* Wireless: QCA9533 built-in, dual-chain 802.11b/g/n
Installation:
1. Setup a DHCP/BOOTP Server with the following parameters:
* DHCP-Option 66 (TFTP server name): pointing to a local TFTP
server within the same subnet of the DHCP range
* DHCP-Option 67 (Bootfile-Name): matching the initramfs filename
of the to be booted image. The usable intramfs files are:
- openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf
- openwrt-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf
- openwrt-ar71xx-mikrotik-rb-nor-flash-16M-initramfs-kernel.bin
2. Press the reset button on the board and keep that pressed.
3. Connect the board to your local network via its Internet port.
4. Release the button after the LEDs on the board are turned off.
Now the board should load and start the initramfs image from
the TFTP server.
5. Now connect the board via either of its LAN ports (2 or 3).
6. Upload the sysupgrade image to the board with scp:
$ scp openwrt-ar71xx-mikrotik-rb-nor-flash-16M-squashfs-sysupgrade.bin root@192.168.1.1:/tmp/fw.bin
7. Log in to the running system listening on 192.168.1.1 via ssh
as root (without password):
$ ssh root@192.168.1.1
8. Flash the uploaded firmware file from the ssh session via the
sysupgrade command:
root@OpenWrt:~# sysupgrade /tmp/fw.bin
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(backported from
c2d2647c099679d64c8d5ef5260ba0f9d4c8f2ba)
Andrius Štikonas [Sat, 14 Jul 2018 21:53:47 +0000 (21:53 +0000)]
brcm63xx: initial support for Sky SR102 router
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.
To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
SOC: BCM63168 (BMIPS4350 V8.0 @400MHz)
Flash size: 16 MiB
RAM size: 128 MiB
Heavily based on patch for OpenWRT Chaos Chalmer.
Original patch and more info can be found at:
https://openwrt.org/toh/sky/sr102
Known issues:
- Wireless and ADSL modem are not working.
Signed-off-by: Andrius Štikonas <andrius@stikonas.eu>
(backported from
d591260407015d2c451ad8c9e114fe04cf3639bc)
Daniel Engberg [Sat, 14 Jul 2018 20:31:37 +0000 (22:31 +0200)]
tools/e2fsprogs: Update to 1.44.3
Update e2fsprogs to 1.44.3
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from
df5f914b83cf88722ab6b8c051051a7b1fe49f64)
Daniel Engberg [Sat, 14 Jul 2018 20:26:42 +0000 (22:26 +0200)]
curl: Update to 7.61.0
Update curl to 7.61.0
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from
49bdd43da236af54b6b82d995b81532e7becf08f)
Felix Fietkau [Sat, 14 Jul 2018 08:59:52 +0000 (10:59 +0200)]
ppp: add missing -fPIC to rp-pppoe.so CFLAGS
Fixes build error with LTO
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from
888a15ff8312cd157bc968b67c33d2f738883b79)
Felix Fietkau [Sat, 14 Jul 2018 06:32:36 +0000 (08:32 +0200)]
ramips: ethernet: disable fraglist support
The code has some remaining issues that cause ethernet hangs, so
disable it for now until we can get it fixed
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from
2601e34fad9e523b87c310386ba9b7bace4025e2)
Felix Fietkau [Wed, 11 Jul 2018 17:42:40 +0000 (19:42 +0200)]
ubus: compile with LTO enabled
Reduces total .ipk size by about 1k
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from
154c0c4006daf41e2cbb6c8b7ad5557f83dfea3e)