Commit Graph

1644 Commits

Author SHA1 Message Date
CN_SZTL
4df558cc5a
target/rockchip: fix dependency 2020-07-24 03:51:17 +08:00
CN_SZTL
4aa6119e75
target/rockchip: add missing dependency 2020-07-24 03:24:00 +08:00
David Bauer
f4321098b5
ramips: switch MT7620 subtarget to 5.4
MT7620 seems to work fine with kernel 5.4. Set the default kernel
version to 5.4 to bring this to a broader audience.

Tested on Archer C2 v1 / Archer C20i

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-23 22:48:49 +08:00
David Bauer
5302c79953
ath79: re-enable image generation for GL-AR750S
The bootloader only writes the first 2MB of the image to the NOR flash
when installing the NAND factory image. The bootloader is capable of
booting larger kernels as it boots from the memory mapped SPI flash.

Disable the NAND factory image. The NAND can be bootstrapped by writing
the NAND initramfs image using the NOR upgrade method in the bootloader
web-recovery and sysupgrading from there. The NOR variant is not
affected.

Also refactor the partition definitions in the DTS to make them less
annoying to read.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-23 22:48:07 +08:00
David Bauer
903f30b801
ramips: increase SPI frequency for MT7620 Archer
Increase the SPI frequency for the MT7620 based TP-Link Archer
series to 30MHz.

TP-Link uses different SPI flash chips for the same board
revision, so be conservative to not break boards with a
different chip. 30MHz should be well supported by all chips.

Tested on Archer C2 v1 (GD25Q64B) and Archer C20i (W25Q64FV).

Archer C20i (before)
====================
root@OpenWrt:~# time dd if=/dev/mtd1 of=/tmp/test.bin bs=64k
122+0 records in
122+0 records out
real	0m 15.30s
user	0m 0.00s
sys	0m 15.29s

Archer C20i (after)
===================
root@OpenWrt:~# time dd if=/dev/mtd1 of=/tmp/test.bin bs=64k
122+0 records in
122+0 records out
real	0m 5.99s
user	0m 0.00s
sys	0m 5.98s

Signed-off-by: David Bauer <mail@david-bauer.net>
Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:47:48 +08:00
Adrian Schmutzler
1c9cd3b359
arc770: use generic 02_sysinfo
Currently arc770 sets a board name from compatible for no apparent
reason. Just use the compatible directly instead.

This theoretically removes a board name "generic" when no compatible
was present, however, there is no case where this "generic" board
name was actually used.

This also fixes an issue where snps,axs101 would not have been
properly detected anyway, as its case was not set up syntactically
correct.

Fixes: 576621f1e3 ("linux: add support of Synopsys ARC770-based boards")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:47:18 +08:00
Adrian Schmutzler
5786f1efaa
archs38: use generic 02_sysinfo
Currently archs38 sets a board name from compatible for no apparent
reason. Just use the compatible directly instead.

This theoretically removes a board name "generic" when no compatible
was present, however, there is no case where this "generic" board
name was actually used.

This also fixes an issue where snps,axs103 would not have been
properly detected anyway, as its case was not set up syntactically
correct.

Fixes: 73015c4cb3 ("linux: add support of Synopsys ARCHS38-based boards")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:47:13 +08:00
CN_SZTL
102ed1c668
Merge Mainline 2020-07-22 17:48:51 +08:00
CN_SZTL
6049374622
kernel: bump 4.19 to 4.19.134
Resolve conflicted:
395-v5.8-net-sch_cake-Take-advantage-of-skb-hash-where-appropriate.patch
641-sch_cake-fix-IP-protocol-handling-in-the-presence-of.patch

Remove upstreamed:
742-v5.5-net-sfp-add-support-for-module-quirks.patch
743-v5.5-net-sfp-add-some-quirks-for-GPON-modules.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 17:41:51 +08:00
CN_SZTL
69e815a417
kernel: bump 5.4 to 5.4.53
Resolve conflicted:
- 395-v5.8-net-sch_cake-Take-advantage-of-skb-hash-where-appropriate.patch
- 641-sch_cake-fix-IP-protocol-handling-in-the-presence-of.patch

