From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 COSxFvqnH2KDdQAAgWs5BA (envelope-from ) for ; Wed, 02 Mar 2022 18:23:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ACBxD/qnH2J+HgAAG6o9tA (envelope-from ) for ; Wed, 02 Mar 2022 18:23:06 +0100 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 B77A51101B for ; Wed, 2 Mar 2022 18:23:05 +0100 (CET) Received: from localhost ([::1]:38124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPSgq-0003Rp-Em for larch@yhetil.org; Wed, 02 Mar 2022 12:23:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPSgU-0003Rc-PF for help-guix@gnu.org; Wed, 02 Mar 2022 12:22:42 -0500 Received: from flashner.co.il ([178.62.234.194]:43600) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPSgT-0002xj-5G for help-guix@gnu.org; Wed, 02 Mar 2022 12:22:42 -0500 Received: from localhost (unknown [31.210.181.166]) by flashner.co.il (Postfix) with ESMTPSA id 5E5B7401D4; Wed, 2 Mar 2022 17:22:08 +0000 (UTC) Date: Wed, 2 Mar 2022 19:19:21 +0200 From: Efraim Flashner To: Ricardo Wurmus Subject: Re: cannot boot from microSD card on aarch64 machine Message-ID: Mail-Followup-To: Ricardo Wurmus , help-guix@gnu.org References: <87h78g1qu5.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zSpcfwMp7WArKUqt" Content-Disposition: inline In-Reply-To: <87h78g1qu5.fsf@mdc-berlin.de> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il 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, 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646241785; 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; bh=aX4zP9zhxPl56D7w44C83v3MruyGv4BbgtHB13f1WXE=; b=sV1nb1gp5d+rSO5+pbS/mMH0kDY7q0PzNx8ZqVgXWKJJNEVsnX6TIRff8g2NLEUusgMrX9 A/ZNkYeO+YRMcpoQjsXvJJJJmtUr8fTc/yviMi/JHUckSjeAMXf2kC86BR3fEaRppA2OWU bXxkltawkEzRkQTrY0l/ui6mtHs3sNZvR45Rqx/MRX9ZvXJIhOjuaZ4KgJGhyI1rQPjHtS 7+m4Z7cokZuAL0hF9y3tjMMjdqrbUqzo+dm6jD3v+7JEpzEa8z3lVxwJ4POAX6v4MCYf1s j9GGt+89WrDU3wUhAkXzNZeYqlmTf0+5H0wtqZ00VaaDMXe3ZdOB0FParbAL8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646241785; a=rsa-sha256; cv=none; b=t8I0XhJYslTa+DVv0zTa5UnGkTbLn0U4tgFGkRap1a2najof8nTq/PNW1uqW/BTrcUcSHs A8tAyEPDxrRt5MKZ2nDv9PBJBvQcj9rH8yhsKV+Z0erwKRAcTmF4YPwJDUjPbPBFrrIVRO H8kJcVkxIRvXH5KvEqJvhBJNFPtkg/dRc/2st0H2+sxfMpiG3Un/ZR2BtSIeBjcbdawJYn zpkzhzSOWLONLI5/fHbkE0H14y+U3AMsp4bPZsxS1S8ne09Z29nxOFeu2NLE1wtI4Ixwim XIxFLsjFZdQDfILuswM2DxutPDWJWr8VaMCwU6d1821EgGoFMXsdnjuIfoEYlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -4.98 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: B77A51101B X-Spam-Score: -4.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: PMlyyR+n37TA --zSpcfwMp7WArKUqt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 02, 2022 at 12:37:53PM +0100, Ricardo Wurmus wrote: > Hi, >=20 > I got myself a rockpro64 board. I put armbian > (Armbian_21.08.1_Rockpro64_bullseye_current_5.10.60.img) on a microSD > card to check that it=E2=80=99s all working correctly. Then I downloaded= the > latest Guix System image for a pinebook pro and dd=E2=80=99d it to a USB = drive. > With the armbian microSD card inserted (which contains an old version of > u-boot) I can boot from USB into Guix System. >=20 > So I then decided to build my own system and install a new u-boot onto > the microSD card. Here=E2=80=99s the system I built: >=20 > --8<---------------cut here---------------start------------->8--- > (operating-system > (host-name "foo") > (timezone "Europe/Berlin") > (locale "en_US.utf8") > (bootloader (bootloader-configuration > (bootloader u-boot-rockpro64-rk3399-bootloader) > ;; SD card/eMMC (SD priority) storage > (target "/dev/mmcblk1"))) > (kernel linux-libre) > (kernel-arguments > (list "console=3DttyS2")) ; UART2 connected on the Pi2 bus > (file-systems (cons (file-system > (device "my-root") > (title 'label) > (mount-point "/") > (type "ext4")) > %base-file-systems)) > ...) > --8<---------------cut here---------------end--------------->8--- >=20 > The actual system also has one more initrd module, which I can=E2=80=99t > remember now, but that shouldn=E2=80=99t matter. >=20 > 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 >=20 > guix system init config.scm /mnt >=20 > This was successful. >=20 > 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-bo= ot was > installed on the microSD card. >=20 > Does it perhaps install the u-boot files at the wrong offsets? How > would I begin to debug this? >=20 > I=E2=80=99d appreciate any hints. Are you sure the primary device is /dev/mmcblk1? On my pine64 it's mmcblk0. I'd start by putting u-boot and the image on the sd-card and see if Guix boots up that way. If it works then there's a larger chance there's a mistake somewhere in a config. Perhaps you need to mark the USB drive as a dependency for your root partition? Actually, better idea. Try it with linux-libre-arm64-generic for the kernel. I haven't tried recently but in the past I haven't been able to use the linux-libre kernel with my pine64 and needed the arm64-generic version. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --zSpcfwMp7WArKUqt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmIfpxYACgkQQarn3Mo9 g1GvRw/9H/CcyiUoFeo3ULttosf1wOoEyEIGIGzroDMPzK9iwxq5sjmQVEk3n+tX 7kcnL6hGr4AryAweX+zK22HVrHVUksCJZHrzEU73TnwVS/UB7d9HgfWrs5Lez1Cl vI1bT/XQtGN35ChZdHkH4E5DShyIMympHeARWHajEwbmyRIgZINPSDUqf6FwfS9K txoCk/HB7GMUvxfNrZPx+keEFjb9ZHeoANGCyV3c4Mu8taqpww1ZRG4UdLn4SGSA yKOLHkjRVLbJi/Ed4E8IaotzNOwHyKD5sZRPNVHgwi1vQIwXGibMt8UTQbxx+Xbx FianiApsUvOktKo+3GVvWY80AvFyYElpozhfdmd7WL7drUQsdyPBpDZcosTzRT0I Ev223jXC0yGI5EJmQv9gAqmGsT2bq3lgxgpryexnJkOiIrZ1sb/DthJKYFkf7Rqd 5ZAXD0z4h4IRFrtELpsrQ8G3vNcpTvcdacuO3+0MogrBIBZdGr5LDSeE5B2MVM1+ Io+tGnF2DiarlKktMVOudy/nHIB9+EaSDGGS8Pl6TBzYE6i9uUu+W2Us3gFHtB8i Dtq0bJOi8t7plUFC2Ycp25dPrgc2TA7gGua5jP/QFm1owOe8xHuNmJWBbvxzUdi7 Hc7B4l92XYBA685QOH+ZHukeiDgLBFc13YD4yMk+upKiavnviq0= =yRH9 -----END PGP SIGNATURE----- --zSpcfwMp7WArKUqt--