<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/ldir/package, branch master</title>
<subtitle>Kevin D-Bs staging tree</subtitle>
<id>https://git.openwrt.org/openwrt/staging/ldir/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/ldir/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/'/>
<updated>2023-05-22T20:28:20Z</updated>
<entry>
<title>kernel: modules: fs: adapt for kernel 6.1</title>
<updated>2023-05-22T20:28:20Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2022-10-26T11:27:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/commit/?id=6dce5a7b58b023153a87f282311ae7fb6b895472'/>
<id>urn:sha1:6dce5a7b58b023153a87f282311ae7fb6b895472</id>
<content type='text'>
Adapt filesystem kmods for building under kernel 6.1:
* Depend on kernel not being 5.10 rather than only 5.15
* kmod-fs-9p depends on kmod-fs-netfs from 5.17 as they started using
netfs helpers
* Set new KConfig options to N

Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>kernel: modules: wwan: adapt for kernel 6.1</title>
<updated>2023-05-22T20:28:20Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2022-10-21T11:08:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/commit/?id=4a02c5954f10291cf046f9bbf727fa01ce04a235'/>
<id>urn:sha1:4a02c5954f10291cf046f9bbf727fa01ce04a235</id>
<content type='text'>
Update the WWAN kmods for compilation under kernel 6.1:
* Depend on kernel not being 5.10 rather than only 5.15
* Enable CONFIG_WWAN_DEBUGFS as its now optional from 5.17
* Add missing symbols for new WWAN drivers to generic config

Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>kernel: modules: adapt for kernel 6.1</title>
<updated>2023-05-22T20:28:20Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2022-10-20T01:13:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/commit/?id=a5118876441b6fe41ae7240f84a93c21c2a7ce36'/>
<id>urn:sha1:a5118876441b6fe41ae7240f84a93c21c2a7ce36</id>
<content type='text'>
Adapt kernel modules to support kernel 6.1.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>busybox: update to 1.36.1</title>
<updated>2023-05-22T18:55:33Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2023-05-21T21:54:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/commit/?id=3b76f6eee430a107a0970583c1aa215b35f7e3e4'/>
<id>urn:sha1:3b76f6eee430a107a0970583c1aa215b35f7e3e4</id>
<content type='text'>
Release Notes:
http://lists.busybox.net/pipermail/busybox-cvs/2023-May/041510.html

Refresh commands, run after busybox is first built once (nothing changed
compared to 1.36.0):

  cd package/utils/busybox/config/
  ../convert_menuconfig.pl ../../../../build_dir/target-mipsel_24kc_musl/busybox-default/busybox-1.36.1
  cd ..
  ./convert_defaults.pl ../../../build_dir/target-mipsel_24kc_musl/busybox-default/busybox-1.36.1/.config &gt; Config-defaults.in

Manual edits needed afterward:

* 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 --&gt; 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 1da014f)

Tested-by: Hannu Nyman &lt;hannu.nyman@iki.fi&gt;
Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>libxml2: update to 2.11.4</title>
<updated>2023-05-22T16:52:59Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2023-05-21T21:21:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/commit/?id=c520d682f02890afb38e43b862ca856e2b933507'/>
<id>urn:sha1:c520d682f02890afb38e43b862ca856e2b933507</id>
<content type='text'>
Release Notes:
https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.11.4

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>libcap: update to 2.69</title>
<updated>2023-05-22T16:51:31Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2023-05-21T21:25:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/commit/?id=78c45c1e591ce5aeff9fb7eeae049662c4ac4ef2'/>
<id>urn:sha1:78c45c1e591ce5aeff9fb7eeae049662c4ac4ef2</id>
<content type='text'>
Release Notes:
https://sites.google.com/site/fullycapable/release-notes-for-libcap#h.iuvg7sbjg8pe

Fixes: CVE-2023-2602 CVE-2023-2603
Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>lldpd: update to 1.0.17</title>
<updated>2023-05-22T16:48:36Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2023-05-21T21:36:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/commit/?id=17fbbafdcbc55d6ab3d357012f336941fa27d43e'/>
<id>urn:sha1:17fbbafdcbc55d6ab3d357012f336941fa27d43e</id>
<content type='text'>
Release Notes:
https://github.com/lldpd/lldpd/releases/tag/1.0.17

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>mediatek: add support for Zyxel EX5601-T0 router</title>
<updated>2023-05-22T15:58:59Z</updated>
<author>
<name>Pietro Ameruoso</name>
</author>
<published>2023-05-22T07:52:47Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/commit/?id=1c05388ab04c934ec240e8362321908f91381a90'/>
<id>urn:sha1:1c05388ab04c934ec240e8362321908f91381a90</id>
<content type='text'>
Zyxel EX5601-T0 specifics
--------------
The operator specific firmware running on the Zyxel branded
EX5601-T0 includes  U-Boot modifications affecting the OpenWrt
installation.

