From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IKS1F/iiR2JRcQAAgWs5BA (envelope-from ) for ; Sat, 02 Apr 2022 03:12:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8AL4FPiiR2KqNwAA9RJhRA (envelope-from ) for ; Sat, 02 Apr 2022 03:12:24 +0200 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 E258C3F94D for ; Sat, 2 Apr 2022 03:12:23 +0200 (CEST) Received: from localhost ([::1]:33286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naSJS-0000C3-JQ for larch@yhetil.org; Fri, 01 Apr 2022 21:12:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naSIJ-0000BW-Np for help-guix@gnu.org; Fri, 01 Apr 2022 21:11:12 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:53368) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naSIH-0007l5-UM for help-guix@gnu.org; Fri, 01 Apr 2022 21:11:11 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:20]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id E67961AB05; Fri, 1 Apr 2022 18:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1648861866; bh=aU1FDYBT/0H0mjliaKNFVpwFAMm1CNx22br2rVFwdjE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=RSYqYjkBgxjmIAeO4uWW+J4RTAub2XTJgRkb/U+jJPGKre3vowi3rGKvGpy7up4L3 CVuNjjbJKwM4nVEo32MMJHzMhA3D4habr1WUopHJuVRnVLjjX4XLTVNnxtznS0gow/ xVk7rvG9K/SZuzk3fn3M6a0mhgDOWv6521lyO1yXG8m0eMJITaD+XKlZCBZn3yAd5W EESn2V1EHpKPbWGHszs2NZYgVKBgbt0AasXg0NqMrFsCCsMe4l2fqi+/Taa65H911F E3Hq+nZ0X0Uv6It5z+54msuUqciMk+CuazeC6oer7MqOAHQBGQh5x/fIjleMcVkzJd aW7FFJwGutPMw== From: Vagrant Cascadian To: Ricardo Wurmus , Maxim Cournoyer Subject: Re: cannot boot from microSD card on aarch64 machine In-Reply-To: <87wngc77qz.fsf@elephly.net> References: <87h78g1qu5.fsf@mdc-berlin.de> <87r172aru4.fsf@gmail.com> <87wngc77qz.fsf@elephly.net> Date: Fri, 01 Apr 2022 18:10:56 -0700 Message-ID: <87lewo47dr.fsf@contorta> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=173.255.214.101; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648861944; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kE+4YmFiINRUvR98q0W20Y/bovmjpoeUcqzGRIiItrA=; b=e12AgBoN5SLM/WhtcXKzpa9/dUuyQvhYojOcxn116IpK7xVEOZfH3J/B9XTlHbIJLCksef BtQu66gceB7hFyz1Qubz5Y8VO2Dt4RjwCANmDLAO0C9wVQtwNz4V6zzOWoKTsy6GtlE53s JYr5sLww2LL8oHRcS6J1JK6FxvdQ8SrT3mGDCIhLxmUk5coi2l6vIAyHi+8hJ4oyt0hVqe RXuP6YWjt+YnizufH9hmYU+n5hMh5uEaBH97v2vhgofftcm9JDH2Blajyaop1qnsT+g410 6GzdKahN8JOtkULmtOoHzHp5EsR26APBZoLop6tbG7tBaPak0BLMQxUQKFh3BQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648861944; a=rsa-sha256; cv=none; b=RLgqeJCfkcUx3vHHTVfVgTCdE1OPFx1AFqeA965uOjanglVXX6KnvcEGa3LyR/HMOsCnHK 2tnqXfsGrfHsM/ypFRT33YMTaB01rLrkK32otOQ0MJiCOdqCXeELnUwXpEO4NpC6CaW+WP 6qIwW4q1bAJg/JzpRjsxfU8v73QdMjAN1tvRmy6a4WkRECHrEBDDa++dQf3x+e1Kl5znts 5ZuLj/VJNUeCIuWCNom9e2CnYTAkcr7/53SzbCGeeWcU04jJQcLDxS1WKnNwd4maLBP/jB oJu53HctFTs6ts7jPoYO76LYokO4vLJYcHEXYRfW4WGTVLmJN1Jyu8sEOmi0QA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debian.org header.s=1.vagrant.user header.b=RSYqYjkB; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.17 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debian.org header.s=1.vagrant.user header.b=RSYqYjkB; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E258C3F94D X-Spam-Score: -7.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: Vuw4bubHV6WG --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2022-03-29, Ricardo Wurmus wrote: >>> I mounted the target disk (an SSD) at /mnt, made sure that the microSD >>> card was inserted, unmounted, and available at /dev/mmcblk1, and then >>> ran >>> >>> guix system init config.scm /mnt >>> >>> This was successful. >>> >>> Unfortunately, rebooting failed. There is seemingly no activity at all >>> when I power on the board, so something=E2=80=99s not right with how u-= boot was >>> installed on the microSD card. ... > I manually copied the two u-boot files to the expected offsets on the > microsd card, and that let me boot Guix System from USB. But I have so > far been unsuccessful in my attempts to do this automatically as part of > =E2=80=9Cguix system init=E2=80=9D (I haven=E2=80=99t tried this much) or= to successfully patch > u-boot to boot from the SSD on the PCIe card (I have tried this a lot). I don't understand this problem, works for me with both reconfigure and init... does your operating system config reference the same device that is present when you're initializing the card? ... sometimes i use a usb-to-microSD adapter, which shows up as /dev/sdX rather than /dev/mmcblkX if i'm initializing from another machine. > I think it should be possible to patch u-boot to initialize the PCIe > card and boot from the attached disk (with the patched u-boot residing > on the microsd card). I tried the relevant subset of the netbsd > patches, but the CPU keeps resetting after (successfully) enumerating > the PCI devices. > > I hope I can make some more time for this soon and overcome that last > hurdle =E2=80=94 and then write a cookbook entry for all this :) I was able to get it to work! With your updated patch to disable openssl (and rebasing against newer u-boot), and the phase modifying the config and the the rockchip include file to add support for SCSI devices. The netbsd patches weren't needed with 2022.04-rc5. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYkeioQAKCRDcUY/If5cW qhciAP9M79BgrNtUZHHKE8u3OJyhpAGn9BPli2EAZCuQ/Rb6EAD/RLnLCcbeYnu2 G6vOaLGc7F0tV5ThaB9ojaTZgXaZRAw= =d3R8 -----END PGP SIGNATURE----- --=-=-=--