From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id yGNUAnjyUWawMgEAe85BDQ:P1 (envelope-from ) for ; Sat, 25 May 2024 16:15:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id yGNUAnjyUWawMgEAe85BDQ (envelope-from ) for ; Sat, 25 May 2024 16:15:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716646520; a=rsa-sha256; cv=none; b=LK81acRZwPIT+FUqHvA4Qx6yLyQ0REHjbYS9MU/LUGRAgew19lt5As7MsiM3XAWqyfKSRF XPRiIt2Ae6o99mplyrl9pJ7W5OJkreXDWWD31O+OYzx8AKkLEwSXNaUg3nm2QaFf2S1nN4 rXgF7tqsOoVg+O3A7M5HHImm5fbcRt15SyLyxteACzcyh/Cg7FckAAJmpAzWIEPCKab7kG ZVwzwRS5dkNLHNztmThQFHGaISv+9v8OHfW+rZKyM+AxcDuXTbDxZATgPSNdSMyf+UrpCg 4W3LcNuFne9+lRAgx+hNw+bG8tZ7eVDm+4cAE+9M6zyIndzij1WUjNyqhMWYaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716646519; 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:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=QhymGV2jPVVzikYvgVADEjcavmieY1cZmDLtJKjXNgQ=; b=FTf5ZzKo2BKGi/4JmkxNtEQOUlGKNwGe7UWUgeGqUXT333SVplyEkXDD8X7sf0ttlvX7Qh oWg5JRqXn2GwKP6NF0k9n36m3F4Ba5h7pnu7pEw0CXvE31jSCE8/wbGRayj5tHi2LIW5+f UvOLI4oxL+VjTb60heXJo/9jYntdllFDQ8iTCWT89nl3i5ZXrEr8Ggu1cXcw3UW9YkDMev CXO2n5id/n5VQvkW2b36AVXZy74EbJQnHHxXHOVofwEED2+NFkPtLnNkGvj6NNMPShpCWi tQmKj6K8vKgodAO/s7H/ejgXllluG7QSx4xnecS2XqPatxOTaV+Ph896Xm1Jog== 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 6D9661AED6 for ; Sat, 25 May 2024 16:15:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAsAt-0000QD-U5; Sat, 25 May 2024 10:15:09 -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 1sAsAk-0000Op-4x for bug-guix@gnu.org; Sat, 25 May 2024 10:14:58 -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 1sAsAh-00037F-SG for bug-guix@gnu.org; Sat, 25 May 2024 10:14:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAsAo-0000aT-BR for bug-guix@gnu.org; Sat, 25 May 2024 10:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#71197: visionfive2-barebones-os fails to boot Linux from MMC2 Resent-From: Z572 Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 25 May 2024 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71197 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Richard Sent Cc: 71197@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17166464612118 (code B ref -1); Sat, 25 May 2024 14:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 May 2024 14:14:21 +0000 Received: from localhost ([127.0.0.1]:43675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAsA8-0000Y4-6w for submit@debbugs.gnu.org; Sat, 25 May 2024 10:14:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:57948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAsA5-0000Xo-9P for submit@debbugs.gnu.org; Sat, 25 May 2024 10:14:18 -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 1sAs7q-0008Jq-7X for bug-guix@gnu.org; Sat, 25 May 2024 10:11:58 -0400 Received: from smtp81.cstnet.cn ([159.226.251.81] helo=cstnet.cn) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1sAs7m-0002g2-Mg for bug-guix@gnu.org; Sat, 25 May 2024 10:11:57 -0400 Received: from m (unknown [107.174.64.25]) by APP-03 (Coremail) with SMTP id rQCowACXnJiD8VFm3fIfDQ--.61703S2; Sat, 25 May 2024 22:11:22 +0800 (CST) From: Z572 In-Reply-To: <874jamt4p9.fsf@freakingpenguin.com> (Richard Sent's message of "Sat, 25 May 2024 09:13:22 -0400") References: <874jamt4p9.fsf@freakingpenguin.com> User-Agent: mu4e 1.12.4; emacs 30.0.50 Date: Sat, 25 May 2024 22:11:04 +0800 Message-ID: <87sey6q8w7.fsf@iscas.ac.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-CM-TRANSID: rQCowACXnJiD8VFm3fIfDQ--.61703S2 X-Coremail-Antispam: 1UD129KBjvJXoWxCFWxJFy3uF1xAFWruF43GFg_yoWruF15pF 4ak3WfGr4kJr4UJw18t3WjgFy7AFs5CFy7Gr48Zr18t3WUAFyUXr1Iq3WrJF9rGrykAr15 XF4UKrWqqF4Ikw7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvCb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV C2z280aVCY1x0267AKxVW8Jr0_Cr1UM2vj62AExVA0xI801c8C04v26x02cVCv0xWle2I2 62IYc4CY6c8Ij28IcVAaY2xG8wASzI0EjI02j7AqF2xKxwAqx4xG64xvF2IEw4CE5I8CrV C2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvEwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbV WUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF 67kF1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42 IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF 0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2Kf nxnUUI43ZEXa7IUeAHUPUUUUU== X-Originating-IP: [107.174.64.25] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ Received-SPF: pass client-ip=159.226.251.81; envelope-from=zhengjunjie@iscas.ac.cn; helo=cstnet.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 6D9661AED6 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.15 X-Spam-Score: -8.15 X-TUID: zzPc/iO/wePr --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Richard Sent writes: > Hi Guix! > > When generating a VisionFive2 system image via $ guix system image > gnu/system/images/visionfive2.scm --no-grafts --target=3Driscv64-linux-gnu > and attempting to boot from MMC2, the SD card U-boot fails to boot > Linux. > > (Pretty sure --target=3D 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=3Dstarfive/jh7110-starfive-visionfive-2-v1.3b.dtb > --8<---------------cut here---------------end--------------->8--- hello!, can you try boot from mmc1, and do setenv and saveenv on mmc1 uboot, then reset and boot from mmc2? > > 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 siz= e 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=20 > 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 =3D 1048578 =3D 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......... T= IMEOUT ! > phy_startup() failed: -110FAILED: -110ethernet@16040000 Waiting for PHY a= uto negotiation to complete......... TIMEOUT ! > phy_startup() failed: -110FAILED: -110ethernet@16030000 Waiting for PHY a= uto negotiation to complete......... TIMEOUT ! > phy_startup() failed: -110FAILED: -110ethernet@16040000 Waiting for PHY a= uto negotiation to complete......... TIMEOUT ! > phy_startup() failed: -110FAILED: -110StarFive #=20 > StarFive #=20 > --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--- > > [2. VisionFive2 U-boot failure --- text/plain; visionfive2-u-boot-failure= .log]... > > > [1]: https://github.com/starfive-tech/VisionFive2/issues/20 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfr6klGDOXiwIdX/bO1qpk+Gi3/AFAmZR8XgACgkQO1qpk+Gi 3/BGvQ//YeY/Y8huNG9mxvWZDaakhnwMmTFrq5G7q74kAGUoUU3+B2WUNa57nFwK k6PH0xY1qhW+JiIvweAcj5yD+seHo0UUJCd8uAOZ1f+am+IjMJ6jIUEIucFle/9J JVI4tgnzK7jNUUxGYsuRvxKKCk2n7v7bVZAJl+X21645mhX0ptBbX1bjh5XwkXGI ge9dPL/smDA0Qzc1PGPRDk4ACh0SxQGCn2Q+KBoMGVjkwoqv/qUCztYU0naLA4QU YBSIiHpWJMg0wiVA77YkiAqWP8luI3KZnPbnOpbSQt7ydU5nsI8+whm4PofXA+Yl 8aTAW7Je9pXUBS1cq/P5xjO5rImg+aFBUZ9aCbOPvQEwSY+33w9JM4NF6mN1iYEz S3nEI7LHl1eqnr/OFbPkDh89IREiJIAFQ2oLzfsx9gh+CIjZo05DbGLLAOMFwoEG Fpjv81ZJtGVNTncbLWFrGAYVh9AEsJ1KUckaqkk83jrcpVuNyJlyR5uhlIM7dUeS OQijHuzr06QR8HIWJZ6mLNzl8BZ65GdeyD2wycilpGdcKwhZa/0gPcYuAqm5yAnU /NyM7fTKMGowRgu++dOWGEw+okLxpURLb4kohdSYhNOih+LYpVMsDkm3U06NwJdJ pmn+yO8GWmxfUfRV4SHhrGWJtXFmOFDQmaOVlpMKVWlEoT/TSHk= =Quqd -----END PGP SIGNATURE----- --=-=-=--