aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* ath79: add support for Huawei AP5030DNMarco von Rosenberg2024-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Huawei AP5030DN is a dual-band, dual-radio 802.11ac Wave 1 3x3 MIMO enterprise access point with two Gigabit Ethernet ports and PoE support. Hardware highlights: - CPU: QCA9550 SoC at 720MHz - RAM: 256MB DDR2 - Flash: 32MB SPI-NOR - Wi-Fi 2.4GHz: QCA9550-internal radio - Wi-Fi 5GHz: QCA9880 PCIe WLAN SoC - Ethernet 1: 10/100/1000 Mbps Ethernet through Broadcom B50612E PHY - Ethernet 2: 10/100/1000 Mbps Ethernet through Marvell 88E1510 PHY - PoE: input through Ethernet 1 port - Standalone 12V/2A power input - Serial console externally available through RJ45 port - External watchdog: SGM706 (1.6s timeout) Serial console: 9600n8 (9600 baud, no stop bits, no parity, 8 data bits) MAC addresses: Each device has 32 consecutive MAC addresses allocated by the vendor, which don't overlap between devices. This was confirmed with multiple devices with consecutive serial numbers. The MAC address range starts with the address on the label. To be able to distinguish between the interfaces, the following MAC address scheme is used: - eth0 = label MAC - eth1 = label MAC + 1 - radio0 (Wi-Fi 5GHz) = label MAC + 2 - radio1 (Wi-Fi 2.4GHz) = label MAC + 3 Installation: 0. Connect some sort of RJ45-to-USB adapter to "Console" port of the AP 1. Power up the AP 2. At prompt "Press f or F to stop Auto-Boot in 3 seconds", do what they say. Log in with default admin password "admin@huawei.com". 3. Boot the OpenWrt initramfs from TFTP using the hidden script "run ramboot". Replace IP address as needed: > setenv serverip 192.168.1.10 > setenv ipaddr 192.168.1.1 > setenv rambootfile openwrt-ath79-generic-huawei_ap5030dn-initramfs-kernel.bin > saveenv > run ramboot 4. Optional but recommended as the factory firmware cannot be downloaded publicly: Back up contents of "firmware" partition using the web interface or ssh: $ ssh root@192.168.1.1 cat /dev/mtd11 > huawei_ap5030dn_fw_backup.bin 5. Run sysupgrade using sysupgrade image. OpenWrt shall boot from flash afterwards. Return to factory firmware (using firmware upgrade package downloaded from non-public Huawei website): 1. Start a TFTP server in the directory where the firmware upgrade package is located 2. Boot to u-boot as described above 3. Install firmware upgrade package and format the config partitions: > update system FatAP5X30XN_SOMEVERSION.bin > format_fs Return to factory firmware (from previously created backup): 1. Copy over the firmware partition backup to /tmp, for example using scp 2. Use sysupgrade with force to restore the backup: sysupgrade -F huawei_ap5030dn_fw_backup.bin 3. Boot AP to U-Boot as described above Quirks and known issues ----------------------- - On initial power-up, the Huawei-modified bootloader suspends both ethernet PHYs (it sets the "Power Down" bit in the MII control register). Unfortunately, at the time of the initial port, the kernel driver for the B50612E/BCM54612E PHY behind eth0 doesn't have a resume callback defined which would clear this bit. This makes the PHY unusable since it remains suspended forever. This is why the backported kernel patches in this commit are required which add this callback and for completeness also a suspend callback. - The stock firmware has a semi dual boot concept where the primary kernel uses a squashfs as root partition and the secondary kernel uses an initramfs. This dual boot concept is circumvented on purpose to gain more flash space and since the stock firmware's flash layout isn't compatible with mtdsplit. - The external watchdog's timeout of 1.6s is very hard to satisfy during bootup. This is why the GPIO15 pin connected to the watchdog input is configured directly in the LZMA loader to output the CPU_CLK/4 signal which keeps the watchdog happy until the wdt-gpio kernel driver takes over. Because it would also take too long to read the whole kernel image from flash, the uImage header only includes the loader which then reads the kernel image from flash after GPIO15 is configured. Signed-off-by: Marco von Rosenberg <marcovr@selfnet.de> [fixed 6.6 backport patch naming] Signed-off-by: David Bauer <mail@david-bauer.net>
* kernel: fix build issue on macOSFelix Fietkau2024-03-30
| | | | | | | | On x86, the build failed while trying to compile tools/lib/string.c because of a clash with the system provided implementation for strlcpy Add ifdefs to prevent the conflict. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: b43-tools: fix compilation with GCC14Robert Marko2024-03-30
| | | | | | | | | | | | GCC14 no longer treats integer types and pointer types as equivalent in assignments (including implied assignments of function arguments and return values), and instead fails the compilation with a type error. So, as a workaround lets disable the newly introduced error -Werror=int-conversion and just make it print a warning to enable compiling with GCC14 as Fedora 40 now defaults to it. Signed-off-by: Robert Marko <robimarko@gmail.com>
* uboot-envtools: ath79: remove D-Link DIR-8x9 and DAP-1720 env configShiji Yang2024-03-30
| | | | | | | The uboot-envtools can automatically parse the dts 'u-boot,env' compatible string. So the env config file is now useless. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ath79: move D-Link DAP-1720 A1 to tiny sub-targetShiji Yang2024-03-30
| | | | | | | | | | | This device only has 64 MiB RAM and ath10k wireless driver will consume a lot of memory. Let's move it to the tiny sub-target to get extra 7 MiB of free space. In this way, we can extend their lifetime to receive support for the next OpenWrt LTS version. This patch also trims the duplicate "recovery.bin" image as it's the same as the "factory.bin". Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ath79: move D-Link DIR-859 and DIR-869 series to tiny sub-targetShiji Yang2024-03-30
| | | | | | | | | | These devices only have 64 MiB RAM and ath10k wireless driver will consume a lot of memory. Let's move them to the tiny sub-target to get extra 7 MiB of free space. In this way, we can extend their lifetime to receive support for the next OpenWrt LTS version. This patch also trims the USB package for the non-existent USB port. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ath79: tiny: enable NVMEM u-boot-env driverShiji Yang2024-03-30
| | | | | | | | The upcoming D-Link devices to the tiny sub-target require it to parse the u-env MAC address. The kernel size will increase by about 1 KiB. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ath79: move seama image recipe to the common MakefileShiji Yang2024-03-30
| | | | | | | Move seama image recipe to the common Makefile in order for some tiny sub-target D-Link devices can share it. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ath79: disable building small Flash EnGenius devicesShiji Yang2024-03-30
| | | | | | | The buildbot has not successfully built them for a long time due to small Flash size. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* dtc: fix compilation with both librariesRosen Penev2024-03-29
| | | | | | Upstream backports. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools/meson: static host and both librariesRosen Penev2024-03-29
| | | | | | | | | Host packages typically are statically linked to avoid rpath issues and to avoid libraries not being found as a result. With target packages, both libraries make the most sense as InstallDev typically installs both, giving packages flexibility. Default this behavior. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools/meson: update to 1.3.2Rosen Penev2024-03-29
| | | | | | | | Add explicit setup as implicit is deprecated. Rename pkgconfig as no hyphen is deprecated. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* mediatek: filogic: add Netcore N60 supportChukun Pan2024-03-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware specification: SoC: MediaTek MT7986A 4x A53 Flash: ESMT F50L1G41LB 128MB RAM: W632GU6NB DDR3 256MB Ethernet: 1x 2.5G + 4x 1G WiFi1: MT7975N 2.4GHz 4T4R WiFi2: MT7975PN 5GHz 4T4R Button: Reset, WPS Power: DC 12V 2A Flash instructions: 1. Connect to the router using ssh or telnet, username: useradmin, password is the web login password of the router. 2. Use scp to upload bl31-uboot.fip and flash: "mtd write xxx-preloader.bin spi0.0" "mtd write xxx-bl31-uboot.fip FIP" "mtd erase ubi" 3. Connect to the router via the Lan port, set a static ip of your PC. (ip 192.168.1.254, gateway 192.168.1.1) 4. Download initramfs image, reboot router, waiting for tftp recovery to complete. 5. After openwrt boots up, perform sysupgrade. Note: 1. Back up all mtd partitions before flashing. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
* uboot-mediatek: add Netcore N60 supportChukun Pan2024-03-29
| | | | | | | The vendor uboot requires special fit verification. So add a custom uboot build for this device. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
* ramips: mt7620a_tplink_archer-c5-v4: use LED_FUNCTION_WLAN_2GHZ and ↵Mieczyslaw Nalewaj2024-03-29
| | | | | | | | LED_FUNCTION_WLAN_5GHZ Use LED_FUNCTION_WLAN_2GHZ and LED_FUNCTION_WLAN_5GHZ instead function-enumerator Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* imagebuilder: add check if target is sourced from feedFlorian Eckert2024-03-29
| | | | | | | | The image generation would fail, if the target is included from a feed. To fix this, check if targets is found in the feed directory. Signed-off-by: Florian Eckert <fe@dev.tdt.de> Tested-by: Thomas Richard <thomas.richard@bootlin.com>
* imagebuilder: check if BOARD is located in the feeds sub directoryFlorian Eckert2024-03-29
| | | | | | | | | Fixes the regression so that targets that were installed via a feed can also be build again with the Image Builder. Fixes: 84ec8c4 ("imagebuilder: copy from buildroot only target/linux") Signed-off-by: Florian Eckert <fe@dev.tdt.de> Tested-by: Thomas Richard <thomas.richard@bootlin.com>
* rockchip: remove redundant 'console' parameter from boot scriptTianling Shen2024-03-29
| | | | | | | | ttyS2 is the default console used for all rockchip boards. The redundant 'console=tty1' parameter now breaks the console due to recent procd update. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* rockchip: remove 'swiotlb' parameter from boot scriptTianling Shen2024-03-29
| | | | | | | | | | | | | | We have hardware IOMMU support and this is totally unnecessary. The given value is also unreasonable, it's too small and causes kernel panic in some cases: [ 5706.856473] sdhci-dwcmshc fe310000.mmc: swiotlb buffer is full (sz: 28672 bytes), total 512 (slots), used 498 (slots) [ 5706.864451] sdhci-dwcmshc fe310000.mmc: swiotlb buffer is full (sz: 65536 bytes), total 512 (slots), used 464 (slots) This parameter seems to be added by mistake, so remove it. Fixes: e35c7ab51fd1 ("rockchip: merge bootscript") Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* qualcommax: default to kernel 6.6Robert Marko2024-03-29
| | | | | | | 6.6 has been in testing on qualcommax for a while so it should be in a good shape, but lets default to it to get a wider audience. Signed-off-by: Robert Marko <robimarko@gmail.com>
* Revert "tools/xz: update to 5.6.1" (CVE-2024-3094)Petr Štetiar2024-03-29
| | | | | | | | This reverts commit 714c91d1a63f29650abaa9cf69ffa47cf2c70297 as probably the upstream xz repository and the xz tarballs have been backdoored. References: https://www.openwall.com/lists/oss-security/2024/03/29/4. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* config: Enable ext4 journaling by default.Jordan Woyak2024-03-29
| | | | | | | | | | Not having a journal by default is a major "gotcha". Because openwrt does not fsck on boot, a power loss without journaling can result in a dirty filesystem that openwrt will mount as read-only which requires intervention to restore the router to working order. Signed-off-by: Jordan Woyak <jordan.woyak@gmail.com>
* kernel: kmod-phy-smsc: add dependency on crc16Tomasz Maciej Nowak2024-03-29
| | | | | | Introduced WoL feature needs CRC16 support. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
* perf: fix build on linux 6.6Felix Fietkau2024-03-29
| | | | | | | | - use Makefile.perf to prevent overriding MAKEFLAGS - fix path to PKG_CONFIG - link libstdc++ statically (only used for demangling) Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools/cmake: disable xcode generatorFelix Fietkau2024-03-29
| | | | | | Fixes build on latest macOS SDK Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools/e2fsprogs: disable building fuse2fs to avoid depending on libfuseFelix Fietkau2024-03-29
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: bump 5.15 to 5.15.152Hauke Mehrtens2024-03-29
| | | | | | | | Removed because it is upstream: generic/backport-5.15/081-v5.17-regmap-allow-to-define-reg_update_bits-for-no-bus.patch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.15.y&id=fbddd48f1456db32b675fad95a902de38345902a Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: bump 5.15 to 5.15.151Hauke Mehrtens2024-03-29
| | | | | | No manual changes needed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* linux-firmware: add missing LICENSE_FILES infoFlorian Eckert2024-03-29
| | | | | | | Where it is clear which lincense the firmware package has, the missing information are added. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* linux-firmware: add LICENSE_FILES and LICENSE file handlingFlorian Eckert2024-03-29
| | | | | | | | | | | The firmware blobs have all different licenses from the different manufacturers of the binary blobs. This information is contained in the upstream 'linux-firmware' repositroy. This commit extends the package handling so that this information can be added as an additional argument during packages generation. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* archs38: remove 5.15 supportRobert Marko2024-03-29
| | | | | | Since 6.1 is now default, drop 5.15 support. Signed-off-by: Robert Marko <robimarko@gmail.com>
* archs38: default to kernel 6.1Robert Marko2024-03-29
| | | | | | Default to kernel 6.1 on archs38. Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: 6.6: add kernel missing symbolMieczyslaw Nalewaj2024-03-29
| | | | | | Add missing symbol CONFIG_SSIF_IPMI_BMC causing bcm53xx compilation errors. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
* tools/cmake: update to 3.29.0Nick Hainke2024-03-29
| | | | | | | | | | | | Changelog: - https://www.kitware.com/cmake-3-29-0-available-for-download/ Refresh patches: - 120-curl-fix-libressl-linking.patch - 130-bootstrap_parallel_make_flag.patch - 150-zstd-libarchive.patch Signed-off-by: Nick Hainke <vincent@systemli.org>
* tools/xz: update to 5.6.1Nick Hainke2024-03-29
| | | | | | Change mirror to github. Signed-off-by: Nick Hainke <vincent@systemli.org>
* bcm47xx: refresh kernel 6.1 configRafał Miłecki2024-03-29
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm47xx: add testing support for kernel 6.1Rafał Miłecki2024-03-29
| | | | | | | Tested on Luxul XWR-1750 (BCM4706). Working: switch (LAN, WAN), LEDs, sysupgrade. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm4908: refresh kernel 6.6 configRafał Miłecki2024-03-28
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm4008: prepare to work on kernel 6.6Rafał Miłecki2024-03-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't add KERNEL_TESTING_PATCHVER yet as there are some issues with it. On TP-Link Archer C2300 serial console seems to stop working after preinit: > Press the [f] key and hit [enter] to enter failsafe mode > Press the [1], [2], [3] or [4] key and hit [enter] to select the de� On Netgear R8000P XHCI causes external abort: [ 2.139586] Internal error: synchronous external abort: 0000000096000210 [#1] SMP [ 2.147212] Modules linked in: xhci_plat_hcd(+) xhci_hcd ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd gpio_button_hotplug(O) usbcore nls_base usb_common crc32c_generic [ 2.164774] CPU: 0 PID: 358 Comm: kmodloader Tainted: G O 6.6.22 #0 [ 2.172658] Hardware name: Netgear R8000P (DT) [ 2.177229] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 2.184395] pc : xhci_gen_setup+0x80/0x34c [xhci_hcd] [ 2.189591] lr : xhci_gen_setup+0x74/0x34c [xhci_hcd] [ 2.194788] sp : ffffffc0815d37b0 [ 2.198194] x29: ffffffc0815d37b0 x28: ffffff8002000000 x27: ffffff8001172d88 [ 2.205540] x26: ffffff8002000000 x25: 0000000000000000 x24: ffffffc078b603c0 [ 2.212888] x23: ffffffc078b2a008 x22: ffffff8001172c10 x21: ffffff8002000000 [ 2.220235] x20: ffffff8002000000 x19: ffffff8002000250 x18: 0000000000000000 [ 2.227582] x17: 626d756e20737562 x16: 2064656e67697373 x15: ffffffffffffffff [ 2.234929] x14: ffffff80019e9915 x13: ffffff80019e9913 x12: 00000000ffffffea [ 2.242276] x11: 00000000ffffefff x10: 0000000000000062 x9 : 00000000ffffffd0 [ 2.246760] bcm63138_nand ff801800.nand-controller: timeout waiting for command 0x4 [ 2.249623] x8 : 0000000000000073 x7 : ffffffc0815d37c0 x6 : 0000000000000075 [ 2.257513] bcm63138_nand ff801800.nand-controller: intfc status c00000e0 [ 2.264855] x5 : 0000000000000081 x4 : 0000000000000000 x3 : ffffff8001b61800 [ 2.279193] x2 : ffffffc080b5d000 x1 : ffffff80020003a8 x0 : ffffff8002000398 [ 2.286540] Call trace: [ 2.289048] xhci_gen_setup+0x80/0x34c [xhci_hcd] Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm4908: switch to the kernel 6.1Rafał Miłecki2024-03-28
| | | | | | Tested on Netgear R8000P and TP-Link Archer C2300. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm4908: use DT to mark NAND controller WP pin as not connectedRafał Miłecki2024-03-28
| | | | | | Use cleaner and more upstream-fit solution. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* airoha: remove 5.15 supportRobert Marko2024-03-28
| | | | | | Now that 6.1 is default, remove 5.15 support. Signed-off-by: Robert Marko <robimarko@gmail.com>
* airoha: default to kernel 6.1Robert Marko2024-03-28
| | | | | | 6.1 has been present as testing for a while now, so default to it. Signed-off-by: Robert Marko <robimarko@gmail.com>
* kernel: backport brcmnand support for "brcm,wp-not-connected"Rafał Miłecki2024-03-28
| | | | | | | It's required to support NAND controllers with WP pin on boards that don't have it connected to NAND chip. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: refresh kernel 6.6 configRafał Miłecki2024-03-28
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: add testing support for kernel 6.6Rafał Miłecki2024-03-28
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: switch to the kernel 6.1Rafał Miłecki2024-03-28
| | | | | | | Successfully verified on Luxul XWR-3150 (BCM47094). Tested LAN, WAN, Wi-Fi, USB, sysupgrade. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: refresh kernel 6.1 configRafał Miłecki2024-03-28
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: fix NVMEM looking for OTP NVMEM cells in wrong DT nodeRafał Miłecki2024-03-28
| | | | | | It was breaking NAND controllers drivers. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* sunxi: backport h616 thermal sensor supportChukun Pan2024-03-26
| | | | | | | Backport H616 thermal sensor support from linux-next. Tested on the Orange Pi Zero 3 (H618 SoC). Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>