mirror of
https://github.com/armbian/build.git
synced 2026-11-26 23:29:56 +00:00
* sunxi-7.2: add Sun55iw3 display patches (disabled for rework) and PCIe/NVMe U-Boot support
- Add Sun55iw3 HDMI display pipeline patches 7000-7005, SPI NOR enable
and IOMMU fix to the normal sunxi-7.2 series (no separate family).
Patches that conflict with the current series (7000,7001,7002,7004)
are added disabled (-) for now to allow a clean build; they will
be re-enabled and rebased via the kernel-patch workflow.
- Add U-Boot v2026.07 PCIe/NVMe support for sun55i-a523 (DWC glue,
PHY, clocks, SPI, NVMe boot target - NVMe before network).
- Series.conf updated with ordered entries; board configs remain
standard (no KERNELPATCHDIR override, no additional family).
The series now builds cleanly for a full image; the kernel tree can be
inspected after 'compile.sh build', then the disabled patches can be
fixed in the worktree and regenerated with 'kernel-patch' /
'rewrite-kernel-patches' / CREATE_PATCHES flow as suggested.
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Assisted-by: opencode:glm-5.3-flash
* sunxi-7.2: enable Sun55iw3 display as single integrated patch
Collapse the previously disabled Sun55iw3 (A523/T527) DE33/RCQ HDMI
patches into one 7000-drm-sun55i-a523-hdmi.patch, based on the series
state, and enable it. Validated with a full radxa-cubie-a5e trixie edge
build; patching applies clean and the kernel compiles.
* sunxi-7.2: split A523 backports into 3 patches, enable e906 remoteproc, mark boards with video output
- Split the Sun55iw3 (A523/T527) work into three patches: 7000 drm/HDMI
(12 files), 7001 cedrus video engine (4 files), 7002 clk + dts board
configs (8 files); drop the stale 7000-drm-sun55i-a523-hdmi-v2.patch
residue. series.conf points to the three active patches.
- Enable the e906 RISC-V remoteproc on radxa-cubie-a5e (mboxes,
memory-region, memory-mappings) so remoteproc0/msgbox come up like on
avaota-a1; validated BASE + 3 patches reproduce the FINAL tree and the
cubie dtb compiles.
- Set HAS_VIDEO_OUTPUT=yes on radxa-cubie-a5e and avaota-a1 so the
desktop image builds (interactive.sh forces BUILD_DESKTOP=no without it).
- h728/x96qpro+ and orangepi-4a dts tweaks included in 7002.
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Assisted-by: opencode:big-pickle
* sunxi-7.2: reload overlay/cursor blender blocks on every flip (cursor invisible)
The v35x DE commits its datapath only through the RCQ, and flip-min
reloads just the fb-address shadow blocks on page flips. Xorg stages
the cursor plane (channel 8, pipe 2) *after* the initial full reload,
so its blender pipe stays disabled in hardware: the cursor layer is
live (ATTCTL=enabled) but the blender never composites it, hence a
working, moving, invisible X cursor.
Keep the primary UI channel (pipe 0) on the cheap fb-address-only
path, but reload the shared blender blocks plus the whole overlay/
cursor channel register files on every flip so their enable state,
position and blend mode reach the hardware.
Validated BASE + 7000/7001/7002/7003 applies cleanly and the resulting
sun55i_de.c matches the worktree fix.
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Assisted-by: opencode:big-pickle
* sunxi-7.2: refine A523 dts/clk patch after review
- Restore upstream 2025 Arm Ltd copyright and add author attribution
in the Cubie A5e device tree.
- Revert all regulator changes (cldo1 back to 1800mV, cldo3 to 3300mV,
drop always-on/vin-supply/force-polyfase additions) so the three
boards keep mainline regulator values.
- Move linux,cma under a /reserved-memory node on avaota (kept pinned
with reg/alloc-ranges); qualify the orangepi-4a comment instead of
claiming the pool is pinned, and mark its HDMI as untested.
- Drop the h728-x96qpro+ device tree changes (no active Armbian board).
- Fix the video-codec comment to reflect quirk_no_sram skipping the
SRAM claim instead of the syscon no-op.
- Restore leds/common.h and function/color properties for the Cubie
power/user LEDs.
- Add the Cubie A5e U-Boot board patches (defconfig + dts, PCIe/NVMe)
that were missing from the branch and keep msdos partition layout
(eGON overwrites GPT, issue #10647).
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Assisted-by: opencode:big-pickle
* sunxi-7.2: power Cubie A5e HDMI via hvcc-supply (reg_bldo3)
The Cubie A5e hdmi node relied on the AXP717 bldo3 being always-on to
power the HDMI PHY. After restoring upstream regulator values in the
previous commit, bldo3 is no longer forced on and the image lost video
on this board. Wire hvcc-supply = <®_bldo3> on the hdmi node (as the
Avaota does) so sun8i_dw_hdmi drives the LDO on enable instead.
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Assisted-by: opencode:big-pickle
* sunxi-7.2: power Cubie A5e HDMI via hvcc-supply (reg_cldo1)
The Cubie A5e schematic feeds VCC18-HDMI from CLDO1_1V8 (reg_cldo1),
not BLDO3. Fix the hvcc-supply phandle so the sun8i_dw_hdmi driver
enables the correct 1.8 V rail at probe. Avaota A1 keeps reg_bldo3.
Refresh megous 0026 (sun4i clockevent zero-interval floor) for the
current vanilla 7.2.4 base: the min-delta raise (TIMER_SYNC_TICKS + 1)
is already upstream, so only the set_next_event floor hunk remains,
allowing the kernel patch series to apply on a clean worktree.
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Assisted-by: opencode:big-pickle
* sunxi-7.2: force CLDO1/BLDO3/ALDO2 always-on for Cubie A5e HDMI PHY
Restore the regulator-always-on flags on reg_cldo1, reg_bldo3 and reg_aldo2
that were present in image 7.2.2 (the first one with working HDMI on Cubie
A5e) but were lost when upstream acted on the pmic. The sun8i_dw_hdmi PHY
needs these rails powered; with hvcc-supply pointing at reg_cldo1 video
comes up and stays up.
Also enable the previously-committed arm64-dts-sun55i-a527-cubie-a5e-
enable-spi-nor.patch in series.conf (it was never activated, so 7.2.4
lost /dev/mtd0). The 7002 cubie section was regenerated so it applies
cleanly on a trimmed vanilla tree.
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Assisted-by: opencode:big-pickle
* sunxi-7.2: force Xorg SWcursor on sun55iw3 boards with video output
The DE33 RCQ backend stages the primary UI channel; the cursor plane
(channel 8, per-channel OVL/blender pipe) framebuffer fetch returns
black, so hardware cursors on those boards render invisible with a black
square around the pointer (the cursor still works). Install an Xorg
modesetting SWcursor config for every sun55iw3 board with
HAS_VIDEO_OUTPUT=yes (Cubie A5E, Avaota A1) until the channel-8 fetch
is fixed.
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Assisted-by: opencode:big-pickle
* Revert "sunxi-7.2: force Xorg SWcursor on sun55iw3 boards with video output"
This reverts commit 105fc55e98.
* sunxi-7.2: fix DE33 HDMI primary/cursor update path (RCQ backstop, phys7 cursor)
The v35x DE commits its datapath only through the RCQ and relies on the
TCON vblank IRQ to trigger the RCQ arm. On cursor-only atomic flips the
devices stays idle and the IRQ does not fire, so the staged cursor
pipeline never reaches the hardware (invisible cursor). Follow the
sun4i sibling drivers and drive the arm from a hrtimer backstop in
commit() when no vblank IRQ is outstanding.
Also avoid physical mixer channel 8: its per-channel OVL/blender
framebuffer fetch returns black regardless of configuration (VSU
passthrough and direct programming both reproduce it), so the X cursor
used to render as a black box. Map the DE logical channels as
{0,6,8,7} - cursor on phys7 - instead of the mainline {0,6,7,8}.
And reorder sun4i_crtc_atomic_disable to tear down the TCON before
disabling the vblank, matching sun4i-crtc teardown order.
Validated BASE + 7000..7004 apply cleanly; sun8i_mixer.c and
sun4i_crtc.c from the series match the working tree byte-for-byte, and
the HW cursor on phys7 tracks the mouse on Cubie A5e.
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Assisted-by: opencode:big-pickle
* sunxi-7.2: fix arm_sched race in the DE33 RCQ backstop (review fix)
CodeRabbit round 2. The blind spot was the scheduling check
if (!hrtimer_active(&de->arm_timer))
sun55i_de_schedule_arm(de);
hrtimer_active() stays true while the timer callback is running, so a
commit racing with sun55i_de_arm_timer() sees the hrtimer as active
even though the callback already decided not to re-arm (do_arm cleared
arm_pending) and will return HRTIMER_NORESTART: a staged cursor/overlay
update sits in arm_pending forever without a timer and never reaches
the hardware.
Track the arm state explicitly instead: de->arm_sched is set when the
hrtimer is queued (schedule_arm / vblank_quirk), cleared when the
callback runs, and re-set on retry. commit()/vblank_quirk() schedule on
!de->arm_sched, closing the lost-update race under arm_lock.
7003 regenerated as a fresh diff over the re-indexed 7000; the resulting
sun55i_de.c/.h are byte-identical to the build worktree (incl. the stale
{0,6,7,8} comment corrected to {0,6,8,7}) and both objects recompile
clean.
Other findings from the same review were evaluated and skipped with a
reason (see PR): pcie CFG0/CFG1 mirrors the vendor BSP layout (NVMe Gen2
boots on both boards); pcie probe region_count=2 matches the sunxi
dw-pcie pattern; iommu DMA32 constraint has no effect on these <4GiB
boards; NVMe boot-target order is deliberate (NVMe stays the LAST boot
target so SD/USB/eMMC are tried first).
* sunxi-7.2: wire orangepi-4a HDMI 1v8 rail (hvcc) and fix hunk count
VCC18-HDMI on orangepi-4a is fed by CLDO1 of the AXP717; the dw-hdmi
driver consumes the rail through hvcc-supply (sun8i_dw_hdmi.c). Wire it to
reg_cldo1 like cubie-a5e, so the 1.8V PHY supply is driven by the driver.
VDD09-HDMI (0.9V) comes from DCDC2 (vdd-gpu-sys), already regulator-always-on.
Adding the line bumped the &usbphy hunk's post-image by one; updated the
hunk count +519,17 -> +519,18 (git apply was silently dropping the trailing
+}; that closes &hdmi_out, producing an unterminated node).
Validated: the opi4a dts from the patch is byte-identical to the build
worktree and the sun55i-t527-orangepi-4a.dtb compiles clean.
HDMI on this board stays enabled for community testing.
* sunxi-7.2: align RGMII MAC delays of Cubie A5e and Avaota A1 to mainline
Both RGMII ports on the Cubie A5e (300/400) and the Avaota A1
(100/300 and 100/100) carried per-board MAC delays that deviated from
what upstream validates. Mainline (Orange Pi 4A, rgmii-id) uses MAC
tx 0 / rx 300 and saturates ~0.94 Gbps with no errors; the Orange Pi
4A was already aligned.
Set gmac0/gmac1 to tx 0 / rx 300 on both boards (gpio0 and gpio1 use
the allwinner,tx-delay-ps/allwinner,rx-delay-ps properties; gmac1 on
the mac variant uses tx-internal-delay-ps/rx-internal-delay-ps driven
by dwmac-sun55i). Both links verified at 1 Gbps on the Cubie A5e.
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Co-Authored-By: big pickle <big-pickle@users.noreply.github.com>
* sunxi-7.2: rework sun55i A523 DE33/HDMI driver for mainline API
Rebase the DE33/HDMI driver on the mainline RCQ backstop API
(.uses_rcq, guarded update/frontend paths, mixer IRQ quirk) and
re-enable 0039/0044 in the series. Build-tested on A523
(radxa-cubie-a5e) and regression-tested on H616 (orangepizero3).
* sunxi-7.2: split E906 remoteproc wiring out of 7002 into 7005
The 7002 clk-and-dts patch carried the cubie-a5e E906 RISC-V remoteproc
wiring (riscvsram0/1, e906_dram, vdev0 buf/vrings reservations plus the
&e906_rproc mbox/memory-mappings node) right next to the HDMI/display
pieces. Since the E906 firmware work lives in a separate tree, move that
block to a dedicated 7005 patch so 7002 stays display/HDMI-only.
Keep the linux,cma pin (DE fetch aperture) and the &de/&hdmi/&hdmi_out
pieces in 7002. msgbox already comes from the base dtsi, not 7002.
* sunxi-7.2: fix sun55i channel map regression and RCQ arm timing
The mainline-API rework re-enabled 0039, which removed the mixer .map[]
field and the phy_index plumbing, so UI planes are created with logical
channels (vi_num + i = 1..3) again. sun55i_de_layer_update still expected
physical channels 6..8 and silently rejected every UI plane: green
background, and once past the guard the cursor landed on phys 8, which
fetches black on this die.
Translate logical->phys inside sun55i_de_layer_update with the de352 map
{0, 6, 8, 7} (primary->6, overlay->8, cursor->7), so the cursor sits on
the working phys 7 and the broken phys 8 stays with the overlay Xorg
leaves unused. Verified on Avaota A1 (HDMI 1080p60): Xorg cursor renders
and follows the mouse, PORT2CHN mux reads 0xa980, cursor OVL staged at
phys 7 (AR24 64x64), phys 8 stays empty.
Also fix the RCQ arm timing, measured on the same board via /dev/mem
sampling (114944 samples): the TCON line counter runs RAW 0..vtotal, not
doubled, so tcon_line_double now defaults off; arm_target keeps the
vendor vbp + 3% math but is clamped to half the leading blanking (the
vendor's ~line-69 target at 1080p60 arms inside active video); mode_set
clears arm_sched after hrtimer_cancel (a canceled timer never would,
freezing the pipeline after a mode change); and the hrtimer callback
re-reads the beam position and defers instead of arming inside active
video. With 400 injected cursor moves the arms cluster at lines 20-21
(active starts at 41): no tearing.
Signed-off-by: Juan Sanchez <juanesf91@gmail.com>
Co-authored-by: opencode <noreply@opencode.ai>
* sunxi-7.2: rework sun55i msgbox and E906 remoteproc for upstream
Replace the msgbox and E906 remoteproc implementations with the
upstream-oriented rework: DT schema YAML bindings for both drivers
(allwinner,sun55i-a523-msgbox.yaml / allwinner,sun55i-a523-rproc.yaml),
msgbox with the ARM-block IRQ plus a 2ms poller fallback, and the E906
remoteproc on the standard mbox + reserved-memory virtio layout. Update
the e906 DT node, keep the cubie-a5e board wiring in 7005, and drop the
last E906 remnants from 7002.
Also refresh linux-sunxi64-edge.config for 7.2.6 and disable three stock
patches that no longer apply there (0088 and the sun4i-a10 PMU dts fix
are upstream, 0012 tps65185 hunk 7 context changed).
Verified on Avaota A1 with the 7.2.6 image and linux-image deb:
sun55i-msgbox 3003000.mailbox ready (12 channels, irq=20), remoteproc0
(7130000.rproc) available with the e906_dram@60000000 reservation; the
HDMI/cursor pipeline from the previous commit is unaffected.
Signed-off-by: Juan Sanchez <juanesf91@gmail.com>
Co-authored-by: opencode <noreply@opencode.ai>
* sunxi-7.2: address review findings on sun55i msgbox and E906 remoteproc
- dt-bindings: mailbox: drop 'interrupts' from required; the driver has
an IRQ-less polling path, so the edge may be absent on some boards.
- remoteproc: sun55i_e906: on start failure, re-assert resets and
disable the bus clock so we unwind cleanly instead of leaking.
- remoteproc: sun55i_e906: free the mbox channel before destroying its
workqueue, both on rproc_add() failure and in remove(), so a pending
rx callback cannot queue work on a destroyed workqueue.
- remoteproc: sun55i_e906: track pending virtqueue notifications in a
bitmap guarded by a spinlock, so a vq notification arriving while work
is already queued is no longer overwritten and lost.
Signed-off-by: Juan Sanchez <juanesf91@gmail.com>
Co-authored-by: opencode <noreply@opencode.ai>
* sunxi-7.2: series.conf: fix tabs on sun4i-drm patch entries
Use a single tab indent for the patches.drm/0032..0048 entries, matching
the rest of the file (they had spaces instead of tabs).
Signed-off-by: Juan Sanchez <juanesf91@gmail.com>
Co-authored-by: opencode <noreply@opencode.ai>
---------
Signed-off-by: Juan Sanchez Fuentes <juanesf91@gmail.com>
Signed-off-by: Juan Sanchez <juanesf91@gmail.com>
Co-authored-by: big pickle <big-pickle@users.noreply.github.com>
Co-authored-by: opencode <noreply@opencode.ai>
40 lines
746 B
Text
40 lines
746 B
Text
### Specific to building Armbian ###
|
|
/.vagrant/
|
|
ubuntu-*-cloudimg-console.log
|
|
|
|
### to ignore changes in a working copy
|
|
.ignore_changes
|
|
|
|
### compile configurations added by users
|
|
/config-*.conf
|
|
### but not default (supplied) files
|
|
!/config-docker.conf
|
|
!/config-vagrant.conf
|
|
|
|
### output directories
|
|
/.tmp/
|
|
/output/
|
|
/cache/
|
|
/*userpatches*/
|
|
/userpatches
|
|
|
|
### General annoyances ###
|
|
.DS_Store
|
|
*~
|
|
*.swp
|
|
**/__pycache__/
|
|
|
|
# Mainly generated by merge tools like 'meld'
|
|
*.orig
|
|
|
|
# Dockerfile and .dockerignore is generated by docker.sh
|
|
Dockerfile
|
|
.dockerignore
|
|
|
|
# scratch validation trees
|
|
/scratch_verify/
|
|
/scratch_kcheck/
|
|
/scratch_patches/
|
|
|
|
# Runtime symlink created by extensions/seeed-rk.sh (points into cache/sources)
|
|
extensions/seeed_armbian_extension
|