Commit Graph

51416 Commits

Author SHA1 Message Date
Lienol
b19ff823ce mac80211: set default config 2024-07-19 15:06:59 +08:00
Lienol
dc5e9e61a4 autosamba4: add package 2024-07-19 14:55:12 +08:00
Lienol
2e4766b762 base-files: setting device MAC 2024-07-19 14:54:13 +08:00
Lienol
1f14db8211 feeds: luci switch to 17.01 2024-07-19 14:54:13 +08:00
Lienol
30fb8e53b7 autosamba: add package 2024-07-10 03:16:47 +08:00
Lienol
dfea212ed5 automount: add package 2024-07-10 03:16:47 +08:00
Lienol
6b9eea5c96 odhcpd: Update to 2023-10-24 2024-07-10 03:16:47 +08:00
Lienol
2313633cbd odhcp6c: Update to 2023-05-12 2024-07-10 03:16:47 +08:00
Lienol
3f9ead3eaf dnsmasq: Update to 2.90 2024-07-10 03:16:47 +08:00
remittor
6652508292 ramips: add support for ZyXEL Keenetic Giga III ZyXEL Keenetic Giga III is a 2.4/5 GHz band 11ac router
Specification:
* SoC: MediaTek MT7621ST (1C/2T)
* RAM: 256 MB DDR3
* Flash: 128 MB NAND S34ML01G200TFI00
* Ethernet: 5x 10/100/1000 Mbps
* WIFI: 5 GHz   MT7612EN nac
* WIFI: 2.4 GHz MT7602EN bgn
* USB: 1x 2.0, 1x 3.0
* BTN: Power, Reset, WPS, FN1, FN2
* LEDS: Power(Green),Fn(Green),Wan(Green),WiFi2(Green),WiFi5(Green),
  USB1(Green),USB2(Green)
* UART: present as five pads without through-holes on the PCB.
  Pads are located above 2.4G LED and under board logotype
  (GND/empty/RX/TX/Vcc).
  UART uses 3.3V and settings: 57600-8-N-1

MAC addresses as verified by stock firmware:

| Interface   |       MAC         | Factory | Format |
|-------------+-------------------+---------+--------|
| WiFi (2.4g) | xx:xx:xx:xx:xx:20 | 0x4     | binary |
| LAN         | xx:xx:xx:xx:xx:20 | 0x4     | binary |
| WAN (label) | xx:xx:xx:xx:xx:21 | 0x28    | binary |
| WiFi (5g)   | xx:xx:xx:xx:xx:22 | 0x8004  | binary |

Installation via U-Boot:
* Download the latest OpenWrt firmware factory-image and rename it to
  kgiga3_recovery.bin
* Set up a Tftp server on a PC (e.g. Tftpd32) and place the firmware
  image to the root directory of the server.
* Power off the router and use a twisted pair cable to connect the PC
  to any of the router's LAN ports.
* Configure the network adapter of the PC to use IP address 192.168.1.2
  and subnet mask 255.255.255.0.
* Power up the router while holding the reset button pressed.
* Wait approximately for 5 seconds and then release the reset button.
* The router should download the firmware via TFTP and complete flashing
  in a few minutes.
* Connect with SSH to 192.168.1.1 and set a root password or browse to
  http://192.168.1.1 if LuCI is installed.

Installation via Keenetic-OS GUI:
* Set the IP address 192.168.1.1 for the connected device (in the
  KeeneticOS settings and in the network connection properties).
* Open the page "http://192.168.1.1/a" in the browser, enter the
  command "more proc:/dual_image/boot_active" (without quotes) in
  the "Command" field and click the "Send request" button.
* A response will appear in the browser, from which you need to select
  only the value of the "message" parameter.
* If the value of the "message" parameter is not equal to 2, then you
  need to force flash any official firmware (Keenetic-OS) and go to
  the first step of the instruction.
* To install OpenWRT, go to the "General Settings" page and in the
  "System Files" section, click on "firmware".
