2020-05-29 10:22:38 +00:00
|
|
|
# Allwinner H2+ quad core 256/512MB RAM SoC WiFi SPI
|
2016-11-08 05:59:59 +00:00
|
|
|
BOARD_NAME="Orange Pi Zero"
|
2017-11-26 22:04:50 +00:00
|
|
|
BOARDFAMILY="sun8i"
|
2024-05-03 16:36:57 +00:00
|
|
|
BOARD_MAINTAINER=""
|
2016-12-07 14:58:00 +00:00
|
|
|
BOOTCONFIG="orangepi_zero_defconfig"
|
2019-11-19 22:25:39 +00:00
|
|
|
MODULES_CURRENT="g_serial"
|
2023-04-10 22:51:01 +00:00
|
|
|
MODULES_BLACKLIST="sunxi_cedrus"
|
|
|
|
|
DEFAULT_OVERLAYS="usbhost2 usbhost3 tve"
|
|
|
|
|
DEFAULT_CONSOLE="both"
|
|
|
|
|
HAS_VIDEO_OUTPUT="yes"
|
2019-09-13 20:20:11 +00:00
|
|
|
SERIALCON="ttyS0,ttyGS0"
|
2025-08-21 07:14:43 +00:00
|
|
|
KERNEL_TARGET="current,edge,legacy"
|
2023-10-04 12:30:52 +00:00
|
|
|
KERNEL_TEST_TARGET="current"
|
2025-08-15 14:20:21 +00:00
|
|
|
# CRUSTCONFIG="orangepi_zero_defconfig" # Crust is failing https://github.com/armbian/build/issues/8197
|
2023-12-05 11:49:13 +00:00
|
|
|
|
|
|
|
|
function orange_pi_zero_enable_xradio_workarounds() {
|
|
|
|
|
/usr/bin/systemctl enable xradio_unload.service
|
|
|
|
|
/usr/bin/systemctl enable xradio_reload.service
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function post_family_tweaks_bsp__fix_resume_after_suspend() {
|
|
|
|
|
# Adding systemd services to remove and reload xradio module on suspend and resume
|
|
|
|
|
# respectively. It will fix suspend resume using systemctl suspend, but rtcwake is
|
|
|
|
|
# still be broken.
|
|
|
|
|
|
|
|
|
|
run_host_command_logged cat <<- 'xradio_unload' > "${destination}"/etc/systemd/system/xradio_unload.service
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=Unload xradio module on sleep
|
|
|
|
|
Before=sleep.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
|
|
|
|
ExecStart=-/usr/sbin/rmmod xradio_wlan
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=sleep.target
|
|
|
|
|
xradio_unload
|
|
|
|
|
|
|
|
|
|
run_host_command_logged cat <<- 'xradio_reload' > "${destination}"/etc/systemd/system/xradio_reload.service
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=Reload xradio module on resume
|
|
|
|
|
After=suspend.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
|
|
|
|
ExecStart=-/usr/sbin/modprobe xradio_wlan
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=suspend.target
|
|
|
|
|
xradio_reload
|
|
|
|
|
|
|
|
|
|
# Enable workaround on apt upgrade of armbian-bsp-cli package
|
|
|
|
|
postinst_functions+=('orange_pi_zero_enable_xradio_workarounds')
|
|
|
|
|
}
|