Difference between revisions of "Enable RISC-V support in Debian"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Linux]] | ||
+ | |||
More information: https://wiki.debian.org/RISC-V. | More information: https://wiki.debian.org/RISC-V. | ||
− | First, [[Upgrade Debian Linux to Testing|upgrade to testing]] with ports support, | + | First, [[Upgrade Debian Linux to Testing|upgrade to testing]] with ports support. |
+ | |||
+ | == Limit architectures in repos (optional) == | ||
+ | |||
+ | Consider using this source.list file: | ||
+ | |||
+ | cat <<EOF >/etc/apt/sources.list | ||
+ | deb [arch=amd64] https://deb.debian.org/debian testing main contrib non-free | ||
+ | deb [arch=amd64] https://deb.debian.org/debian-security testing/updates main contrib non-free | ||
+ | deb [arch=riscv64] https://deb.debian.org/debian-ports unstable main | ||
+ | deb [arch=riscv64] https://deb.debian.org/debian-ports unreleased main | ||
+ | deb [arch=riscv64] https://deb.debian.org/debian-ports experimental main | ||
+ | EOF | ||
+ | |||
+ | == Enable == | ||
+ | |||
+ | After you've done the above, do (as root): | ||
su - | su - |
Latest revision as of 10:27, 22 February 2019
More information: https://wiki.debian.org/RISC-V.
First, upgrade to testing with ports support.
Limit architectures in repos (optional)
Consider using this source.list file:
cat <<EOF >/etc/apt/sources.list deb [arch=amd64] https://deb.debian.org/debian testing main contrib non-free deb [arch=amd64] https://deb.debian.org/debian-security testing/updates main contrib non-free deb [arch=riscv64] https://deb.debian.org/debian-ports unstable main deb [arch=riscv64] https://deb.debian.org/debian-ports unreleased main deb [arch=riscv64] https://deb.debian.org/debian-ports experimental main EOF
Enable
After you've done the above, do (as root):
su -
apt install -y qemu-system-misc qemu-user-static binfmt-support dpkg --add-architecture riscv64 apt-get install -y gcc-riscv64-linux-gnu g++-riscv64-linux-gnu cat >/etc/ld.so.conf.d/riscv64-linux-gnu.conf <<EOF /usr/local/lib/riscv64-linux-gnu /lib/riscv64-linux-gnu /usr/lib/riscv64-linux-gnu /usr/riscv64-linux-gnu/lib/ EOF ln -s /usr/riscv64-linux-gnu/lib/ld-linux-riscv64-lp64d.so.1 /lib