Subject: [bug#70892] [PATCH v2 7/7] system: images: Add visionfive2 module.

From: 宋文武 <[email-masked]>
Date: Sun, 19 May 2024 17:33:47 +0800

Zheng Junjie <[email-masked]> writes:

> [...]
> +
> +;;; Commentary:
> +;;;
> +;;; If trying to boot from MMC2, and see
> +;;; "No FDT memory address configured. Please configure",
> +;;; please boot from spl and do the following.
> +;;;
> +;;; uboot> setenv fdtfile starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
> +;;; uboot> savenv
> +;;;
> +;;; and then try again boot from MMC2.

It's not clear to me what are MMC2 and spl, how about:

  VisionFive2 can boot from MMC1 (SPI flash) or MMC2 (SD card) selected
  by DIP switches MSEL[1:0], you may want boot from MMC2 to use the
  U-Boot from Guix System instead of the vendor U-Boot in MMC1.  Before
  doing so, make sure you have a correct 'fdtfile' in the environment:

    uboot> setenv fdtfile starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
    uboot> saveenv
  
> +;;;
> +;;; ./pre-inst-env guix system image gnu/system/images/visionfive2.scm \
> +;;;      --target=riscv64-linux-gnu --no-grafts
> +;;;

This image building command is not related to the previous boot
commentary, I think it can be dropped.