Remove upstreamed:
- 022-v5.8-mtd-rawnand-brcmnand-correctly-verify-erased-pages.patch
- 024-v5.8-mtd-rawnand-brcmnand-fix-CS0-layout.patch
- 742-v5.5-net-sfp-add-support-for-module-quirks.patch
- 743-v5.5-net-sfp-add-some-quirks-for-GPON-modules.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 16:59:36 +08:00
CN_SZTL
7e893c7b8f
kernel: bump 4.14 to 4.14.189
Resolve conflicted:
- 818-qspi-support-layerscape.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 16:52:00 +08:00
CN_SZTL
6e0a62a71c
kernel: bump 4.9 to 4.9.231
Remove upstreamed:
- 821-usb-Remove-annoying-warning-about-bogus-URB.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 15:45:41 +08:00
CN_SZTL
b1c13dfe62
target/rockchip: rework nanopi-r2s rtl8152 LEDs
Reference: jayanta525/openwrt-nanopi-r2s@d1679edd38.
2020-07-22 03:18:33 +08:00
CN_SZTL
ce5ee290c9
target/rockchip: drop iqrbanlance 2020-07-21 13:20:42 +08:00
CN_SZTL
e5998aedf2
target/rockchip: enable thermal module 2020-07-20 21:29:00 +08:00
CN_SZTL
774a16483a
Merge Mainline 2020-07-20 17:58:33 +08:00
CN_SZTL
56a436b2af
target/ramips: fix check-size 2020-07-20 17:55:14 +08:00
CN_SZTL
3689a1b5ef
target/rockchip: add default packages 2020-07-19 21:04:55 +08:00
CN_SZTL
67c3cb0870
target/ramips: mt7621: fix typo error 2020-07-19 20:50:49 +08:00
CN_SZTL
da075c1965
target/ramips: sync with recently changes from Lean 2020-07-19 20:16:32 +08:00
CN_SZTL
203af7e529
target/ramips: XiaoMi AC2100: unlock BootLoader 2020-07-19 20:12:07 +08:00
CN_SZTL
f2c53c3f81
target/ramips: sync with recently changes from Lean 2020-07-19 20:08:03 +08:00
CN_SZTL
f6049b8d42
target/rockchip: allow higher frequency 2020-07-19 11:50:27 +08:00
CN_SZTL
80198f886f
target/rockchip: enable thermal module 2020-07-19 11:41:24 +08:00
CN_SZTL
a05a50c212
sunxi: switch to kernel 5.4 2020-07-18 14:52:23 +08:00
CN_SZTL
50d65eacd1
kernel/4.19: drop outdated patch 2020-07-18 14:40:55 +08:00
CN_SZTL
e5d384584a
target/rockchip: improve r2s support 2020-07-18 14:08:23 +08:00
CN_SZTL
efb6f74258
Merge Mainline 2020-07-18 13:43:33 +08:00
Adrian Schmutzler
2c4f3fdc82
lantiq: move 01_led_migration script to subtargets
Split the /etc/uci-defaults/01_led_migration scripts into subtargets
as already done for most of the other base-files.

While this introduces a minor amount of code duplication, it still
is considered an improvement, as device-specific settings are kept
together in the subtargets' base-files and the script at hand can be
removed entirely for two of the subtargets not needing it.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-18 13:35:38 +08:00
Martin Schiller
ede5f6c696
lantiq: move dsl related base-files into own package
It does not make sense to install this components on lantiq systems
where the dsl subsystem is not needed/used.

This also makes it possible to use the files also on other targets.
(hopefully ipq401x / FritzBox 7530 in the near future)

Signed-off-by: Martin Schiller <ms.3headeddevs@gmail.com>
2020-07-18 13:33:36 +08:00
Salvatore Mesoraca
0e287eab00
ramips: add arl_table support for MT7530
Use switch.h API to expose MT7530's ARL table to
user space.

Signed-off-by: Salvatore Mesoraca <salvatore@samknows.com>
2020-07-18 13:32:39 +08:00
David Bauer
6cdea00cac
rockchip: add NanoPi R2S support
Hardware
--------
RockChip RK3328 ARM64 (4 cores)
1GB DDR4 RAM
2x 1000 Base-T
3 LEDs (LAN / WAN / SYS)
1 Button (Reset)
Micro-SD slot
USB 2.0 Port

Installation
------------
Uncompress the OpenWrt sysupgrade and write it to a micro SD card using
dd.

MAC-address
-----------
The vendor code supports reading a MAC address from an EEPROM connected
via i2c0 of the SoC. The EEPROM (address 0x51) should contain the MAC
address in binary at offset 0xfa. However, my two units didn't come with
such an EEPROM soldered on. The EEPROM should be placed between the SoC
and the GPIO pins on the board. (U10)

