Commit Graph

6370 Commits

Author SHA1 Message Date
Carter Wang
54d1ca443d uboot-mediatek: Fix ubi command in commands
Fix typo 'ubi remote ...' -> 'ubi remove ...'.

Signed-off-by: Carter Wang <carter.wang@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-27 22:16:05 +08:00
David Bauer
4fa8f64776 mediatek: add support for GL.iNet GL-MT2500
Hardware
--------
SoC:  MediaTek MT7981BA
RAM:  1GB DDR4 (NANYA NT5AD512M16C4-JR)
MMC:  8GB eMMC (Samsung 8GTF4R)
ETH:  1000Base-T LAN (ePHY)
      2500Base-T WAN (MaxLinear GPY211C)
BTN:  1x Reset Button
LED:  System (blue/white)
      VPN (white)
USB:  1x USB-A (USB 3.0)
UART: 115200 8N1 - Pinout on board next to LAN port
      Don't connect 3.3V!

Known Issues
------------
U-Boot vendor recovery does not seem to accept any images, neither
GL.iNet images nor OpenWrt images. Recovery requires serial access!

Installation
------------
Upload the OpenWrt sysupgrade image to the Gl.iNet Web-UI. Make sure to
not retain existing settings.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-27 22:10:03 +08:00
Daniel Golle
16a099f5d6 mediatek: sync MT7988 USXGMII with SDK driver
The USXGMII driver in SDK was heavily refactored, some bugs have been
fixed and it has switched to use phylink_pcs. Follow up with changes
in SDK driver and sync our on-top-of-mainline driver with the SDK
driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-24 23:22:37 +08:00
Daniel Golle
4b44ca4957 mediatek: add driver for built-in 2.5G Ethernet PHY
Add driver for the built-in 2.5G Ethernet PHY found in the MT7988 SoC.
To function the PHY also needs firmware files which have not yet been
published via linux-firmware.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-24 23:20:03 +08:00
Daniel Golle
cce9d689eb mediatek: update pending SoC Ethernet PHY driver
Update driver for MediaTek's built-in Gigabit Ethernet PHYs which can be
found in the MT7981 and MT7988 SoCs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-24 23:18:04 +08:00
Daniel Golle
a4956e53d0 mediatek: fix, clean and unify SD card image generation
Make sure sub-images on the SD card are size-checked, allow
generating SD card without squashfs and/or initramfs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-23 22:30:10 +08:00
Daniel Golle
c10f7e39e6 mediatek: mt7623: build SD card without all filesystems
Allow building SD card images without having both initramfs and squashfs
present on the card, just like it has already been done for the mt7622
and filogic subtargets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-23 22:28:55 +08:00
Daniel Golle
0ad15c2b02 mediatek: backport cpufreq changes to support MT7988
Backport cpufreq changes from upstream so that the MediaTek MT7988 SoC
can be supported.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-22 22:59:06 +08:00
Daniel Golle
ac4e3b75ad mediatek: filogic: add driver for Richtek RT5190A regulator
The Richtek RT5190A is used on the MT7988 reference board. Backport and
enable the driver on the filogic subtarget, so we can support cpufreq
on the MT7988 reference board.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-22 22:56:08 +08:00
Daniel Golle
36fccf085d generic: mt7530: backport support for the MT7988 built-in switch
Backport commits adding support for the MT7988 built-in switch to the
mt7530 driver.

This change results in the Kconfig symbol NET_DSA_MT7530 to be extended
by NET_DSA_MT7530_MDIO (everything formally covered by NET_DSA_MT7530)
and NET_DSA_MT7530_MMIO (a new driver for the MMIO-connected built-in
switch of the MT7988 SoC).

Select NET_DSA_MT7530_MDIO for all targets previously selecting
NET_DSA_MT7530, with the exception of mediatek/filogic which also
selects NET_DSA_MT7530_MMIO.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-21 22:32:40 +08:00
Daniel Golle
40e94fc5fd generic: add support for MediaTek NETSYS v3
In order to support Ethernet on the MT7988 SoC add support for NETSYS v3
as well as new paths and USXGMII SerDes to the mtk_eth_soc driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-21 22:20:37 +08:00
coolsnowwolf
de47a6a5c4 rockchip: add uboot-envtools support for T68M 2023-11-20 13:25:09 +08:00
Ilya Katsnelson
a4c684fd02 build: replace true with a custom noop script
`true` might be a shell built-in, or simply not accessible in the hardcoded locations.
Replace it with a custom script that does nothing.

