Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Erroneous (or spam) pull request #9536

Closed
wants to merge 35 commits into from

Conversation

HAN5201
Copy link

@HAN5201 HAN5201 commented Mar 23, 2022

Thanks for your contribution to OpenWrt!

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

Please remove this message before posting the pull request.

HAN5201 and others added 30 commits March 9, 2022 21:00
* https://github.com/openwrt/openwrt:
  bcm4908: include U-Boot in images
  uboot-bcm4908: add package with BCM4908 U-Boot
* https://github.com/openwrt/openwrt:
  base-files: call "sync" after initial setup
  uqmi: update to git HEAD
  uqmi: set CID during 'query-data-status' operation
* https://github.com/openwrt/openwrt:
  tools/expat: enable DTD
  tools/expat: update to 2.4.7
  ramips: Apply pinctrl DTS changes to TL-WPA8631P
  ath79: Add LED labels for Airtight C-75
  ramips: update WLAN MAC address of JCG Y2
  ramips: update WLAN MAC address of Phicomm K2P
  ramips: Add support for Dual-Q H721
* https://github.com/openwrt/openwrt:
  bcm4908: include U-Boot DTB files for ASUS GT-AX6000 & Netgear RAX220
  uboot-bcm4908: add BCM4912 build
  uboot-bcm4908: update to the latest generic
  uboot-bcm4908: use "xxd" from staging_dir
  mt76: update to the latest version
  kernel: include CONFIG_KEXEC_SIG in configs
  kernel: backport DSA patches fixing null-pointer dereference for 5.10
  mac80211: headers: fix lockdep_assert_not_held()
* https://github.com/openwrt/openwrt:
  openssl: bump to 1.1.1n
  ramips: add support for Netgear WN3100RPv2
  Revert "ramips: add support for Netgear WN3000RPv3"
  ramips: add support for Netgear WN3000RPv3
  ramips: mt7620: Add support for D-Link DWR-961 A1
  qoriq: enable I2C in target kernel config
* https://github.com/openwrt/openwrt:
  mpc85xx: fix missing kernel config symbol and DTS whitespace issue
  lantiq: fritz7362sl: add partition subnode for SPI flash
  lantiq: fritz7362sl: fix SPI flash node reg property
  ipq806x: fix TP-Link Archer VR2600v bootlooping
  mpc85xx: add support for Extreme Networks WS-AP3825i
  argp-standalone: fix compilation with Alpine Linux
  base-files: Align rootfs_data upgrades to 64KiB on eMMC
* https://github.com/openwrt/openwrt: (22 commits)
  ipq40xx: add support for Telco X1 Pro
  ramips: add support for D-Link DIR-878 R1
  kernel: bump 5.10 to 5.10.107
  ncurses: update to 6.3
  ramips: add support for Beeline SmartBox Flash
  base-files: add wrapper for procd service list command
  procd: move service command to procd
  kernel: bump 5.10 to 5.10.106
  kernel: bump 5.10 to 5.10.105
  iptables: bump PKG_RELEASE
  iptables: add {arp,eb}tables-nft
  iptables: add xtables-nft package
  iptables: add xtables-legacy package
  ebtables: rename to ebtables-legacy
  arptables: rename package to arptables-legacy
  quilt.mk: fix typo in the Host section
  cypress-firmware: update it to version 5.4.18-2021_0812
  bcm27xx: bcm2711: add kmod-usb-net-lan78xx
  iwinfo: update to latest Git head
  bpftools: fix library path on 64 bit systems
  ...
Some units of the Xiaomi Redmi Router AX6S/Xiaomi Router AX3200 contain this part.

Signed-off-by: Richard Huynh <voxlympha@gmail.com>
Also known as the "Xiaomi Router AX3200" in western markets,
but only the AX6S is widely installation-capable at this time.

SoC: MediaTek MT7622B
RAM: DDR3 256 MiB (ESMT M15T2G16128A)
Flash: SPI-NAND 128 MiB (ESMT F50L1G41LB or Gigadevice GD5F1GQ5xExxG)
WLAN: 2.4/5 GHz 4T4R
2.4 GHz: MediaTek MT7622B
5 GHz: MediaTek MT7915E
Ethernet: 4x 10/100/1000 Mbps
Switch: MediaTek MT7531B
LEDs/Keys: 2/2 (Internet + System LED, Mesh button + Reset pin)
UART: Marked J1 on board VCC RX GND TX, beginning from "1". 3.3v, 115200n8
Power: 12 VDC, 1.5 A

