From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id oDt7DSfkUWbTCwEAqHPOHw:P1 (envelope-from ) for ; Sat, 25 May 2024 15:14:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oDt7DSfkUWbTCwEAqHPOHw (envelope-from ) for ; Sat, 25 May 2024 15:14:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=MZcJ+oVt; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716642854; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=9kpIlMI+g5yYHq1kbvzvuOlT2SjDHXCIzUiGTHE/vC0=; b=tatnf3rhhngSoA39In60S5NnCZ8yHovMC7Una9YsNgP3NLxgHZlT7FBdUytzzYK2Qwc5iq CNy9RasXaErjToJK1441Os/HBuP9RY97HFZLwt9Kwtx7QAGQtTeTJUM/nwRBEPeJcP1Jer Iu3fXm3qOerVRVPc3OcpOHklsLdqmRKqBu9ZeTeIJ03Id+KkLS4Nvlc5U9RI7ntsZylzX7 fa/i4b3xuFg0+ViJrxmRYNEDun7HCdwere+iHdRcVOHaB4+mZF5/VqbT+htV1Eo/ZCPSS7 regUUdiathchcDzXOztNetRFSp5aban+Vkq8q9ukMMzfp6jfVrJfcDzmBmD94A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=MZcJ+oVt; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716642854; a=rsa-sha256; cv=none; b=U52kbtIXdnPq1MvXlmExMYaMwXfrOMy4x5GHuedWS3lkaPb904xXgzKBO2pQ1tdwftpkTM uZoD+vsP+3n2p4RaJuDfGxnqb511yr45T5440jQ/5MEfCrF38ULXcL+V5Kei7/IxS9ZPmZ cmZZn5nM86EGJIrutCjB8yjlmMqE0mrxMnazudKYkWCOt6+faWpCRy0SM0juv3Af2txkeU 22au00TKdVqaGfJER+jb5biHf/HGrgICyZiJePY4AU0fcgRoCiOR4L79E79ctuwfCoyHnS qa114tvsyuDpFIx2iXrddkJRPomAgVVmNp7hCEOvF6wYoent6Eh1JyWVL3KlKA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B4A9B6F64C for ; Sat, 25 May 2024 15:14:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sArDk-0001UR-Ka; Sat, 25 May 2024 09:14:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sArDe-0001Id-TE for bug-guix@gnu.org; Sat, 25 May 2024 09:13:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sArDe-0007Jo-Kq for bug-guix@gnu.org; Sat, 25 May 2024 09:13:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sArDm-00062P-13 for bug-guix@gnu.org; Sat, 25 May 2024 09:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#71197: visionfive2-barebones-os fails to boot Linux from MMC2 Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 25 May 2024 13:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71197 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 71197@debbugs.gnu.org Cc: zhengjunjie@iscas.ac.cn X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171664283023188 (code B ref -1); Sat, 25 May 2024 13:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 May 2024 13:13:50 +0000 Received: from localhost ([127.0.0.1]:43368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sArDZ-00061w-Fm for submit@debbugs.gnu.org; Sat, 25 May 2024 09:13:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:59194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sArDX-00061q-AF for submit@debbugs.gnu.org; Sat, 25 May 2024 09:13:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sArDP-0001D4-Cb for bug-guix@gnu.org; Sat, 25 May 2024 09:13:39 -0400 Received: from mail-108-mta75.mxroute.com ([136.175.108.75]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sArDN-0007Ir-8F for bug-guix@gnu.org; Sat, 25 May 2024 09:13:39 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta75.mxroute.com (ZoneMTA) with ESMTPSA id 18fafe29671000efce.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sat, 25 May 2024 13:13:33 +0000 X-Zone-Loop: 2446f1bf4ab9418b82a4f782b6a024015cfb73fd5fde X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date:CC: Subject:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9kpIlMI+g5yYHq1kbvzvuOlT2SjDHXCIzUiGTHE/vC0=; b=MZcJ+oVtWgSzE57Naqie8ZFPfY ZS0EpNrpZvaWwZPO041ilBGYvrjAuJFHs19JqzBgcJqU2L9g4kyr1WMKTXmpLlSYEWh0Oh0pp8H8F dxIcPog7jblS73jcFlmxPraWOK14t0oYdf0ohNgApEADqe7e30LNFujG4q4ulwTTQ0W58nmqqPoYB 679+S1f25+5fLCzy10CHU6NPjRGs907JJHQ4qRVBhF/HRvkwJHSaIPPSRWmI13LT/UGnm4srGykzz l3Fr79I3zp1cIMdbp1HNaizECvzZyxOsFDfA2j+VHZEqln0S/UOtvo932gWgOqUFwfJVjbD5LHZX6 I920NFHg==; From: Richard Sent Date: Sat, 25 May 2024 09:13:22 -0400 Message-ID: <874jamt4p9.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.75; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta75.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.55 X-Spam-Score: -6.55 X-Migadu-Queue-Id: B4A9B6F64C X-Migadu-Scanner: mx13.migadu.com X-TUID: 77EtlbkyE/Jy --=-=-= Content-Type: text/plain 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--- --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=visionfive2-u-boot-failure.log Content-Description: VisionFive2 U-boot failure U-Boot SPL 2024.01 (Jan 01 1970 - 00:00:01 +0000) DDR version: dc2e84f0. Trying to boot from MMC2 OpenSBI v1.3 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|___/_____| | | |_| Platform Name : StarFive VisionFive 2 v1.3B Platform Features : medeleg Platform HART Count : 5 Platform IPI Device : aclint-mswi Platform Timer Device : aclint-mtimer @ 4000000Hz Platform Console Device : uart8250 Platform HSM Device : --- Platform PMU Device : --- Platform Reboot Device : --- Platform Shutdown Device : --- Platform Suspend Device : --- Platform CPPC Device : --- Firmware Base : 0x40000000 Firmware Size : 234 KB Firmware RW Offset : 0x20000 Firmware RW Size : 106 KB Firmware Heap Offset : 0x30000 Firmware Heap Size : 42 KB (total), 2 KB (reserved), 9 KB (used), 30 KB (free) Firmware Scratch Size : 4096 B (total), 760 B (used), 3336 B (free) Runtime SBI Version : 1.0 Domain0 Name : root Domain0 Boot HART : 3 Domain0 HARTs : 0*,1*,2*,3*,4* Domain0 Region00 : 0x0000000002000000-0x000000000200ffff M: (I,R,W) S/U: () Domain0 Region01 : 0x0000000040000000-0x000000004001ffff M: (R,X) S/U: () Domain0 Region02 : 0x0000000040020000-0x000000004003ffff M: (R,W) S/U: () Domain0 Region03 : 0x0000000000000000-0xffffffffffffffff M: (R,W,X) S/U: (R,W,X) Domain0 Next Address : 0x0000000040200000 Domain0 Next Arg1 : 0x0000000040400000 Domain0 Next Mode : S-mode Domain0 SysReset : yes Domain0 SysSuspend : yes Boot HART ID : 3 Boot HART Domain : root Boot HART Priv Version : v1.11 Boot HART Base ISA : rv64imafdcbx Boot HART ISA Extensions : none Boot HART PMP Count : 8 Boot HART PMP Granularity : 4096 Boot HART PMP Address Bits: 34 Boot HART MHPM Count : 2 Boot HART MIDELEG : 0x0000000000000222 Boot HART MEDELEG : 0x000000000000b109 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 --------EEPROM INFO-------- Vendor : StarFive Technology Co., Ltd. Product full SN: VF7110B1-2253-D008E000-00004582 data version: 0x2 PCB revision: 0xb2 BOM revision: A Ethernet MAC0 address: 6c:cf:39:00:47:28 Ethernet MAC1 address: 6c:cf:39:00:47:29 --------EEPROM INFO-------- 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 # --=-=-= Content-Type: text/plain [1]: https://github.com/starfive-tech/VisionFive2/issues/20 -- Take it easy, Richard Sent Making my computer weirder one commit at a time. --=-=-=--