* Then click the "Replace File" button.
* In the window that appears, specify the location of the file
  "openwrt-ramips-mt7621-zyxel_keenetic-giga-iii-squashfs-factory.bin".
* The installation of OpenWRT on the device will begin and complete
  flashing in a few minutes.
* Browse to http://192.168.1.1 and set root password.

Revert to the stock firmware via OpenWrt GUI:
* Upload the stock image using "Flash Firmware" interface.
* Select "Force update" and continuing upgrade.

Signed-off-by: Oleg S <remittor@gmail.com>
2024-07-10 03:16:47 +08:00
remittor
99c436fc4f ipq806x: Add support for Xiaomi Mi Router HD (R3D)
Xiaomi R3D is a 2.4/5 GHz band 11ac router, based on IPQ8064.

Specification:
* SoC: Qualcomm IPQ8064
* RAM: 512MB DDR3
* Flash: 256MB NAND (Macronix MX30UF2G18AC-TI)
* Ethernet: 4x 10/100/1000 Mbps (1x WAN, 3x LAN)
* WiFi: Qualcomm QCA9984 (5GHz, 4T4R, n/ac)
* WiFi: Qualcomm QCA9980 (2.4GHz, 4T4R, b/g/n)
* USB: 1x 3.0
* SATA: 1x SATA 3.1 (only for internal HDD 3.5")
* BTN: Power, Reset
* LEDS: Status(Green/Blue/Red)
* UART: present as 4-pads on the PCB (3.3V, 115200-8-N-1)

MAC addresses as verified by stock firmware:

| Interface   |       MAC         |  ART    | Format |
|-------------+-------------------+---------+--------|
| WAN (label) | xx:xx:xx:xx:xx:B2 | 0x0     | binary |
| LAN         | xx:xx:xx:xx:xx:B3 | 0x6     | binary |
| WiFi 2g     | xx:xx:xx:xx:xx:B4 | 0x1006  | binary |
| WiFi 5g     | xx:xx:xx:xx:xx:B5 | 0x5006  | binary |
2024-07-10 03:16:46 +08:00
remittor
6b2fa7aa80 ipq806x: Add boot_layout_mode support 2024-07-10 03:16:46 +08:00
remittor
1da95bc941 Add driver for fan controller SMSC EMC230x
Author: Robert Marko <robert.marko@sartura.hr>
2024-07-10 03:16:46 +08:00
remittor
f012ef4e33 Update uboot-envtools 2024-07-10 03:16:46 +08:00
remittor
2cccac926c Add support for using vermagic the same as in the official firmware 2024-07-10 03:16:46 +08:00
Lienol
368d7d7c2e dnsmasq: add refresh filter-https+unknown patch 2024-07-10 03:15:50 +08:00
Kevin Darbyshire-Bryant
d854402f06 dnsmasq: bump to v2.89
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2024-07-10 03:15:50 +08:00
Leon M. George
84bba15d18 dnsmasq: refuse to add empty DHCP range
Use ipcalc's return value to react to invalid range specifications.
By simply ignoring the range instead of aborting with an error code,
dnsmasq should still start when there's an error (best effort).
Aborting the config generation or working with invalid range specs leaves
dnsmasq crash-looping which is the right thing to do concerning that
particular interface but it also hinders DHCP service on other interfaces
and DNS on the router itself.

Signed-off-by: Leon M. George <leon@georgemail.eu>
2024-07-10 03:15:50 +08:00
Hannu Nyman
726f0adb35 dnsmasq: set an increased cachesize default value
Dnsmasq DNS cache size is only 150 by default.
Set the uci default value to 1000, so that cache gets used more
and unnecessary DNS queries to upstream can be avoided.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2024-07-10 03:15:50 +08:00
Kevin Darbyshire-Bryant
8c8b09ac07 dnsmasq: bump to v2.88
Most relevant feature for openwrt in this release, supports dynamically
removing hosts from 'hostsdir' supplied host files.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2024-07-10 03:15:50 +08:00
Daniel Golle
e17c642848 dnsmasq: add option to expose additional paths to jail
Add new UCI list 'addn_mount' allowing the expose additional filesystem
paths to the jailed dnsmasq process. This is useful e.g. in case of
manually configured includes to the configuration file or symlinks
pointing outside of the exposed paths as used by e.g. the safe-search
package in the packages feed.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-10 03:15:50 +08:00
Chen Minqiang
6a0b2b58cc dnsmasq: add support for filter-AAAA/A
This add --filter-A and --filter-AAAA options, to remove IPv4 or IPv6
addresses from DNS answers. these options is supported since version 2.87.

Co-authored-by: NueXini <nuexini@alumni.tongji.edu.cn>
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
2024-07-10 03:15:50 +08:00
Kevin Darbyshire-Bryant
2ef8a740f1 dnsmasq: remove backported CVE patch
Patch no longer applies/required since bump to v2.87

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2024-07-10 03:15:50 +08:00
Kevin Darbyshire-Bryant
492ce5f690 dnsmasq: Support nftables nftsets
Add build option for nftables sets. By default disable iptables ipset
support.  By default enable nftable nftset support since this is what
fw4 uses.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>

dnsmasq: nftset: serve from ipset config

Use existing ipset configs as source for nftsets to be compatible with
existing configs. As the OS can either have iptables XOR nftables
support, it's fine to provide both to dnsmasq. dnsmasq will silently
fail for the present one. Depending on the dnsmasq compile time options,
the ipsets or nftsets option will not be added to the dnsmasq config
file.

dnsmasq will try to add the IP addresses to all sets, regardless of the
IP version defined for the set. Adding an IPv6 to an IPv4 set and vice
versa will silently fail.

Signed-off-by: Mathias Kresin <dev@kresin.me>

dnsmasq: support populating nftsets in addition to ipsets

Tell dnsmasq to populate nftsets instead of ipsets, if firewall4 is present in
the system. Keep the same configuration syntax in /etc/config/dhcp, for
compatibility purposes.

Huge thanks to Jo-Philipp Wich for basically writing the function.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>

dnsmasq: obtain nftset ip family from nft

Unfortunately dnsmasq nft is noisy if an attempt to add a mismatched ip address
family to an nft set is made.

Heuristic to guess which ip family a nft set might belong by inferring
from the set name.

In order of preference:

If setname ends with standalone '4' or '6' use that, else
if setname has '4' or '6' delimited by '-' or '_' use that (eg
foo-4-bar) else
If setname begins with '4' or '6' standalone use that.

By standalone I mean not as part of a larger number eg. 24

If the above fails then use the existing nft set query mechanism and if
that fails, well you're stuffed!

With-thanks-to: Jo-Philipp Wich <jo@mein.io> who improved my regexp
knowledge.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>

dnsmasq: specify firewall table for nftset

Permit ipsets to specify an nftables table for the set.  New config
parameter is 'table'.  If not specified the default of 'fw4' is used.

config ipset
	list name 'BK_4,BK_6'
	option table 'dscpclassify'
	option table_family 'ip'
	option family '4'
	list domain 'ms-acdc.office.com'
	list domain 'windowsupdate.com'
	list domain 'update.microsoft.com'
	list domain 'graph.microsoft.com'
	list domain '1drv.ms'
	list domain '1drv.com'

The table family can also be specified, usually 'ip' or 'ip6' else the
default 'inet' capable of both ipv4 & ipv6 is used.

If the table family is not specified then finally a family option is
available to specify either '4' or '6' for ipv4 or ipv6 respectively.

This is all in addition to the existing heuristic that will look in the
nftset name for an ip family clue, or in total desperation, query the
value from the nftset itself.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2024-07-10 03:15:50 +08:00
Mathias Kresin
f714add069 dnsmasq: add uci-defaults script for ipset migration
When running sysupgrade from an existing configuration, move existing
ipset definitions to a dedicated config section. Later on, it will allow
to serve ipset as well as nftable sets from the same configuration.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2024-07-10 03:15:50 +08:00
Daniel Golle
3e786d0570 dnsmasq: switch to ubus-based hotplug call
Use new ubus-based hotplug call in dhcp-script.sh
As sysntpd now makes use of the new ubus-based hotplug calls, dnsmasq
no longer needs to ship ACL to cover ntpd-hotplug.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2024-07-10 03:15:50 +08:00
Kevin Darbyshire-Bryant
3f5a156bac dnsmasq: bump to 2.87
Bump dnsmasq to 2.87 & refresh patches

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2024-07-10 03:15:50 +08:00
Tianling Shen
fce395672b kernel/modules: add kmod-inet-diag package
Add option to compile kmod-inet-diag, support for INET (TCP, DCCP, etc)
socket monitoring interface used by native Linux tools such as ss.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-10 03:15:50 +08:00
aiamadeus
9508988f0e r8125: update to version 9.010.01-2 2024-07-10 03:15:50 +08:00
Tianling Shen
4d33175879 r8125: Update to 9.009.02-1
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-10 03:15:50 +08:00
Tianling Shen
a27310eb39 r8125: bump to 9.009.01-1
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-10 03:15:50 +08:00
AmadeusGhost
b93708e84c r8125: add LED configuration from OF
Some devices need this to configure the LED configuration. This
way, the correct value for board specific LED configuration can
be determined.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2024-07-10 03:15:50 +08:00
Tianling Shen
ce01d602c8 r8125: bump to 9.009.00
Switched to GitHub codeload.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-10 03:15:49 +08:00
CN_SZTL
af0ab17813 r8125: bump to 9.008.00 2024-07-10 03:15:49 +08:00
lxhao61
110466cda2 dropbear: set lan by default 2024-07-10 03:15:49 +08:00
yangxu52
dc6b1031d5 k3: fix k3screenctrl run faild:SIGSEGV 2024-07-10 03:15:49 +08:00
Ross Shen
021fec37a5 dnsmasq: add filter-aaaa+https+unknown.patch
1. patch for dnsmasq-2.86 based on https://github.com/rozahp/dnsmasq
2. compatible with mini-ttl.patch
2024-07-10 03:15:49 +08:00
Lienol
9c81d1891c uhttpd: add enabled_https option 2024-07-10 03:15:49 +08:00
Lienol
f50e2d44ba shortcut-fe: update 2024-07-10 03:15:49 +08:00
wlmqwyf
6a4f5d00a6 ipq40xx: add support for Century WR142AC
Co-Authored-By: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2024-07-10 03:15:49 +08:00
Lienol
fdbda103f1 remove obsolete 4.19 patch 2024-07-10 03:15:49 +08:00
CN_SZTL
45fae51f56 autocore: add cpu freq & temp display for some arm devices
Co-Authored-By: CN_SZTL <cnsztl@project-openwrt.eu.org>
Co-Authored-By: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
2024-07-10 03:15:49 +08:00
Lienol
aa70c11d81 samba36: add enabled option 2024-07-10 03:15:49 +08:00
Lienol
0fc053768a shortcut-fe: rework netfilter conntrack notification
The original patch over rode the nf_conntrack_un/register_notifier API, which will
break other modules relying on the API. Reworked the notification APIs to play nice
with others. Also avoid to touch the code of fullcone nat.

Co-Authored-By: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com>
Co-Authored-By: quarkysg <35649562+quarkysg@users.noreply.github.com>
2024-07-10 03:15:49 +08:00
Lienol
080041e660 shortcut-fe: QCA shortcut-fe fast-path driver 2024-07-10 03:15:49 +08:00
Lienol
de6579a4bd x86: add r8125 by DEFAULT_PACKAGES 2024-07-10 03:15:49 +08:00
Lienol
800e3c2860 r8125: add 2.5G Ethernet LINUX driver 2024-07-10 03:15:49 +08:00
Lienol
1f813effff Revert "samba36: Remove"
This reverts commit 73fa1aba94.
2024-07-10 03:15:49 +08:00
Lienol
b303c37e1e uhttpd: set max_requests default 50 2024-07-10 03:15:49 +08:00
xiaorouji
a2f1a3072b ppp: add shellsync ppp support 2024-07-10 03:15:49 +08:00