Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync 23/09 #160

Merged
merged 65 commits into from
Sep 23, 2024
Merged

sync 23/09 #160

merged 65 commits into from
Sep 23, 2024

Conversation

rmandrad
Copy link
Owner

Thanks for your contribution to OpenWrt!

To help keep the codebase consistent and readable,
and to help people review your contribution,
we ask you to follow the rules you find in the wiki at this link
https://openwrt.org/submitting-patches

Please remove this message before posting the pull request.

namiltd and others added 30 commits September 22, 2024 10:37
Remove unused kernel 6.1 version file.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: #16450
Signed-off-by: Robert Marko <[email protected]>
The sysupgrade-tar image build is not defined for this target, do not
add a build instruction for it. The build system will use the definition
from the dna_valokuitu-plus-ex400 board and the build will fail.

This fixes the build of the ramips target.

Fixes: 665c215 ("ramips: add basic support for tp-link er605-v2")
Signed-off-by: Hauke Mehrtens <[email protected]>
Rename the sysupgrade.tar step to sysupgrade.bin. The sysupgrade.tar is
used in other places and we prefer a sysupgrade.bin instead.

Fixes: fea2264 ("ramips: mt7621: Add DNA Valokuitu Plus EX400")
Signed-off-by: Hauke Mehrtens <[email protected]>
The driver for fixed voltage regulater uses "regulator-fixed" for
compatible string, not "fixed-regulator".

Fixes: 102dc5a ("mvebu: add support for FortiGate 50E")
Signed-off-by: INAGAKI Hiroshi <[email protected]>
Link: #16409
Signed-off-by: Hauke Mehrtens <[email protected]>
The mdio bus number of mv88e6xxx was changed to '0' from '1' and the
"mv88e6xxx-1:<addr>:<speed>" triggers are unavailable now.
Update triggers for "SPEED" LEDs to make working that LEDs again.

Signed-off-by: INAGAKI Hiroshi <[email protected]>
Link: #16409
Signed-off-by: Hauke Mehrtens <[email protected]>
Update sysupgrade script (fortinet.sh) for Fortinet devices in
mvebu/cortexa9 and fix the following issues,

- Some individuals of FortiGate/FortiWiFi 30E/5xE devices has wrong
  kernel/rootfs offsets in "firmware-info" partition and they are not
  updated with the current sysupgrade script for Fortinet devices
  (fortinet.sh).
  As a result, the bootloader tries to load kernel data from the wrong
  address and boot with it after OpenWrt installation.
  The new script handles offsets in addition to length values.

and improve the following points.

- Only 2 bytes are handled with the current sysupgrade script
  (fortinet.sh) for kernel/rootfs length. The new script handles 4 bytes
  instead.

- The image names of image0/image1 are not handled and not updated when
  sysupgrade. The new sysupgrade script handles it and update to
  "<dist> <version> <revision>" if firmware metadata is available.
  (ex.: "OpenWrt SNAPSHOT r27440-25384026")

log of new sysupgrade script (fortinet.sh):

Tue Sep 17 10:29:16 UTC 2024 upgrade: Performing system upgrade...
Image Index: 0
Image Name : "OpenWrt SNAPSHOT r27440-25384026"
             --> "OpenWrt SNAPSHOT r27441-b3a0806a05"

  kernel:
    old: 0x003c4e00@0x00200000
    new: 0x003c4e00@0x00200000

  rootfs:
    old: 0x005c0200@0x00800000
    new: 0x005c0200@0x00800000

Unlocking kernel ...

Signed-off-by: INAGAKI Hiroshi <[email protected]>
Link: #16409
Signed-off-by: Hauke Mehrtens <[email protected]>
Swap incorrect WLAN leds assignment between WLAN 2.4 and 5 GHz for TP-Link EC220-G5 v2

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: #16331
Signed-off-by: Hauke Mehrtens <[email protected]>
We have <netinet/sctp.h> header in lksctp-tools package,
but having this var set to 'no' prevents package's configure
to detect it.

Signed-off-by: Aleksey Vasilenko <[email protected]>
Link: #16441
Signed-off-by: Hauke Mehrtens <[email protected]>
Backport ir-receiver/minipcie/poweroff/spi/usb-c support and other
minor fixes for the NanoPC T6 board.

Signed-off-by: Tianling Shen <[email protected]>
Link: #16443
Signed-off-by: Hauke Mehrtens <[email protected]>
This commit bumps tfa-layerscape package to version lf-6.6.23-2.0.0

Manually rebased:
001-fiptool-hostbuild-fixes.patch

