22
33BOARD_NAME=" Photonicat2"
44BOARD_VENDOR=" ariaboard"
5+ BOARD_MAINTAINER=" HackingGate"
56BOARDFAMILY=" rk35xx"
67INTRODUCED=" 2025"
78BOOT_SOC=" rk3576"
@@ -21,10 +22,10 @@ enable_extension "uboot-btrfs"
2122
2223# Mainline U-Boot
2324function 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