<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/blocktrron/package/boot, branch master</title>
<subtitle>Staging tree of David Bauer</subtitle>
<id>https://git.openwrt.org/openwrt/staging/blocktrron/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/blocktrron/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/'/>
<updated>2026-11-15T10:40:05Z</updated>
<entry>
<title>qualcommax: ipq807x: add Asus RT-AX89X B1 support</title>
<updated>2026-11-15T10:40:05Z</updated>
<author>
<name>Julius Bairaktaris</name>
</author>
<published>2026-10-03T14:22:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=8d3160652b2423608edadf9881362bfe95855384'/>
<id>urn:sha1:8d3160652b2423608edadf9881362bfe95855384</id>
<content type='text'>
The RT-AX89X B1 has its 10G PHY, an AQR107 or an AQR113, at address 7
on the IPQ8074 MDIO bus instead of the AQR113C on the GPIO MDIO bus.
The ASUS bootloader enables the AQR113C node only on boards that have
that PHY and leaves the device tree untouched on B1, so 10g-copper has
no PHY there and stays down.

A port references a single PHY and the bootloader only edits fixed /soc
paths, so one device tree cannot serve both revisions. Move the board
into ipq8074-rt-ax89x.dtsi and build it as two devices: B1, whose
10g-copper port uses the PHY at address 7 and whose unused GPIO MDIO bus
is disabled, and B2, whose device tree is the current one apart from
model and compatible.

The asus_rt-ax89x profile becomes asus_rt-ax89x-b2 and the board name
becomes asus,rt-ax89x-b1 or asus,rt-ax89x-b2. The B2 image also accepts
the old asus,rt-ax89x name, so installed B2 routers upgrade to it as
before. An installed B1 reports the same old name and needs sysupgrade
-F once to move to the B1 image; accepting the old name there too would
let a B2 take the B1 image without a warning.

Link: https://forum.openwrt.org/t/add-support-for-asus-rt-ax89x-ax6000/137003/1120
Signed-off-by: Julius Bairaktaris &lt;julius@bairaktaris.de&gt;
Link: https://github.com/openwrt/openwrt/pull/25556
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>mpc85xx: add support for CZ.NIC Turris 1.x</title>
<updated>2026-11-06T17:58:57Z</updated>
<author>
<name>Josef Schlehofer</name>
</author>
<published>2026-08-15T13:04:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=7a783bccd944c7e83cc34d007bbe0f4a7519b7f6'/>
<id>urn:sha1:7a783bccd944c7e83cc34d007bbe0f4a7519b7f6</id>
<content type='text'>
The CZ.NIC Turris 1.0 (RTRS01) and 1.1 (RTRS02) are open-hardware
routers based on the Freescale P2020RDB-PC-A reference design. Design
sources [1] and user documentation [2] are public.

Specification:
- SoC: Freescale P2020 dual-core e500v2 @ 1.2 GHz
- RAM: 2 GiB DDR3 (SO-DIMM)
- Storage: 16 MiB NOR, 256 MiB NAND, microSD slot
- Ethernet: 5x LAN (Qualcomm Atheros QCA8337N switch),
  1x WAN (Micrel KSZ9031 PHY)
- Wireless: 2x mini PCIe slots, one of them populated from the factory
  with an AR9390 (ath9k) 2.4/5 GHz card, 3x3 MIMO with 3 detachable
  RP-SMA antennas
- SIM slot (Turris 1.1 only)
- USB: 2x USB 2.0, on Turris 1.1 also 1x USB 3.0 front and 2x USB 3.0
  ports via an internal header
- Misc: 8x RGB LEDs (CPLD-driven) with a brightness button, ATSHA204
  crypto auth, MCP7940x RTC, SA56004 temp sensor, MAX6370 watchdog
- Console: UART on the internal microUSB connector
- Power: 7.5 V DC (Turris 1.0), 12 V DC (Turris 1.1)

The mainline device tree [3] covers the hardware. Two target patches
rename the NAND partition, so that the kernel finds the root volume by
name, and describe the switch PHYs on the MDIO bus, which fixes the WAN
port.

The factory U-Boot 2015.04 stays. It boots a FIT with the kernel and
the device tree from the microSD card or from UBI on the NAND, and
reads the MAC addresses from the ATSHA204. One sysupgrade image serves
both media and goes to the one the system booted from.

