Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/boards/helios64.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ KERNEL_TEST_TARGET="current"
MODULES="lm75 ledtrig-netdev"
MODULES_LEGACY="lm75"
FULL_DESKTOP="yes"
PACKAGE_LIST_BOARD="mdadm i2c-tools fancontrol watchdog"
PACKAGE_LIST_BOARD="mdadm i2c-tools fancontrol"
PACKAGE_LIST_BOARD_REMOVE="fake-hwclock"
CPUMAX="1800000"
enable_extension "watchdog"

if [[ "$ROOTFS_TYPE" =~ btrfs|f2fs|nilfs2|nfs|xfs ]]; then
BOOTFS_TYPE=${BOOTFS_TYPE:-ext4}
Expand Down
2 changes: 2 additions & 0 deletions config/boards/odroidm1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ BOOTDIR="u-boot-${BOARD}"
# The overlays for this board are prefixed by 'rockchip-rk3568-hk' (see for example patch/kernel/archive/rockchip64-6.6/overlay/rockchip-rk3568-hk-i2c0.dts)
OVERLAY_PREFIX="rockchip-rk3568-hk"

enable_extension "watchdog"

function post_family_config__uboot_config() {
display_alert "$BOARD" "u-boot ${BOOTBRANCH_BOARD} overrides" "info"
BOOTDELAY=1
Expand Down
1 change: 1 addition & 0 deletions config/boards/odroidn2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ BOOTCONFIG="odroid-n2_defconfig" # For mainline uboot

# Enable btrfs support in u-boot
enable_extension "uboot-btrfs"
enable_extension "watchdog"

# Newer u-boot for the N2/N2+
BOOTBRANCH_BOARD="tag:v2026.01-rc2"
Expand Down
12 changes: 12 additions & 0 deletions extensions/watchdog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# for boards with watchdog support - add watchdog package and
# enable hardware watchdog device (/dev/watchdog) support in config

function extension_prepare_config__add_to_image_watchdog() {
display_alert "Extension: ${EXTENSION}: Adding extra package to image" "watchdog" "info"
add_packages_to_image watchdog
}

function post_customize_image__enable_watchdog_device_config() {
display_alert "Enable /dev/watchdog in /etc/watchdog.conf ${HOOK_POINT}" "${EXTENSION}" "info"
sed -e 'sX^#watchdog-deviceXwatchdog-deviceX' -i "${SDCARD}"/etc/watchdog.conf
}