[PATCH RFC 0/2] board: visionfive2: Select fdtfile based on revision

Jami Kettunen jamipkettunen at gmail.com
Mon Sep 11 17:32:34 CEST 2023


From: Jami Kettunen <jami.kettunen at protonmail.com>

Currently booting a mainline Linux kernel via extlinux with fdtdir set
doesn't load a proper DTB but passes on the U-Boot one to the kernel
which as far as I know is very incorrect and prevents user (normally
distro) provided DTB usage in a sensible/generic way.

A uEnv.txt or similar manual environment changes were not used and
should not be required to boot the board as per:
https://u-boot.readthedocs.io/en/latest/develop/distro.html

This also currently needs a kernel patch[1] for my board to have the
full 8GB of memory available to Linux instead of just 4GB it shows with
these patches alone.

[1] https://gitlab.alpinelinux.org/nmeum/alpine-visionfive/-/blob/main/starfive/linux-starfive/set-8GB-RAM.patch

Jami Kettunen (2):
  board: visionfive2: Select fdtfile based on revision
  configs: visionfive2: Enable MISC_INIT_R

 .../visionfive2/starfive_visionfive2.c        | 25 +++++++++++++++++++
 configs/starfive_visionfive2_defconfig        |  1 +
 2 files changed, 26 insertions(+)

-- 
2.42.0



More information about the U-Boot mailing list