The p2020 subtarget now builds in the eSDHC MMC driver, BCH ECC,
FSL_GUTS, SOC_BUS, GLOB and the loop driver, and gains the boot-part and
rootfs-part features. Loop has to be built in because the overlay on the
card needs a loop device in preinit, where procd creates device nodes
only for the devices present when it starts. This also reaches the
P2020RDB and the WatchGuard XTM330.

Installation:
- microSD: write the sdcard image to a card and point the factory
  U-Boot at it:

    fw_setenv bootargsmmc root=/dev/mmcblk0p2 rootfstype=squashfs \
        rootwait console=ttyS0,115200
    fw_setenv mmcboot 'atsha204_mac_read; max6370_wdt_off;' \
        'setenv bootargs $bootargsmmc; bootm $nandbootaddr'

- NAND: boot from the card and run turris1x-nand-install with the
  factory-nand.ubi image.

OpenWrt changes nothing on the NOR except the U-Boot environment, so
holding RESET for 6 seconds still restores the factory Turris OS. That
also brings back the compiled-in U-Boot environment, whose bootcmd
skips the card. turris1x-nand-install prints the commands to set it
again.

Tested on Turris 1.1: install, boot and sysupgrade on microSD and NAND.

[1] https://web.archive.org/web/20241211162206/https://project.turris.cz/en/hardware-documentation.html
[2] https://docs.turris.cz/hw/turris-1x/turris-1x/
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/boot/dts/turris1x.dts

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;

Link: https://github.com/openwrt/openwrt/pull/24755
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>packages: tfa-layerscape: fix host-build on musl host</title>
<updated>2026-11-06T17:53:14Z</updated>
<author>
<name>Shine- GH</name>
</author>
<published>2026-11-04T15:17:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=4ab83cc3825817f4d0006c1cc1ebd4ddf530d3bb'/>
<id>urn:sha1:4ab83cc3825817f4d0006c1cc1ebd4ddf530d3bb</id>
<content type='text'>
This is an amendment to e42e9c8133fbd0dce7abfe1ec696383745448078.

Trusted Firmware Tools for the layerscape target are maintained in a
separate package, which has been missed in the original commit. Add the
same MUSL host-build fix here, too.

Patch 005 is unchanged, the diff comes from auto-refreshing patches.

Fixes: e42e9c8133fbd0dce7abfe1ec696383745448078
Signed-off-by: Shine- GH &lt;4c.fce2@proton.me&gt;
Link: https://github.com/openwrt/openwrt/pull/26478
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>uboot-airoha: backport FudanMicro FM25G0xB SPI-NAND support</title>
<updated>2026-11-05T16:47:53Z</updated>
<author>
<name>Mikhail Zhilkin</name>
</author>
<published>2026-10-29T20:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=bddeb1e5fe3f758c08cb521afc86687f0f7e64c5'/>
<id>urn:sha1:bddeb1e5fe3f758c08cb521afc86687f0f7e64c5</id>
<content type='text'>
Backport support for FudanMicro FM25G01B (1 Gbit) and FM25G02B (2 Gbit)
SPI-NAND flash chips.

This is required for the Nokia XG-040G-MD, which uses these chips as one
of its multi-sourced flash memory components.

Tested-by: Alex Fadeev &lt;tenkayyy8@gmail.com&gt;
Signed-off-by: Mikhail Zhilkin &lt;csharper2005@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/26332
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>uboot-tools: add helper script function to find working CRC range</title>
<updated>2026-11-04T21:34:59Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2026-08-30T22:04:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=b455c5b8514f2a6de0e3c68276771f953bddb046'/>
<id>urn:sha1:b455c5b8514f2a6de0e3c68276771f953bddb046</id>
<content type='text'>
A loop that accepts the mtd partition to scan,
an offset and the desired variable to test using printenv,
which gets the size and attempts different sizes
for the CRC calculation to find a match with the stored value.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/24866
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>ath79: engenius,esrxxxx: fix u-boot environment NVMEM usage</title>
<updated>2026-11-04T21:34:59Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2026-08-19T03:30:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=c623e36dbd2592a8efcab58e531d5d8be7eb2060'/>
<id>urn:sha1:c623e36dbd2592a8efcab58e531d5d8be7eb2060</id>
<content type='text'>
Similar to a psychopath, the bootloader of the ESR series demands
to check the CRC of the u-boot environment and replace it with
a CRC based on its own calculation on every boot cycle if it differs,
even if it is replaced with a correct and working one after boot.

