From b2a50fcdf315c81b74d6350263c1c8aeabfb6e49 Mon Sep 17 00:00:00 2001 From: MSzturc Date: Mon, 23 Dec 2024 23:40:25 +0100 Subject: [PATCH] fix: bananapi-m2-zero spi only --- src/modules/armbian/start_chroot_script | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/armbian/start_chroot_script b/src/modules/armbian/start_chroot_script index d3c3b8bf8..46cfe6ed7 100644 --- a/src/modules/armbian/start_chroot_script +++ b/src/modules/armbian/start_chroot_script @@ -164,9 +164,9 @@ if [[ "$(is_board_type)" == "bananapim2zero" ]] \ fi ### SPI only if [[ "$(is_board_type)" == "bananapim2zero" ]] \ -&& [[ "${ARMBIAN_CONFIG_BPI2ZERO_ENABLE_UART3}" == "true" ]] \ -&& [[ "${ARMBIAN_CONFIG_BPI2ZERO_ENABLE_SPI}" != "true" ]]; then +&& [[ "${ARMBIAN_CONFIG_BPI2ZERO_ENABLE_UART3}" != "true" ]] \ +&& [[ "${ARMBIAN_CONFIG_BPI2ZERO_ENABLE_SPI}" == "true" ]]; then echo_green "Enable SPI for 'bananapim2zero' SBC ..." - echo "overlays=uart3" >> "${ARMBIAN_CONFIG_TXT_FILE}" + echo "overlays=spi-spidev" >> "${ARMBIAN_CONFIG_TXT_FILE}" fi ## END Step 9