From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YNvJE2rhQ2JkXwAAgWs5BA (envelope-from ) for ; Wed, 30 Mar 2022 06:49:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uAyFEGrhQ2IO3QAAauVa8A (envelope-from ) for ; Wed, 30 Mar 2022 06:49:46 +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 E86AE229B4 for ; Wed, 30 Mar 2022 06:49:45 +0200 (CEST) Received: from localhost ([::1]:45060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZQHA-0002sr-Aa for larch@yhetil.org; Wed, 30 Mar 2022 00:49:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZQGy-0002se-AC for help-guix@gnu.org; Wed, 30 Mar 2022 00:49:32 -0400 Received: from [2607:f8b0:4864:20::f2c] (port=36641 helo=mail-qv1-xf2c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZQGw-000381-O8 for help-guix@gnu.org; Wed, 30 Mar 2022 00:49:31 -0400 Received: by mail-qv1-xf2c.google.com with SMTP id kc20so16071865qvb.3 for ; Tue, 29 Mar 2022 21:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=YEw7D2jsUohOdsbzBjdgUyI/kUS7pQZ74RHm883lWe0=; b=gQhRopM0Nyos9Y7fcFEzAxt6oWpckI6v2LMUf9P6gQ5SS7oT0qFaar5ei5oBEvvO7d 6m4kEeMQyNBAFHzyrHhM3aqMZQUi3JCuJnuvd6hMQ76AVpcKG4tMk1uBtL7XdPwO1My5 esO9eYYR6Fd/Ck9RGJrwPctTpWNN5kKVtBJc3/8s/7x1vsjX/Zai8Vukj5rCCCE3jY3y trjwlpWuia99+yDePTSomgWEmHi4cBqLWHHbq5PW3yqnnFrF1nNmMkAbxeWpRc3rGKbz C/SIieumxlAYW9Esa2EpvNsbY3BeU77GsBiW/C6pER0k9dm7C+RWQgSXc8dD+0W/tZle x1fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=YEw7D2jsUohOdsbzBjdgUyI/kUS7pQZ74RHm883lWe0=; b=aWZ2H3E3bCjlpa2dxJrJxVMm8tc6/5BZp6+VUkl7oclNpoFrWAOLDJ7ELt2PfF5kLd OcS+lQlm4qpD97aPg/XepxJM9M9nGY61wzz3Vbh7DI+pbxKDDTZ6lOCl5tf+stV6UePy fEb8FZ79uEafuXRX0gnSNoaSWzu9XW67HZJdUgWo3o9Od9fU5+ARiqVuF20rlwpgaHw4 u/+PZzQ+AFwUdtGrbPcQz+gMMDqbt/7EVkjwYJ+ucp9leJ7xhixtkZFRuRT+hgvbBYRV q4t4hvZzjeZbINdCeexmDDo7JDQATNYoQ2dCPzbEj2FtQaHv/3NxcbXk10qWeTVDKjqr /TSg== X-Gm-Message-State: AOAM530tS8U8SypfQIYcWQ+WJlT+8uinMcVw5ZS1YvlnM1HBu5tAJ99w 1FIomLoMLmLR8qwPT2kNaekdy9X6pgk= X-Google-Smtp-Source: ABdhPJy9dfXBYmYbN0GMMkvQELwwAUPGlD0h2hqV61uEazN4swkMccelEz7XTxwkQw7rq7Im9f0Niw== X-Received: by 2002:a0c:c784:0:b0:440:c2fe:33a3 with SMTP id k4-20020a0cc784000000b00440c2fe33a3mr29481446qvj.38.1648615769340; Tue, 29 Mar 2022 21:49:29 -0700 (PDT) Received: from hurd (dsl-150-248.b2b2c.ca. [66.158.150.248]) by smtp.gmail.com with ESMTPSA id w8-20020a05622a134800b002eb8401862bsm7113592qtk.34.2022.03.29.21.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 21:49:28 -0700 (PDT) From: Maxim Cournoyer To: Ricardo Wurmus Subject: Re: cannot boot from microSD card on aarch64 machine References: <87h78g1qu5.fsf@mdc-berlin.de> <87r172aru4.fsf@gmail.com> <87wngc77qz.fsf@elephly.net> Date: Wed, 30 Mar 2022 00:49:27 -0400 In-Reply-To: <87wngc77qz.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 29 Mar 2022 23:35:52 +0200") Message-ID: <87fsn0ujs8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f2c (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2c; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf2c.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1648615786; 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=YEw7D2jsUohOdsbzBjdgUyI/kUS7pQZ74RHm883lWe0=; b=Zchsa104xfc6yVpciPz4B3p2YzQueooa3te/VaGZyLF1m8SlvcsM1sKWu6R8edQ5OfYCIS CDJPWEmLvjsogvgKCBFD/XhFl1gEFxV9WxD+kv91XMtI3DxoVVNzjQWB/JRdIG4cBDY4CV 688kpVkAaZJ/nApjQrBaWgDI/5qD7/hIvMf9gWjg20vLEqD0WCB5eezrruYXtcRrgjDawu Ou8QtVqZNTF5GTD5CFIAvubTaq61OEuKEZClNURQHaW6C7q1imHTxN7iejUGMa9VhSv5iT YBSrPXSx1GYYuB7E47wfa5A/4sThGdammcl+FATVsuN3PTF/P7yYIp1HVx5cpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648615786; a=rsa-sha256; cv=none; b=SoYOWOqFtH967UpvElV2spcGCphgm0wk7smUyCPXhBwLwjQl2W+O5FoTdekbJ8WzLYCQKt VyzgtAQh3F4Vcf8lIU505Z2XaaYiGr4ys4EnwsUVkYdNpm/1tQY+JltlfyRkmUi+oNQIg9 zlQUuhT7IVK6g+3qpsMzOsGm8gHaGQcF6vMSPfEjN5j16rwjqoLIXk43yxb42LvdRKAsj7 DCZ2RsyU4Qu1c7Rnus2sz/jrU8v6RUguKbtW4k9PnbnAeHprxS6+ZROt/PxGflGwqVo7/5 CtoQk01krFImVOfkrOVFrYefl2xa0g5JB0QBqWsMvoMsSzk9d2g6BO0QHWuQ2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gQhRopM0; dmarc=pass (policy=none) header.from=gmail.com; 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: -9.37 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=gQhRopM0; dmarc=pass (policy=none) header.from=gmail.com; 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: E86AE229B4 X-Spam-Score: -9.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3Of/A5WEuhSg Hi Ricardo, Ricardo Wurmus writes: > 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-= boot 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 bette= r. > > 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). Heh, sounds tricky. > 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. If I recall from my limited experience with an embedded ARM, you'd have to register the newly supported hardware in the device tree of U-Boot/the kernel; do the patches applied take care of that? > 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 wish you luck! Cheers, Maxim