HDMI works, but I only get a black screen

I’ve installed Image-69 and can login through SSH or the serial command, but I get a black screen on the HDMI display without mouse cursor.

It looks like HDMI is working, but lightdm is crashing:

[ 1757.314013] lightdm-gtk-gre[3188]: unhandled signal 11 code 0x1 at 0x000000405ec2fcc0 in libgtk-3.so.0.2404.30[3fb0526000+6a3000]
[ 1757.325742] CPU: 1 PID: 3188 Comm: lightdm-gtk-gre Tainted: G           O      5.15.0-starfive #1
[ 1757.334628] Hardware name: StarFive VisionFive V2 (DT)
[ 1757.339781] epc : 0000003fb06eb502 ra : 0000003fb06f0528 sp : 0000003fdafc9860
[ 1757.347022]  gp : 0000002aad925a10 tp : 0000003fad07a7b0 t0 : 0000003fdafc9208
[ 1757.354250]  t1 : 000000000000006c t2 : 0000000000000000 s0 : 0000002aadacc8c0
[ 1757.361489]  s1 : 0000002aadcfabd0 a0 : 0000000000000000 a1 : 0000000046cc7680
[ 1757.368730]  a2 : 0000002aadcfabef a3 : 0000000000000000 a4 : 0000000000000004
[ 1757.375957]  a5 : 000000405ec2fcc0 a6 : 0000000000000000 a7 : 0000000000000000
[ 1757.383196]  s2 : 0000002aad9b4f00 s3 : 0000003fac6ab000 s4 : 0000002aad925fe8
[ 1757.390437]  s5 : 0000002aada72cb0 s6 : 0000002aad9b4f70 s7 : 0000000000000000
[ 1757.397677]  s8 : 0000002aadc7c6a0 s9 : 0000003fdafc9968 s10: 0000002aad91cc08
[ 1757.404905]  s11: 0000002aad98da40 t3 : 0000000000000000 t4 : 0000000000000000
[ 1757.412144]  t5 : 000e394322885b2e t6 : 00000001a640f1a1
[ 1757.417468] status: 8000000200006020 badaddr: 000000405ec2fcc0 cause: 000000000000000d

Here’s the output from modetest:

root@starfive:~# modetest -M starfive -c
Connectors:
id	encoder	status		name		size (mm)	modes	encoders
116	115	connected	HDMI-A-1       	220x130		10	115
  modes:
	index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
  #0 1920x1080 60.00 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  #1 1920x1080 59.94 1920 2008 2052 2200 1080 1084 1089 1125 148352 flags: phsync, pvsync; type: driver
  #2 1920x1080 50.00 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  #3 1280x720 60.00 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  #4 1280x720 59.94 1280 1390 1430 1650 720 725 730 750 74176 flags: phsync, pvsync; type: driver
  #5 1280x720 50.00 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  #6 720x480 60.00 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver
  #7 720x480 59.94 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
  #8 640x480 60.00 640 656 752 800 480 490 492 525 25200 flags: nhsync, nvsync; type: driver
  #9 640x480 59.94 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
  props:
	1 EDID:
		flags: immutable blob
		blobs:

		value:
			00ffffffffffff000cb8101001000000
			0a1f010380160d780a6755a55b479c25
			1e4f54210800d1c081408180810081c0
			0101010101014e200090512015302a80
			3600965e0000001e0e1f008051001e30
			40803700965e0000001e000000fc0043
			583130310a20202020202020000000fd
			00304c1e561e000a2020202020200122
			02031b7746818284939f10230f170783
			4f000067030c0010003842023a801871
			382d40582c4500c48e2100001e000000
			00000000000000000000000000000000
			00000000000000000000000000000000
			00000000000000000000000000000000
			00000000000000000000000000000000
			000000000000000000000000000000f4
	2 DPMS:
		flags: enum
		enums: On=0 Standby=1 Suspend=2 Off=3
		value: 0
	5 link-status:
		flags: enum
		enums: Good=0 Bad=1
		value: 0
	6 non-desktop:
		flags: immutable range
		values: 0 1
		value: 0
	4 TILE:
		flags: immutable blob
		blobs:

		value:

I’ve tried two displays, none of which are 4K, One is Full HD and the other is 1280x800.
I’ve checked the thread: How do I set up a GUI on Debian? too.

Here’s the full log: PrivateBin

The U-boot part does not show up because it’s cleared during boot in my terminal program.
I have recorded it with the sdcard.img file too:

U-Boot 2021.10 (Dec 25 2022 - 20:59:18 +0800), Build: jenkins-github_visionfive2-4

CPU:   rv64imacu
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: VF7110B1-2253-D008E000-00001654
data version: 0x2
PCB revision: 0xb2
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:2a:f1
Ethernet MAC1 address: 6c:cf:39:00:2a:f2
--------EEPROM INFO--------

In:    serial@10000000
Out:   serial@10000000
Err:   serial@10000000
Model: StarFive VisionFive V2
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
switch to partitions #0, OK
mmc1 is current device
found device 1
bootmode flash device 1
Failed to load 'uEnv.txt'

I can not share the link for that one, since I’m only allowed to add one link.

I’m able to force the second display to 1920x1080 on other systems, so I’ve set:

display-setup-script=xrandr -s 1920x1080

But lightdm still crashes. Same with 1280x720.

1 Like

@cnxsoft - did you install the newer u-boot and low level firmware? at least v2.6.0 is required for newer kernels like used in the 69 image … if you already have the newer firmware, maybe you can give my experimental debian sid image a try from: imagebuilder/systems/starfive_visionfive2 at main · hexdump0815/imagebuilder · GitHub … it has a patch in the kernel to give a boot console and xorg is using the framebuffer

good luck and best wishes - hexdump

As of 3 weeks ago, we have v2.8.0 firmware release. I only installed it yesterday LOL. Please give it a try. I also use the debian experimental sid image. apt-get update/upgrade work well on it. Network and chroot /mnt for nvme work well on it.

I’m still on console ssh. I haven’t played with the desktop gui yet.

ONE HUGE NOTE: please use a higher wattage power supply 5W/10W doesn’t cut it. 20W is sufficient which is what I have, but I heard others are using 60W. If you risk using a lower wattage power supply, you’re going to see weird errors from storage devices.

Yes, I have installed v2.8.0. When I had not done this, I was not able to reach the login prompt in Linux (in the serial console)

I started with a 5V/2A power supply, the board was stuck in a boot loop… I’m now with a 100W power supply. That should be OK :smile:

2 Likes

If I had a blank screen I’d hop on this thread

1 Like