Update RISC-V64_QEMU.md
This commit is contained in:
parent
f38bfa334e
commit
b726984e4b
|
|
@ -45,28 +45,14 @@ make CROSS_COMPILE=riscv64-unknown-linux-gnu- ARCH=riscv -j $(nproc --all)
|
||||||
|
|
||||||
#### Buidl Risc-V64 Debian rootFS
|
#### Buidl Risc-V64 Debian rootFS
|
||||||
|
|
||||||
```
|
|
||||||
apt install mmdebstrap qemu-user-static binfmt-support \
|
|
||||||
debian-ports-archive-keyring -y
|
|
||||||
|
|
||||||
mmdebstrap --architectures=riscv64 --include="debian-ports-archive-keyring" sid \
|
|
||||||
/home/linux/riscv64-chroot \
|
|
||||||
"deb http://ftp.debian.org/debian-ports/ sid main" \
|
|
||||||
"deb http://ftp.debian.org/debian-ports/ unreleased main"
|
|
||||||
```
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
```
|
```
|
||||||
apt-get install debootstrap qemu-user-static binfmt-support \
|
apt-get install debootstrap qemu-user-static binfmt-support \
|
||||||
debian-ports-archive-keyring -y
|
debian-ports-archive-keyring -y
|
||||||
sudo debootstrap --arch=riscv64 --keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg \
|
sudo debootstrap --arch=riscv64 --keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg \
|
||||||
--include=debian-ports-archive-keyring unstable ./riscv64-chroot \
|
--include=debian-ports-archive-keyring unreleased ./riscv64-chroot \
|
||||||
http://ftp.debian.org/debian-ports
|
http://ftp.debian.org/debian-ports
|
||||||
```
|
```
|
||||||
|
|
||||||
2nd.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
cat >>/etc/network/interfaces <<EOF
|
cat >>/etc/network/interfaces <<EOF
|
||||||
auto lo
|
auto lo
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue