linux_risc-v
Live Replace
cd / apt install wget zstd wget http://mirrors.wsyu.edu.cn/archriscv/images/archriscv-latest.tar.zst mkdir oldroot newroot cd newroot tar xf ../archriscv-latest.tar.zst cd .. mv archriscv-latest.tar.zst bin etc home lib opt root sbin srv tmp usr var oldroot/ cd newroot LD_LIBRARY_PATH="$PWD"/lib "$PWD"/lib/ld-linux-riscv64-lp64d.so.1 "$PWD"/usr/bin/mv bin etc home lib opt root sbin srv tmp usr var ../ cd .. cp -r oldroot/lib/firmware lib/ cp -r oldroot/lib/modules/ lib/ cp oldroot/etc/fstab etc/ echo "nameserver 223.5.5.5" > /etc/resolv.conf echo -e "[Match]\nName=en*\n\n[Network]\nDHCP=yes\n" > /etc/systemd/network/default.network systemctl enable systemd-networkd pacman -S --noconfirm openssh systemctl enable sshd mkdir ~/.ssh echo "<Your Key>" > ~/.ssh/authorized_keys
linux_risc-v.txt · Last modified: 2024/09/07 06:47 by felixonmars