Sign inSign up

s10l/eibd-rpi

By s10l

•Updated almost 8 years ago

Running eibd on Raspberry Pi (r2r for /dev/ttyAMA0)

Image
0

857

s10l/eibd-rpi repository overview

⁠docker-eibd-rpi

Run eibd from BCUSDK⁠ on the Raspberry Pi. You can find a ready to run image on s10l/eibd-rpi⁠.

If you want to build BCUSDK by your own, you can use my ready to run image to build the ARM binaries of BCUSDK for your Raspberry on your x64 machine running docker. For more information visit s10l/docker-eibd-rpi-build on GitHub⁠ or use the image s10l/eibd-rpi-build on Docker Hub⁠

Due to Docker Hub's build architecture is based on AMD64, the Dockerfile injects /etc/passwd, /etc/shadow, /etc/group instead of using the useradd command. If you want you can build you own credentials, see mk-credentials.sh for details.

⁠Running

chown 1000:1000 /dev/ttyAMA0
docker run \
	-rm \
	-d \
	--device=/dev/ttyAMA0 \
	--net=host \
	-p 6720:6720 \
	-p 3671:3671/udp \
	--restart unless-stopped \
	s10l/eibd-rpi
⁠Parameters
ParameterValueDescription
-rm---Automatically remove the container when it exits
--device/dev/ttyAMA0Add the UART device from host to the container
--nethostConnect a container to the host network
-p6720:6720Publish the container's port(s) for eibd connection to the host
-p3671:3671/udpPublish the container's port(s) for ets connection to the host
--restartunless-stoppedRestart policy to apply when a container exits
---s10l/eibd-rpiName of the image
⁠Note

The combination of -p 6720:6720 -p 3671:3671/udp and --net=host is suboptimal, because -p is bypassed if --net=host is used.

My prefered way is without --net=host, but i don't know how to supply multicast network ability in a docker container. If you have some good advices feel free to share.

Tag summary

Content type

Image

Digest

Size

33.7 MB

Last updated

almost 8 years ago

docker pull s10l/eibd-rpi