Partition Table
| dev  | size     | erasesize | name          |
| ---- | -------- | --------- | ------------- |
| mtd0 | 20000000 | 00040000  | "spi0.1"      |
| mtd1 | 00100000 | 00040000  | "BL2"         |
| mtd2 | 00080000 | 00040000  | "u-boot-env"  |
| mtd3 | 00200000 | 00040000  | "Factory"     |
| mtd4 | 001c0000 | 00040000  | "FIP"         |
| mtd5 | 00040000 | 00040000  | "zloader"     |
| mtd6 | 04000000 | 00040000  | "ubi"         |
| mtd7 | 04000000 | 00040000  | "ubi2"        |
| mtd8 | 15a80000 | 00040000  | "zyubi"       |

The router boots BL2 which than loads FIP (u-boot).
U-boot has hardcoded a command to always launch Zloader "mtd read zloader 0x46000000" and than "bootm". Bootargs are deactivated.
Zloader is the zyxel booloader which allow to dual-boot ubi or ubi2, by default access to zloader is blocked.
Too zloader checks that the firmware contains a particolar file called zyfwinfo.
Additional details regarding Zloader can be found here:
https://hack-gpon.github.io/zyxel/
https://forum.openwrt.org/t/adding-openwrt-support-for-zyxel-ex5601-t0/155914

Hardware
--------
SOC: MediaTek MT7986a
CPU: 4 core cortex-a53 (2000MHz)
RAM: 1GB DDR4
FLASH: 512MB SPI-NAND (Micron xxx)
WIFI: Wifi6 Mediatek MT7976 802.11ax 5 GHz 4x4 + 2.4GHZ 4x4
ETH: MediaTek MT7531 Switch + SoC
3 x builtin 1G phy (lan1, lan2, lan3)
1 x MaxLinear GPY211B 2.5 N-Base-T phy5 (lan4)
1 x MaxLinear GPY211B 2.5Gbit xor SFP/N-Base-T phy6 (wan)
USB: 1 x USB 3.2 Enhanced SuperSpeed port
UART: 3V3 115200 8N1 (Pinout: GND KEY RX TX VCC)
VOIP: 2 FXS ports for analog phones

MAC Address Table
-----------------
eth0/lan    Factory 0x002a
eth1/wan    Factory 0x0024
wifi 2.4Ghz Factory 0x0004
wifi 5Ghz   Factory 0x0004 + 1

Serial console (UART)
---------------------
+-------+-------+-------+-------+-------+
| +3.3V |  RX   |  TX   |  KEY  |  GND  |
+---+---+-------+-------+-------+-------+
    |
    +--- Don't connect

Installation
------------
Keep in mind that openwrt can only run on the UBI partition, the openwrt firmware is not able to understand the zloader bootargs.
The procedure allows restoring the UBI partition with the Zyxel firmware and retains all the OEM functionalities.

