VisionFive 2 Debian 202405 Released

still same … boot ok, but network is connecting a while, then gives up

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 6c:cf:39:00:20:79 brd ff:ff:ff:ff:ff:ff
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 6c:cf:39:00:20:7a brd ff:ff:ff:ff:ff:ff
root@starfive:~# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback

#setup network for starfive end0
allow-hotplug end0
#iface end0 inet dhcp

#setup network for starfive end1
allow-hotplug end1
#iface end1 inet dhcp

flipping Ethernet ports …

[  619.357900] starfive-dwmac 16030000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[  689.036060] starfive-dwmac 16030000.ethernet eth0: Link is Down
[  690.157173] starfive-dwmac 16040000.ethernet eth1: Link is Up - 100Mbps/Full - flow control off

… still no network

Could you please flash a SD image and boot from SD bootmode to double check?If it also have no network,it may hardware problems.

again, Image 202311 works fine (checked with NVMe image)

since 2024xx no network for both SD and NVMe

I guess some setting needs to be done, but no clue which

i need to rush to work, will flip SSD once back and have a look on config 202311 maybe i find something

If you used released image,it should be normal.

i used released image

could you upload the full log about boot?

I will, please give me a few minutes,

Here some initial details.

OS used to download Image: Win11
Avast Antivirus (seems needs to be switched off when flashing image)
Etcher for flash.

Board is an A (100 1G network interface)

SSD is Samsung 980 pro

I remember the model A have different network driver in spl/uboot.
Did You flashed a wrong ROM ? Or, ROM was have bug with drivers?

I flashed the latest u-boot/spl …but let me see … akthough i could successfully ping from U-boot …

OS used to download Image: Win11
Avast Antivirus (seems needs to be switched off when flashing image)
balenaEtcher 1.18.11 for flash.

Board is an A (100 1G network interface)
SSD is Samsung 980 pro

U-Boot SPL 2021.10 (Mar 14 2024 - 19:21:18 +0800)
LPDDR4: 8G version: g8ad50857.
Trying to boot from SPI

OpenSBI v1.2
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|___/_____|
        | |
        |_|

Platform Name             : StarFive VisionFive V2
Platform Features         : medeleg
Platform HART Count       : 5
Platform IPI Device       : aclint-mswi
Platform Timer Device     : aclint-mtimer @ 4000000Hz
Platform Console Device   : uart8250
Platform HSM Device       : ---
Platform PMU Device       : ---
Platform Reboot Device    : pm-reset
Platform Shutdown Device  : pm-reset
Platform Suspend Device   : ---
Firmware Base             : 0x40000000
Firmware Size             : 392 KB
Firmware RW Offset        : 0x40000
Runtime SBI Version       : 1.0

Domain0 Name              : root
Domain0 Boot HART         : 1
Domain0 HARTs             : 0*,1*,2*,3*,4*
Domain0 Region00          : 0x0000000002000000-0x000000000200ffff M: (I,R,W) S/U: ()
Domain0 Region01          : 0x0000000040000000-0x000000004003ffff M: (R,X) S/U: ()
Domain0 Region02          : 0x0000000040040000-0x000000004007ffff M: (R,W) S/U: ()
Domain0 Region03          : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X)
Domain0 Next Address      : 0x0000000040200000
Domain0 Next Arg1         : 0x0000000042200000
Domain0 Next Mode         : S-mode
Domain0 SysReset          : yes
Domain0 SysSuspend        : yes

Boot HART ID              : 1
Boot HART Domain          : root
Boot HART Priv Version    : v1.11
Boot HART Base ISA        : rv64imafdcbx
Boot HART ISA Extensions  : none
Boot HART PMP Count       : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 34
Boot HART MHPM Count      : 2
Boot HART MIDELEG         : 0x0000000000000222
Boot HART MEDELEG         : 0x000000000000b109


U-Boot 2021.10 (Mar 14 2024 - 19:21:18 +0800), Build: jenkins-github_visionfive2-23

CPU:   rv64imacu_zba_zbb
Model: StarFive VisionFive V2
DRAM:  8 GiB
MMC:   sdio0@16010000: 0, sdio1@16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

StarFive EEPROM format v2

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7110A1-2250-D008E000-00000407
data version: 0x2
PCB revision: 0xa1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:20:79
Ethernet MAC1 address: 6c:cf:39:00:20:7a
--------EEPROM INFO--------

In:    serial
Out:   serial
Err:   serial
Model: StarFive VisionFive V2
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
Hit any key to stop autoboot:  0
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
starfive_pcie pcie@2B000000: Port link up.
starfive_pcie pcie@2B000000: Starfive PCIe bus probed.
PCI: Failed autoconfig bar 10
starfive_pcie pcie@2C000000: Port link up.
starfive_pcie pcie@2C000000: Starfive PCIe bus probed.
PCI: Failed autoconfig bar 10

