Skip to content

Commit bac7e74

Browse files
authored
Merge branch 'main' into desktop-to-armbian-config
2 parents f26e20b + 8d01893 commit bac7e74

362 files changed

Lines changed: 76514 additions & 143 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/boards/helios4.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ FORCE_BOOTSCRIPT_UPDATE="yes"
1313
KERNEL_TARGET="current,edge"
1414
KERNEL_TEST_TARGET="current"
1515

16+
enable_extension "watchdog"
1617
# Enable btrfs support in u-boot
1718
enable_extension "uboot-btrfs"
1819

config/boards/odroidhc4.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Amlogic S905X3 quad core 4GB RAM SoC GBE USB3 SPI 2 x SATA
1+
# Amlogic S905X3 quad core 4GB RAM SoC GBE USB2 SPI 2 x SATA
22
BOARD_NAME="Odroid HC4"
33
BOARD_VENDOR="hardkernel"
44
BOARDFAMILY="meson-sm1"

config/boards/orangepi5.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ INTRODUCED="2022"
77
BOOTCONFIG="orangepi-5-rk3588s_defconfig" # vendor name, not standard, see hook below, set BOOT_SOC below to compensate
88
BOOTCONFIG_SATA="orangepi-5-sata-rk3588s_defconfig"
99
BOOT_SOC="rk3588"
10-
KERNEL_TARGET="current,edge,vendor"
10+
KERNEL_TARGET="current,edge,bleedingedge,vendor"
1111
KERNEL_TEST_TARGET="vendor,current"
1212
FULL_DESKTOP="yes"
1313
BOOT_LOGO="desktop"

config/boards/photonicat2.csc

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
BOARD_NAME="Photonicat2"
44
BOARD_VENDOR="ariaboard"
5+
BOARD_MAINTAINER="HackingGate"
56
BOARDFAMILY="rk35xx"
67
INTRODUCED="2025"
78
BOOT_SOC="rk3576"
@@ -21,10 +22,10 @@ enable_extension "uboot-btrfs"
2122

2223
# Mainline U-Boot
2324
function post_family_config__photonicat2_mainline_uboot() {
24-
display_alert "$BOARD" "Using Mainline U-Boot v2026.01" "info"
25+
display_alert "$BOARD" "Using Mainline U-Boot v2026.04" "info"
2526
declare -g BOOTSOURCE='https://github.com/u-boot/u-boot.git'
26-
declare -g BOOTBRANCH='tag:v2026.01'
27-
declare -g BOOTPATCHDIR='v2026.01'
27+
declare -g BOOTBRANCH='tag:v2026.04'
28+
declare -g BOOTPATCHDIR='v2026.04'
2829
declare -g BOOTDIR="u-boot-${BOARD}"
2930

3031
# Use binman for Mainline U-Boot
@@ -38,3 +39,30 @@ function post_family_config__photonicat2_mainline_uboot() {
3839
dd "if=$1/u-boot-rockchip.bin" "of=$2" bs=32k seek=1 conv=notrunc status=none
3940
}
4041
}
42+
43+
# Install USB hub watchdog (recovers onboard USB hubs after warm-reboot drop)
44+
function post_family_tweaks_bsp__install_photonicat2_usb_hub_watchdog() {
45+
display_alert "$BOARD" "Installing Photonicat2 USB hub watchdog" "info"
46+
47+
local watchdog_dir="${SRC}/packages/bsp/photonicat2/usb-hub-watchdog"
48+
49+
install -Dm 0755 "${watchdog_dir}/photonicat-usb-hub-watchdog-run" \
50+
"${destination}/usr/lib/armbian/photonicat2-usb-hub-watchdog-run"
51+
52+
install -Dm 0644 "${watchdog_dir}/photonicat-usb-hub-watchdog.service" \
53+
"${destination}/usr/lib/systemd/system/photonicat-usb-hub-watchdog.service"
54+
55+
install -Dm 0644 "${watchdog_dir}/photonicat-usb-hub-watchdog.timer" \
56+
"${destination}/usr/lib/systemd/system/photonicat-usb-hub-watchdog.timer"
57+
}
58+
59+
function post_family_tweaks__enable_photonicat2_usb_hub_watchdog() {
60+
display_alert "$BOARD" "Enabling Photonicat2 USB hub watchdog" "info"
61+
62+
if chroot_sdcard systemctl enable photonicat-usb-hub-watchdog.timer; then
63+
display_alert "$BOARD" "USB hub watchdog enabled" "info"
64+
else
65+
display_alert "$BOARD" "Failed to enable photonicat-usb-hub-watchdog.timer" "err"
66+
return 1
67+
fi
68+
}

0 commit comments

Comments
 (0)