bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#71197: visionfive2-barebones-os fails to boot Linux from MMC2


From: Richard Sent
Subject: bug#71197: visionfive2-barebones-os fails to boot Linux from MMC2
Date: Sat, 25 May 2024 09:13:22 -0400

Hi Guix!

When generating a VisionFive2 system image via $ guix system image
gnu/system/images/visionfive2.scm --no-grafts --target=riscv64-linux-gnu
and attempting to boot from MMC2, the SD card U-boot fails to boot
Linux.

(Pretty sure --target= is gratuitous but I kept it.)

This occurs despite setting and saving the ftdfile variable as described
in the instructions:

--8<---------------cut here---------------start------------->8---
;;; Commentary:
;;;
;;; 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
--8<---------------cut here---------------end--------------->8---

--8<---------------cut here---------------start------------->8---
# Confirming the variable is set after reboot using the U-boot console:
StarFive # printenv fdtfile
fdtfile=starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
--8<---------------cut here---------------end--------------->8---

The system /does/ boot into Linux if SPI Flash is selected as a boot
source, although since the onboard bootloader is outdated the system
only sees 4 GiB of RAM [1].

Attached is the full failing boot log. Here are the highlights:

--8<---------------cut here---------------start------------->8---
U-Boot SPL 2024.01 (Jan 01 1970 - 00:00:01 +0000)
DDR version: dc2e84f0.
Trying to boot from MMC2

OpenSBI v1.3

################ SNIP ################

U-Boot 2024.01 (Jan 01 1970 - 00:00:01 +0000)

CPU:   rv64imafdc_zba_zbb
Model: StarFive VisionFive 2 v1.3B
DRAM:  8 GiB
Core:  134 devices, 26 uclasses, devicetree: board
WDT:   Not starting watchdog@13070000
MMC:   mmc@16010000: 0, mmc@16020000: 1
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 
Bytes, erase size 4 KiB, total 16 MiB
OK
StarFive EEPROM format v2

################ SNIP ################

starfive_7110_pcie pcie@2b000000: Starfive PCIe bus probed.
starfive_7110_pcie pcie@2c000000: Starfive PCIe bus probed.
In:    serial@10000000
Out:   serial@10000000
Err:   serial@10000000
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
bootmode flash device 0
Card did not respond to voltage select! : -110
Hit any key to stop autoboot:  0 
Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
Couldn't find partition mmc 0:3
Can't set block device
Importing environment from mmc0 ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
Can't set block device
## Warning: defaulting to text format
## Error: "boot2" not defined
Card did not respond to voltage select! : -110
ethernet@16030000 Waiting for PHY auto negotiation to complete......... TIMEOUT 
!
phy_startup() failed: -110FAILED: -110ethernet@16040000 Waiting for PHY auto 
negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110ethernet@16030000 Waiting for PHY auto 
negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110ethernet@16040000 Waiting for PHY auto 
negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110StarFive # 
StarFive # 
--8<---------------cut here---------------end--------------->8---

Guix Describe:

--8<---------------cut here---------------start------------->8---
Generation 77   May 24 2024 00:15:41    (current)
  guix 9901416
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 9901416233867233192b63fde7f616751127b189
--8<---------------cut here---------------end--------------->8---

Attachment: visionfive2-u-boot-failure.log
Description: VisionFive2 U-boot failure

[1]: https://github.com/starfive-tech/VisionFive2/issues/20

-- 
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]