aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* wifi-scripts: fix channels array property parsing in ucode scriptFelix Fietkau2024-12-08
| | | | | | Since the channels array can contain ranges, its type needs to be string, not number. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* wifi-scripts: fix ucode support for referencing wifi devices by phy nameFelix Fietkau2024-12-08
| | | | | | Rename phys according to board.json Signed-off-by: Felix Fietkau <nbd@nbd.name>
* wifi-scripts: fix regression with ucode updateFelix Fietkau2024-12-08
| | | | | | nl80211.request with GET_WIPHY for a single wiphy no longer returns an array Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fallback-sprom: create separate header filesMieczyslaw Nalewaj2024-12-08
| | | | | | | | | | | Create a separate header files fallback-sprom.h for BCMA and SSB Fallback SPROM Driver to add function prototypes to fallback-sprom.c as well. This prevents missing function prototype errors. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/17138 Signed-off-by: Robert Marko <robimarko@gmail.com>
* qualcommax: ipq807x: add Netgear DEVICE_VARSRobert Marko2024-12-08
| | | | | | | | | | Add NETGEAR_BOARD_ID and NETGEAR_HW_ID to DEVICE_VARS as multiple devices set them in their recipes, so without them being added to DEVICE_VARS then simply the value from last recipe that gets evaluated is used and images are generated with the wrong ID-s. Link: https://github.com/openwrt/openwrt/pull/17203 Signed-off-by: Robert Marko <robimarko@gmail.com>
* qualcommax: ipq60xx: add Linksys MR7350 supportVladyslav Andreichykov2024-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linksys MR7350 is a 802.11ax Dual-band router/AP. Specifications: * CPU: Qualcomm IPQ6000 Quad core Cortex-A53(A73) 1.5GHz * RAM: 512MB of DDR3 * Storage: 256Mb NAND * Ethernet: 5x1G RJ45 ports (QCA8075) * WLAN: * 2.4GHz: Qualcomm QCN5022 2x2 802.11b/g/n/ax 574 Mbps PHY rate * 5GHz: Qualcomm QCN5052 2x2@80MHz or 802.11a/b/g/n/ac/ax 1201 Mbps PHY rate * LED-s: * RGB system led * USB blue led * Buttons: 1x Soft reset 1x WPS * Power: 12V DC Jack Installation instructions: Open Linksys Web UI - http://192.168.1.1/ca or http://10.65.1.1/ca depending on your setup. Login with your admin password. The default password can be found on a sticker under the device. To enter into the support mode, click on the “CA” link and the bottom of the page. Open the “Connectivity” menu and upload the squash-factory image with the “Choose file” button. Click start. Ignore all the prompts and warnings by click “yes” in all the popups. 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. Then you would need to write openwrt to the other partition for it to work - First Check booted partition: fw_printenv -n boot_part - Change the partition: fw_setenv boot_part 1 or fw_setenv boot_part 2 depending on the current partition - Then install Openwrt to the other partition if booted in slot 1: mtd -r -e alt_kernel -n write openwrt-qualcommax-ipq60xx-linksys_mr7350-squashfs-factory.bin alt_kernel - If in slot 2: mtd -r -e kernel -n write openwrt-qualcommax-ipq60xx-linksys_mr7350-squashfs-factory.bin kernel Co-Authored-by: Chukun Pan <amadeus@jmu.edu.cn> Co-Authored-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Vladyslav Andreichykov <vladdrako007@gmail.com> Link: https://github.com/openwrt/openwrt/pull/14807 Signed-off-by: Robert Marko <robimarko@gmail.com>
* qualcommax: enable userspace regulator for ipq60xx as wellRobert Marko2024-12-07
| | | | | | | | Userspace regulator consumer is rather usefull so enable it for ipq60xx as well and remove from ipq807x only kernel config. Link: https://github.com/openwrt/openwrt/pull/14807 Signed-off-by: Robert Marko <robimarko@gmail.com>
* qualcommax: refresh configRobert Marko2024-12-07
| | | | | | | Refresh the kernel config via kernel_menuconfig. Link: https://github.com/openwrt/openwrt/pull/14807 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ucode: update to Git HEAD (2024-12-06)Robert Marko2024-12-06
| | | | | | | | | | | | | | | | | | | 47b54cf5a4b6 types: introduce `ucv_array_sort_r()` and `ucv_object_sort_r()` efeb57806552 types, vm: refactor usage of global variables f9d2faf67de6 vm: reset signals when freeing VM 4e86847d802d lib: utilize `ucv_array_sort_r()` and `ucv_object_sort_r()` c71444ea301f types: ucv_resource_create(): rename `typename` parameter to `type` 373df7299c79 nl80211: properly support split_wiphy_dump for single phys 9bcd25f54708 lexer: Preserve keyword, regexp flags until processing non-comment tokens 0a7ff4715cb8 main: pretty-print `-p` output by default 4c3d5b469156 struct: Add new buffer API for incremental packing/unpacking efc4122124cb struct: do not use global variables for caching types Fixes: https://github.com/jow-/ucode/issues/248 Fixes: https://github.com/jow-/ucode/issues/250 Fixes: https://github.com/efahl/owut/issues/25 Link: https://github.com/openwrt/openwrt/pull/17191 Signed-off-by: Robert Marko <robimarko@gmail.com>
* generic: mtd: spinand: add support for FORESEE F35SQA001GBohdan Chubuk2024-12-06
| | | | | | | | | | | | | | | Add support for FORESEE F35SQA001G SPI NAND. Similar to F35SQA002G, but differs in capacity. Datasheet: - https://cdn.ozdisan.com/ETicaret_Dosya/704795_871495.pdf Tested on Xiaomi AX3000T flashed with OpenWRT. Signed-off-by: Bohdan Chubuk <chbgdn@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://github.com/openwrt/openwrt/pull/16915 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* generic: mtd: spinand: add support for FORESEE F35SQA002GBohdan Chubuk2024-12-06
| | | | | | | | | | | | | | Add support for FORESEE F35SQA002G SPI NAND. Datasheet: https://www.longsys.com/uploads/LM-00006FORESEEF35SQA002GDatasheet_1650183701.pdf Refresh all affected patch with make target/linux/refresh. Signed-off-by: Martin Kurbanov <mmkurbanov@salutedevices.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Bohdan Chubuk <chbgdn@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16915 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* qualcommax: ipq60xx: add Qihoo 360V6 supportChukun Pan2024-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | Specifications: SoC: Qualcomm IPQ6000 1.5GHz RAM: NTCC256M16ER-EK 512MiB Flash: W29N01HZSINA 128MiB ETH: QCA8075 (3x LAN, 1x WAN) WLAN1: 2.4GHz 802.11b/g/n/ax 2x2 WLAN2: 5GHz 802.11a/n/ac/ax 2x2 Power: DC 12V 1.5A Button: Reset, Wps USB: 1x 2.0 Flash instructions: 1. Download the initramfs image, rename it to initramfs.itb, host it with the tftp server. 2. Interrupt U-Boot and run these commands: tftpboot initramfs.itb bootm 3. After openwrt boots up, use scp or luci web to upload sysupgrade.bin to upgrade. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Link: https://github.com/openwrt/openwrt/pull/15940 Signed-off-by: Robert Marko <robimarko@gmail.com>
* qualcommax: image: cleanup whitespaceChukun Pan2024-12-06
| | | | | | | | Replace whitespaces with tab. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Link: https://github.com/openwrt/openwrt/pull/15940 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq-wifi: update to version 2024-11-28Chukun Pan2024-12-06
| | | | | | | | | | | Contains following updates: * ipq8074: add TP-Link_deco-x80-5g BDF * ipq6018: add BDF for Qihoo 360V6 Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Link: https://github.com/openwrt/openwrt/pull/15940 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ipq40xx: remove default MAC assignmentsRosen Penev2024-12-06
| | | | | | | | | 1006 and 5006 are defaults that get set based on the calibration data. There's no need to explicitly specify them. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17128 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ramips: mt76x8: add support for Keenetic KN-3211Ivan Davydov2024-12-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keenetic KN-3211 is a 2.4 Ghz band 11n (Wi-Fi 4) Wi-Fi repeater, based on MT7628AN. Specification: - System-On-Chip: MT7628AN - CPU/Speed: 575 MHz - Flash-Chip: Winbond w25q256 - Flash size: 32768 KiB - RAM: 64 MiB - 1x 10/100 Mbps Ethernet - 2x external, non-detachable antennas - UART (J1) header on PCB (115200 8n1) - Wireless No1 (2T2R): SoC Built-in 2.4 GHz 802.11bgn - 3x LED, 1x button, 1x mode switch Notes: - The device supports dual boot mode - The firmware partitions were concatenated into one - The status button has been reassigned as the WPS button. Flash instruction: This device doesn't support sysupgrade, so the only way to flash OpenWrt image is to use tftp recovery mode in U-Boot: 1. Configure PC with static IP 192.168.1.2/24 and tftp server. 2. Rename "openwrt-ramips-mt76x8-keenetic_kn-3211-squashfs-factory.bin" to "KN-3211_recovery.bin" and place it in tftp server directory. 3. Connect PC with the ethernet port, press the reset button, power up the router and keep button pressed until power led starts blinking. 4. Router will download file from server, write it to flash and reboot. Signed-off-by: Ivan Davydov <lotigara@lotigara.ru> Link: https://github.com/openwrt/openwrt/pull/17080 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* apk: add dependency on wget providerEric Fahlgren2024-12-05
| | | | | | | | | | The apk-* packages contain no declared dependencies on a wget provider, which is required for proper operation. Let's add it. Fixes: https://github.com/openwrt/openwrt/issues/17173 Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17176 Signed-off-by: Robert Marko <robimarko@gmail.com>
* busybox: Fix cron log level to match previous behaviorHannu Nyman2024-12-05
| | | | | | | | | | | | | | | | | Change the cron log level in init script from 5 to 7 in order to match previous log behavior and to avoid log spam every minute. Busybox cron only uses levels 5,7,8, where 5 is debug and 7 and 8 are normal logging. Use 7 as default. (Fun note: this is needed because upstream corrected an ancient bug in their own log level handling and now 5 actually means something.) Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> Link: https://github.com/openwrt/openwrt/pull/17107 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* busybox: update to 1.37.0Rui Salvaterra2024-12-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a patch to fix non-x86 builds, refresh patches and update/fix the configuration as described in 98b09ba250 (cited here for future reference). Config refresh: Refresh commands, run after busybox is first built once: cd package/utils/busybox/config/ ../convert_menuconfig.pl ../../../../build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/busybox-default/busybox-1.37.0 cd .. ./convert_defaults.pl ../../../build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/busybox-default/busybox-1.37.0/.config > Config-defaults.in Manual edits needed after config refresh: * Config-defaults.in: OpenWrt config symbol IPV6 logic applied to BUSYBOX_DEFAULT_FEATURE_IPV6 * Config-defaults.in: OpenWrt config TARGET_bcm53xx logic applied to BUSYBOX_DEFAULT_TRUNCATE (commit 547f1ec) * Config-defaults.in: OpenWrt logic applied to BUSYBOX_DEFAULT_LOGIN_SESSION_AS_CHILD (commit dc92917) * Config-defaults.in: correct the default ports that get reset BUSYBOX_DEFAULT_FEATURE_HTTPD_PORT_DEFAULT 80 BUSYBOX_DEFAULT_FEATURE_TELNETD_PORT_DEFAULT 23 * config/editors/Config.in: Add USE_GLIBC dependency to BUSYBOX_CONFIG_FEATURE_VI_REGEX_SEARCH (commit f141090) * config/shell/Config.in: change at "Options common to all shells" the conditional symbol SHELL_ASH --> BUSYBOX_CONFIG_SHELL_ASH (discussion in http://lists.openwrt.org/pipermail/openwrt-devel/2021-January/033140.html Apparently our script does not see the hidden option while prepending config options with "BUSYBOX_CONFIG_" which leads to a missed dependency when the options are later evaluated.) * Edit a few Config.in files by adding quotes to sourced items in config/Config.in, config/networking/Config.in and config/util-linux/Config.in (commit 1da014fcca) Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> [rebased with the change download line commit] [corrected version in the refresh example in commit message] Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> Link: https://github.com/openwrt/openwrt/pull/17107 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* wifi-scripts: fix roaming setup with ucode scriptsFelix Fietkau2024-12-05
| | | | | | | - fix variable references for ft key - add r0kh and r1kh if ft_generate_local is not set (logic inversion bug) Signed-off-by: Felix Fietkau <nbd@nbd.name>
* feeds.conf.default: enable video feed by defaultDaniel Golle2024-12-05
| | | | | | | | | | | As discussed in the previous OpenWrt meeting the easiest way to have regular builds of packages on the video feed without adding additional complexity is by enabling the video feed by default. If that slows down the buildbots beyond being useful we can always disable it again and find another way to only sporadically build packages of the video feed. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* hostapd: enable EAP-pwd support only for the SSL variantsRobert Marko2024-12-04
| | | | | | | | | | The internal hostapd version cannot be built with EAP-pwd support, so enable it only for the SSL variants. Fixes: #17163 Fixes: 6365316fab87 ("hostapd: add ubus support for wired driver") Link: https://github.com/openwrt/openwrt/pull/17164 Signed-off-by: Robert Marko <robimarko@gmail.com>
* wifi-scripts: add option to set per-device ifname prefixFelix Fietkau2024-12-04
| | | | | | | Simplifies setting ifname to a different pattern for all affected interfaces. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* wifi-scripts: remove leftover legacy (non-netifd) wifi script supportFelix Fietkau2024-12-04
| | | | | | cfg80211 is the only supported wireless API Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: add locking around dtc call after running mkits.shFelix Fietkau2024-12-04
| | | | | | | | | mkits.sh creates a root.*.pagesync file with padding, which is global, and the generated .its files reference it. Since dtc reads this file, it must not run at the same time as mkits.sh Fixes generating itb images with broken rootfs. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* apk: update to Git HEAD (2024-11-30)Robert Marko2024-12-04
| | | | | | | | | | | | | | | | | | | | | | | | | 3da6c104f0f5 database: use APK_DB_LAYER_ROOT in more places 5437e3abada1 audit: add usr/lib/apk to the list of protected paths under --full de9baf912245 change default db location to /usr, but detect and use /lib if exists 218fdaa1a1a2 context: close root_fd on free d33294236cb4 database: add support for only-when-modified trigger paths 36935db0ef3b package: fix memfd_create warnings on Linux kernels < 6.7 1c3fc36051a3 blob: add and use apk_blob_trim_{start,end} af5f9e3f93b0 pkg: fix v3 package size setting to installeddb 9428e34694c8 version: allow --check and --test to work without database 4b4add5326a8 test: fix unit test registration function to be unique eac18cb200d4 test: add testlib.sh for user tests 20dae205b006 mkpkg: fix creation of package with hardlinks 7bdecdca6a95 pkg: only allow tags in world and some commands 76de228bcc0b commit: show tags of world constrains 9a1b1cf68420 test: use testlib for solver.sh 99fc2a2a5efc test: remove dependency on GNU tar 6927746b9a10 Revert usrmerge/LFS related changes to apk used paths 5d287a9b06e9 apk-tools-3.0.0_pre5 8d93a79fb895 mkpkg: fix hardlink on big-endian system Link: https://github.com/openwrt/openwrt/pull/17148 Signed-off-by: Robert Marko <robimarko@gmail.com>
* wifi-scripts: various minor fixes to the new ucode scriptsJohn Crispin2024-12-03
| | | | | | | | * cosmetic clean up * properly import the digest module * typo fixes Signed-off-by: John Crispin <john@phrozen.org>
* build: Unconditionally append kmod feed for BuildBotChristian Marangi2024-12-03
| | | | | | | | | | | | | Recent changes to BuildBot config moved the kmods to a dedicated directory and dropped them from the packages dir. This was needed as both OPKG and APK gets confused if both entry are present. To fix this, unconditionally append the kmod feed line if CONFIG_BUILDBOT is enabled. Fixes: #17146 Link: https://github.com/openwrt/openwrt/pull/17151 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* meson: allow using staging pythonDaniel Golle2024-12-02
| | | | | | | | | | Introduce package flag MESON_USE_STAGING_PYTHON which allows packages to be built with the OpenWrt-built python3/host instead of relying on the buildhost's Python distribution. This is useful for packages using Meson which require additional Python modules during build. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* fstools: update to latest HEADJohn Crispin2024-12-02
| | | | | | | | | | Rename jffs2reset to factoryreset. Convert all scripts to using the new command line. Print a deprecation notice when jffs2reset is invoked. 49d36ba jffs2reset: rename to factoryreset b135064 jffs2reset: print deprecation message Signed-off-by: John Crispin <john@phrozen.org>
* target/metadata: set OpenWrt One as the default menuconfig target/profileJohn Crispin2024-12-02
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: filogic: enable CONFIG_LEDS_TRIGGER_PATTERNJohn Crispin2024-12-02
| | | | | | | The boot LED on OpenWrt One is PWM driven and sets the pattern trigger as the default inside its devicetree. Signed-off-by: John Crispin <john@phrozen.org>
* wifi-scripts: add ucode based scriptsJohn Crispin2024-12-02
| | | | | | | | | | | | | | Add an ucode based re-implementation of the shell script based wifi code. The new code is jsonschema driven. The code has been refactored into several files making it easier to follow. The new scripts are also way faster than the previous sh implementation. The new code is currently opt-in via WIFI_SCRIPTS_UCODE and defaults to EXPERIMENTAL. Signed-off-by: John Crispin <john@phrozen.org>
* wifi-scripts: add ucode based iwinfoJohn Crispin2024-12-02
| | | | | | | | | | | Add an ucode based re-implementation of iwinfo. The tool behaves like the old one with a few minor output differences. It is now possible to add -j to any command resulting in JSON output. The new code is currently opt-in via WIFI_SCRIPTS_UCODE and defaults to EXPERIMENTAL. Signed-off-by: John Crispin <john@phrozen.org>
* ucode: update to latest HEADJohn Crispin2024-12-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b0b5d93 Merge pull request #234 from IdWV/fs 60e7a88 Merge pull request #232 from sebastianertz/lib-digest 1752779 digest: implement compile time option to exclude less common algorithms c7268a1 ci: include libmd in MacOS CI builds fcb6f70 lib: introduce digest library 1323a27 Merge pull request #246 from jow-/fix-upvalue-resolve ed5ce8f types: resolve upvalue values in arrays and objects a6e0641 vm: resolve upvalues before pushing them onto the stack ef1baab ci: drop OpenWrt tests for now 63e18ea fs: eliminate the usage of global variables b1bd7b5 types: add ucv_resource_create() helper 3408edf Merge pull request #244 from nbd168/nl80211 8af77e7 nl80211: add new attributes for multi-radio support 1423ad7 nl80211: cover extended feature and EHT rate info attributes ee1d6d8 Merge pull request #237 from sebastianertz/math 4b18a9b Merge pull request #213 from jow-/improve-vector-macros 1f022c0 math: removed global variable for thread safety e5fe6b1 treewide: refactor vector usage code 20307ee utils: improve vector utilities aa18952 Merge pull request #241 from jow-/socket-local-fanout-decl 79ccd9c socket: provide local definition of `struct fanout_args` 402280d Merge pull request #239 from jow-/safe-insert-during-obj-iteration 07afe96 Merge pull request #240 from jow-/stricter-number-conversion 736d450 types: fix potential use after free on adding keys during iteration 4134e71 vallist: more thoroughly check for trailing garbage after numeric string 9cf53dd Merge pull request #226 from jow-/lexer-improvements 2b2e732 lexer: make api functions public 855854f lexer: emit comment and template statement block tokens 328a50f lexer: improve token position reporting fa22732 Merge pull request #225 from jow-/compiler-fix-keyword-property-labels-after-spread 6e88c62 Merge pull request #224 from jow-/lib-fs-readline-leak 94d1211 compiler: properly treat property names after spread expressions 67cd123 fs: fix potential memory leak on i/o errors in .read() Signed-off-by: John Crispin <john@phrozen.org>
* hostapd: expose owe_transition_ifname inside bss_info methodJohn Crispin2024-12-02
| | | | | | This allows iwinfo to match OWE interfaces. Signed-off-by: John Crispin <john@phrozen.org>
* hostapd: add ubus support for wired driverJohn Crispin2024-12-02
| | | | | | | Use and alternate ubus object when the config contains "driver=wired". This commit is in preparation of the ieee8021x-wired daemon. Signed-off-by: John Crispin <john@phrozen.org>
* hostapd: add radius WISPr rate control AVPsJohn Crispin2024-12-02
| | | | | | | | This allows a radius server to send AVPs for client rate control inside the accept message. Further add the ratelimits to the sta-authorized ubus notification. Signed-off-by: John Crispin <john@phrozen.org>
* hostapd: enable CONFIG_EAP_PSKJohn Crispin2024-12-02
| | | | | | | Without this option using the eap_server in combination with wifi-station entries will fail. Signed-off-by: John Crispin <john@phrozen.org>
* uboot-mediatek: increase USB probe delay on OpenWrt OneJohn Crispin2024-12-02
| | | | | | | This solves compatibility issues with some pendrives. Originally reported by "HIDE-r" on the forum. Signed-off-by: John Crispin <john@phrozen.org>
* base-files: allow forcing all LEDs to on/off/blink stateJohn Crispin2024-12-02
| | | | | | | | * add a UCI option to disable all LEDs. * add an init.d parameter to blink all LEDs * add on/off parameters to init.d Signed-off-by: John Crispin <john@phrozen.org>
* build: remove targetinfo invalidation based on .configFelix Fietkau2024-12-02
| | | | | | Target info no longer depends on config settings Signed-off-by: Felix Fietkau <nbd@nbd.name>
* rpcd: update to Git HEAD (2024-12-02)Robert Marko2024-12-02
| | | | | | | cc9a471c32e1 rpc-sys: rework packagelist call for apk Link: https://github.com/openwrt/openwrt/pull/17144 Signed-off-by: Robert Marko <robimarko@gmail.com>
* netifd: check if /sbin/wifi exists before calling itAndris PE2024-11-30
| | | | | | | | | | | Avoid harmless error from network script by checking presence of now-optional wifi support script, most notably confusing users of x86 snapshots. Fixes: #14964 Signed-off-by: Andris PE <neandris@gmail.com> Link: https://github.com/openwrt/openwrt/pull/14986 Signed-off-by: Robert Marko <robimarko@gmail.com>
* ath79: remove wmac mac address defaultsRosen Penev2024-11-30
| | | | | | | | | 1002 and 5006 are default addresses as part of the calibration data. Don't bother specifying them explicitly. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17082 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ath79: add support for KuWFi N650 CPEAndreas Böhler2024-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The KuWFi N650 is a 5GHz outdoor wireless bridge based on QCA9563. Specs ===== CPU: QCA9563, 775MHz RAM: 128MiB Flash: 16MiB Wireless: QCA9888 (5GHz only) Ethernet: 2x GBit (via QCA8337), 48V passive PoE Installation ============ From OEM firmware ----------------- The OEM firmware has telnet enabled by default. If not, it can be enabled from the firmware web interface. You need a TFTP server on your computer and the OpenWrt factory image should be available as "n650factory.bin". It is assumed that your computer has the IP 192.168.1.1 and the N650 192.168.1.20 (default IP address). 1. Connect via Telnet to the device and log in with the default credentials "admin:admin" 2. Exploit the limited interface by typing "ps & /bin/sh" 3. Press <ENTER> to start the shell 4. Enter the following commands: $ cd /tmp $ tftp -r n650factory.bin -g 192.168.1.1 $ cat << EOF > /tmp/openwrt.sh #!/bin/sh IMAGE_NAME="\$1" if [ ! -e \${IMAGE_NAME} ]; then echo "Image file not found: \${IMAGE_NAME}" exit 1 fi . /usr/sbin/common.sh kill_remaining TERM sleep 3 kill_remaining KILL run_ramfs mtd write \${IMAGE_NAME} firmware sleep 2 reboot -f EOF $ chmod +x /tmp/openwrt.sh $ /tmp/openwrt.sh n650factory.bin Once the device reboots, it should load OpenWrt. From UART --------- UART installation is possible since the serial header is already soldered on. The pinout is GND - Tx - Rx - VCC from top to bottom (RJ45 ports are at the bottom). Connect with 115200 8N1. First, boot OpenWrt from TFTP. Enter the following commands in the U-Boot shell, assuming your computer has the IP address 192.168.1.1 and a TFTP server running where the initramfs image is provided as n650.bin: setenv ipaddr 192.168.1.20 setenv serverip 192.168.1.1 tftpboot 0x84000000 n650.bin bootm Once booted, transfer -loader.bin and -sysupgrade.bin images to the device at /tmp. Enter the following commands, replacing the filenames: mtd write /tmp/loader.bin loader sysupgrade /tmp/sysupgrade.bin Reboot and OpenWrt should load from flash. Back to Stock ------------- Back to stock is only possible if you saved a partition backup before installing OpenWrt. Assuming you have fullbackup.bin covering the whole flash, you need to prepare the image as follows: $ dd if=fullbackup.bin of=fwconcat0.bin bs=65536 skip=4 count=212 $ dd if=fullbackup.bin of=loader.bin bs=65536 skip=216 count=1 $ dd if=fullbackup.bin of=fwconcat1.bin bs=65536 skip=217 count=22 $ cat fwconcat0.bin fwconcat1.bin > firmware.bin Transfer firmware.bin and loader.bin to the OpenWrt device. First, flash loader.bin to mtd device loader, then force sysupgrade: $ mtd write loader.bin loader $ sysupgrade -F firmware.bin The reason for the two-step process is the way the flash layout is designed for OpenWrt in contrast to the OEM firmware partition. Signed-off-by: Andreas Böhler <dev@aboehler.at> Link: https://github.com/openwrt/openwrt/pull/17089 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* mediatek: MERCUSYS MR90X v1: add OpenWrt U-Boot (UBI) layoutMikhail Zhilkin2024-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds OpenWrt U-Boot (UBI) layout support for MERCUSYS MR90X v1. Stock U-Boot UBI size: 50 MiB OpenWrt U-boot UBI size: 126 MiB Install ------- 1. Perform steps 1-14 of the OpenWrt installation guide (use OpenWrt initramfs-recovery.itb instead of initramfs-kernel.bin at the step 10, 12 and 14). Link: https://openwrt.org/toh/mercusys/mr90x_v1#installation 2. Make backups: ``` cat /dev/mtd0 > /tmp/boot.bin cat /dev/mtd5 > /tmp/tp_data.bin ``` Copy /tp_data dir content, /tmp/boot.bin and /tmp/tp_data.bin and to your PC using scp. You can also backup the remaining partititons. Copy backups to a safe place, they are required for the next steps and stock firmware recovery. 3. Reboot to OpenWrt initramfs: ``` reboot ``` 4. Copy OpenWrt ubi-bl31-uboot.fip, ubi-preloader.bin, ubi-squashfs-sysupgrade.itb and MT7986_EEPROM.bin, default-mac (from /tp_data backup) to the /tmp folder of the router using scp. 5. Prepare UBI: ``` ubidetach -p /dev/mtd3; ubiformat /dev/mtd3 -y; ubiattach -p /dev/mtd3 ubimkvol /dev/ubi0 -N fip -t static -s 1MiB ubiupdatevol /dev/ubi0_0 /tmp/ubi-bl31-uboot.fip ubimkvol /dev/ubi0 -N ubootenv -s 0x1f000 ubimkvol /dev/ubi0 -N ubootenv2 -s 0x1f000 ``` 6. Install kmod-mtd-rw and unlock partitions: ``` opkg update && opkg install kmod-mtd-rw insmod mtd-rw i_want_a_brick=1 mtd unlock boot mtd unlock bl2 mtd unlock factory ``` 7. Prepare "factory" partition: ``` dd if=/dev/zero bs=$((0x8000)) count=1 | tr '\000' '\377' > /tmp/factory.bin dd if=/tmp/MT7986_EEPROM.bin of=/tmp/factory.bin conv=notrunc dd if=/tmp/default-mac >> /tmp/factory.bin ``` 8. Write "factory" partition: ``` mtd erase factory mtd write /tmp/factory.bin factory ``` 9. Write preloader partition: ``` mtd erase bl2 mtd write /tmp/ubi-preloader.bin bl2 ``` 10. Write OpenWrt sysupgrade image: ``` sysupgrade -n /tmp/ubi-squashfs-sysupgrade.itb ``` Recovery -------- 1. Place OpenWrt initramfs-recovery.itb image (with original name) on the tftp server (IP: 192.168.1.254). 2. Press "reset" button and power on the router. After ~10 sec release the button. 3. Use OpenWrt initramfs system for recovery. BL2 and FIP recovery -------------------- Use mtk_uartboot and UART connetion if BL2 or FIP in UBI is destroyed: Link: https://github.com/981213/mtk_uartboot Link: https://openwrt.org/toh/mercusys/mr90x_v1#serial Return to stock: ---------------- 1. Copy "boot" partition backup (boot.bin) to the /tmp dir of the router using scp. 2. Install kmod-mtd-rw: ``` opkg update && opkg install kmod-mtd-rw ``` 3. Restore stock U-Boot: ``` insmod mtd-rw i_want_a_brick=1 mtd unlock boot mtd erase boot mtd write /tmp/boot.bin boot ``` 4. Erase UBI and reboot: ``` mtd erase ubi reboot ``` 5. Open U-Boot web recovery, upload stock firmware image and start upgrade. Link: http://192.168.1.1 6. Complete steps 1-9 of the OpenWrt installation guide to get root rights. Link: https://openwrt.org/toh/mercusys/mr90x_v1#installation 7. Upload "tp_data" partition backup (tp_data.bin) to the /tmp folder of the router using scp. 8. Restore stock calibrations: ``` mtd write /tmp/tp_data.bin tp_data reboot ``` 9. Perform "factory restore" via stock firmware web interface. Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16744 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* uboot-mediatek: add MERCUSYS MR90X v1 supportMikhail Zhilkin2024-11-30
| | | | | | | | | Add U-Boot replacement loader for the MERCUSYS MR90X. This is required to increase available flash space in OpenWrt. Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16744 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* arm-trusted-firmware-mediatek: add mt7986-spim-nand-ddr3 buildMikhail Zhilkin2024-11-30
| | | | | | | | | This commit adds mt7986-spim-nand-ddr3 build required for MERCUSYS MR90X v1. Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16744 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ath79: Unify Sophos AP15/AP15C dts filesChristoph Krapp2024-11-30
| | | | | | | | | | | The recently added AP15C dts file only differs by the definition of the reset button. Unify the shared definition into a dtsi to reduce code duplication. Signed-off-by: Christoph Krapp <achterin@gmail.com> Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Link: https://github.com/openwrt/openwrt/pull/16998 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>