Generating rendom MAC addresses works around this issue. Otherwise, all
boards running the same image have identical MAC addresses.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-18 13:25:53 +08:00
David Bauer
df6134528b
rockchip: allow for multiple boot-scripts
Add support for select a bootscript depending on the device built. This
is necessary, as the FriendlyARM NanoPi R2S needs a different bootcmd in
order to produce output on the debug UART.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-18 13:25:47 +08:00
CN_SZTL
735fed7a18
target/rockchip: drop garbage codes 2020-07-18 13:24:35 +08:00
CN_SZTL
986c000372
Revert "ipq806x: fix aliases node name for Qualcomm IPQ8064/DB149"
This reverts commit 037de3e579.

Revert "ipq806x: use consistent DT labels for gsbiX_serial"

This reverts commit 9b305d8456.

Revert "ipq806x: really fix aliases node for Qualcomm IPQ8064/DB149"

This reverts commit 099c14802e.
2020-07-18 10:44:44 +08:00
AmadeusGhost
dc2f0cf368
ramips/mt7621: re-added hwnat support for kernel 5.4 (#5120)
* ramips: mt7621.dtsi: add missing pinctrl to ethernet node

Add rgmii1_pins (1st GMAC) and mdio_pins to ethernet node
pinctrl to ensure they are set to correct mode

* ramips: kernel: ralink-eth support mt7621

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>

* ramips: some devices use ralink-eth driver

Also re-added mt7621 hwnat support for some devices.

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>

* ramips/mt7621: re-added hwnat support

Co-authored-by: LGA1150 <dqfext@gmail.com>
Co-authored-by: Chen Minqiang <ptpt52@gmail.com>
2020-07-18 01:18:45 +08:00
CN_SZTL
018633c100
target/mt7621: fix typo 2020-07-17 23:39:15 +08:00
CN_SZTL
daeabbdf23
target/mt7621: enable hw crypto 2020-07-17 23:34:39 +08:00
CN_SZTL
102c3f1a52
Revert "ipq40xx: merge all ar40xx patches into one single patch"
This reverts commit 6904465982 and 9c7c886eba.
2020-07-17 19:02:09 +08:00
CN_SZTL
15a791c6ba
Merge Mainline 2020-07-17 18:58:14 +08:00
CN_SZTL
6db7a01cbb
Revert "ipq40xx: fix ethernet vlan double tagging"
This reverts commit f4689c739b and a5ac960466.
2020-07-17 18:26:22 +08:00
John Crispin
6904465982
ipq40xx: fix ethernet vlan double tagging
As the the SoC uses implicit vlan tagging for dual MAC support, the
offload feature breaks when using double tagging.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-16 20:39:52 +08:00
John Crispin
9c7c886eba
ipq40xx: merge all ar40xx patches into one single patch
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-16 20:38:47 +08:00
John Crispin
2950c057b4
mediatek: backport latest pci/e driver from upstream
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-16 20:37:23 +08:00
John Crispin
78a790477c
mediatek: generate UBI images for the rev board
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-16 20:37:12 +08:00
John Crispin
458e03c93b
mediatek: minor fix to eip97 driver
This patch makes the driver work on the newer v2.3 core.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-16 20:36:58 +08:00
CN_SZTL
dc78a80d9f
Merge Upstream 2020-07-16 20:36:17 +08:00
CN_SZTL
ad98ac5065
kernel: bump 5.4 to 5.4.52
Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-16 20:31:57 +08:00
Adrian Schmutzler
099c14802e
ipq806x: really fix aliases node for Qualcomm IPQ8064/DB149
Having looked at this again, it appears that only gsbi2_serial
is actually enabled for this device, so the entry in the broken
aliases node was correct.

Therefore, this needs to set its own serial0 instead of inheriting
"serial0 = &gsbi4_serial;" from DTSI. Do this with the correctly
named aliases node now.

Fixes: c83f7b6d21 ("ipq806x: fix aliases node name for Qualcomm
IPQ8064/DB149")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-16 20:30:16 +08:00
Adrian Schmutzler
9b305d8456
ipq806x: use consistent DT labels for gsbiX_serial
Kernel uses the label gsbiX_serial, so let's adjust our labels to
this naming scheme.

This is cosmetic, and actually only already existing gsbi4_serial
has been used at all.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-16 20:28:41 +08:00