BSD Ports

misc/raspberrypi-gpioshutdown 1.0.1405500_1 FreeBSD

Kernel driver to reset GPIO pins on shutdown for Raspberry Pi

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
misc, kld

Description

GPIO 'shutdown' Kernel module for the Raspberry Pi Model 1B and Model 2

The purpose of this module is to shut down all GPIOs prior to powering off or rebooting a Raspberry Pi.

The main reason for this is due to there being no real indicators that the shutdown process has completed. By doing a shutdown of all of the GPIOs (such that they act like inputs without pullup resistors), you can detect the 'high impedence' state either with an LED or using some kind of exernal board (such as an 'ATX Raspi' board). An external board could then detect the shutdown, and power off the Raspberry Pi safely, and you won't have to fix the file system due to problems caused by powering it down before it's safe to do so.

Install

Binary package:

pkg install raspberrypi-gpioshutdown

From the ports tree:

cd /usr/ports/misc/raspberrypi-gpioshutdown/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	raspberrypi-gpioshutdown>0:misc/raspberrypi-gpioshutdown

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest---1.0.1402000_1-
FreeBSD:14:quarterly--n/a1.0.1402000_1-
FreeBSD:15:latest--n/a--
FreeBSD:15:quarterly--n/an/an/a
FreeBSD:16:latest--n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

No options to configure.

USES
kmod
Service scripts
gpioshutdown

Files

Manual pages 1
  • gpioshutdown(4)
pkg-plist 2
  • /%%KMODDIR%%/gpioshutdown.ko
  • share/man/man4/gpioshutdown.4.gz
distinfo 1
FileSizeSHA256
raspberrypi-gpioshutdown-1.0.tar.gz732025d647309b54d253a11e7ae74998a7d382ce3a9fddb6bd7adace67f0d4f83c9f
Master sites 1
  • http://mrp3.com/

Commit history 0

No commits in the history this site was built from.