在 x86 底下支援各种 arm 平台

前置准备

在各种 arm 平台底下编译出来的档案

安装 linux (armhf) toolchain

安装 linux (armel) toolchain

安装 linux (arm64) toolchain

开始安装套件

0. 进入 root 权限

armhf 平台

1. 输入以下指令支援 armhf

dpkg --add-architecture armhf

2. 输入以下指令查看支援的 arm 平台

dpkg --print-foreign-architectures

3. 更新套件与软体

apt-get update
apt-get upgrade

4. 安装以下套件

apt-get install libc6:armhf binfmt-support qemu qemu-user-static

5. 执行看看程式能不能跑囉!

./hello_armhf

armel 平台

1. 输入以下指令支援 armel

dpkg --add-architecture armel

2. 输入以下指令查看支援的 arm 平台

dpkg --print-foreign-architectures

3. 更新套件与软体

apt-get update
apt-get upgrade

4. 安装以下套件

apt-get install libc6:armel

5. 执行看看程式能不能跑囉!

./hello_armel

arm64(aarch64) 平台

1. 输入以下指令支援 arm64

dpkg --add-architecture arm64

2. 输入以下指令查看支援的 arm 平台

dpkg --print-foreign-architectures

3. 更新套件与软体

apt-get update
apt-get upgrade

4. 安装以下套件

apt-get install libc6:arm64

5. 执行看看程式能不能跑囉!

./hello_arm64
SHXJ
Latest posts by SHXJ (see all)

在〈在 x86 底下支援各种 arm 平台〉中有 1 则留言

发布留言