描述
我尝试在树莓派 3 上的容器中运行 px4 自动驾驶仪。但是,每次我尝试构建它时都会显示
standard_init_linux.go:195: exec user process caused "exec format error"
我使用便利脚本在 raspbian 上安装了 docker,并从他们的官方网站下载了 px4 的源代码。我尝试使用提供的帮助脚本来构建它。https://dev.px4.io/en/test_and_ci/docker.html
重现问题的步骤: 只需按照 px4 官方网站上的指南进行操作即可
- mkdir 源代码
- 光盘源
- git 克隆https://github.com/PX4/Firmware.git
- 光盘固件
- sudo ./Tools/docker_run.sh 'make posix_rpi_native'
命令“make posix_rpi_native”用于 rpi 本机构建,可以在此处找到。https://dev.px4.io/en/setup/building_px4.html
描述您收到的结果:
该命令的输出是:
guessing PX4_DOCKER_REPO based on input
PX4_DOCKER_REPO: px4io/px4-dev-raspi:2017-12-30
standard_init_linux.go:195: exec user process caused "exec format error"
描述您期望的结果: 我希望构建能够成功完成。
您认为重要的其他信息(例如问题仅偶尔发生):
运行docker images
它显示已下载正确的容器:
REPOSITORY TAG IMAGE ID CREATED SIZE
px4io/px4-dev-base latest 0787831f3c53 12 days ago 695MB
px4io/px4-dev-raspi 2017-12-30 67f37542d7bf 2 weeks ago 969MB
python 2.7-slim 957faace74fa 4 weeks ago 124MB
hello-world latest 75280d40a50b 7 weeks ago 1.69kB
px4io/px4-dev-nuttx 2017-10-23 eb7bfffbcfb0 2 months ago 1.17GB
输出docker version
:
Client:
Version: 18.01.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: 03596f5
Built: Wed Jan 10 20:25:15 2018
OS/Arch: linux/arm
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.01.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: 03596f5
Built: Wed Jan 10 20:21:22 2018
OS/Arch: linux/arm
Experimental: false
输出docker info
:
Containers: 6
Running: 0
Paused: 0
Stopped: 6
Images: 11
Server Version: 18.01.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.65-rt57-v7+
Operating System: Raspbian GNU/Linux 9 (stretch)
OSType: linux
Architecture: armv7l
CPUs: 4
Total Memory: 927.3MiB
Name: raspberrypi
ID: L2SN:3DEE:FHCX:K3SA:DMHD:3KLR:Z4TE:UB4R:GMZM:VYTW:STDS:LOPG
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: jedichen121
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support