1. Unlock Zloader (this will allow to swap manually between partitions UBI and UBI2):
- Attach a usb-ttl adapter to your computer and boot the router.
- While the router is booting at some point you will read the following: `Please press Enter to activate this console.`
- As soon as you read that press enter, type root and than press enter again (just do it, don't care about the logs scrolling).
- Most likely the router is still printing the boot log, leave it boot until it stops.
- If everything went ok you should have full root access "root@EX5601-T0:/#".
- Type the following command and press enter: "fw_setenv EngDebugFlag 0x1".
- Reboot the router.
- As soon as you read `Hit any key to stop autoboot:` press Enter.
- If everything went ok you should have the following prompt: "ZHAL&gt;".
- You have successfully unlocked zloader access, this procedure must be done only once.

2. Check the current active partition:
- Boot the router and repeat the steps above to gain root access.
- Type the following command to check the current active image: "cat /proc/cmdline".
- If `rootubi=ubi` it means that the active partition is `mtd6`
- If `rootubi=ubi2` it means that the active partition is `mtd7`
- As mentioned earlier we need to flash openwrt into ubi/mtd6 and never overwrite ubi2/mtd7 to be able to fully roll-back.
- To activate and boot from mtd7 (ubi2) enter into ZHAL&gt; command prompt and type the following commands:
atbt 1  # unlock write
atsw    # swap boot partition
atsr    # reboot the router
- After rebooting check again with "cat /proc/cmdline" that you are correctly booting from mtd7/ubi2
- If yes proceed with the installation guide. If not probably you don't have a firmware into ubi2 or you did something wrong.

3. Flashing:
- Download the sysupgrade file for the router from openwrt, than we need to add the zyfwinfo file into the sysupgrade tar.
Zloader only checks for the magic (which is a fixed value 'EXYZ') and the crc of the file itself (256bytes).
I created a script to create a valid zyfwinfo file but you can use anything that does exactly the same:
https://raw.githubusercontent.com/pameruoso/OpenWRT-Zyxel-EX5601-T0/main/gen_zyfwinfo.sh
- Add the zyfwinfo file into the sysupgrade tar.
- Enter via telnet or ssh into the router with admin credentials
- Enter the following commands to disable the firmware and model checks
"zycli fwidcheck off" and "zycli modelcheck off"
- Open the router web interface and in the update firmware page select the "restore default settings option"
- Select the sysupgrade file and click on upload.
- The router will flash and reboot itself into openwrt from UBI

4. Restoring and going back to Zyxel firmware.
- Use the ZHAL&gt; command line to manually swap the boot parition to UBI2 with the following:
atbt 1  # unlock write
atsw    # swap boot partition
atsr    # reboot the router
- You will boot again the Zyxel firmware you have into UBI2 and you can flash the zyxel firmware to overwrite the UBI partition and openwrt.

Working features
----------------
3 gbit lan ports
Wifi
Zyxel partitioning for coexistance with Zloader and dual boot.
WAN SFP port (only after exporting pins 57 and 10. gpiobase411)
leds
reset button
serial interface
usb port
lan ethernet 2.5 gbit port (autosense)
wan ethernet 2.5 gbit port (autosense)

Not working
----------------
voip (missing drivers or proper zyxel platform software)

Swapping the wan ethernet/sfp xor port
----------------
The way to swap the wan port between sfp and ethernet is the following:
export the pins 57 and 10.
Pin 57 is used to probe if an sfp is present.
If pin 57 value is 0 it means that an sfp is present into the cage (cat /sys/class/gpio/gpio468/value).
If pin 57 value is 1 it means that no sfp is inserted into the cage.
In conclusion by default both 57 an 10 pins are by default 1, which means that the active port is the ethernet one.
After inserting an SFP pin 57 will become 0 and you have to manually change the value of pin 10 to 0 too.
This is totally scriptable of course.

Leds description
------------
All the leds are working out of the box but the leds managed by the 2 maxlinear phy (phy 5 lan, phy6 wan).
To activate the phy5 led (rj45 ethernet port led on the back of the router) you have to use mdio-tools.
To activate the phy6 led (led on the front of the router for 2.5gbit link) you have to use mdio-tools.
Example:
Set lan5 led to fast blink on 2500/1000, slow blink on 10/100:
mdio mdio-bus mmd 5:30 raw 0x0001 0x33FC

Set wan 2.5gbit led to constant on when wan is 2.5gbit:
mdio mdio-bus mmd 6:30 raw 0x0001 0x0080

Signed-off-by: Pietro Ameruoso &lt;p.ameruoso@live.it&gt;
</content>
</entry>
<entry>
<title>ath79: add support for D-Link DIR-859 A3</title>
<updated>2023-05-22T12:45:03Z</updated>
<author>
<name>Shiji Yang</name>
</author>
<published>2023-05-05T01:50:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/commit/?id=0ffbef9317a1dc049ad259c1ec1530355efc0552'/>
<id>urn:sha1:0ffbef9317a1dc049ad259c1ec1530355efc0552</id>
<content type='text'>
Specifications:
  SOC:      QCA9563 775 MHz + QCA9880
  Switch:   QCA8337N-AL3C
  RAM:      Winbond W9751G6KB-25 64 MiB
  Flash:    Winbond W25Q128FVSG 16 MiB
  WLAN:     Wi-Fi4 2.4 GHz 3*3 + 5 GHz 3*3
  LAN:      LAN ports *4
  WAN:      WAN port *1
  Buttons:  reset *1 + wps *1
  LEDs: ethernet *5, power, wlan, wps

MAC Address:
  use      address               source1          source2
  label    40:9b:xx:xx:xx:3c     lan &amp;&amp; wlan      u-boot,env@ethaddr
  lan      40:9b:xx:xx:xx:3c     devdata@0x3f     $label
  wan      40:9b:xx:xx:xx:3f     devdata@0x8f     $label + 3
  wlan2g   40:9b:xx:xx:xx:3c     devdata@0x5b     $label
  wlan5g   40:9b:xx:xx:xx:3e     devdata@0x76     $label + 2

Install via Web UI:
  Apply factory image in the stock firmware's Web UI.

Install via Emergency Room Mode:
  DIR-859 A1 will enter recovery mode when the system fails to boot
  or press reset button for about 10 seconds.

  First, set computer IP to 192.168.0.5 and Gateway to 192.168.0.1.
  Then we can open http://192.168.0.1 in the web browser to upload
  OpenWrt factory image or stock firmware. Some modern browsers may
  need to turn on compatibility mode.

Signed-off-by: Shiji Yang &lt;yangshiji66@qq.com&gt;
</content>
</entry>
<entry>
<title>ath79: improve support for D-Link DIR-8x9 A1 series</title>
<updated>2023-05-22T12:45:03Z</updated>
<author>
<name>Shiji Yang</name>
</author>
<published>2023-05-20T12:35:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ldir/commit/?id=e5d8739aa846db621b6368ba83db17c353a35dea'/>
<id>urn:sha1:e5d8739aa846db621b6368ba83db17c353a35dea</id>
<content type='text'>
1. Remove unnecessary new lines in the dts.
2. Remove duplicate included file "gpio.h" in the device dts.
3. Add missing button labels "reset" and "wps".
4. Unify the format of the reg properties.
5. Add u-boot environment support.
6. Reduce spi clock frequency since the max value suggested by the
   chip datasheet is only 25 MHz.
7. Add seama header fixup for DIR-859 A1. Without this header fixup,
   u-boot checksum for kernel will fail after the first boot.

Signed-off-by: Shiji Yang &lt;yangshiji66@qq.com&gt;
</content>
</entry>
</feed>