Signed-off-by: Ilya Katsnelson <me@0upti.me>
2023-11-19 22:54:50 +08:00
Daniel Golle
1c4dfe2b19 kernel: add support MeigLink SLM828 modem
Another Qualcomm-based USB-connected modem, offering endpoints
 0 : rndis_host (link to voip subsystem listening on 169.254.5.100)
 1 : rndis_host (?)
 2 : option (?)
 3 : option (at)
 4 : option (at)
 5 : option (?)
 6 : GobiNet (qmi)
 7 : ?

Add support for this modem in rndis_host, option and qmi_wwan driver
which allows the modem to be used with ModemManager.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-11-19 22:51:46 +08:00
coolsnowwolf
8578eed80e Revert "autocore: unify wifi signal view"
This reverts commit 30783ee204.
2023-11-17 14:28:30 +08:00
coolsnowwolf
b2baa9ea19 treewide: disable GL.iNet’s devices support
This is required by their group admin, since
they can represent the GL.iNet official.
2023-11-17 14:25:01 +08:00
coolsnowwolf
e14b03b6c2 kernel: fix linux 5.4 hash typo
Fixes: #11661
2023-11-14 20:09:47 +08:00
aakkll
d8ad8adc3b
kernel: bump 5.15 to 5.15.138 (#11658)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-11-13 17:47:28 +08:00
aakkll
b9ceecfd2c
kernel: bump 6.1 to 6.1.62 (#11656)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-11-13 17:35:13 +08:00
aakkll
03ef1793db
kernel: bump 5.4 to 5.4.260 (#11657)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-11-13 17:34:53 +08:00
Rani Hod
59e66205ed bcm53xx: build a single device per profile
So far every build of a single bcm53xx Target Profile (it means: when
NOT using CONFIG_TARGET_MULTI_PROFILE) resulted in all target devices
images being built. Now it only builds the one matching selected
profile.

Suggested-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Rani Hod <rani.hod@gmail.com>
[rmilecki: update commit subject + body & move PROFILES line]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2023-11-12 00:10:31 +08:00
David Bauer
fbaaae5d55 ramips: fix mt7621 kernel compilation
The OF LED configuration patch fails on MT7621, as the necessary headers
were only included for the mediatek subtarget with an additional patch.

Fixes: 242fe8634eba ("generic: add hack for MT753x LED configuration")

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:58:28 +08:00
David Bauer
b8fe2aca01 mediatek: configure TUF-AX4200 LAN LEDs
As we can now configure the switch LED configuration, write the switch
LED configuration values from the vendor firmware to the switch-IC.

Previously, the switch-LEDs did not show any acitvity or link-status
whatsoever.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:57:51 +08:00
David Bauer
bcef100d36 mediatek: apply stock configuration for WAN-LED
Apply the same LED configuration used by the vendor-firmware for the
GPY211 controlled WAN LED in OpenWrt.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:56:29 +08:00
David Bauer
74d0214003 generic: add hack for MT753x LED configuration
This adds a small hack similar to the one used for ar8xxx switches to
read a reg:value map for configuring the LED configuration registers.

This allows OpenWrt to write device-specific LED action as well as blink
configurations. It is unlikely to be accepted upstream, as upstream
plans on integrating their own framework for handling these LEDs.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:55:20 +08:00
David Bauer
39b2d130e5 generic: mt7530: enable PHY configuration using OF
The MT753x switches provide a switch-internal MDIO bus for the embedded
PHYs.

Register a OF sub-node on the switch OF-node for this internal MDIO bus.
This allows to configure the embedded PHYs using device-tree.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-11-11 23:54:04 +08:00
aiamadeus
bc4708a64c r8125: update to 9.012.03-1
Closed: #11646
2023-11-07 22:40:35 +08:00
aiamadeus
3dac5fb33d r8152: update to 2.17.1-3 2023-11-07 22:39:05 +08:00
aiamadeus
a1a1c8a10c r8168: update to 8.052.01 2023-11-07 22:37:05 +08:00
coolsnowwolf
f852316284 mediatek: fix gl-mt6000 wireless 2023-11-06 22:15:40 +08:00
aakkll
2e5b2e92c3
kernel: bump 6.1 to 6.1.61 (#11637)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-11-05 02:22:20 +08:00
coolsnowwolf
30783ee204 autocore: unify wifi signal view 2023-11-04 15:35:01 +08:00
coolsnowwolf
8a4651f110 mediatek: add led aliases for GL.iNet GL-MT6000 2023-11-04 15:24:57 +08:00
Brian Norris
104c0575ef base-files: Align rootfs_data upgrades to 64KiB on eMMC
Rootfs overlays get created at a ROOTDEV_OVERLAY_ALIGN (64KiB)
alignment after the rootfs, but emmc_do_upgrade() is assuming
it comes at the very next 512-byte sector.

Suggested-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
(move spaces around, mention fstools' libtoolfs)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-11-04 15:21:58 +08:00
coolsnowwolf
07c7f456d5 Version update to R23.11.11 2023-11-04 14:24:04 +08:00
coolsnowwolf
a3c464f06c mediatek: add default package 2023-11-04 14:23:11 +08:00
zheshifandian
a2c8782d53
mediatek: improve GL-MT6000 support (#11636)
* mediatek: fix sysupgrade for gl-mt6000

* mediatek: add u-boot support for gl-mt6000

* mediatek: fix lan port for gl-mt6000

* mediatek: fix wifi mac for gl-mt6000
2023-11-04 14:19:47 +08:00
Hauke Mehrtens
cd7cbee6b1 kernel: bump 5.10 to 5.10.199
All patches automatically rebased.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-11-03 23:28:39 +08:00
aiamadeus
a8ddfc2e10 mediatek: add Netcore N60 support
Connect to the router using ssh or telnet,
username: useradmin, password is the web
login password of the router.

Signed-off-by: AnYun <amadeus@openjmu.xyz>
2023-11-01 22:28:50 +08:00
aiamadeus
6939d662fb mediatek: add TP-Link TL-XTR8488 support
The TP-Link TL-XTR8488 has the same hardware as the
TP-Link TL-XDR6088 except for the wifi and ram part.

RAM: MT40A512M16TB DDR4 1GB
WiFi1: MT7976GN 2.4GHz 4T4R
WiFi2: MT7976AN 5.2GHz 4T4R
WiFi3: MT7915AN 5.8GHz 4T4R

Signed-off-by: AnYun <amadeus@openjmu.xyz>
2023-11-01 22:16:26 +08:00
aiamadeus
c8e9d227fd kernel/video: add ARM GPU drivers 2023-10-30 22:54:05 +08:00
Liangbin Lian
fd7b5ec17a kernel: usb-audio remove Kconfig USB_AUDIO
CONFIG_USB_AUDIO is a "USB Audio Gadget" driver, not a usb device driver

CONFIG_USB_AUDIO is "USB Audio support" before linux 2.6

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
2023-10-29 23:40:07 +08:00
Luca Barbato
7d7743dade kernel: Enable hwmon for nvme
Expose the temperature sensors as hwmon, it improves the overall
user experience since on tiny boards the nvme can become a substantial
source of heat.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Reviewed-by: Robert Marko <robimarko@gmail.com>
2023-10-29 23:38:15 +08:00
Hauke Mehrtens
aa6a5f292a openssl: update to 3.0.12
Major changes between OpenSSL 3.0.11 and OpenSSL 3.0.12 [24 Oct 2023]
 * Mitigate incorrect resize handling for symmetric cipher keys and IVs. (CVE-2023-5363)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-10-26 23:38:50 +08:00
aakkll
85323635c0
kernel: bump 6.1 to 6.1.60 (#11620) 2023-10-26 10:09:23 +08:00
Rahul Thakur
2d8ac40752 dnsmasq: add support for RA option 31
The option 31 in the RA specifies the DNS search list, the support
to configure this via UCI is missing in case dnsmasq-dhcpv6 is used.

This commit uses the uci option domain (same as is done by odhcpd) to
read and pass the DNS search list to dnsmasq, which is then used by RA.

Hence, with this commit, we are able to configure DNS search list for the
RA messages via the uci config when dnsmsaq-dhcpv6 is used.

Signed-off-by: Rahul Thakur <rahul.thakur@iopsys.eu>
2023-10-24 18:34:01 +08:00
coolsnowwolf
eded1ca5d1 kernel: fix linux 5.4 hash typo 2023-10-24 14:18:42 +08:00
coolsnowwolf
e803f566e5 Version: Celebrate 1024 Programmers Day 2023-10-24 07:40:25 +08:00
coolsnowwolf
6a9018096b kernel: bump version 2023-10-24 07:38:02 +08:00
cjp_jx
d18c930914
autocore/x86: Fixes CPU usage display issue (#11614)
Fix: #11603
2023-10-22 23:10:23 +08:00