Skip to content

sunxi: bump edge to 6.18#9049

Merged
EvilOlaf merged 31 commits intoarmbian:mainfrom
EvilOlaf:sunxi-6.18-v2
Dec 16, 2025
Merged

sunxi: bump edge to 6.18#9049
EvilOlaf merged 31 commits intoarmbian:mainfrom
EvilOlaf:sunxi-6.18-v2

Conversation

@EvilOlaf
Copy link
Copy Markdown
Member

@EvilOlaf EvilOlaf commented Dec 9, 2025

Description

An hacked together attempt to bump sunxi family to 6.18 in the major spirit somewhere between I-pretend-to-know-what-I-am-doing and I-have-no-idea-what-I-am-doing.

  • I re-extracted all of megi's patches from their individual branches and sorted them in the same order as megi applied them to their integration branch orange-pi-6.18.
  • Then I did the same with Jernej's refactored sun4i drm patches
    • Removed any sun4i drm patches from megi since they dont play along. Did zero investigation why.

Todo

  • address all remaining disabled patches manually (PLEASE HELP and push your fixes into this branch)
    • patches.armbian/Add-sunxi-addr-driver-Used-to-fix-uwe5622-bluetooth-MAC-address.patch (left untouched until wifi is sorted)
    • patches.armbian/drv-gpu-drm-sun4i-sun8i_mixer.c-add-h3-mixer1.patch (I assume collides with sun4i-drm patchset??)
    • patches.armbian/drv-mfd-axp20x-add-sysfs-interface.patch ???
  • fix uwe wifi. Currently it is disabled since it breaks compilation. Re-enable in drivers_network.sh needs testing
  • xradio was fixed by reverting back to the origin of Igor's fork. Either sync fork or adjust wording in the drivers_network.sh leavin' as it is

How Has This Been Tested?

  • Orangepi Zero build and boot
  • other sunxi and sunxi64 devices

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Dec 9, 2025

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • Needs review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added size/large PR with 250 lines or more 02 Milestone: First quarter release Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... Framework Framework components Patches Patches related to kernel, U-Boot, ... labels Dec 9, 2025
Comment thread lib/functions/compilation/patch/drivers_network.sh Outdated
Comment thread lib/functions/compilation/patch/drivers_network.sh Outdated
@EvilOlaf
Copy link
Copy Markdown
Member Author

EvilOlaf commented Dec 9, 2025

@radoslavv @robertojguerra Would you mind addressing enable-TV-Output-on-OrangePi-Zero-LTE.patch ?

@EvilOlaf
Copy link
Copy Markdown
Member Author

EvilOlaf commented Dec 9, 2025

@JohnTheCoolingFan Would you mind checking Fix-ghost-touches-on-tsc2007-tft-screen.patch ? Upstream code has changed and I don't know how to address this.

@JohnTheCoolingFan
Copy link
Copy Markdown
Contributor

JohnTheCoolingFan commented Dec 9, 2025

@JohnTheCoolingFan Would you mind checking Fix-ghost-touches-on-tsc2007-tft-screen.patch ? Upstream code has changed and I don't know how to address this.

The patch was not fully mainlined, particularly I don't see anything about y direction resistance which is part of Fix-ghost-touches-on-tsc2007-tft-screen.patch. I don't have the tft module to test with, so can't tell if ghost touches still happen now or not.

@EvilOlaf
Copy link
Copy Markdown
Member Author

The patch was not fully mainlined, particularly I don't see anything about y direction resistance which is part of Fix-ghost-touches-on-tsc2007-tft-screen.patch. I don't have the tft module to test with, so can't tell if ghost touches still happen now or not.

https://paste.armbian.com/vuduwugamu

I noticed where u32 rt = 0; is now u64 and I think rest of this hunk also does no longer apply without modification. I don't understand the code's meaning, so I cannot tell if that makes any sense.

@EvilOlaf

This comment was marked as outdated.

@igorpecovnik
Copy link
Copy Markdown
Member

can we run a build train on this.

We can run it, if branch is in build repo, not remote. I have open a new branch sunxi-6.18-v3 and merge this there and next nightly build will be from there.

@igorpecovnik
Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member

@igorpecovnik igorpecovnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems, ok, tested on few boards. I think we should just move it to CURRENT with next PR.

@github-actions github-actions Bot added the Ready to merge Reviewed, tested and ready for merge label Dec 16, 2025
@github-actions
Copy link
Copy Markdown
Contributor

✅ This PR has been reviewed and approved — all set for merge!

@github-actions github-actions Bot removed the Needs review Seeking for review label Dec 16, 2025
@EvilOlaf
Copy link
Copy Markdown
Member Author

