armbian-build/config/boards/orangepizero.csc
Igor 4850dbfbf9
Add BOARD_VENDOR to board configs (#9063)
* Add BOARD_VENDOR to board configs

* Add BOARD_VENDOR to all board configuration files

- Added BOARD_VENDOR variable to board configuration files
- Using lowercase vendor slugs (e.g., friendlyelec, radxa, xunlong)
- Set 'generic' for boards without clear vendor match
- TV box files (.tvb) excluded as they have no clear vendor
- Enables better board categorization and vendor-specific handling

* Manual adjustements on top of AI matching

* Drop doubled definition and add retroid vendor
2025-12-14 10:28:37 +01:00

56 lines
1.6 KiB
Plaintext

# Allwinner H2+ quad core 256/512MB RAM SoC WiFi SPI
BOARD_NAME="Orange Pi Zero"
BOARD_VENDOR="xunlong"
BOARDFAMILY="sun8i"
BOARD_MAINTAINER=""
BOOTCONFIG="orangepi_zero_defconfig"
MODULES_CURRENT="g_serial"
MODULES_BLACKLIST="sunxi_cedrus"
DEFAULT_OVERLAYS="usbhost2 usbhost3 tve"
DEFAULT_CONSOLE="both"
HAS_VIDEO_OUTPUT="yes"
SERIALCON="ttyS0,ttyGS0"
KERNEL_TARGET="current,edge,legacy"
KERNEL_TEST_TARGET="current"
# CRUSTCONFIG="orangepi_zero_defconfig" # Crust is failing https://github.com/armbian/build/issues/8197
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')
}