Notes:
U-Boot passes through the ethaddr from uboot-env partition,
but also has been known to reset it to a generic mac address
hardcoded in the bootloader.

However, bdata is also populated with the ethernet mac addresses,
but is also typically never written to. Thus this is used instead.

Installation:
1. Flash stock Xiaomi "closed beta" image labelled
'miwifi_rb03_firmware_stable_1.2.7_closedbeta.bin'.
(MD5: 5eedf1632ac97bb5a6bb072c08603ed7)

2. Calculate telnet password from serial number and login

3. Execute commands to prepare device
nvram set ssh_en=1
nvram set uart_en=1
nvram set boot_wait=on
nvram set flag_boot_success=1
nvram set flag_try_sys1_failed=0
nvram set flag_try_sys2_failed=0
nvram commit

4. Download and flash image
On computer:
python -m http.server
On router:
cd /tmp
wget http://<IP>:8000/factory.bin
mtd -r write factory.bin firmware

Device should reboot at this point.

Reverting to stock:
Stock Xiaomi recovery tftp that accepts their signed images,
with default ips of 192.168.31.1 + 192.168.31.100.
Stock image should be renamed to tftp server ip in hex (Eg. C0A81F64.img)
Triggered by holding reset pin on powerup.

A simple implementation of this would be via dnsmasq's
dhcp-boot option or using the vendor's (Windows only)
recovery tool available on their website.

Signed-off-by: Richard Huynh <voxlympha@gmail.com>
* https://github.com/openwrt/openwrt:
  mediatek: Add support for Xiaomi Redmi Router AX6S
  mediatek: Add GD5F1GQ5xExxG to mtk-snand
As the upcoming release will be based on Linux 5.10 only, remove all
kernel configuration as well as patches for Linux 5.4.
There were no targets still actively using Linux 5.4.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
In order to calculate the required pre-distortion for downstream
vectoring, the vectoring control entity (VCE) at the carrier office
needs error samples from the modem. On Lantiq VR9 modems, error reports
are generated by the firmware, but need to be multiplexed into the data
stream by the driver on the main processor when L2 encapsulation is
selected by the VCE.

This driver provides the necessary callback function, which is called by
the MEI driver after receiving an error report from the firmware.

Originally, it is part of the Lantiq PPA driver, but after a few changes
it also works with the PTM driver used in OpenWrt. The direct call to
ndo_start_xmit needs to be replaced, as the PTM driver relies on locks
from the kernel. Instead dev_queue_xmit is used, which is called from a
work queue, as it is not safe to call from an interrupt handler.

Additional changes include fixes to support recent kernel versions and
a change of the used interface from ptm0 to dsl0.

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
This re-enables the vectoring error sample callback and adds a
dependency to the corresponding driver.

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
This tells the modem about the WAN MAC address, which is used as source
address for vectoring error reports that are generated by the firmware.

It needs to be set early, as the MEI driver only actually writes the
value to the modem when is in reset state (i.e. the firmware has been
loaded, but connection has not started yet).

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Some users noticed repeated resyncs at random intervals, which go away
when the MEI driver is configured to use polling instead of interrupts.
Debugging shows that this seems to be caused by concurrent calls to
MEI_ReadMailbox (in the interrupt handler) and MEI_WriteMailbox. This
appears to be mostly triggered when there is an interrupt for vectoring
error reports.

In polling mode, calls to MEI_ReadMailbox are protected by the same
semaphore as is used in MEI_WriteMailbox. When interrupts are used,
MEI_WriteMailbox appears to rely on MEI_DisableDeviceInt and
MEI_EnableDeviceInt to provide mutual exclusion with the interrupt
handler. These functions mask/unmask interrupts, and there is an
additional check of the mask in the interrupt handler itself. However,
this is not sufficient on systems with SMP, as the interrupt handler
may be running in parallel, and could already be past the interrupt
mask check at this point.

This adds a lock to the interrupt handler, and also acquires this lock
in MEI_DisableDeviceInt. This should make sure that after a call to
MEI_DisableDeviceInt the interrupt is masked, and the interrupt handler
is either not running, has alread finished its work, or is still before
the interrupt mask check, and is thus going to detect the change.

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
uDPU provides a FIT based initramfs, but currently gets stuck after U-boot
starts the kernel at "Starting kernel..".

It is due to the load address being too low, so increase it in order to get
the initramfs booting again.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
uDPU has 2 LM75 compatible temperature sensors, so include the driver for
them by default in order to utilize them.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
v2022.01 has a regression that broke eMMC usage on most if not all Armada
SoC-s, thus breaking boards like uDPU which use eMMC for storage.