I'd leave it in edge for a month or two to get an idea about breakages. We can deal with shift to current once 6.19 is released.

@EvilOlaf EvilOlaf merged commit 3d46ef8 into armbian:main Dec 16, 2025
13 checks passed
@igorpecovnik
Copy link
Copy Markdown
Member

I'd leave it in edge for a month or two to get an idea about breakages. We can deal with shift to current once 6.19 is released.

OK. At least we can now merge #8831 and drop special linux family for those.

@EvilOlaf EvilOlaf deleted the sunxi-6.18-v2 branch December 16, 2025 12:46
@EvilOlaf
Copy link
Copy Markdown
Member Author

Yes that's the plan

iav added a commit to iav/armbian that referenced this pull request Jan 30, 2026
In Linux 6.19, net_device->dev_addr is const unsigned char *.
Clang with -Werror,-Wincompatible-pointer-types-discards-qualifiers
rejects passing dev_addr to non-const parameters and memcpy into it.

Fix by:
- Replacing memcpy(dev->dev_addr, ...) with dev_addr_set()
- Using local buffer + ether_addr_copy for sprdwl_set_mac_addr call
  that needs mutable addr (the function modifies it in-place)
- Changing u8 *mac pointer to u8 mac[ETH_ALEN] array in cfg80211.c
  where dev_addr was assigned to a non-const pointer

Relates to armbian#9049

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
igorpecovnik pushed a commit that referenced this pull request Jan 31, 2026
In Linux 6.19, net_device->dev_addr is const unsigned char *.
Clang with -Werror,-Wincompatible-pointer-types-discards-qualifiers
rejects passing dev_addr to non-const parameters and memcpy into it.

Fix by:
- Replacing memcpy(dev->dev_addr, ...) with dev_addr_set()
- Using local buffer + ether_addr_copy for sprdwl_set_mac_addr call
  that needs mutable addr (the function modifies it in-place)
- Changing u8 *mac pointer to u8 mac[ETH_ALEN] array in cfg80211.c
  where dev_addr was assigned to a non-const pointer

Relates to #9049
yury-deltsov pushed a commit to yury-deltsov/build that referenced this pull request Feb 8, 2026
* sunxi-6.18: make the mess even worse

* fixing one of megis patches and add sunxi 32bit to the mess

* rewrite against 6.18

* fix media-ov5640-Don-t-powerup-the-sensor-during-driver-probe.patch

* fix media-sun6i-csi-implement-vidioc_enum_framesizes.patch

* fix misc-modem-power-Power-manager-for-modems.patch

* Fix usb-gadget-Fix-dangling-pointer-in-netdev-private-data.patch, include rewrite

* fix mmc-sunxi-mmc-Remove-runtime-PM.patch, two hunks no longer apply

* re-extract all of megis patches

* remove unneeded branch

* add note to disabled patch

* auto-generated, out of date

* drop megous drm patches in favor of Jernej's work. disable broken patches

* disable patch which breaks compilation for armhf

* disable breaking patch, rewrite everything

* remove patches unrelated to sunxi family

* fix spi dev compatible patch

* fix tsc2007 patch

* drop mainlined patch, adjust x96 mate T95 eth sd card hack

* remove upstreamed patch

* re-enable no longer broken

* another rewrite to align stuff properly

* adjust various comments in series.conf

* recover lost overlays

* uew5622: fix compilation against Linux 6.18

* fix Add-sunxi-addr-driver-Used-to-fix-uwe5622-bluetooth-MAC-address.patch

* adjust patch subject to make sense

* restore fixup creation
restore overlay prefix on opiz2
this needs to be properly sorted at some point

* bump to 6.18.1
sunxi and sunxi64 build just fine

* fix and re-enable drv-mfd-axp20x-add-sysfs-interface.patch

* rewrite patches
yury-deltsov pushed a commit to yury-deltsov/build that referenced this pull request Feb 8, 2026
In Linux 6.19, net_device->dev_addr is const unsigned char *.
Clang with -Werror,-Wincompatible-pointer-types-discards-qualifiers
rejects passing dev_addr to non-const parameters and memcpy into it.

Fix by:
- Replacing memcpy(dev->dev_addr, ...) with dev_addr_set()
- Using local buffer + ether_addr_copy for sprdwl_set_mac_addr call
  that needs mutable addr (the function modifies it in-place)
- Changing u8 *mac pointer to u8 mac[ETH_ALEN] array in cfg80211.c
  where dev_addr was assigned to a non-const pointer

Relates to armbian#9049
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

02 Milestone: First quarter release Framework Framework components Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... Ready to merge Reviewed, tested and ready for merge size/large PR with 250 lines or more

Development

Successfully merging this pull request may close these issues.

3 participants