Skip to content

Commit

Permalink
fix: bananapi-m2-zero spi only
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzturc committed Dec 23, 2024
1 parent 0d951e4 commit b2a50fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/armbian/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b2a50fc

Please sign in to comment.