Fix it by backporting a recent upstream patch.

Fixes: 782d4c8 ("uboot-mvebu: update to version 2022.01")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Remove "a" character from the first line of patch
  738-v5.14-01-net-dsa-qca8k-fix-an-endian-bug-in-qca8k-get-ethtool.patch

Otherwise `git am` fails to apply this patch which is annoying when
trying to do some development / rebasing.

Signed-off-by: Marek Behún <kabel@kernel.org>
391a9fbd5ace dns: fix parsing vlan encapsulated protocol
6aeeddbc91ad interface: extend dns filters to cover vlan tagged traffic as well
1ab53d4ca601 bpf: return TC_ACT_UNSPEC to allow other filters to proceed
ca21e729af23 interface: switch to using clsact for filters
5d158f6b3c15 interface: run ingress bpf filter on main device ingress instead of ifb egress
bdfcb11847ce interface: fix duplicated dns filter line
b97405aa632a Revert "ubus: remove dnsmasq subscriber"
8fbaf39dbc95 interface: rework adding/removing filters, do not delete clsact
d7ba5804eae4 interface: replace open-coded ifb-dns string with QOSIFY_DNS_IFNAME
91cf440db9e2 loader: fix use of deprecated functions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
* https://github.com/openwrt/openwrt:
  qosify: update to the latest version
  kernel: Fix patch header
  uboot-mvebu: backport patch to fix eMMC
  mvebu: udpu: include LM75 kmod by default
  mvebu: udpu: fix initramfs booting
  ltq-vdsl-mei: add locking to interrupt handler
  ltq-vdsl-app: set MAC address for vectoring error reports
  ltq-vdsl-mei: enable vectoring error sample callback
  ltq-vectoring: add driver
  kernel: delete Linux 5.4 config and patches
Improves performance, especially under load

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Shuttle KD20 has NAND flash with 0x20000 (128KiB) erase blocks.
Correctly set that in uboot-envtools as well to allow writing to the
bootloader environment using fw_setenv.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
a20-olinuxino-lime2 is currently having hard time with link detection of
certain 1000Mbit partners due to usage of generic PHY driver, probably
due to following missing workaround introduced in upstream in commit
3aed3e2a143c ("net: phy: micrel: add Asym Pause workaround"):

 The Micrel KSZ9031 PHY may fail to establish a link when the Asymmetric
 Pause capability is set. This issue is described in a Silicon Errata
 (DS80000691D or DS80000692D), which advises to always disable the
 capability. This patch implements the workaround by defining a KSZ9031
 specific get_feature callback to force the Asymmetric Pause capability
 bit to be cleared.

 This fixes issues where the link would not come up at boot time, or when
 the Asym Pause bit was set later on.

As a20-olinuxino-lime2 has Micrel KSZ9031RNXCC-TR Gigabit PHY since
revision H, so we need to use Micrel PHY driver on those devices.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Store selected boot configuration in '/chosen' node in device tree, so
it can be accessed by Linux (and used for fine-tuning the FIT partition
parser).

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
dangowrt and others added 5 commits March 21, 2022 23:48
If the selected boot configuration is stored by U-Boot in '/chosen'
node as 'bootconf' attribute, use that configuration to resolve the
block device used as rootfs. Fall back to use the default configuration
in case 'bootconf' is not present.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Albeit a separate crypto module, lzo-rle uses the same kernel library as lzo.
Crypto API users (zram, for example) expect both lzo and lzo-rle to be
available, so let's include lzo-rle (about 5.5 kiB) in the lib-lzo package.

Based on e9hack's original patch: https://patchwork.ozlabs.org/project/openwrt/patch/541cbfbd-76f2-59b3-a867-47b6f0fc7da9@gmail.com/

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
57c7817f91c2 qosify: fix dscp values of ubus-added dns host entries

Signed-off-by: Felix Fietkau <nbd@nbd.name>
* https://github.com/openwrt/openwrt:
  qosify: update to the latest version
  kmod-lzo: include the lzo-rle kmod in the package
  kernel: generic: use chosen bootconf in FIT partition parser
  uboot-mediatek: add patch to allow accessing bootconf from Linux
  sunxi: cortexa7: fix ethernet link detection on a20-olinuxino-lime2
  uboot-envtools: oxnas: fix wrong eraseblock size for shuttle,kd20
  ramips/mediatek: enable threaded NAPI in the ethernet driver
@rsalvaterra
Copy link
Member

Erroneous (or spam) pull, closing.

@ynezz ynezz changed the title Openwrt 22.03 Erroneous (or spam) pull request May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants