prebuilt image you can download these images directly.
Tag 0.0.4.1 included nvme with one only rootfs parition and sd-uboot.image. But the sd-uboot image does not work(debugging), so please use the sd-uboot.img
Tag 0.0.5-beta include nvme rootfs with multi paritions and sd-uboot does not work also, please refer to above notice.
Now you can use mkimg-unmatched-debian.sh to generate one rootfs for nvme, more defail please see README
Now some changes from Debian lead to the image for Unmatched pre-built does not work.
You can download the refreshed image for nvme from my personally site. The user&passwd is rv:rv.
sudo apt install -y qemu-user-static qemu-system qemu-utils qemu-system-misc binfmt-supportNeed docker docker-compose installed, then type:
sudo DOCKER_BUILDKIT=1 docker-compose build nvme
sudo docker-compose up nvmeOr:
sudo make unmatchedTwo image files will be generated into image:
nvme-rootfs.img.xz sd-uboot.imgThe nvme-rootfs.img you can use cmd below to flash to nvme:
sudo dd if=nvme-rootfs.img of=/dev/[nvme-device] bs=64k iflag=fullblock oflag=direct conv=fsync status=progressIf the bootloader you want to use it that in sd card, you can dd the sd-uboot.img to sd card:
sudo dd if=sd-uboot.img of=/dev/[sd-device] bs=64k iflag=fullblock oflag=direct conv=fsync status=progressuser: root, passwd: sifive
user: rv, passwd: rv
Once you boot the system, maybe the first thing is sudo apt update && upgrade.
First you need to have a graphics card, such as amd radeon(soft lockup issue when boot) like me, then run:
sudo apt install firmware-amd-graphicsYou need add non-free-firmware component in sources.list file.
Maye you need reszie nvme volume with cmd below:
parted -f -s /dev/nvme0n1 print
echo 'yes' | parted ---pretend-input-tty /dev/nvme0n1 resizepart 1 100%
resize2fs /dev/nvme0n1p1
(Better to reboot after this operation)
If you see the info after apt update:
E: Release file for https://mirror.iscas.ac.cn/debian-ports/dists/sid/InRelease is not valid yet (invalid for another 48d 6h 38min 42s).
Please fix it by ntpdate:
sudo ntpdate cn.pool.ntp.org
Thanks to wangliu-iscas for testing.
Thanks to shiputx@gmail.com and he is co-author also.
The code demo I learn from d1_build