Skip to content

Commit

Permalink
install spi1-1cs overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
kwindrem committed Feb 23, 2024
1 parent c5d77cf commit 3580b5a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
Binary file added FileSets/VersionIndependent/spi1-1cs.dtbo
Binary file not shown.
1 change: 1 addition & 0 deletions FileSets/fileListVersionIndependent
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/u-boot/overlays/spi1-1cs.dtbo
4 changes: 4 additions & 0 deletions changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v4.5:
install spi1-1cs overlay for use in VeCanSetup for CANbus hats that use spi1
spi1-3cd conflicts with Shutdown pin

v4.4:
added alternate GPIO overlay to remove conflicts with FD can hat

Expand Down
10 changes: 1 addition & 9 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
gpioListFile="/etc/venus/gpio_list"
overlayFile="/u-boot/overlays/VenusGpioOverlay.dtbo"
altOverlayFile="/u-boot/overlays/VenusGpioOverlayForCanHats.dtbo"
relayStateFile="/opt/victronenergy/dbus-systemcalc-py/delegates/relaystate.py"
configFile="/u-boot/config.txt"

# no log file for this package
Expand Down Expand Up @@ -129,9 +128,6 @@ if [ $scriptAction == 'INSTALL' ] ; then
updateActiveFile "$gpioListFile"
fi

# modify relaystate.py for additional relays to prevent system calc crash
updateActiveFile "$relayStateFile"

# install / update GPIO overlay
# there are two overlays, make sure the "other" one is removed from config.txt
if [ -f "$setupOptionsDir/alternateGpio" ]; then
Expand Down Expand Up @@ -160,10 +156,6 @@ fi
# uninstalling - check scriptAction again
# if an install step failed package needs to be removed
if [ $scriptAction == 'UNINSTALL' ] ; then
restoreActiveFile "$gpioListFile"
restoreActiveFile "$overlayFile"
restoreActiveFile "$altOverlayFile"
restoreActiveFile "$relayStateFile"

# remove mods from configFile - do not use restore in case other mods were made manually
if [ -f "$configFile" ]; then
Expand All @@ -179,5 +171,5 @@ if $filesUpdated ; then
fi

# thats all folks - SCRIPT EXITS INSIDE THE FUNCTION
endScript
endScript 'INSTALL_FILES'

2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.4
v4.5

0 comments on commit 3580b5a

Please sign in to comment.