From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OpVEOkd+Q2I/SAEAgWs5BA (envelope-from ) for ; Tue, 29 Mar 2022 23:46:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aIYWMkd+Q2IgZwEAG6o9tA (envelope-from ) for ; Tue, 29 Mar 2022 23:46:47 +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 EE75A3F45C for ; Tue, 29 Mar 2022 23:46:45 +0200 (CEST) Received: from localhost ([::1]:36630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZJfo-0006PU-Sn for larch@yhetil.org; Tue, 29 Mar 2022 17:46:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZJf0-0006N1-KS for help-guix@gnu.org; Tue, 29 Mar 2022 17:45:54 -0400 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21073) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZJey-0006hL-NP for help-guix@gnu.org; Tue, 29 Mar 2022 17:45:54 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1648590348; cv=none; d=zohomail.com; s=zohoarc; b=gOK8y3sBYoc7dbjUCpyNxeNObVcfetEfYBKkHstMPNXMVw4R77o8FQLdwcAL/bSz+Npz5vy7QOb2ciXgbhf+B1+/mf+i3lmpE0R+T/yKU4tSrSgdxBTIn77RuyDHBfDqVyf0PPOuIeWsjqk1kkOH4mTAIAds6hv9gB4f2QjwjD0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1648590348; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=qjrWlflz3kN9QH1Unn76ks5jdetwf68rl8u9s/WsckI=; b=LkCGIew0O/R2yg6PP8SH/M6mNv4iHcqiRs9kUIJTxqQeiPer6Ux+yYYA+uEGuwRzepep+c1Nq+ja+i4oSbNVnvp18Nv8wu+/LrZbw2tEoP/6LvceV4p8NFZfux1fASZQEEP7PAvB8Mgq2QLr821Rtz17OmT8umcgHNSgyXwXaDY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1648590348; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=qjrWlflz3kN9QH1Unn76ks5jdetwf68rl8u9s/WsckI=; b=Diw8+oUTlOwLldY3l/mEkL+/eD8LaM0EAQFad0HzQM6/1KNdeL5dCrEu5ztoq/E1 KxbQqQTA6t26Y6owQrH3vNNpmkKoiuG1bJO+/0WfOYAcL4gvU1D5MPhv0lfpJUr3Jzu LclIwNoDEZ4Qw+r92721rYUrArkMYCkRKRST/0lI= Received: from localhost (248-110-142-46.pool.kielnet.net [46.142.110.248]) by mx.zohomail.com with SMTPS id 1648590343329783.6365658507998; Tue, 29 Mar 2022 14:45:43 -0700 (PDT) References: <87h78g1qu5.fsf@mdc-berlin.de> <87r172aru4.fsf@gmail.com> User-agent: mu4e 1.6.10; emacs 28.0.50 From: Ricardo Wurmus To: Maxim Cournoyer Subject: Re: cannot boot from microSD card on aarch64 machine Date: Tue, 29 Mar 2022 23:35:52 +0200 In-reply-to: <87r172aru4.fsf@gmail.com> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87wngc77qz.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.50; envelope-from=rekado@elephly.net; helo=sender4-of-o50.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648590407; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qjrWlflz3kN9QH1Unn76ks5jdetwf68rl8u9s/WsckI=; b=YcEjNPySaw4i6T2AE4rwWUIt5TY8zv7b/vBmNLxTbsd+oMPb+U/Gaw4iyP1G/GV1JETBto jWAzxVCq0tYBjhV6yiIrI/2kXlqGt3y5mi8JdRRWfUeSlFnVVIDxuETt7Qf8t+DNmxJJpK qPPsVt9sUS+8gH2H8y6ciOeAEEbdxINx26/BHGzPZupiScupQsfix/3YPZMKNLxCS3lMDg kttG6HxSXFdamYOsNOIlEUR/FI+6C6eTY3pNlH0T2eRJy/WrTQCLa4JoUZaHTZ4vDxjC7m 62KVwJAGnsCDfAYIXUSH/zmNeuOFLODs+s3wbmPiH9iwiQfxbD29/MBwR9MD/g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1648590407; a=rsa-sha256; cv=pass; b=E0SIYad4Xcp3s9uOt3ZpDRXqF7/r80lz1Qjdd/dVL7W9klY2AMUyRTfrAJ+JYD6yMxVK1n ccLvnlPf+53s6T7dPLrmBiYe2O9fAMz7u/S5d2umtCVzLv59EGVwTLyhDhH1hPYICKLxyd V4Lf0oALWq4c1IAVEFZsR7NkKZCq/Z/Ye+VePfCKLuBZeyOrjfzd3iN4k5rLSkXAlkrEge +v12MhUWEfhL4j3ZWTMmk6IZGQx+zvKtaJ/zX3BhfGwiN3nmATnzgflgjDAYlN1a65AzPz I8tIL6z+nR5xZGWr4dcPn34JZz3ZMC8AbCPvdWuJEAnhhLwZLXehO9cCPJcH2Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=Diw8+oUT; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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.57 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=Diw8+oUT; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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: EE75A3F45C X-Spam-Score: -4.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: IeSYq8ocMW8W Hi, >> 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-b= oot was >> installed on the microSD card. >> >> Does it perhaps install the u-boot files at the wrong offsets? How >> would I begin to debug this? >> >> I=E2=80=99d appreciate any hints. > > Sorry, I don't have any clue to offer, but were you able to solve or > workaround your problem? Not quite, but I=E2=80=99ve learned more and understand the problem better. 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 t= o successfully patch u-boot to boot from the SSD on the PCIe card (I have tried this a lot). My next step is to attempt to install the whole system onto the microsd card, just to end up with a usable system. If that works then nothing is wrong with Guix (except for a lack of documentation), but it would be a disappointing workaround. 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 :) --=20 Ricardo