open-switch / opx-docs

OpenSwitch OPX documentation.
https://openswitch.net
123 stars 35 forks source link

How to run on Raspberry Pi 4? #30

Closed hwangjr closed 4 years ago

hwangjr commented 4 years ago

I follow the step (already install docker engine):

# get source code
repo init -u https://github.com/open-switch/opx-manifest && repo sync

# build all open-source packages
opx-build/scripts/opx_run opx_build all

# assemble installer
opx-build/scripts/opx_run opx_rel_pkgasm.py --dist unstable \
  -b opx-onie-installer/release_bp/OPX_dell_base.xml

while i exec opx-build/scripts/opx_run opx_build all, it turn out the error:

standard_init_linux.go:211: exec user process caused "exec format error"

So, How to run opx on raspberry pi 4?

hwangjr commented 4 years ago
docker run --rm --name pi_switchbot_4684 --privileged -e LOCAL_UID=1000 -e LOCAL_GID=1000 -v /home/pi/develop/switchbot:/mnt -v /home/pi/.gitconfig:/home/opx/.gitconfig -v /etc/localtime:/etc/localtime:ro -e ARCH -e DIST -e OPX_RELEASE -e OPX_GIT_TAG -e CUSTOM_SOURCES  opxhub/build:latest

run this command error.

hwangjr commented 4 years ago

install docker by:

curl -fsSL get.docker.com -o get-docker.sh