When these boards were moved to using the u-boot-env layout driver
instead of userspace scripts for setting the MAC address,
some alternatives were discussed on how to handle this.

 - a general fix to ignore the CRC would be inappropriate.
 - upstream kernel would reject a method for ignoring the CRC.
 - a kernel patch series to make NVMEM devices optional causes random MACs.
 - a userspace fix to allow using the NVMEM driver as intended afterward.

After a deep investigation, it was discovered that the environment partitions
are 4k sector size despite being reported as 64k block size in bootloader console.
Therefore these other extreme measures are not necessary, however, the method
for fixing the CRC in userspace is provided by parent commits, and a helper function
to determine the correct size that represents an existing CRC is added afterward.

Thanks to recent kernel patches that added the env-size property
we can inform the layout driver of the true range to calculate the CRC with.
NVMEM detection with env-size is also supported in u-boot tools since version v2026.10.

In the uboot-tools scripts, we make sure to delete the "ubootenv" config file,
so that u-boot tools uses the NVMEM device instead of any previous uci settings.

Reviewed-by: Tomasz Maciej Nowak &lt;tmn505@gmail.com&gt;
Tested-by: Tomasz Maciej Nowak &lt;tmn505@gmail.com&gt;
Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/24866
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>uboot-tools: add script functions to fix corrupted environment CRC</title>
<updated>2026-11-04T21:34:59Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2026-08-19T03:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=1eda6c35a4bf05fd8dbd262b3329d573b4c4b208'/>
<id>urn:sha1:1eda6c35a4bf05fd8dbd262b3329d573b4c4b208</id>
<content type='text'>
Repair of a corrupted CRC in a u-boot environment can be done
with simple shell commands, thanks to the ability to abuse gzip.
When gzip compresses data, it creates a CRC32 little-endian checksum
in exactly the same form that a u-boot environment uses in the gzip footer.
For big-endian systems, u-boot uses a big-endian checksum,
so it must be read backwards from gzip. Therefore,
we have two versions of the function for endianness with mtd devices.

In order to facilitate different situations properly
these script functions allow for a userspace fix as a one-time execution
of a combined action that reads the environment, repairs the CRC,
adds an indicator variable, and writes the u-boot environment back
to the same or different partition so a bootloader doesn't mangle it further.

The success of correcting the CRC, and possibly migration, of the u-boot
environment is indicated by modifying it with a new variable "owrt_crc_fix".
The indicator variable is necessary to differentiate the fixed partition
from the bogus default environment, so that u-boot tools return an exit status
other than success when not properly discovering the fixed CRC partition.
Also, on the next sysupgrade, this prevents the fixup from happening again.

The uboot-tools are not allowed to write to the new partition directly,
as an NVMEM device is considered read-only by the kernel,
however, the mtd utility bypasses this if the parent mtd partition
is not marked as read-only in devicetree.

To handle writing a new variable,
another function writes a temporary uboot-tools environment config
so that the new variable can be written
to the new environment before it is written back to flash.

The function uses an optional while loop with sleep to ensure that
the NVMEM cells are available to use by checking the sysfs
for whether it exists yet so that later scripts can safely get values,
as using this is a rare situation that causes the NVMEM driver to probe late.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/24866
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>uboot-airoha: add TRNG node to the AN7583 dtsi</title>
<updated>2026-11-04T21:33:02Z</updated>
<author>
<name>Vitaliy Sochnev</name>
</author>
<published>2026-09-20T18:17:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=3c8d4969c236d43d7455895a4bbc358967d461e4'/>
<id>urn:sha1:3c8d4969c236d43d7455895a4bbc358967d461e4</id>
<content type='text'>
The AN7583 carries the same TRNG block as the EN7581, at the same
address and on the same interrupt.

