VisionFive 2 Debian Image(December) Released

should be loaded, any log?

¿Is It possible to update without ttl usb device?.

No,
you can do without ttl usb:

  1. the u-boot and SPL update as described in VisionFive2_QSG.pdf p.26.
  2. Flash the img to SD Card.
    Login to the Image as root you need usb ttl
    Or you can change the sshd_config directly in the image when its mounted on your linux host.

p.26 it is written:

Note:
This method only supports versions equal to or later than VF2_v2.5.0

Can I follow the procedure from image55 (which from it’s name seems to be a 2.3.0 ?)
OR this note apply only to u-boot&SPL v2.5.0 ?

Here’s a magnet link to Image-69 if anyone wants to download without going through the Google Drive.

magnet:?xt=urn:btih:ddefc7df6e3f7a708930183fc8c384a57eb8c331&dn=Image-69&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce

For future release, could the .torrent file be put into github, or just on the low bandwidth site directly?

2 Likes

As expected, image55 (v2.3.0) was not able to mount mtd devices then switched to the other solution (flashing through TFTP server).
As expected too, using image69 without updated u-boot & SPL failed booting and forced the boot to u-boot. From here the tftp procedure worked fine for updating u-boot and SPL
→ Reboot : debian booted directly.

Thx

I have a gigabit uplink that I’ll leave running on that, though it’ll take a while to get inertia. It’s estimating 44 hours, so my Gbit uplink in the states should help.

My download via your magnet link should be finished in 30 minutes, and I’ll let the machine running until the next image.

Hello, i build u-boot and opensbi and then installed the the mtd utilities via apt and the update wasnt a problem without tftp.

Are you saying that it is possible to use flashcp, even with the original SPL and U-Boot on the SBC itself?
If yes, is it possible for you to make this image available?
Or did I misunderstand your message?

Google Drive downloaded well over an hour then failed (~3 GB of >5GB).
Tried multiple times with same result.
Is there a ftp/wget site to dowload? Smaller image?

Smaller image is available in google drive inside image69 folder

Serving it now, in the US, from a GBit (fiber) uplink.

1 Like

Hello LivingLinux,

you could install on the board the apt install mtd-utils and then you can use mtd. Do you see any output from cat /proc/mtd on your board ? Perhaps you need first update your kernel.

Was able to download and unzip the smaller image files, however, the checksums son’t match.

Raspian:RasPi4:~/Downloads/RISCV >>> unzip minimal-20221230T151704Z-001.zip
Archive: minimal-20221230T151704Z-001.zip
inflating: minimal/SHA512SUMS.md
inflating: minimal/SHA256SUMS.md
inflating: minimal/MD5SUMS.md
inflating: minimal/debian-packs/README.md
inflating: minimal/debian-packs/v8-10.2.154.13_riscv64.deb
inflating: minimal/debian-packs/ffmpeg_gstreamer_riscv64.deb
inflating: minimal/debian-packs/nodejs-18.0.0_riscv64.deb
inflating: minimal/debian-packs/LibreOffice_7.3.4.2-2_riscv64.deb
inflating: minimal/debian-packs/firefox_105.0_riscv64.deb
inflating: minimal/debian-packs/LibreOffice_7.5_riscv64.deb
inflating: minimal/debian-packs/nwjs_0.65.1-2_riscv64.deb
inflating: minimal/debian-packs/qt-5.15-2_riscv64.deb
Raspian:RasPi4:~/Downloads/RISCV >>> unzip minimal-20221230T151704Z-002.zip
Archive: minimal-20221230T151704Z-002.zip
inflating: minimal/starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img.bz2
Raspian:RasPi4:~/Downloads/RISCV >>> cd minimal
Raspian:RasPi4:~/Downloads/RISCV/minimal >>> sha256sum starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img.bz2
7001b60151fc57346aaa8ba1dd6285f11bbc551a77892cc490380172799dabb6 starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img.bz2
Raspian:RasPi4:~/Downloads/RISCV/minimal >>> ms5sum starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img.bz2
bash: ms5sum: command not found
Raspian:RasPi4:~/Downloads/RISCV/minimal >>> md5sum starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img.bz2
5d3184f990c01d102af438203ad11acd starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img.bz2
Raspian:RasPi4:~/Downloads/RISCV/minimal >>> cat MD5SUMS.md
ffc8b1ebe171cd8eb25defe1f6b158d8 starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img
Raspian:RasPi4:~/Downloads/RISCV/minimal >>> cat SHA256SUMS.md
1a5b69dc3c362e37ec7453dcc04d1ae3e14f2fb2c772eeadb55e8b1b9609990a starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img
Raspian:RasPi4:~/Downloads/RISCV/minimal >>>

???

Ah, Ah! Sorry. Did not note that the checksums were against the uncompressed image.
AOK now!

I am looking forward to receiving a Vision5 2 board when it is ready and safe for you to ship.

Thanks for all your good work!

Raspian:RasPi4:~/Downloads/RISCV/minimal >>> md5sum starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img
cat MD5SUMS.md
ffc8b1ebe171cd8eb25defe1f6b158d8 starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img
Raspian:RasPi4:~/Downloads/RISCV/minimal >>> cat MD5SUMS.md
ffc8b1ebe171cd8eb25defe1f6b158d8 starfive-jh7110-VF2_515_v2.5.0-69-minimal-desktop.img

1 Like

The root partition of the minimal image has only 1.5 GB and only 5 MB of free space.

I had to resize it - in my case to 10 GB - in order to be able to install new packages with apt get.

Suggest to make it a bit bigger.

Thank you!

1 Like

Actually no, it’s completely standard to ship a tight image. You are supposed to resize it. This keeps the distributed image small and besides, everyone will have a different size they want it resized to.

1 Like

Hmmm… resize2fs does not seem to do this. How to resize please?

vvv===vvv
root@starfive:~# /sbin/resize2fs /dev/mmcblk1p3 20G
resize2fs 1.46.5 (30-Dec-2021)
The containing partition (or device) is only 404987 (4k) blocks.
You requested a new size of 5242880 blocks.

root@starfive:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mtdblock0 31:0 0 128K 0 disk
mtdblock1 31:1 0 3M 0 disk
mtdblock2 31:2 0 1M 0 disk
mmcblk1 179:0 0 29.7G 0 disk
├─mmcblk1p1 179:1 0 16M 0 part
├─mmcblk1p2 179:2 0 100M 0 part /boot
└─mmcblk1p3 179:3 0 1.5G 0 part /

root@starfive:~#
^^^===^^^

You need to resize the partition first. I just used fdisk /dev/mmcblk1 and deleted 3 and created it again. After that the resize2fs command works. Note, you do not need to reboot at any point.

1 Like