Chukun Pan
9df4a88e60
sunxi: enable usbgadget feature
...
The USB of most sunxi devices works in otg or peripheral mode.
Enable this feature to use usbgadget. Tested on OrangePi Zero3.
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn >
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250221140105.250920-1-amadeus@jmu.edu.cn/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2025-02-22 18:43:23 +01:00
Zoltan HERPAI
1152af3490
sunxi: add support for Merrii Hummingbird A31
...
Specifications:
- SoC: Allwinner A31 @ 1GHz
- DRAM: 1/2Gb DDR3
- SD-card slot
- NAND: 8/16Gb MLC
- Ethernet: 1x 10/100/1000Mbps (RTL8211E)
- Wireless: Ampak AP6210 (BCM43362)
- 2x USB2.0
- 1x mPCIe slot for 4G cards
- 1x SIM slot
- HDMI/VGA via simplefb
- RTC with battery
- Power via DC12V / 3A
Installation:
Use the standard sunxi installation to an SD-card. NAND is
not supported.
This is to re-add proper support for an older device.
Link: https://openwrt.org/toh/merrii/hummingbird
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2025-02-18 22:50:16 +01:00
John Audia
487ca61f91
kernel: bump 6.6 to 6.6.61
...
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.61
Manually rebased:
bcm27xx/patches-6.6/950-0998-i2c-designware-Add-support-for-bus-clear-feature.patch
All other patches automatically rebased.
Build system: x86/64
Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Signed-off-by: John Audia <therealgraysky@proton.me >
Link: https://github.com/openwrt/openwrt/pull/16959
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-11-16 00:25:14 +01:00
Hauke Mehrtens
1306885968
kernel: Reorder config files
...
Reorder the kernel configuration files.
This was done uisng:
./scripts/kconfig-reorder.sh
Link: https://github.com/openwrt/openwrt/pull/16743
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-10-22 21:13:26 +02:00
Leo Barsky
b1435f0af8
kernel: activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash targets
...
This patch activate *_FS_SECURITY and *_FS_ACL_ATTR options for all big flash memory targets.
Fixes docker error: "failed to register layer: lsetxattr security.capability /usr/bin/ping: operation not supported"
Forum discussion:
https://forum.openwrt.org/t/docker-pull-fails-failed-to-register-layer-operation-not-supported/138253
Signed-off-by: Leo Barsky <leobrsky@proton.me >
Link: https://github.com/openwrt/openwrt/pull/16181
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-09-06 22:46:59 +02:00
John Audia
b733b6acb5
kernel: bump 6.6 to 6.6.44
...
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.44
Removed upstreamed:
rockchip/patches-6.6/044-v6.11-arm64-dts-rockchip-Add-sdmmc-related-properties-on-r.patch[1]
rockchip/patches-6.6/045-v6.11-arm64-dts-rockchip-Add-pinctrl-for-UART0-to-rk3308-r.patch[2]
rockchip/patches-6.6/046-v6.11-arm64-dts-rockchip-Add-mdio-and-ethernet-phy-nodes-t.patch[3]
rockchip/patches-6.6/048-v6.11-arm64-dts-rockchip-Update-WIFi-BT-related-nodes-on-r.patch[4]
rockchip/patches-6.6/310-PCI-dw-rockchip-Fix-initial-PERST-GPIO-value.patch[5]
Manually rebased:
bcm27xx/patches-6.6/950-0526-mfd-Add-rp1-driver.patch
ramips/patches-6.6/810-uvc-add-iPassion-iP2970-support.patch
All other patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.44&id=96155dc8c99e76a0e58932ca5f88148a37af3617
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.44&id=30ee9e5ecc5fd6854a1690ab11e6e6b4851ac9ab
3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.44&id=0c4c1b7daf23bccf0da5b65b3cd5b32bfa5a5af4
4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.44&id=a86a5685675834732789df202e73153db59d8dcc
5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.44&id=a30211c6704899de0616ac0f97601122d899c86d
Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne
Signed-off-by: John Audia <therealgraysky@proton.me >
Link: https://github.com/openwrt/openwrt/pull/16061
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-08-06 00:40:42 +02:00
Chukun Pan
be71e16630
sunxi: backport Allwinner H616 DVFS support
...
Backport H616 DVFS support from linux-next.
Tested on the Orange Pi Zero 3 (H618 SoC).
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn >
Link: https://github.com/openwrt/openwrt/pull/15600
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-07-28 20:12:07 +02:00
Michel Promonet
06b37a5856
sunxi: add csi video support for nanopi-neo-air
...
add dtc configuration that declare CSI connection with ov5640
Signed-off-by: Michel Promonet <michel.promonet@free.fr >
Link: https://github.com/openwrt/openwrt/pull/15967
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2024-07-22 00:32:38 +02:00
Rosen Penev
6ff598306f
treewide: gpio to gpios
...
gpio is deprecated. Found with dtc's -Wdeprecated_gpio_property
Used git grep -E $'\tgpio = <' to make the changes.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
Link: https://github.com/openwrt/openwrt/pull/15681
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
2024-06-17 12:57:06 +02:00
Zoltan HERPAI
3f7d8e20cd
sunxi: add support for Lichee Pi Zero Dock (V3s) board
...
CPU: Allwinner V3s single-core Cortex-A7 @ 1.2GHz
Memory: 64Mb DDR2 integrated into SoC package
Storage: 1x SDcard on board, 1x SDcard on dock
Network: 10/100M ethernet
Other: 4x buttons via LRADC, CSI
Flashing instructions:
Standard sunxi SD card installation procedure - copy image to SD card,
insert into SD card slot on the device and boot.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-05-04 00:41:02 +02:00
Zoltan HERPAI
af87e5e9c1
sunxi: drop 6.1 support
...
Now that 6.6 is the default, remove the 6.1 config and the hack that
was required for the arm32 DTS dir change.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-05-03 14:53:45 +02:00
Zoltan HERPAI
e8c7b8a388
sunxi: switch default to 6.6
...
Switch the default kernel to 6.6.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-05-03 14:53:44 +02:00
Zoltan HERPAI
4e9f0e5be4
sunxi: update the 6.6 DTS_DIR hack
...
Update and simplify the 6.1 vs. 6.6 DTS_DIR hack until 6.1 support is gone.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-26 11:07:43 +02:00
Zoltan HERPAI
ee4e69cc35
sunxi: 6.6: set testing kernel
...
Allow selecting 6.6 as testing kernel on sunxi.
Runtime-tested:
- Linksprite pcDuino (cortexa8)
- Olimex A20 Micro (cortexa7)
- Pine64 SoM (cortexa53)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-25 16:34:25 +02:00
Zoltan HERPAI
7de163d58b
sunxi: 6.6: refresh patches
...
Refresh kernel patches.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-25 16:34:25 +02:00
Zoltan HERPAI
82df12e98a
sunxi: update image Makefile to reflect updated DTS structure in 6.6
...
For the ARM arch on 6.6, DTS files are moved into their vendor directories,
mimicking arm64. Reflect this in the image Makefile.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-25 16:34:25 +02:00
Zoltan HERPAI
9122474226
sunxi: 6.6: refresh kernel configs
...
Refresh kernel config.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-25 16:34:25 +02:00
Zoltan HERPAI
438dc54936
sunxi: 6.6: remove upstreamed patches
...
Remove patches that have been upstreamed.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-25 16:34:25 +02:00
Zoltan HERPAI
9e348da477
kernel/sunxi: Restore kernel files for v6.1
...
This is an automatically generated commit which aids following Kernel patch history,
as git will see the move and copy as a rename thus defeating the purpose.
See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html
for the original discussion.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-25 16:34:25 +02:00
Zoltan HERPAI
3c69b9a818
kernel/sunxi: Create kernel files for v6.6 (from v6.1)
...
This is an automatically generated commit.
When doing `git bisect`, consider `git bisect --skip`.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-25 16:34:25 +02:00
Zoltan HERPAI
30149ba1ae
sunxi: move KERNEL_LOADADDR into subtargets
...
As preparation for the arm926ej-s support which has a different
load address, move the KERNEL_LOADADDR into the subtargets.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-19 18:42:05 +02:00
Zoltan HERPAI
01fc454a0c
sunxi: move fpu feature flag into the subtargets
...
As the upcoming arm926ej-s does not have an FPU, move this flag
into the subtargets.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-19 18:42:05 +02:00
Zoltan HERPAI
3ed8927cf5
sunxi: fix network bringup on Olinuxino Micro boards
...
It's the A13-based Olinuxino Micro which has only wireless interfaces. The
A20-based board is a fully-fledged one which has an ethernet interface.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-17 01:10:24 +02:00
Zoltan HERPAI
bc4342142c
sunxi: update a13-olimex-som DTS path
...
In preparation for supporting kernel 6.6, where the DTS files are grouped into
vendors - similarly to what arm64 has been doing all along -, update the
SUNXI_DTS var of this board to prepend it with SUNXI_DTS_DIR.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2024-04-16 19:41:58 +02:00
Chukun Pan
29515862ac
sunxi: backport h616 thermal sensor support
...
Backport H616 thermal sensor support from linux-next.
Tested on the Orange Pi Zero 3 (H618 SoC).
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn >
2024-03-26 21:56:57 +01:00
Chukun Pan
29b8ba75fa
sunxi: add support for Orange Pi Zero 3
...
Key features:
Allwinner H618 SoC (Quad core Cortex-A53)
1/1.5/2/4 GiB LPDDR4 DRAM
1 USB 2.0 type C port (Power + OTG)
1 USB 2.0 host port
1Gbps Ethernet port
Micro-HDMI port
MicroSD slot
Installation:
Write the image to SD Card with dd.
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn >
2024-03-26 21:56:57 +01:00
Qingfang Deng
6b007d2512
treewide: disable spectre mitigation on unaffected Arm64 targets
...
Cortex-A53 is not vulnerable to any Spectre variants.
Ref: https://developer.arm.com/Arm%20Security%20Center/Speculative%20Processor%20Vulnerability
Signed-off-by: Qingfang Deng <dqfext@gmail.com >
2024-03-23 20:00:49 +01:00
Qingfang Deng
54f9744c82
treewide: disable spectre mitigation on unaffected Arm32 targets
...
Cortex-A5 and Cortex-A7 are not vulnerable to any Spectre variants.
Ref: https://developer.arm.com/Arm%20Security%20Center/Speculative%20Processor%20Vulnerability
Signed-off-by: Qingfang Deng <dqfext@gmail.com >
2024-03-23 20:00:49 +01:00
Tianling Shen
b16928aa96
sunxi: mark upstreamed patches as such
...
Also sort them to start from 001.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2023-12-19 16:02:05 +01:00
Tianling Shen
193071fb01
sunxi: remove outdated kernel 5.15 files
...
We're on 6.1 now, these files can go.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org >
2023-12-19 16:02:05 +01:00
Chukun Pan
00e3447926
sunxi: enable cpufreq driver for H6 SoC
...
Allwinner H6 needs this driver to enable DVFS support.
May also be used with H616/H618 SoC in the future.
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn >
2023-10-28 18:31:43 +02:00
Chukun Pan
b25c7548e0
sunxi: fixes led for nanopi boards
...
Kernel 5.15 already supports the NanoPi R1 and NanoPi R1S H5,
and they use new LED bindings that do not match the existing
settings in 01_leds. Update led settings to fixes that.
List the led node on NanoPi R1S H5:
root@OpenWrt:~# ls /sys/class/leds/
green:lan green:wan red:status
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn >
2023-10-28 18:31:43 +02:00
Sebastian Pflieger
2970d4b6cc
sunxi: generalize top-level BOARDNAME and update suported SoCs
...
Allwinner created to may SoC variants to list them all at top-level.
Signed-off-by: Sebastian Pflieger <sebastian@pflieger.email >
2023-09-24 18:16:40 +02:00
John Audia
e3559fb445
kernel: bump 6.1 to 6.1.54
...
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.54
Removed upstreamed:
generic/backport-6.1/020-v6.3-02-UPSTREAM-mm-multi-gen-LRU-rename-lrugen-lists-to-lru.patch[1]
ipq806x/patches-6.1/140-v6.5-hwspinlock-qcom-add-missing-regmap-config-for-SFPB-M.patch[2]
All other patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.54&id=a73d04c460521e45f257d28d73df096e41ece324
2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.54&id=e93bc372dbc0bde133c854c03502a95617041972
Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne
Signed-off-by: John Audia <therealgraysky@proton.me >
2023-09-23 13:10:28 +02:00
Zoltan HERPAI
6bf8193b25
sunxi: add support for Bananapi P2 Zero
...
CPU: Allwinner H2+ quad-core Cortex-A7 @ 1.2GHz
Memory: 512Mb DDR3
Storage: SDcard, 8GB eMMC
Network: 10/100M ethernet, optional PoE support, Ampak AP6212 wifi + BT
USB: 1x USB 2.0 OTG
Other: 40-pin expansion header, mini-HDMI
Flashing instructions:
Standard sunxi SD card installation procedure - copy image to SD card,
insert into SD card slot on the device and boot.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2023-09-18 18:15:21 +02:00
Christian Marangi
c64a5d122f
sunxi: refresh kernel patches
...
Refresh kernel patches for sunxi target.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com >
2023-09-18 13:44:50 +02:00
Zoltan HERPAI
12584395dc
sunxi: add support for H616 SoC and Orangepi Zero 2
...
Specifications:
SoC: Allwinner H616 @ 1.5 Ghz
DRAM: 1Gb LPDDR3
Power: 5V USB-C
Video: HDMI (Type 2.0A - micro)
Network: 10/100/1000Mbps Ethernet (Realtek RTL8211F), AW859A BT+wifi
Storage: microSD / 2Mb SPI flash
USB: 1 USB2.0 Host
Debug Serial UART
Flashing instructions:
Standard sunxi SD card installation procedure - copy image to SD card,
insert into SD card slot on the device and boot.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2023-09-18 00:08:19 +02:00
Zoltan HERPAI
863444f9cb
sunxi: use kernel 6.1 as default
...
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2023-09-16 22:27:17 +02:00
Zoltan HERPAI
f01982ec0b
sunxi: add testing kernel 6.1
...
Compile-tested: all targets
Runtime-tested:
- Cortex-A53: Pine64+
- Cortex-A7: Bananapro, Orange Pi 2
- Cortex-A8: pcDuino v2
Patches refreshed.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2023-08-24 18:52:06 +02:00
Zoltan HERPAI
939d4d0b70
sunxi: copy patches from 5.15 to 6.1
...
To start the migration, we copy the patches from 5.15 to 6.1.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2023-08-24 18:51:51 +02:00
Zoltan HERPAI
22d7ac4b80
sunxi: bananapro: add firmware files for Ampak 6181
...
The Bananapro board has an Ampak 6181 onboard (BCM43362/1), enable
the firmware files in the device profile, and add wpad-basic-mbedtls.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2023-08-12 14:00:18 +02:00
Zoltan HERPAI
80edfaf675
sunxi: add support for Banana Pi M3
...
CPU Allwinner A83t Octa-core Cortex A7 @ 1.2GHz
Memory 2Gb DDR3
Storage SDcard, SATA (via USB), 8GB eMMC
Network 10/100/1000M ethernet, Ampak AP6212 wifi + BT
USB 2x USB 2.0
Flashing instructions:
Standard sunxi SD card installation procedure - copy image to SD card,
insert into SD card slot on the device and boot.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2023-08-11 18:04:44 +02:00
Zoltan HERPAI
dc122f4d9e
sunxi: add modules for AC100 MFD and RTC
...
The X-Powers AC100 is a multi-function IC used to provide RTC
and audio codec via RSB (reduced serial bus, an Allwinner-
speciality). On some boards using the A80/A83T SoCs, aside
from the RTC functionality, the RTC is used as a clocksource
for the Ampak WiFi/BT modules.
Add modules for the core MFD support and the RTC.
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu >
2023-08-11 18:04:43 +02:00
Christian Svensson
c170fc78ba
kernel: remove CRYPTO_BLAKE2S from all >=5.15
...
This option was removed from upstream kernel back in 2022.
See commits:
2d16803c562ecc644803d42ba98a8e0aef9c014e (>=6.0)
3dd33a09f5dc12ccb0902923c4c784eb0f8c7554 (>=5.15.61 backport)
Signed-off-by: Christian Svensson <blue@cmd.nu >
2023-07-08 16:54:01 +02:00
Hauke Mehrtens
16a20512d8
kernel: Set CONFIG_FRAME_WARN depending on target
...
This set the CONFIG_FRAME_WARN option depending on some target settings.
It will use the default from the upstream kernel and not the hard coded
value of 1024 now.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
2023-06-02 11:19:32 +02:00
Nick Hainke
1d3e71bd97
treewide: remove files for building 5.10 kernel
...
All targets are bumped to 5.15. Remove the old 5.10 patches, configs
and files using:
find target/linux -iname '*-5.10' -exec rm -r {} \;
Further, remove the 5.10 include.
Signed-off-by: Nick Hainke <vincent@systemli.org >
2023-05-12 13:02:43 +02:00
Tony Ambardar
3980dfcd05
kernel: fix handling of CONFIG_DYNAMIC_DEBUG
...
Since CONFIG_DYNAMIC_DEBUG is already managed via the KERNEL_DYNAMIC_DEBUG
setting in Config-kernel.in (default N), remove or disable it in target
configs which unconditionally enable it, along with the related setting
CONFIG_DYNAMIC_DEBUG_CORE. This saves several KB in the kernels for
ipq40xx, ipq806x, filogic, mt7622, qoriq, and sunxi.
Signed-off-by: Tony Ambardar <itugrok@yahoo.com >
2023-05-03 10:26:17 -07:00
Jan-Niklas Burfeind
1e138ca703
sunxi: enable CONFIG_NVMEM_SYSFS
...
in both the stable and the testing kernel
h2+/h3/h5 devices have a Secure ID that can be read from
`/sys/bus/nvmem/devices/sunxi-sid0/nvmem`.
Enabling CONFIG_NVMEM_SYSFS grants sysfs access from userspace.
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me >
2023-02-26 22:22:48 +01:00
Rosen Penev
2630e5063d
treewide: replace wpad-basic-wolfssl default
...
The newly merged mbedtls backend is smaller and has fewer ABI related
issues than the wolfSSL one.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2023-02-04 02:35:03 +01:00
Stijn Tintel
f1aa8f34ff
sunxi: switch to kernel 5.15
...
The testing kernel has been available since early 2022, and is running
fine for several people. Let's switch to it by default.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be >
Tested-by: Karl Palsson <karlp@etactica.com >
Tested-by: Jan-Niklas Burfeind <openwrt@aiyionpri.me >
2023-01-09 21:39:46 +02:00