visionfive2
公式ページ
ドキュメント
boot部分の更新
releasesからu-boot-spl.bin.normal.outとvisionfive2_fw_payload.imgを使う。
apt install mtd-utils
cat /proc/mtd
flashcp -v u-boot-spl.bin.normal.out /dev/mtd0
flashcp -v visionfive2_fw_payload.img /dev/mtd2
パーティションを広げる
確認
df -h
/dev/nvme0n1p4
fdisk /dev/nvme0n1
Command (m for help): d
Partition number (1-4, default 4): 4
Command (m for help): n
Partition number (4-128, default 4): 4
First sector (34-1953525134, default 221184):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (221184-1953525134, default 1953523711):
Do you want to remove the signature? [Y]es/[N]o: N
Command (m for help): w
resize2fs /dev/nvme0n1p4
ログイン方法の変更
CUI
sudo systemctl set-default multi-user.target
GUI
sudo systemctl set-default graphical.target
rust
apt install rustc
wasm
apt install libstd-rust-dev-wasm32
wasmtime
tar.xzの解凍
apt install bzip2 xz-utils
tar -Jxvf file.tar.xz
cargo build --target wasm32-wasi
wasmtime wasi.wasm