Signed-off-by: Pawel Dembicki <[email protected]>
Link: #16360
Signed-off-by: Hauke Mehrtens <[email protected]>
This commit bumps u-boot layerscape package to lf-6.6.23-2.0.0 version.

Manually rebased:
0900-layerscape-adjust-LS1021A-IOT-config-for-OpenWrt.patch

Signed-off-by: Pawel Dembicki <[email protected]>
Link: #16360
Signed-off-by: Hauke Mehrtens <[email protected]>
This commit bumps restool layerscape package to lf-6.6.23-2.0.0 version.

Patch was refreshed.

Signed-off-by: Pawel Dembicki <[email protected]>
Link: #16360
Signed-off-by: Hauke Mehrtens <[email protected]>
Bump ls-rcw package to lf-6.6.23-3.0.0.

Signed-off-by: Pawel Dembicki <[email protected]>
Link: #16360
Signed-off-by: Hauke Mehrtens <[email protected]>
Update ls-dpl to latest 10.39.0 version.

Signed-off-by: Pawel Dembicki <[email protected]>
Link: #16360
Signed-off-by: Hauke Mehrtens <[email protected]>
Update ls-mc to latest 10.39.0 version.

Signed-off-by: Pawel Dembicki <[email protected]>
Link: #16360
Signed-off-by: Hauke Mehrtens <[email protected]>
Accept 'device' option, allowing to specify custom l3 device name,
instead of default autogenerated one (prefix "6in4-" + interface name)

Signed-off-by: Aleksandr V. Piskunov <[email protected]>
Link: #15961
Signed-off-by: Hauke Mehrtens <[email protected]>
Same as fqdn support in GRE (commit a79f3d1) and IPIP (commit 3116829)

Signed-off-by: Aleksandr V. Piskunov <[email protected]>
Link: #15961
Signed-off-by: Hauke Mehrtens <[email protected]>
Same as 'nohostroute' option for GRE tunnels (commit 0f8b9ad)
and IPIP tunnels (commit 46ce629)

Signed-off-by: Aleksandr V. Piskunov <[email protected]>
Link: #15961
Signed-off-by: Hauke Mehrtens <[email protected]>
Changelog: https://mesonbuild.com/Release-notes-for-1-5-0.html

Signed-off-by: Yegor Yefremov <[email protected]>
Link: #16425
Signed-off-by: Hauke Mehrtens <[email protected]>
1- The NanoPi R6C is a SBC by FriendlyElec based on the Rockchip RK3588s.
   It comes with 4GB or 8GB of RAM, a microSD card slot, optional 32GB eMMC
   storage, one M.2 M-Key connector, one RTL8211F 1GbE and one RTL8125
   2.5GbE Ethernet port, one USB 2.0 Type-A and one USB 3.0 Type-A port, a
   HDMI port, a 30-pin GPIO header as well as multiple buttons and LEDs.
2- Renamed 000-backport-upstream-dts-sync.patch -> 000-v2024.10-rc1-backport-upstream-dts-sync.patch
   to add the version when was applied upstream

Signed-off-by: Antonio Flores <[email protected]>
Link: #16275
Signed-off-by: Hauke Mehrtens <[email protected]>
Hardware Spec
 -SoC: Rockchip RK3588S
       CPU: Quad-core ARM Cortex-A76(up to 2.4GHz) and quad-core Cortex-A55 CPU (up to 1.8GHz)
       GPU: Mali-G610 MP4, compatible with OpenGLES 1.1, 2.0, and 3.2, OpenCL up to 2.2 and Vulkan1.2
       VPU: 8K@60fps H.265 and VP9 decoder, 8K@30fps H.264 decoder, 4K@60fps AV1 decoder, 8K@30fps H.264 and H.265
       NPU: 6TOPs, supports INT4/INT8/INT16/FP16
 -RAM: 64-bit 4GB/8GB LPDDR4X at 2133MHz
 -Flash: 32GB/None eMMC, at HS400 mode
 -Ethernet: one Native Gigabit Ethernet, and one PCIe 2.5G Ethernet
 -USB: one USB 3.0 Type-A and one USB 2.0 Type-A
 -PCIe: one M.2 Key M connector with PCIe 2.1 x1
 -HDMI:
       compatible with HDMI2.1, HDMI2.0, and HDMI1.4 operation
       support up to 7680x4320@60Hz
       Support RGB/YUV(up to 10bit) format
 -microSD: support up to SDR104 mode
 -GPIO:
       30-pin 2.54mm header connector
       up to 1x SPI, 3x UARTs, 3x I2Cs, 2x SPDIFs, 1x I2Ss, 3x PWMs, 20x GPIOs
 -Debug: UART via 3-Pin 2.54mm header, or on-board USB-C to UART
 -LEDs: 4 x GPIO Controlled LED (SYS, WAN, LAN, LED1)
 -others:
        2 Pin 1.27/1.25mm RTC battery input connector for low power RTC IC HYM8563TS
        MASK button for eMMC update
        one user button
 -Power supply: USB-C, support PD, 5V/9V/12V/20V input
 -PCB: 8 Layer, 62x90x1.6mm
 -Ambient Operating Temperature: 0℃ to 70℃