Signed-off-by: Vitaliy Sochnev &lt;sochnev.v.74@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/25290
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>uboot-airoha: add driver for the Airoha TRNG</title>
<updated>2026-11-04T21:33:02Z</updated>
<author>
<name>Vitaliy Sochnev</name>
</author>
<published>2026-09-20T18:17:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=00727d897c6fff1a31cf697b2f308546f81024c8'/>
<id>urn:sha1:00727d897c6fff1a31cf697b2f308546f81024c8</id>
<content type='text'>
Backport U-Boot commit ce82cd191de2 to U-Boot 2026.07 and enable the
TRNG driver for Airoha builds. AN7581 and AN7583 boards have TRNG nodes,
allowing U-Boot to provide /chosen/kaslr-seed.

Signed-off-by: Vitaliy Sochnev &lt;sochnev.v.74@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/25290
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>mediatek: filogic: add support for GL.iNet GL-BE14000</title>
<updated>2026-11-03T17:40:42Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2026-08-18T05:03:40Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=43e739574e7656087f030dc4313627e6742c3103'/>
<id>urn:sha1:43e739574e7656087f030dc4313627e6742c3103</id>
<content type='text'>
Specifications:

SoC: MediaTek MT7988A (4x Cortex-A73)
RAM: 2048 MiB (early samples: 1024 MiB)
Flash: 64 GB eMMC
Ethernet:
  - 4x GbE LAN (lan6-9, MT7988 built-in switch)
  - 4x 2.5GbE LAN (lan2-5, YT8824 PHYs) and a 10G SFP cage (sfp,
    10GBASE-R) on a Motorcomm YT9224 switch, which links to gmac1 over
    a fixed 10G USXGMII and is its own DSA tree
  - 1x 10GbE WAN/LAN1 (wan, Realtek RTL8261D PHY, gmac2 USXGMII)
WiFi: MT7996 (2+3+3 variant) 2.4/5/6 GHz (BE)
Display: 240x320 SPI LCD (Sitronix ST7789P3) via panel-mipi-dbi, with
         PWM backlight on pwm3_0
Touch: Hynitron CST3530
Buttons: Reset
Cooling: PWM fan (SoC thermal controlled)
USB: 2x USB 3.0, 1x USB-C (power)
Power: DC barrel jack

Boot: vendor U-Boot loads the OpenWrt FIT from the "kernel" GPT
partition and roots on the "rootfs" partition (PARTLABEL=rootfs),
so no bootloader replacement is required. The device also ships an
OpenWrt bootchain as artifacts: the preloader from the BL2 variant
that draws the splash on the panel, and the BL31+U-Boot FIP. They
replace the vendor ones in mmcblk0boot0 and the fip partition and
keep the vendor GPT layout, so the same images boot under either
loader. The vendor U-Boot keeps one copy of its environment and the
OpenWrt U-Boot keeps two, so uboot-envtools detects the layout at
first boot.

The YT8824 ports get no link unless the board MDI swap value is in a
YT9224 common extended register. Only the vendor U-Boot writes it, so
the driver now takes it from the "motorcomm,mdi-swap" property and
writes it after the chip reset.

Preinit uses lan9 for failsafe.

The interface names follow the chassis labels. The YT9224 uses the
four-byte YT922x tag, which the PPE offloads, and bridger offloads the
bridged flows between the two switches. The SFP core drives the
rate-select lines of the cage.

Installation:

  Flash the factory image from the GL.iNet U-Boot web recovery, or
  via "mtkupgrade fw" from the U-Boot console. The eMMC GPT layout
  from the vendor firmware is reused (kernel + rootfs partitions).

  To switch to the OpenWrt bootchain, write the preloader to
  /dev/mmcblk0boot0 (clear its force_ro first) and the FIP to the
  GPT partition labelled "fip", or use "mtkupgrade bl2" and
  "mtkupgrade fip" from the vendor U-Boot console.

MAC addresses (factory partition on /dev/mmcblk0p2):
  WAN (label)       : 0x4000
  LAN (lan6-9)      : 0x4000 + 2
  LAN (lan2-5, sfp) : 0x4000 + 1
  2.4GHz            : 0x4006
  5GHz              : 0x4006 + 1
  6GHz              : 0x4006 + 2

Signed-off-by: Shi Jiayang &lt;shi05275@163.com&gt;
Signed-off-by: Nilanka de Silva &lt;nilankadsilva@gmail.com&gt;
Signed-off-by: Til Kaiser &lt;mail@tk154.de&gt;
Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
</feed>
