I have the same issue and spent a bit of time to figure out how to
correct it. There may be a better way, but this is how I did it and it
seems to survive package updates.

You can update the DTBs in /boot to test and see if it resolves the issue. If 
it does fix the problem, you can instruct flash-kernel to always use the 
correct DTB. While booted into the correct DTB, get the device tree model:
$ cat /proc/device-tree/model

Take that value and write it to:
/etc/flash-kernel/machine

So for my VisionFive 2:

$ cat /etc/flash-kernel/machine 
StarFive VisionFive 2 v1.2A

After doing that, trigger a reconfiguration with dpkg-reconfigure on the
kernel package(s) to get all the triggers to run and you should notice
it use the correct DTB firmware in stdout. There may be a quicker
method, but this worked for me.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-riscv in Ubuntu.
https://bugs.launchpad.net/bugs/2017357

Title:
  Wrong DTB for StarFive VisionFive 2 v1.2a board

Status in linux-riscv package in Ubuntu:
  Confirmed

Bug description:
  With the official image of 23.04 for the StarFive VisionFive 2 RISCV
  board there is no Ethernet (and possibly other issues) when installing
  on the hardware revision v1.2a.  This is due to the DTB for this
  revision not being in the /boot directory and the Grub configuration
  only referencing the newer v1.3b revision.  As a result, the board
  boots seemingly normally, but there is no Ethernet access available.
  If you modify the Grub configuration to point to the file
  "/lib/firmware/6.2.0-19-generic/device-tree/starfive/jh7110-starfive-
  visionfive-2-v1.2a.dtb" the issue is resolved after a reboot.

  ProblemType: Bug
  DistroRelease: Ubuntu 23.04
  Package: linux-modules-6.2.0-19-generic 6.2.0-19.19.1
  ProcVersionSignature: Ubuntu 6.2.0-19.19.1-generic 6.2.6
  Uname: Linux 6.2.0-19-generic riscv64
  ApportVersion: 2.26.0-0ubuntu2
  Architecture: riscv64
  CasperMD5CheckResult: unknown
  CloudArchitecture: riscv64
  CloudBuildName: server
  CloudID: nocloud
  CloudName: unknown
  CloudPlatform: nocloud
  CloudSerial: 20230413.1
  CloudSubPlatform: seed-dir (/var/lib/cloud/seed/nocloud-net)
  Date: Sat Apr 22 16:28:21 2023
  Dependencies:
   
  ProcEnviron:
   LANG=C.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=vt220
  SourcePackage: linux-riscv
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-riscv/+bug/2017357/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to