summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* kernel: qca-ssdk: update to 12.5 for kernel 6.6Sean Khan8 days7-161/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qualcomm recently committed a new branch (12.5.r2) targeting kernel 6.6. This lets us clean up a few patches particularly the one for "C22/C45" mdio. A quick way to see what changed for IPQ807x/6018 was to list the files produced during build (**/*.o), replace the extension with ".c", and doing a `git log`. Filtering from those commits, ones of particular interest are listed below: ``` 2024-04-16 - 0d8f30aa - fix compile issue on hk with linux style build 2024-01-29 - 636464f7 - update the check for port link notify 2024-01-24 - 30c10e7f - enable and disable loopback for xgmac to fix qm stuck issue 2024-01-15 - b6ea10aa - update the the APIs to access switch 2024-01-08 - a1687502 - Disable Tx bridge mac before power off the PHY 2024-01-07 - 3eafb613 - support led configure for malibu phy 2024-01-07 - 5c1af60d - remove phy type check from mac reset when mode switch 2023-12-17 - 79d0b1e8 - remove the PHY access APIs in ssdk_plat.c 2023-12-16 - b2953740 - Update mii read/write functions 2023-12-11 - 37f2eac3 - add port id check for fdb entry 2023-12-11 - d040ca4d - support mdio clause45 on kernel6.6 2023-12-07 - 11494fbc - use barrier mw() during access fdb entry table 2023-12-03 - 8e40a284 - fix build warnings on kernel6.6 2023-11-10 - 10aa0a02 - change speed value when call ssdk_port_link_notify 2023-11-06 - ee4c4a60 - Update mac bitmap value of L3 table on MAC delete 2023-11-03 - 7cd27d39 - support 10G phy common feature 2023-10-30 - 383cc0d2 - fix mactype and mux select issue 2023-10-24 - decf534a - support autoneg status query on force port 2023-10-11 - 111d574e - move ssdk_led_init to regi_init 2023-10-08 - 6b14c142 - the combo port also need to parse SFP pins 2023-10-03 - fb2e0401 - fix port5 interface mode switch issue in erp case ``` Verified with users on QNAP 301W, NBG7815, and myself on Dynalink DL-WRX36 that everything is functional, including LEDS. Signed-off-by: Sean Khan <datapronix@protonmail.com> Link: https://github.com/openwrt/openwrt/pull/15379 Signed-off-by: Robert Marko <robimarko@gmail.com>
* rockchip: add kernel 6.6 as testing kernelAntonio Flores8 days1-0/+1
| | | | | | Add kernel 6.6 as testing kernel Signed-off-by: Antonio Flores <antflores627@gmail.com>
* kernel: add missing kernel 6.6 symbolsAntonio Flores8 days1-0/+2
| | | | | | Add missing kernel 6.6 symbols Signed-off-by: Antonio Flores <antflores627@gmail.com>
* rockchip: refresh config 6.6Antonio Flores8 days1-18/+38
| | | | | | Refresh config 6.6 (make kernel_oldconfig). Signed-off-by: Antonio Flores <antflores627@gmail.com>
* rockchip: refresh 6.6 patchesAntonio Flores8 days30-5000/+6
| | | | | | | Refresh kernel 6.6 patches. Removed backpored patches. Signed-off-by: Antonio Flores <antflores627@gmail.com>
* kernel/rockchip: Restore kernel files for v6.1Antonio Flores8 days43-0/+6492
| | | | | | | | | | This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html for the original discussion. Signed-off-by: Antonio Flores <antflores627@gmail.com>
* kernel/rockchip: Create kernel files for v6.6 (from v6.1)Antonio Flores8 days43-0/+0
| | | | | | | | This is an automatically generated commit. When doing `git bisect`, consider `git bisect --skip`. Signed-off-by: Antonio Flores <antflores627@gmail.com>
* libbpf: Update to v1.4.1Tony Ambardar8 days1-3/+3
| | | | | | | | Update to the latest upstream release to include recent improvements and bugfixes. Link: https://github.com/libbpf/libbpf/releases/tag/v1.4.1 Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* kselftests-bpf: update for kernel 6.6Tony Ambardar8 days2-10/+46
| | | | | | | | | | | | Enable building multiple test programs and related kernel modules, with initial support for the bpf_testmod.ko module required since kernel 6.4. Explicitly disable LTO and clean up makefile variables and formatting. Fix a musl-related build failure by adding a kernel 6.6 patch: 360-selftests-bpf-portability-of-unprivileged-tests.patch Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* mediatek: bpi-r4: add ethernet aliases to DTDaniel Golle8 days1-1/+3
| | | | | | | | Adding the aliases also for Linux 6.6 was forgotten and is required for U-Boot to hand down persistent MAC addresses to Linux. Fixes: 5709254690 ("mediatek: bpi-r4: store random MAC addresses for the BPi-R4") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-envtools: add env settings for ubnt,unifi-6-lr-v2Joel Low8 days1-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been tested on two of my Unifi 6 LR v2s: ```bash $ fw_printenv # before Cannot parse config file '/etc/fw_env.config': No such file or directory $ cat /etc/fw_env.config /dev/mtd3 0x0000 0x1000 0x1000 1 $ fw_printenv arch=arm baudrate=115200 board=mt7622_evb board_name=mt7622_evb bootcmd=bootubnt bootdelay=3 bootfile=uImage cpu=armv7 device_model=U6-LR ethact=mtk_eth ethaddr=<redacted> ethcard=AQR112C ipaddr=<redacted> is_default=true loadaddr=0x5007FF28 macaddr=<redacted> serverip=<redacted> soc=mt7622 stderr=serial stdin=serial stdout=serial vendor=mediatek is_ble_stp=true ``` I had to reverse-engineer the working settings above to the UCI script. Signed-off-by: Joel Low <joel@joelsplace.sg> Link: https://github.com/openwrt/openwrt/pull/13897 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* dropbear: use ssh-keygen as an alias for dropbearkeySergey Ponomarev8 days1-2/+2
| | | | | | | | | | | | | | | | The DropBear's dropbearkey supports limited set of arguments of OpenSSH ssh-keygen: -t, -q -N -Y After the change you can generate a key with the same command. Still many features of the original OpenSSH ssh-keygen are absent in the dropbearkey. If it's needed then users should install openssh-keygen package that will replace the /usr/bin/ssh-keygen with the full version. Signed-off-by: Sergey Ponomarev <stokito@gmail.com> Link: https://github.com/openwrt/openwrt/pull/14174 [ wrap commit description to 80 columns ] Link: https://github.com/openwrt/openwrt/pull/14174 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq40xx: Enable the Engenius EAP1300Corey Minyard8 days1-2/+1
| | | | | | | | | Now that DSA is enabled and the MAC addresses are set properly, we can use it. Signed-off-by: Corey Minyard <minyard@acm.org> Link: https://github.com/openwrt/openwrt/pull/15358 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq40xx: Properly set MAC addresses for the EAP1300Corey Minyard8 days1-4/+11
| | | | | | | | | | The code that was there was just taking whatever was left in the registers, which was just wrong. Set the addresses using the value from the u-boot environment, the same way the OEM firmware does. Signed-off-by: Corey Minyard <minyard@acm.org> Link: https://github.com/openwrt/openwrt/pull/15358 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq40xx: convert Engenius EAP1300 to DSACorey Minyard8 days2-0/+18
| | | | | | | | This commit converts the EAP1300 to DSA setup. Signed-off-by: Corey Minyard <minyard@acm.org> Link: https://github.com/openwrt/openwrt/pull/15358 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq40xx: Enable NVMEM_U_BOOT_ENV configCorey Minyard8 days1-0/+1
| | | | | | | | It's needed to get the MAC addresses for the Engenius EAP1300. Signed-off-by: Corey Minyard <minyard@acm.org> Link: https://github.com/openwrt/openwrt/pull/15358 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ipq4019: fix even more wrong reference to USB nodeChristian Marangi8 days34-465/+451
| | | | | | | | | | | Commit 6136ebabc5cb ("ipq40xx: 6.6: fix DTS to use reference for usb node") fixed only some of the reference to USB node but many others were still using the old broken usb3/usb2. Fix every reference to those node and move them on using the tag name. Fixes: 6136ebabc5cb ("ipq40xx: 6.6: fix DTS to use reference for usb node") Link: https://github.com/openwrt/openwrt/pull/15392 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* mediatek: fix broken PCIe caused by update to 6.6.30Rany Hany8 days1-0/+9
| | | | | | | | | | | | | | | | | The patch "710-pci-pcie-mediatek-add-support-for-coherent-DMA.patch" makes use of "syscon_regmap_lookup_by_phandle" which requires that "syscon" be in the compatible list. Without this patch, PCIe probe will fail with the following error: [ 1.287467] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges: [ 1.294019] mtk-pcie 1a143000.pcie: Parsing ranges property... [ 1.299901] mtk-pcie 1a143000.pcie: MEM 0x0020000000..0x0027ffffff -> 0x0020000000 [ 1.307954] mtk-pcie 1a143000.pcie: missing hifsys node [ 1.313185] mtk-pcie: probe of 1a143000.pcie failed with error -22 Fixes: 4c6e9a9943 ("kernel: bump 6.6 to 6.6.30") Signed-off-by: Rany Hany <rany_hany@riseup.net>
* uboot-envtools: filogic: add support for BananaPi R4 PoEMartin Schiller9 days1-0/+1
| | | | | | | This adds support for the bpi-r4 variant with internal 2.5G PHY and additional ethernet port instead of second sfp. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
* uboot-mediatek: bpi-r4: add support for 2.5GE PoE variantMartin Schiller9 days2-0/+789
| | | | | | | This adds support for the bpi-r4 variant with internal 2.5G PHY and additional ethernet port instead of second sfp. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
* mediatek: bpi-r4: add support for 2.5GE PoE variantMartin Schiller9 days7-13/+62
| | | | | | | This adds support for the bpi-r4 variant with internal 2.5G PHY and additional ethernet port instead of second sfp. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
* mediatek: bpi-r4: dts: move common parts to dtsi fileMartin Schiller9 days2-371/+386
| | | | | | | Move the common parts of the mt7988a-bananapi-bpi-r4.dts to a dtsi file. This is done to prepare support for the 2.5G Ethernet Variant. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
* libxml2: update to 2.12.6Pascal Ernster9 days1-2/+2
| | | | | | | | | | | | | | | | Release Notes: https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.6 Changelog (taken from the release notes): - Regressions - parser: Fix detection of duplicate attributes in XML namespace - xmlreader: Fix xmlTextReaderConstEncoding - html: Fix htmlCreatePushParserCtxt with encoding - xmllint: Return error code if XPath returns empty nodeset Compile-tested: x86_x64, Q35 VM, OpenWRT SNAPSHOT r26135-a8bfdf2ed4d9 Run-tested: x86_x64, Q35 VM, OpenWRT SNAPSHOT r26135-a8bfdf2ed4d9 Signed-off-by: Pascal Ernster <git@hardfalcon.net>
* x86: generic: config-6.6: add/remove default symsJohn Audia9 days1-1/+1
| | | | | | | | Add new default and remove deprecated symbol introduced by 6.6.30[1] 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/arch/x86/Kconfig?id=v6.6.30&id2=v6.6.29 Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: bump 6.6 to 6.6.30John Audia9 days15-79/+33
| | | | | | | | | | | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.30 Removed upstreamed: ipq806x/patches-6.6/130-mtd-rawnand-qcom-Fix-broken-misc_cmd_type-in-exec_op.patch[1] Manually rebased: generic/pending-6.6/760-net-core-add-optional-threading-for-backlog-processi.patch mediatek/patches-6.6/941-arm64-dts-mt7986-move-cpuboot-in-a-dedicated-node.patch All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.30&id=87fc30db0a2bb300de289dae7c5579cc27a3cbbd Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, flogic/glinet_gl-mt6000 Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, flogic/glinet_gl-mt6000 Signed-off-by: John Audia <therealgraysky@proton.me>
* kernel: fix corrupted ethernet header on bridge multicast-to-unicastFelix Fietkau9 days2-0/+84
| | | | | Fixes: 45a8e962a591 ("kernel: fix crash with multicast-to-unicast and fraglist GRO") Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: pkgconf: provide prefix for host and hostpkg stagind directoryChristian Marangi9 days1-0/+2
| | | | | | | | | | | Some package might require to fix their pkg-config file to point to host or hostpkg file. This is the case for glib2 library that provides with pkg-config variables, tools to generates files from xml. Those tools should use the host binary instead of the targets one to correctly build packages that makes use of such tools. Link: https://github.com/openwrt/openwrt/pull/15134 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* ath79: refresh patchesRobert Marko9 days1-1/+1
| | | | | | | CI is telling us that we need to refresh the patches, so lets do so. Link: https://github.com/openwrt/openwrt/pull/15382 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq40xx: merge DTS for Linksys WHW03 V1 and V2Rodrigo Balerdi10 days3-562/+306
| | | | | | | | No changes other than the merging itself are intended in this commit. Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15345 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq40xx: clean up Linksys WHW03 V2 DTSRodrigo Balerdi10 days1-27/+18
| | | | | | | | Apply stylistic changes to facilitate DTS merging with WHW03 V1. Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15345 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq40xx: add support for Linksys WHW03 V1Rodrigo Balerdi10 days9-1/+496
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware: ========= SOC: Qualcomm IPQ4019 WiFi 1: QCA4019 IEEE 802.11b/g/n WiFi 2: QCA4019 IEEE 802.11a/n/ac WiFi 3: QCA9886 IEEE 802.11a/n/ac Bluetooth: Qualcomm CSR8510 (A10) Zigbee: Silicon Labs EM3581 NCP + Skyworks SE2432L Ethernet: Qualcomm Atheros QCA8072 (2-port) Flash: Samsung KLM4G1FEPD (4GB eMMC) RAM (NAND): 512MB LED Controller: NXP PCA9633 (I2C) Buttons: Single reset button (GPIO). Ethernet: ========= The device has 2 ethernet ports, configured as follows by default: - left port: WAN - right port: LAN Wifi: ===== The Wifi radios are turned off by default. To configure the router, you will need to connect your computer to the LAN port of the device. Bluetooth and Zigbee: ===================== Configuration included but not tested. Storage: ======== For compatibility with stock firmware, all of OpenWrt runs in a 136 MiB eMMC partition (of which there are two copies, see below). You can also use partition /dev/mmcblk0p19 "syscfg" (3.4 GiB) any way you see fit. During very limited tests, stock firmware did not mount this partition. However, backing up its stock content before use is recommended anyway. Firmware: ========= The device uses a dual firmware mechanism: it automatically reverts to the previous firmware after 3 failed boot attempts. You can switch to the inactive firmware copy by changing the "boot_part" U-Boot environment variable. You can also do it by turning on the device for a couple of seconds and then back off, 3 times in a row. Installation: ============= OpenWrt's "factory" image can be installed via the stock web UI: 1. Login to the UI. (The default password is printed on the label.) 2. Enter support mode by clicking on the "CA" link at the bottom. 3. Click "Connectivity", "Choose file", "Start", and ignore warnings. This port is based on work done by flipy (https://github.com/flipy). Signed-off-by: Rodrigo Balerdi <lanchon@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15345 Signed-off-by: Robert Marko <robimarko@gmail.com>
* rockchip: add Bananapi-R2 Pro board supportAntonio Flores10 days6-2/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware spec: - Rockchip RK3568 Quad-core ARM Cortex-A55 CPU 2GHz - GPU Mali-G52 1-Core-2EE OpenGL ES3.2 Vu1kn 1.1 OpenCL 2.0 - Memory2G DDR3 SDRAM (option 4G) - Storage Onboard 16GB eMMC Flash, Micro SD-Card slot, SATA 3.0 Port,SPI flash - Network 5 x 10/100/1000 Mbit/s Ethernet MT7531 - Display 1 HDMI port, 2 DSI interface(1 DSI can change to LVDS by software) - Camera 1 CSI camera interface - Audio Output HDMI & I2S & Speaker & Headphone - USB port USB 3.0 PORT (x2), micro USB OTG (x1) - PCIE 1 mini pcie interface & 1 M.2 key-e interface - Remote IR Receiver (x1) - GPIO 40 Pin Header : GPIO (x28) and Power (+5V, +3.3V and GND). - Switches Reset button, Power button, U-boot button - LED Power Status - Power Source 12 volt 2A via DC Power Installation: Uncompress the OpenWrt sysupgrade and write image to the SD card using dd (dd if=*.img of=/*) Boot from the SD card 1-hold down the MaskRom button 2-Connect DC power 3-Wait 5 seconds, release the button. eMMC Installation: 1-Uncompress the OpenWrt sysupgrade image 2-fash to eMMC dd if=openwrt-rockchip-armv8-sinovoip_bpi-r2-pro-squashfs-sysupgrade.img of=/dev/mmcblk1 sync 3-remove SD card reboot Signed-off-by: Antonio Flores <antflores627@gmail.com>
* kernel: add kmod-ata-ahci-dwcAntonio Flores10 days1-0/+12
| | | | | | | | Add kmod-ata-ahci-dwc for the rockchip target. https://github.com/torvalds/linux/commit/33629d35090f5ce2b1b4ce78aa39954c603536d5 Signed-off-by: Antonio Flores <antflores627@gmail.com>
* rockchip: enable MT7531 and RTC driversAntonio Flores10 days1-0/+10
| | | | | | This patch enable MT7531 switch and RTC drivers for BPI-R2 Pro. Signed-off-by: Antonio Flores <antflores627@gmail.com>
* uboot-rockchip: add Bananapi-R2 Pro supportAntonio Flores10 days1-0/+8
| | | | | | add uboot support for Bananapi-R2 Pro Signed-off-by: Antonio Flores <antflores627@gmail.com>
* toolchain: glibc: Update glibc 2.38 to recent HEADHauke Mehrtens10 days1-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 23514c72b7 syslog: Fix heap buffer overflow in __vsyslog_internal (CVE-2023-6246) d0338312aa syslog: Fix heap buffer overflow in __vsyslog_internal (CVE-2023-6779) d37c2b20a4 syslog: Fix integer overflow in __vsyslog_internal (CVE-2023-6780) 30e546d76e x86_64: Optimize ffsll function code size. 18876c9ff5 S390: Fix building with --disable-mutli-arch [BZ #31196] 6f68075869 sparc: Fix broken memset for sparc32 [BZ #31068] 0e383d2d4e sparc64: Remove unwind information from signal return stubs [BZ#31244] aac57faf54 sparc: Fix sparc64 memmove length comparison (BZ 31266) 0c5e5bace5 sparc: Remove unwind information from signal return stubs [BZ #31244] b09073e631 arm: Remove wrong ldr from _dl_start_user (BZ 31339) 506e47da1d malloc: Use __get_nprocs on arena_get2 (BZ 30945) ee4806e978 S390: Do not clobber r7 in clone [BZ #31402] 5753cda1ca linux: Use rseq area unconditionally in sched_getcpu (bug 31479) 0518bb0c16 LoongArch: Correct {__ieee754, _}_scalb -> {__ieee754, _}_scalbf 5456ff5d80 Add HWCAP2_MOPS from Linux 6.5 to AArch64 bits/hwcap.h d8a2b56b4f AArch64: Add support for MOPS memcpy/memmove/memset 25b66e8c4a AArch64: Cleanup ifuncs 1521237c32 AArch64: Cleanup emag memset 156e44845f AArch64: Add memset_zva64 a08ff92294 AArch64: Remove Falkor memcpy 168ae58e6e aarch64: correct CFI in rawmemchr (bug 31113) 1bf17ce978 aarch64: fix check for SVE support in assembler 92da7c2cfe AArch64: Check kernel version for SVE ifuncs 20534f8176 powerpc: Fix ld.so address determination for PCREL mode (bug 31640) e1135387de iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing escape sequence (CVE-2024-2961) 61484011e7 sparc: Remove 64 bit check on sparc32 wordsize (BZ 27574) 78d9f91da6 login: Check default sizes of structs utmp, utmpx, lastlog 68bff88592 login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) decc9f504a nptl: Fix tst-cancel30 on kernels without ppoll_time64 support 29e20bd122 i386: ulp update for SSE2 --disable-multi-arch configurations 5968aebb86 CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup cache (bug 31677) 541ea5172a CVE-2024-33600: nscd: Do not send missing not-found response in addgetnetgrentX (bug 31678) 2ae9446c1b CVE-2024-33600: nscd: Avoid null pointer crashes after notfound response (bug 31678) 71af8ca864 CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two buffers in addgetnetgrentX (bug 31680) e9f05fa1c6 elf: Also compile dl-misc.os with $(rtld-early-cflags) Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* rockchip: add driver for hardware RNGDaniel Golle10 days3-0/+397
| | | | | | | | | | | | | | | | Rockchip SoCs used to have a random number generator as part of their crypto device, and support for it has to be added to the corresponding driver. Newer Rockchip SoCs like the RK3568 have an independent True Random Number Generator device. Import pending patchset which adds a driver for it, include it in Kconfig and enable it in the device tree. Doing so significantly reduces the time needed to boot devices based on those SoCs, from about 27 seconds until Ethernet is up and running to less than 13 seconds with a minimal snapshot image. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* libunwind: add support for loongarch64Weijie Gao11 days2-1/+13
| | | | | | | Modify package depends to allow building for loongarch64. Also fix for building with musl. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* openssl: add linux64-loongarch64 into the targets listWeijie Gao11 days1-1/+4
| | | | | | | Add "linux64-loongarch64-openwrt" into openssl configurations to enable building on loongarch64 machines. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* grub2: add EFI support for loongarch64Weijie Gao11 days1-0/+15
| | | | | | Add a new package for loongarch64 which only supports EFI. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* kernel: modules: video: adapt for loongarch64Weijie Gao11 days1-7/+18
| | | | | | | | | | | * Allow kmod-acpi-video to be built for loongarch64: The x86-specific CONFIG_ACPI_WMI will be split from default kmod-acpi-video as a board-specific addition. * Allow kmod-drm-amdgpu to be built for loongarch64: Also add loongarch64-specific configs and modules. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* kernel: modules: netdevices: add depedency required for loongarch64Weijie Gao11 days1-3/+3
| | | | | | | Add TARGET_loongarch64 as dependency for kmod-mdio-devres, kmod-mdio-gpio and kmod-switch-rtl8366-smi Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* toolchain: Disable libtsan and liblsan sanitizer on loongarch64Weijie Gao11 days1-2/+2
| | | | | | libtsan and liblsan are not supported by glibc on loongarch64 Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* loongarch64: new targetWeijie Gao11 days16-4/+1236
| | | | | | | | | | | | | | | | | | | | | | | | Add target for Loongson LoongArch64-based boards. LoongArch is a new RISC ISA developed by Loongson. It's a bit like MIPS or RISC-V. LoongArch includes both 32-bit and 64-bit versions (LoongArch32/LoongArch64). Loongson 3A5000 and 3A6000 are the two existing CPUs of LoongArch64 and is used for PC products. It's BIOS supports ACPI and UEFI-only boot. These CPUs supports SMP and SMT. At present only LoongArch64 is supported by linux kernel. Toolchain requirement: binutils >= 2.40 gcc >= 13.1 For details, please check the following links: https://lwn.net/Articles/861951/ https://loongson.github.io/LoongArch-Documentation/README-EN.html Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* toolchain/musl: fix loongarch64 ldso file nameWeijie Gao11 days1-0/+10
| | | | | | | | | | | | | | | | GCC has changed musl dynamic linker name from ld-musl-loongarch-lp64d.so.1 to ld-musl-loongarch64.so.1 recently [1]. This means there are two dynamic linker names will be used across different ersions of GCC. But musl 1.2.5 only supports the new name while the GCC we're currently using uses the old name. To maintain compatibility with all versions of GCC, the musl is then patched to generate two symbolic links to libc.so with both old and new names. [1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=8bccee51f0deac64b79cd9ad75df599422f4c8ff Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* toolchain/gcc: fix loongarch64 ldso file nameWeijie Gao11 days2-0/+84
| | | | | | | | | | | | GCC has changed musl dynamic linker name from ld-musl-loongarch-lp64d.so.1 to ld-musl-loongarch64.so.1 recently [1]. Meanwhile musl 1.2.5 only supports the new name. So it's better to follow the new name. [1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=8bccee51f0deac64b79cd9ad75df599422f4c8ff Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* Revert "mediatek: backport mt7622 dts fix for mt7531 switch id to 6.1"Daniel Golle11 days1-28/+0
| | | | | | | | | This reverts commit 3fe239fcf8d0ea91b947af25fd28a6133aba93c6. Now that we switched to Linux 6.6 this is no longer needed, and resulted in a left-over file because it's removal was not included in the commit removing all the other files intended for Linux 6.1. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* sunxi: add support for Lichee Pi Zero Dock (V3s) boardZoltan HERPAI11 days2-0/+15
| | | | | | | | | | | | | | CPU: Allwinner V3s single-core Cortex-A7 @ 1.2GHz Memory: 64Mb DDR2 integrated into SoC package Storage: 1x SDcard on board, 1x SDcard on dock Network: 10/100M ethernet Other: 4x buttons via LRADC, CSI Flashing instructions: Standard sunxi SD card installation procedure - copy image to SD card, insert into SD card slot on the device and boot. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* ramips: remove unnecessary macros for previous kernel versionsMieczyslaw Nalewaj11 days4-27/+0
| | | | | | | | | | Remove unnecessary 'if' macros for previous kernel versions. After removing kernel 6.1 the kernel is always >= 6.6 so the conditions are unnecessary. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> [removed some more and also no longer include version.h] Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ramips: switch to Linux 6.6Daniel Golle11 days58-12062/+1
| | | | | | | Switch to Linux kernel version 6.6 and drop configs, files and patches for Linux 6.1. Signed-off-by: Daniel Golle <daniel@makrotopia.org>