Skip to content

Commit

Permalink
ass support for SetupHelper v4
Browse files Browse the repository at this point in the history
  • Loading branch information
kwindrem committed Dec 16, 2021
1 parent 853dfbc commit 0be3ff0
Show file tree
Hide file tree
Showing 20 changed files with 19 additions and 35 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified FileSets/.DS_Store
Binary file not shown.
Binary file modified FileSets/VenusGpioOverlay.dtb
Binary file not shown.
5 changes: 5 additions & 0 deletions FileSets/gpio_list
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@
# Digital input 5 Pin 37 / GPIO 26
26 in digital_input_5

#### Gracefull shutdown input
#### Note this input is NOT added to the available I/O used by Venus OS !!!!
# Pin 36 / GPIO 16
16 in digital_input_6

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 2 additions & 30 deletions ReadMe
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,8 @@ It will then called from reinstallMods to reinstall functionality after a Venus

Setup:

The easiest way to install this or other of my packages is to first install SetupHelper,
The easiest way to install this or other of my packages is to first install SetupHelper
which you need to do anyway,
then use its package install tool. Refer to the SetupHelper ReadMe for instructions.

There are two other methods to fetch a package archive.

IF the Venus device has internet access is to run the following command:

wget -qO - https://github.com/kwindrem/RpiGpioSetup/archive/current.tar.gz | tar -xzf - -C /data

If the Venus device does not have internet access, you will need to fetch the archive using a computer that does have internet access:

click on this link in a web browser:
https://github.com/kwindrem/RpiGpioSetup/archive/current.tar.gz

rename the resulting .tar.gz file to venus-data.tar.gz
copy the venus-data.tar.gz to a USB stick,
put the stick in the Venus device and reboot.
When Venus boots, it will unarchive the file to /data/RpiGpioSetup-current

Move the directory into it's active locaiton:
rm -rf /data/RpiGpioSetup
mv /data/RpiGpioSetup-current /data/RpiGpioSetup

Repeat the above for SetupHelper if you haven't done so for another package.

Finally, run the setup script to complete the installation
/data/RpiGpioSetup/setup

You will need root access to the Venus device. Instructions can be found here:
https://www.victronenergy.com/live/ccgx:root_access
The root password needs to be reentered following a Venus update.
Setting up an authorization key (see documentation referenced above) will save time and avoid having to reset the root password after each update.

2 changes: 1 addition & 1 deletion VenusGpioOverlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pinctrl-0 = <&my_pins>;

my_pins: my_pins {
brcm,pins = <5 6 13 19 26>; /* gpio no. */
brcm,pins = <5 6 13 16 19 26>; /* gpio no. */
brcm,function = <0>; /* 0:in, 1:out */
brcm,pull = <2>; /* 2:up 1:down 0:none */
};
Expand Down
6 changes: 6 additions & 0 deletions changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
v3.4
added raspberryPiOnly flag file
add graceful shutdown GPIO pin - used by ShutdownMonitor v2.0 or later
add exit codes
this supports SetupHelper v4
removed manual download/install instructions from the ReadMe
Empty file added raspberryPiOnly
Empty file.
5 changes: 3 additions & 2 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ source "/data/SetupHelper/CommonResources"

#### end of lines to include SetupHelper

####### this is duplicate to code in CommonResources -- keep in case SetupHelepr has not been updated
# prevent installing if not a Raspberry Pi
if [ -f /etc/venus/machine ]; then
machine=$(cat /etc/venus/machine)
Expand All @@ -46,15 +47,15 @@ if [ -z $machine ]; then
scriptAction='UNINSTALL'
else
logMessage "can't determine Venus device type - exiting"
exit
exit $INCOMPATIBLE_PLATFORM
fi
elif [ $machine != "raspberrypi2" ] && [ $machine != "raspberrypi4" ]; then
if [ -f "$installedFlag" ]; then
logMessage "$packageName not compatible with $machine - uninstalling"
scriptAction='UNINSTALL'
else
logMessage "$packageName not compatible with $machine - exiting"
exit
exit $INCOMPATIBLE_PLATFORM
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion timeStamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1633068625
1635100489
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.2
v3.4

0 comments on commit 0be3ff0

Please sign in to comment.