Installation:

Uncompress the OpenWrt sysupgrade and write image to the SD card using dd (dd if=*.img of=/*)

eMMC Installation:

Boot from the SD card
Uncompress the OpenWrt sysupgrade image
fash to eMMC : dd if=*.img of=/dev/mmcblk1
sync
remove SD card
reboot

Signed-off-by: Antonio Flores <[email protected]>
Link: #16275
Signed-off-by: Hauke Mehrtens <[email protected]>
Improvement and fixes for the nanopi r6 series, pending on the kernel mailing list
https://lore.kernel.org/all/[email protected]

Signed-off-by: Antonio Flores <[email protected]>
Link: #16275
Signed-off-by: Hauke Mehrtens <[email protected]>
This patch add a version to uboot patches to help identify in
futures updates when they were upstreamed.

Signed-off-by: Antonio Flores <[email protected]>
Link: #16275
Signed-off-by: Hauke Mehrtens <[email protected]>
This commits fixes the LED on the NanoPi R6 series
after changes in the DTS
https://lore.kernel.org/all/[email protected]
Reported by Github user: gSpotx2f

Signed-off-by: Antonio Flores <[email protected]>
Link: #16275
Signed-off-by: Hauke Mehrtens <[email protected]>
- This release fixes CVE-2024-45157, CVE-2024-45158, CVE-2024-45159
- Use official release archive instead of git mirror
- Update website url

Signed-off-by: Yanase Yuki <[email protected]>
Link: #16371
Signed-off-by: Hauke Mehrtens <[email protected]>
- Remove unnecessary SourceForge mirror
- Use HTTPS url

Signed-off-by: Yanase Yuki <[email protected]>
Link: #16372
Signed-off-by: Hauke Mehrtens <[email protected]>
Simplifies the error path and avoids having to handle -EPROBE_DEFER
manually.

Signed-off-by: Rosen Penev <[email protected]>
Link: #16416
Signed-off-by: Hauke Mehrtens <[email protected]>
Rename the downstream ag71xx driver to ag71xx-legacy.
It allows both upstream and downstream drivers to be compiled into modules.

Signed-off-by: Oskari Lemmela <[email protected]>
Link: #15926
Signed-off-by: Hauke Mehrtens <[email protected]>
svanheule and others added 18 commits September 22, 2024 23:08
Improve device compatibility:
  - commit ed9c97fa3305 ("tplink-safeloader: bump EAP610-V3 compat_level")

Signed-off-by: Sander Vanheule <[email protected]>
Namely radius_server_auth_port and radius_server_clients arguments. Below is a working config example:

config wifi-iface 'enterprise1'
        option device 'radio1'
        option mode 'ap'
        option network 'lan'
        option ssid 'openwrt'
        option encryption 'wpa2'
        option dh_file '/etc/hostapd/dh.pem'
        option eap_server '1'
        option eap_user_file '/etc/hostapd/eap_user'
        option ca_cert '/etc/hostapd/ca.pem'
        option server_cert '/etc/hostapd/server.crt'
        option private_key '/etc/hostapd/server.key'
        option radius_server_clients '/etc/hostapd/radius_clients'
        option radius_server_auth_port 1812

config wifi-iface 'enterprise2'
        option device 'radio2'
        option mode 'ap'
        option network 'lan'
        option ssid 'openwrt'
        option encryption 'wpa2'
        option dh_file '/etc/hostapd/dh.pem'
        option auth_server '127.0.0.1'
        option auth_secret 'radius_secret'
        option auth_cache '0'

Signed-off-by: Lev A. Melnikovsky <melnikovsky@gmail>
Link: #16112
Signed-off-by: Hauke Mehrtens <[email protected]>
If the `intval` obtained from `info` is indeed 0, it cannot be set to `conf`.

Signed-off-by: Jianhui Zhao <[email protected]>
Link: #15495
Signed-off-by: Hauke Mehrtens <[email protected]>
Ipv6 delegate option is not respected by proto of ppp/pptp/pppoe/pppoa
this add support for them.

Signed-off-by: Chen Minqiang <[email protected]>
Link: #15508
Signed-off-by: Hauke Mehrtens <[email protected]>
Ipv6 delegate option is not respected by proto mbim
this add support for it.

Signed-off-by: Chen Minqiang <[email protected]>
Link: #15508
Signed-off-by: Hauke Mehrtens <[email protected]>
Ipv6 delegate option is not respected by proto ncm
this add support for it.

Signed-off-by: Chen Minqiang <[email protected]>
Link: #15508
Signed-off-by: Hauke Mehrtens <[email protected]>
Ipv6 delegate option is not respected by proto qmi
this add support for it.

Signed-off-by: Chen Minqiang <[email protected]>
Link: #15508
Signed-off-by: Hauke Mehrtens <[email protected]>
This make source based IPv6 routing option available for directip

Signed-off-by: Chen Minqiang <[email protected]>
Link: #15508
Signed-off-by: Hauke Mehrtens <[email protected]>
Ipv6 delegate option is not respected by proto directip
this add support for it.

Signed-off-by: Chen Minqiang <[email protected]>
Link: #15508
Signed-off-by: Hauke Mehrtens <[email protected]>
Add u-boot support based on the kernel dts introduced in d101644 and
the GL-MT6000 u-boot support in fe10f97.

The pcie-mediatek-gen3 kernel driver doesn't like hotplug, so to work in
PCIe mode, the 5G modem on this device needs to be switched on by u-boot
before starting the kernel. Include an init_modem step in the boot_system
action to set the relevant gpios. (The factory bootloader does the same,
using Mediatek SDK-specific gpio_power_clr and gpio_pull_up.)

Ideally the modem would be started using gpio-hog in the device tree, but
this will need to wait until mediatek gpio-hog support is fixed upstream:

  https://lore.kernel.org/u-boot/6ef2583e85eea60560d7776377d662779e7c44e5.1722419839.git.chris@arachsys.com/

The bootloader can be replaced using the built-in web interface of the
factory bootloader. Hold the reset button for five seconds while powering
on the device and it will boot into a recovery http server.

http://192.168.1.1/uboot.html and http://192.168.1.1/bl2.html can then
be used to upload openwrt-mediatek-filogic-glinet_gl-x3000-bl31-uboot.fip
and openwrt-mediatek-filogic-glinet_gl-x3000-preloader.bin respectively.

Alternatively, from a root shell on the running system, unlock the boot
partition with

  echo 0 >/sys/block/mmcblk0boot0/force_ro

then write openwrt-mediatek-filogic-glinet_gl-x3000-bl31-uboot.fip to
/dev/mmcblk0p4 and openwrt-mediatek-filogic-glinet_gl-x3000-preloader.bin
to /dev/mmcblk0boot0.

Signed-off-by: Chris Webb <[email protected]>
Link: #15645
Signed-off-by: Hauke Mehrtens <[email protected]>
1. Remove outdated symbol CONFIG_USB_OHCI_ATH79.
The ath79 OHCI USB was already supported by the generic driver
kmod-usb-ohci. And this kernel symbol has been dropped since
upstream commit:
53d473fc1e38 ("usb: host: Remove the deprecated ATH79 USB host config options")

2. Add ath79 USB phy package to the OHCI dependencies.
Both EHCI and OHCI require it on the ath79 target.

Signed-off-by: Shiji Yang <[email protected]>
Link: #16380
Signed-off-by: Hauke Mehrtens <[email protected]>
We already have an kernel module package "kmod-phy-ath79-usb" to
drive the ath79 USB. It will be selected by the usb base package
"kmod-usb2" and "kmod-usb-ohci".

Signed-off-by: Shiji Yang <[email protected]>
Link: #16380
Signed-off-by: Hauke Mehrtens <[email protected]>
Allow to build ath11k and other drivers using
qcom-qmi-helpers together (eg. ath12k).

Signed-off-by: Janusz Dziedzic <[email protected]>
Link: #15945
Signed-off-by: Hauke Mehrtens <[email protected]>
Add upstream ath12k 802.11BE driver support.
Allow to build and use it from openwrt.

Tested on BPI-R4/BPI-R64 with:
 - Qualcomm Technologies, Inc WCN785x Wi-Fi 7(802.11be) 320MHz 2x2 [FastConnect 7800] (rev 01)

Signed-off-by: Janusz Dziedzic <[email protected]>
Link: #15945
Signed-off-by: Hauke Mehrtens <[email protected]>
Add option to add WCN7850 ath12k firmware.

Signed-off-by: Janusz Dziedzic <[email protected]>
Link: #15945
Signed-off-by: Hauke Mehrtens <[email protected]>
Fix ltssm crashes on BPI-Rx boards.
Seems read32/write32 using wrong address which
is not a problem on x86/64 PCI controllers.
But have issues on BPI-Rx boards.

Signed-off-by: Janusz Dziedzic <[email protected]>
Link: #15945
Signed-off-by: Hauke Mehrtens <[email protected]>
This updates the following firmware files:
amd64-microcode/lib/firmware/amd-ucode/microcode_amd_fam17h.bin
amd64-microcode/lib/firmware/amd-ucode/microcode_amd_fam19h.bin
amdgpu-firmware/lib/firmware/amdgpu/*
ar3k-firmware/lib/firmware/qca/hpnv21.bin
ar3k-firmware/lib/firmware/qca/hpnv21g.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_010a.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_010b.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_gf.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_gf_010a.bin
ar3k-firmware/lib/firmware/qca/nvm_usb_00130201_gf_010b.bin
ar3k-firmware/lib/firmware/qca/rampatch_usb_00130201.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.0/amss.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.0/board-2.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.0/m3.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.1/amss.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.1/board-2.bin
ath11k-firmware-wcn6855/lib/firmware/ath11k/WCN6855/hw2.1/m3.bin
ath12k-firmware-wcn7850/lib/firmware/ath12k/WCN7850/hw2.0/board-2.bin
ibt-firmware/lib/firmware/intel/ibt-0040-0041.sfi
ibt-firmware/lib/firmware/intel/ibt-0040-4150.sfi
ibt-firmware/lib/firmware/intel/ibt-0041-0041.sfi
ibt-firmware/lib/firmware/intel/ibt-0180-0041.sfi
ibt-firmware/lib/firmware/intel/ibt-0180-1050.sfi
ibt-firmware/lib/firmware/intel/ibt-0180-4150.sfi
ibt-firmware/lib/firmware/intel/ibt-0291-0291.sfi
ibt-firmware/lib/firmware/intel/ibt-1040-0041.sfi
ibt-firmware/lib/firmware/intel/ibt-1040-1050.sfi
ibt-firmware/lib/firmware/intel/ibt-1040-4150.sfi
ibt-firmware/lib/firmware/intel/ibt-17-16-1.sfi
ibt-firmware/lib/firmware/intel/ibt-17-2.sfi
ibt-firmware/lib/firmware/intel/ibt-18-16-1.sfi
ibt-firmware/lib/firmware/intel/ibt-18-2.sfi
intel-igpu-firmware-guc/lib/firmware/i915/adlp_guc_70.bin
intel-igpu-firmware-guc/lib/firmware/i915/dg1_guc_70.bin
intel-igpu-firmware-guc/lib/firmware/i915/dg2_guc_70.bin
intel-igpu-firmware-guc/lib/firmware/i915/mtl_guc_70.bin
intel-igpu-firmware-guc/lib/firmware/i915/tgl_guc_70.bin
intel-igpu-firmware-huc/lib/firmware/i915/dg2_huc_gsc.bin
iwlwifi-firmware-ax200/lib/firmware/iwlwifi-cc-a0-77.ucode
iwlwifi-firmware-ax201/lib/firmware/iwlwifi-QuZ-a0-hr-b0-77.ucode
iwlwifi-firmware-ax210/lib/firmware/iwlwifi-ty-a0-gf-a0.pnvm
iwlwifi-firmware-be200/lib/firmware/iwlwifi-gl-c0-fm-c0.pnvm
mt7921bt-firmware/lib/firmware/mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin
mt7922bt-firmware/lib/firmware/mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin
r8169-firmware/lib/firmware/rtl_nic/rtl8126a-3.fw

Link: #16458
Signed-off-by: Hauke Mehrtens <[email protected]>
Add missing ksym CONFIG_RUST

Building r27563 without this commit will fail due to this ksym
being undefined in the generic config.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne

Signed-off-by: John Audia <[email protected]>
Link: #16464
Signed-off-by: Robert Marko <[email protected]>
Avoids having to handle EPROBE_DEFER manually.

Signed-off-by: Rosen Penev <[email protected]>
Link: #16456
Signed-off-by: Robert Marko <[email protected]>
@rmandrad rmandrad merged commit 67c40cc into rmandrad:main Sep 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.