Device 0: Vendor: 0x144d Rev: 5B2QGXA7 Prod: S5GXNX1W311984F
            Type: Hard Disk
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
... is now current device
Try booting from NVME0 ...
Failed to load 'vf2_uEnv.txt'
## Info: input data size = 829 = 0x33D
## Error: "boot2" not defined

Device 0: Vendor: 0x144d Rev: 5B2QGXA7 Prod: S5GXNX1W311984F
            Type: Hard Disk
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
... is now current device
Try booting from NVME0 ...
Failed to load 'vf2_uEnv.txt'
## Info: input data size = 829 = 0x33D
## Error: "boot2" not defined
Tring booting distro ...
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110

Device 0: Vendor: 0x144d Rev: 5B2QGXA7 Prod: S5GXNX1W311984F
            Type: Hard Disk
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
... is now current device
Try booting from NVME0 ...
419 bytes read in 4 ms (101.6 KiB/s)
Retrieving file: /extlinux/extlinux.conf
1386 bytes read in 4 ms (337.9 KiB/s)
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 6.6.20-starfive
2:      Debian GNU/Linux bookworm/sid 6.6.20-starfive (rescue target)
3:      Debian GNU/Linux bookworm/sid 5.15.0-starfive
4:      Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target)

I found the problems,your spl and uboot is not latest. The latest one is about May.
Please use the spl and uboot of JH7110_VF2_6.6_v5.12.0.tar.bz2
(The spl and uboot is in the v5.12.0.tar.gz)

you can found the history of release at this link.
Releases · starfive-tech/VisionFive2 (github.com)

oh my god — as this time the bundle is in different format, i used the last one, where the uboot/spl was visible in the assets … silly me, i used the previous one to flashing …
downloading and flashing now

OK,Try it,It will be worked.

Thank you so much, worked fine, why is this time github assets so different ?

It is to distinguish between the two kernels(6.6 and 5.15)

Re: 3D acceleration

I’m using cwt’s latest Arch image, but the way I understand it’s the same as the Debian dev system, except minimal, so it makes it relevant?

I had the torched my previous installation, and flashed it from SD to NVME.

This time I want no garbles or stutters, I’m thinking, so no X11 anywhere as much as possible. For the login manager, I chose a TUI login manager called Lemurs which now boots me into Swayvm. It’s bloody fast, except the system still sometimes does the usual cwt Arch thing of randomly waiting after boot, so I still can’t show it off.

I ran a few tests. A cough nameless 3D game compiled for the system, glxgears, supertuxkart. And supposedly since I did not explicitly tell systemd to boot me into graphical target, they came up garbled, line by line, like an X11 icon-heavy app in Wayland.

So I ran the suggested es2gears_wayland app non-synced. Wow 1500 fps etc. Looks flawless.

Wayland, eh?

I then tried again, but placed SDL_VIDEODRIVER=wayland in front of the app in foot terminal. Presto, it worked. I tried it with supertuxkart from the repo. It reported the IMX hardware enabled and running.

To put simply, the acceleration is there, somehow, somewhere. Just it looks like whenever X11 is involved, stuff tends to break.

1 Like

I find it strange that Batocera and Arch can make the 3D driver work but not the official Debian?!

Can someone that knows how, describe the steps you have to take to get the official Debian to use the GPU driver?

Official Debian from debian.org does not currently support the RISC-V architecture (it will not officially until Trixie) , so why would it support the the Imagination Technology Ltd GPU IP inside the JH7110. Imagination Technology Ltd are working on open source Linux drivers for the GPU IP that they sell, but that is not ready yet because it is a full redesign from the ground up. So currently the only OS’s that are supported are the ones that match the kernel versions supported by the binaries released by Starfive. They can not release the source code because they do not own it. So for now, at least until there is official driver source code from Imagination Technology Ltd., the GPU support is binary only linked to specific kernel versions. It is what it is

I mean official starfive debian…

So these are the patches you need to apply to mesa3d?

The confusing part to me is why they release a distribution that does not even use the GPU. I mean nobody is going to use this board until the GPU works. It’s the only USP this SoC has Risc-V + GPU and passive cooling.

NVMe has no practical use case until the GPU driver works. The priority is a bit upside down, if you want a server don’t use a chip with a GPU?

It would be much better to release a linux with broken driver enabled than what we get now!?

1 Like

Hold on, don’t get the wrong idea; it’s not all fun and games on the Arch version either. Stuff that uses GLES will likely work. Super Tux Kart’s Antarctica engine is just that fast and the other 3D game I mentioned is just built to use GLES I guess. When I tried something more substantial, it ran slow and un-accelerated under X11 back when I had it installed, and under wayland reports missing eglContext(), which just means it expects proper OpenGL from what I gather.

Oh, and normal glxgears no longer work for me. They are a garbled mess. Only es2gears_wayland displays properly.

I suppose one could use gl4es at this point…? But that stuff is sorcery to me.

There is OpenMW in arch repo…which is just a huge tease at this moment as it gets like seconds-per-frame quality. Oh well.

My point was that the acceleration is there, somewhere. Have you tried the es2gears_wayland stuff on the Debian distro?