Rewrite the 13 overlays of spacemit-6.6 and of spacemit-6.18 from
fragment@N { target = <&x>; __overlay__ { ... }; }; to &x { ... };
as in mainline.
Each .dtbo is unchanged: cpp + dtc -@, decompiled with -s, compares
equal before and after. kernel-dtb for bananapif3, legacy and current:
all 44 .dtb, .dtbo and .scr files are byte-identical to the build
before the rename.
Rename the 13 overlays of spacemit-6.6 and of spacemit-6.18 from .dts
to .dtso, the kernel's extension for overlay sources. kbuild then
builds them with its own %.dtbo: %.dtso rule (DTC) instead of the
dtco rule that Armbian's overlay patch adds for %.dts. Content is
unchanged.
Renovate moved the Dependency Dashboard options into an object:
dependencyDashboard: true becomes { enabled: true }.
Its config migration rewrites renovate.json5 with JSON5.stringify,
which drops every comment. The file now uses that layout with the
comments kept: without the comment lines it is byte-identical to the
migrated config, so a future migration PR shows only the comments it
would drop.
Two comment fixes: the depName note drops the fork-sync remark, and
rule 6 allows the trailing "/" that lib/tools/shellfmt.sh uses.
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Igor Velkov <325961+iav@users.noreply.github.com>
Review on #11552: one shared counter let a second storming line slip past the cut-off, and the re-arm work could be queued again after it was cancelled on suspend/remove.
Signed-off-by: jbuck2005 <59450931+jbuck2005@users.noreply.github.com>
- 4018: 7.3.6 made reg-fixed-voltage reject every ACPI (PRP0001) fixed regulator, so on an Orange Pi 6 the NVMe slot's power switch never binds and the root file system on NVMe is not found.
- 4016: ack the LTSSM-transition indication on the AER lines and guard against spurious AER interrupt storms.
- 4017: scan the whole asym capacity domain on wakeup (7.2+ SIS_UTIL regression, 12-19% slower multi-threaded work); stop-gap until mainline fixes it.
Signed-off-by: jbuck2005 <59450931+jbuck2005@users.noreply.github.com>
* image/loop: replace stale partition nodes in the container
A stale /dev/loopNpM node in the container can point to a partition
of another image, because the kernel reuses partition minors. A
parallel build then formats and writes the other image.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
* image/loop: check only loop partition nodes
Mapped devices (LVM, LUKS) are not on the host. Keep them.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
* image/loop: fail the check when a stale node stays
Signed-off-by: Igor Pecovnik <igor@armbian.com>
---------
Signed-off-by: Igor Pecovnik <igor@armbian.com>
gitee.com/mirrors/u-boot.git now asks for credentials; the U-Boot
mirror is at gitee.com/trusted-list/u-boot.git. UBOOT_MIRROR=gitee is
the default for REGIONAL_MIRROR=china.
Without m25p,fast-read, spi-nor reads the flash with READ (03h). The
MX25U6435F datasheet (Rev. 1.5, Table 16) rates READ at 50 MHz and
FAST_READ at 104 MHz; the N2 DT sets 104 MHz, and spifc on an N2+
runs at clk81 (222 MHz) / 2, about 111 MHz.
On an N2+ with READ, bit 7 of the first byte of a read was wrong in
36 of 50 4 KiB blocks, and flashcp failed on every run. With this
overlay: 0 of 200 blocks, and three flashcp runs of 1 MiB with eMMC
reads running passed. XTX flashes were not tested.
The comment named a -spi.dtb that the build does not produce and kept a
TODO for an overlay that already exists. Use overlays=odroid-n2-spi and
armbian-install instead.
While QE is 0, pin 7 of the flash is RESET# (MX25U6435F) or HOLD#
(XTX), and on the N2/N2+ it shares eMMC D3. With the eMMC in 4-bit
mode, eMMC reads disturb the flash: on an N2+ with QE=0 and eMMC reads
running, spi-nor read the JEDEC id as ff and failed to probe.
QE=1 turns that pin function off and is non-volatile. Set it over
spidev before flashcp, using perl from perl-base.
Tested on an N2+ (MX25U6435F): with eMMC reads running, the function
set QE from 0 and spi-nor probed again; the boot ROM still boots from
the SPI NOR with QE=1. XTX flashes were not tested.
The N2/N2+ U-Boot has no SPI support, so the SPI NOR can only be
written from Linux, where the eMMC shares its pins. Enable spifc and
SF; the flash is touched only by an explicit "sf probe".
To update it: load the image from any device, then sf probe,
sf update and reset; do not access the eMMC after sf probe.
Stable commit 8eb49d677 rejects platform devices without an OF node.
This also rejects the ACPI PCIe slot regulators. Three PCIe
controllers then defer forever, so Ethernet and Wi-Fi are missing.
Accept devices with an ACPI companion in the 0033 patch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v7.3.6 brought the stable fix that makes the iris driver reserve the
low 600 MB of IOVA itself. The Q8B DTS still reserved the same range
through iommu-addresses, so the driver could not get it and the probe
failed with -ENOMEM. Leave the reservation to the driver.
Signed-off-by: SuperKali <hello@superkali.me>
7.3.7 and 6.18.66 bring the upstream version of this patch, split in
three (mmc: meson-gx: name the limit of the CMD_CFG timeout field,
honour the busy timeout for R1b commands, report the longest busy wait
the controller can do), and with it mmc: meson-gx: report busy from
DAT0 alone. The copy fails to apply on 7.3.7-rc1 and 6.18.66-rc1.
Rewrite the overlays of meson64-6.18, 7.3 and 7.4 from
fragment@N { target = <&x>; __overlay__ { ... }; }; to &x { ... };
and target-path = "/p" to &{/p}, as in mainline.
Each .dtbo is unchanged: cpp + dtc -@, decompiled with -s, compares
equal before and after for all 33 overlays of each version; dtc prints
the same warnings.
Left as they are: meson-g12-pwm-gpiox-5-fan and
meson-g12b-bananapi-cm4-pwm-gpioh-5-fan (polling-delay sits in the
fragment, outside __overlay__), and in 6.18 meson-i2cA, i2cB, uartA,
uartC (no /plugin/).
prerm leaves /run/gateway-dk-ask.restart for postinst to start the
service again after an upgrade. If the upgrade fails between the two and
the package is then removed, the marker stays, and a fresh install later
in the same boot would start the service instead of only enabling it.
Clear it in postrm on remove and purge; an upgrade still keeps it.
- Upgrading from the pre-flowtable package removed the old
/etc/modules-load.d/ask-modules.conf outright, losing any entry an
administrator had added. Drop only the obsolete fci and auto_bridge
lines, and remove the file only when nothing but the stock list is
left, which ask.conf now loads.
- prerm stops ask-flowtable on every upgrade, but postinst only enabled
it for the next boot, so an upgrade left hardware offload off. prerm
now records that the service was running and postinst starts it
again. Nothing is started on a fresh install or in the image build.
The check that every file in ASK's SDK copy is installed accepted a
dtsi by basename alone, so a same-named file in another directory
passed it and was then left out of the overlay without notice. Compare
against the exact freescale/<name> path the overlay copies from.
gateway-dk-ask declared "linux-image (>= ${kernel_ver})", where
kernel_ver is the module directory name (6.12.118-current-ls1046a-ask).
The linux-image package is versioned in Armbian's own namespace
(26.x), so the constraint always held and required nothing.
Depend on the installed linux-image package version instead, still
with >=: the daemon needs the flowtable-capable modules of the kernel it
was built with or newer, but does not link them. The dpkg-query lookup
gateway-dk-wifi already used becomes one helper shared by both packages.
A unit upgrading from the ASK 1.0.0 package by apt would keep two
leftovers:
- cmm.service stays enabled while the upgrade removes its unit file,
leaving a dangling enablement link. Disable it in preinst, while the
file still exists.
- /etc/modules-load.d/ask-modules.conf, which the image carried
unowned, names fci and auto_bridge, which no longer exist, so
systemd-modules-load fails on every boot. Remove it in postinst when
it is that file; ask.conf replaces it.
ASK now carries the NXP mwifiex fixes for each kernel line next to its
Yocto recipe: the cfg80211 set_monitor_channel compat fix this tree
kept a copy of, plus fixes for skb ownership, ralist locking, A-MSDU
aggregation and scan teardown. Apply them in order from the pinned ASK
tree, failing if there are none for the kernel line, and drop the local
copy of the first one.
Set FSL_FM_MAX_FRAME_SIZE=9600 and FSL_DPAA_ETH_JUMBO_FRAME=y, as ASK's
kernel config does. FMan then accepts 9.6K frames and DPAA sizes its Rx
buffers to hold one whole, so the offload paths that re-inject or
transform a frame (SEC, fragmenter, Wi-Fi) get it in one buffer.
JUMBO_FRAME requires the 9600-byte frame size; the default is 1522.
The board device tree (from ASK 1.6.0) now describes the LP5812 status
LED as a single multicolor LED class device, status:rgbw, instead of
four single-colour LEDs. The boot indicator still wrote to
status:green/status:white, which no longer exist; under set -e its
final failed test made the unit fail on every boot.
Light the white channel through multi_intensity, picking its position
from multi_index rather than assuming the channel order.
ASK replaced its offload model after 1.0.0. The data plane is now an
nftables flowtable driven into CDX hardware, so the whole pre-flowtable
userspace is gone: fmlib, fmc, libfci, libcli, dpa-app, cmm, the patched
libnetfilter-conntrack/libnfnetlink, the QOSMARK/QOSCONNMARK xtables
extensions and the FMan PCD XMLs. The PCD is built in-kernel instead.
Kernel side:
- Pin ASK mono-1.6.1 and the mainline base it targets, v6.12.118.
- The NXP DPAA/FMan/QBMan SDK is ASK's own copy now (sdk/linux, NXP's
drivers with ASK's fixes made in place), so it comes with the ASK pin
and nothing is fetched from NXP. The overlay installs the path set
ASK names and refuses an SDK copy holding a file outside it.
- The patch series lives per kernel line (patches/kernel/6.12); the
extension refuses an ASK release whose RELEASED_LINES omits 6.12.
- cdx/ builds both cdx.ko and ask_flowtable.ko from CONFIG_ASK_CDX;
the separate fci and auto_bridge modules are gone, and with them
ask-kconfig-board-modules.patch (folded into the parent Kconfig).
- Enable NF_FLOW_TABLE_INET: the offload table is an inet flowtable.
Userspace is one libc-only daemon, ask-flowtable, shipped in
gateway-dk-ask with its config, module autoload list and systemd unit.
It depends on nftables and iproute2, which it runs.
* firstlogin: keyboard presets, and wait for the graphical wizard
PRESET_KEYBOARD_LAYOUT and PRESET_KEYBOARD_VARIANT set
/etc/default/keyboard. While armbian-firstrun-gui runs on the screen,
a console or SSH login does not start a second setup.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
* firstlogin: set the keyboard before the passwords, ask on the console
Apply the keyboard preset before the password prompts, so that the
console login uses the same layout. Without a preset, ask the layout on
a local virtual console when setupcon can apply it at once.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
* firstlogin: keep the keyboard step after the locales with preset passwords
The graphical wizard shows its progress from the firstlogin output. Set
the keymap early only when a password is typed at the console.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
* firstlogin: let another login take the setup over from the wizard
A login on SSH, a serial console or another text console can stop the
graphical wizard and continue the setup there, for example when no one
is at the screen. The firstlogin lock stops this while the wizard
applies its answers.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
* firstlogin: review fixes for the wizard guard and the keyboard
- Without a terminal, the guard does not read input.
- A console that does not take the setup over logs out when the setup
is complete, as armbian-firstlogin does. If the wizard stops without
a result, the setup continues on that console.
- Report a setupcon failure. Refresh the udev input properties, so that
X uses the new layout without a reboot.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
* firstlogin: stop the wizard when a setup starts on another console
A serial console can log in before the wizard starts and run the text
setup. When that setup takes the lock, stop the wizard, so that two
setups do not run. Not in the run of the wizard itself.
The guard ignores Ctrl-C while a console waits for the wizard, so that
no root shell stays open.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
---------
Signed-off-by: Igor Pecovnik <igor@armbian.com>
* board: add OnePlus 10 Pro (SM8450)
Add oneplus-negroni as a community board on edge.
The stock ABL boots a boot v4 image from boot_b and an ext4 root in userdata.
The kernel replaces the ABL device tree with its built-in mainline DTB.
Tested on NE2210 with ColorOS J.94 and Debian trixie minimal.
Assisted-by: Claude:claude-opus-5-5
* chore: update board name
On a blank environment sector fw_printenv and fw_setenv (libubootenv)
stop with "Cannot read default environment from file". Generate
u-boot-initial-env in the U-Boot build and ship it in the U-Boot package
as /etc/u-boot-initial-env.
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
The U-Boot environment is in the SPI NOR at 0xf0000. Ship
/etc/fw_env.config for it in the BSP package (with libubootenv-tool), so
fw_printenv and fw_setenv work from Linux, and stop the U-Boot build if
u-boot-sunxi-with-spl.bin reaches past the environment offset.
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
On SD boots the environment is the upstream FAT default, but Armbian
images are one ext4 partition, so U-Boot only prints "Unable to use
mmc 0:1" and saveenv fails; U-Boot cannot write Armbian's ext4
(metadata_csum) either. Keep the environment in the SPI NOR at 0xf0000
for SD and SPI boots: FAT env off for the board, and a sunxi fallback to
the SPI flash env when neither FAT nor UBI is enabled (otherwise a
non-SPI boot finds no env location and hangs before the console is up).
Both patches are in board_orangepizero2/, so no other board's U-Boot
changes.
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
* Add Cubie A5E DRAM validation and fixes
Validate A523 DRAM with a wide SPL test and retry the 1 GiB fallback.
Use exported 2 GiB TPR values first on the 2 GiB board.
Include memtester in Cubie A5E images.
Limit aic8800 DKMS builds to one job.
Number board patches to fix apply order.
* Reject all DRAM validation readback failures
Remove the final-site exception so any mismatch triggers fallback.
* Preserve original DRAM timings as second retry
Keep the previous primary TPR set available for boards that need it.
* Drop aic8800 DKMS job limit
Keep the extension unchanged.
* Update DRAM_SUNXI_TPR_ORIG_PARAMETERS dependency
Modify DRAM_SUNXI_TPR_ORIG_PARAMETERS dependency to include DRAM_SUNXI_TPR_ALT_PARAMETERS.
* Retry DRAM training failures with next TPR set
Return rank-width training failure instead of panicking.
* Add vendor boot0 DRAM timings as third retry
Board: Radxa Cubie A5E v1.2 with 2 GiB DRAM.
Source: vendor BOOT0 log from that board.
BOOT0 commit: 33d8db429a-dirty.
U-Boot 2018.07-17-boot-aw2501-gf7d519a3b8d-dirty.
dram_para[26]=0x3a000000, [27]=0x802f3333, [28]=0xc0c0bbbf, [29]=0x35352f31.
UCM looks up a simple-audio-card first as
conf.d/simple-card/<card long name>.conf, then as
conf.d/simple-card/simple-card.conf. The profile was keyed on the long
name, which is the card name "rockchip-es8388" on a U-Boot boot. When
the kernel gets SMBIOS tables from UEFI firmware, ASoC builds the long
name from the DMI strings instead ("LCKFB-TaishanPi3M-0" with
edk2-rk3576), the file no longer matched, and PipeWire fell back to a
generic profile without the headphone jack and the microphone routing.
The DMI name is also the same for every simple-audio-card on the board,
HDMI and DP included, so a file named after it would apply the ES8388
profile to those cards too.
Ship the profile as simple-card.conf and select it by the card name,
which DMI does not change. Other simple-audio-cards on the board find no
use case in it and keep the generic profile, as before. The verb,
devices and values are unchanged; only the card name condition around
them is new.
Signed-off-by: gahingwoo <gahing@gahingwoo.com>
The screen detection picks the dsi-* overlay in /boot/armbianEnv.txt and
reboots when that changes. Only Armbian's U-Boot boot script applies
those overlays. When the board boots through UEFI firmware instead (for
example edk2-rk3576 with GRUB), the device tree comes from the firmware
and armbianEnv.txt is not read, so the service rewrote the file and
rebooted for nothing. On a UEFI install it had to be masked on the
kernel command line.
Do nothing when /sys/firmware/efi exists, both as a unit condition and
in the script. Armbian's boot script starts the kernel with booti, so
U-Boot boots are not affected.
Signed-off-by: gahingwoo <gahing@gahingwoo.com>
- net: phy: realtek: reset after clock enable (Sebastian Reichel, not on lore): f8b1e58aff
- net: phy: realtek: re-init after reset (Sebastian Reichel, not on lore): 2fa49d2edb
Assisted-by: Claude:claude-opus-5-5
Take Sebastian Reichel's v9 as Manivannan Sadhasivam applied it to
pci/next. Against v8, rockchip_pcie_rc_reset_root_port() uses the
controller mode helper, the DLL unmask helper becomes
rockchip_pcie_unmask_dll_interrupts() with a flag for the link up/down
event, and rockchip_pcie_suspend() caches the INTx mask after
dw_pcie_suspend_noirq() and drops the pci->suspended check.
Link: https://lore.kernel.org/r/20261105-rockchip-pcie-system-suspend-v9-0-a2e55846649e@collabora.com
Take Sebastian Reichel's v9 as Manivannan Sadhasivam applied it to
pci/next. Against v8, rockchip_pcie_rc_reset_root_port() uses the
controller mode helper, the DLL unmask helper becomes
rockchip_pcie_unmask_dll_interrupts() with a flag for the link up/down
event, and rockchip_pcie_suspend() caches the INTx mask after
dw_pcie_suspend_noirq() and drops the pci->suspended check.
v9-00, the backport of f845c1e2d2d4, is unchanged.
Link: https://lore.kernel.org/r/20261105-rockchip-pcie-system-suspend-v9-0-a2e55846649e@collabora.com
The rk35xx bootscript was changed in 9e58e253 to use a configurable
${serialcon} variable instead of a hardcoded ttyS2 console.
The turing-rk1 board configuration still replaces the previous hardcoded
console=ttyS2,1500000 string. Consequently, the replacement no longer
matches the updated bootscript, and vendor images boot with the generic
UART2 console instead of the RK1's UART9.
Update the board-specific bootscript modification to set serialcon to
ttyS9 and use the correct 115200 baud rate for vendor builds.
This restores serial console output on the Turing RK1 vendor builds.
Signed-off-by: thekelvinliu <kelvin@thekelvinliu.com>
A crypt ISO waits 90s at boot for the installed LUKS root.
armbian-initramfs-dep also fails on the live overlay root.
Expected result: the live ISO boots without the wait and without a failed unit.
Signed-off-by: Igor Pecovnik <igor@armbian.com>