Raspberry pi B+ - FreeBSD

back to main page for this machine.

links

RPi serial connection, RPi and GPIO,

History

2016-09-29: gpio - list pins

freebsd@rpi-b:~ % gpioctl -l
open: Permission denied

ok, as root

root@rpi-b:~ # gpioctl -l
pin 00: 0       pin 0<>
pin 01: 0       pin 1<>
pin 02: 1       pin 2<>
pin 03: 1       pin 3<>
pin 04: 1       pin 4<IN>
pin 05: 1       pin 5<IN>
pin 06: 1       pin 6<IN>
pin 07: 1       pin 7<>
pin 08: 1       pin 8<>
pin 09: 0       pin 9<>
pin 10: 0       pin 10<>
pin 11: 0       pin 11<>
pin 12: 0       pin 12<IN>
pin 13: 0       pin 13<IN>
pin 14: 0       pin 14<>
pin 15: 1       pin 15<>
pin 16: 0       pin 16<OUT>
pin 17: 0       pin 17<IN>
pin 18: 0       pin 18<IN>
pin 19: 0       pin 19<IN>
pin 20: 0       pin 20<IN>
pin 21: 0       pin 21<IN>
pin 22: 0       pin 22<IN>
pin 23: 0       pin 23<IN>
pin 24: 0       pin 24<IN>
pin 25: 0       pin 25<IN>
pin 26: 0       pin 26<IN>
pin 27: 0       pin 27<IN>
pin 28: 1       pin 28<>
pin 29: 1       pin 29<>
pin 30: 0       pin 30<IN>
pin 31: 1       pin 31<OUT>
pin 32: 0       pin 32<OUT>
pin 33: 0       pin 33<IN>
pin 34: 1       pin 34<IN>
pin 35: 1       pin 35<IN>
pin 36: 1       pin 36<IN>
pin 37: 0       pin 37<IN>
pin 38: 0       pin 38<OUT>
pin 39: 0       pin 39<IN>
pin 40: 0       pin 40<>
pin 41: 0       pin 41<OUT>
pin 42: 0       pin 42<IN>
pin 43: 0       pin 43<IN>
pin 44: 1       pin 44<>
pin 45: 0       pin 45<>

ok

2016-09-29: gpio - overview

root@rpi-b:~ # apropos gpio
gpiobus(4)               - GPIO bus system
gpioctl(8)               - GPIO control utility
gpioiic(4)               - GPIO I2C bit-banging device driver
gpioled(4)               - GPIO led generic device driver

ok

2016-09-29: connecting via serial console from my Fedora laptop via screen:

[tingo@localhost ~]$ screen /dev/ttyUSB0 115200
[detached from 6674.pts-1.localhost]

Ctrl-A D detaches session reattach

[tingo@localhost ~]$ screen -R

and then login (using default user on FreeBSD image)

FreeBSD/arm (rpi-b) (ttyu0)

login: freebsd
Password:
Last login: Fri Feb 12 07:15:00 on ttyu0
FreeBSD 10.3-BETA2 (RPI-B) #0 r295552: Fri Feb 12 06:50:55 UTC 2016

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
FreeBSD FAQ:           https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums:        https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:      man hier

Edit /etc/motd to change this login announcement.
To search for files that match a particular name, use find(1); for example

        find / -name "*GENERIC*" -ls

will search '/', and all subdirectories, for files with 'GENERIC' in the name.
        --  Stephen Hilton <nospam@hiltonbsd.com>

ok.