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 eJn8KIEfDWJPQwEAgWs5BA (envelope-from ) for ; Wed, 16 Feb 2022 17:00:01 +0100 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 YP17JoEfDWLkXAEA9RJhRA (envelope-from ) for ; Wed, 16 Feb 2022 17:00:01 +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 067B9364C6 for ; Wed, 16 Feb 2022 16:59:57 +0100 (CET) Received: from localhost ([::1]:56228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKMii-0005to-6R for larch@yhetil.org; Wed, 16 Feb 2022 10:59:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKMez-0002cN-RZ for help-guix@gnu.org; Wed, 16 Feb 2022 10:56:05 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:60901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKMej-0003uV-2W for help-guix@gnu.org; Wed, 16 Feb 2022 10:56:05 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id AA71E5C038C; Wed, 16 Feb 2022 10:55:45 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 16 Feb 2022 10:55:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantherx.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; bh=LkMLKwlntu+oz9 HxOYNHCEvxUe0jItvs4WZTxK4nIdk=; b=nc7KWDV5rnwpUPbcSna/w4J2fGWawA ilhbMb+rurTzXCpyZbpeMMuyvwXWCMcGbydZHKQ5yUCGWhQXUcYGElFxRPDivj6e xyo1JJiHzrlmiKKlmuXb0FXyWnhDCwfDdekSnOTA2+kkA0/J6YB4hpS/GbrSM245 sVFVmuhapKex3j/ZEXaGSFt6hGWD7wf+2nBmvIaskOLXtKbxJz5NKWpKENITEYy1 lqcxEjZi3uqUkAGtVDqhu4ts/4uiCM2+dSeDR0f3XhyFaKfswCrQFl7Ey+UGG53o rwg4FyoJsIlAXA9eCNt92ljH8jAwCqy+Sk8fmX1cXZmMga5pcQlocybQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=LkMLKwlntu+oz9HxOYNHCEvxUe0jItvs4WZTxK4nI dk=; b=VPZIbBG3pLOZtbNWgtk8V4CCTmuKRydEPJxy4uskTa+ISHUPyCfhhbLX+ Igv8Wga1mluu9w1DVwpfL8ez5ybeqg2oQmq9GFuOrEY4U+F8GngCOLYTRsxhnwbh MjsB01o9NeWNvYJPJPZW+Nif2w9EGOcP1uiYZKpyQPWAEP+h1f+TpZ7eryUfqboV OLorG2p81KZW1ILpYgGk7Jp0eFVdYbTpIWZyMhREqc/ml56j8Y0ftm+RD9bfV1Ne 2cC1zf9Gs+F7X1yPeOMMb1YQy0eOztX7i7Qkt3iEmQHjQMpt0l3/J3jOS30MPQk0 3SW2PkRCT4Lqz3m33nKzjUJT9R6Ew== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrjeeigdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfgjfhhoofggtgfgsehtqh ertdertdejnecuhfhrohhmpeftvgiirgcutehlihiirgguvghhucforghjugcuoehrrdhm rghjugesphgrnhhthhgvrhigrdhorhhgqeenucggtffrrghtthgvrhhnpeejhefgvddtke ffvdduffeihedtjeeiueeufeeufedthedthfejudeitdeftdeiudenucffohhmrghinhep ghhithhhuhgsrdgtohhmpdhprghnthhhvghrgidrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehrrdhmrghjugesphgrnhhthhgvrhig rdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 16 Feb 2022 10:55:44 -0500 (EST) Date: Wed, 16 Feb 2022 19:25:40 +0330 From: Reza Alizadeh Majd To: Stefan Subject: Re: U-Boot for Raspberry Pi Message-ID: <20220216192540.13fdd4b5@pantherx.org> In-Reply-To: <6B4DB50F-085E-416D-A643-68BAE94B88AD@vodafonemail.de> References: <2907A11C-DF13-469F-A0EC-CA70ABAC61B0@vodafonemail.de> <6B4DB50F-085E-416D-A643-68BAE94B88AD@vodafonemail.de> Organization: PantherX X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.25; envelope-from=r.majd@pantherx.org; helo=out1-smtp.messagingengine.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, 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=1645027197; 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=LkMLKwlntu+oz9HxOYNHCEvxUe0jItvs4WZTxK4nIdk=; b=OYrtRqhe3yiFUFSg856uyaCkAYFNdX0utrg2sEHWaRNalLRa7yArcocJolOlA65TfZXwXu PwZsFqXhdpZeD5RG9r1v8++k2ya4+t8D8cmpsrGOmoWol+UaL+xoDgmT6n7XYrIrHiu9Cn j/v/ThV+pf/TdHwGkdkhzUixAMH2hjEesHHn9BFHavAhDXmGn95mUdMDa3GDpNmgoo4NBE IdPWtO3LRMNAh1HdJ31wN3jvpkZXjioKGo1QbYmYdQkJgdK+M7t7xxziIob/4ztCXxOYRk cxuXKA48ksbneV6TNCCdnPtsiHhjCtVmqIRnxCeOefoFRAGeL90x36w9DlAMag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645027197; a=rsa-sha256; cv=none; b=JLeoCfhh+DLzUCtaNTykR17QWg29nuq5Yi1GFlNjmuNnHFOAgCU11iE3c2IR5/Gxk41V+d L0+opD3oYCwEPgbCWiiYzUwmMxN4oK34MudloqatwYGVZiLtxBdvHaM8OT6zIszLRNzjD3 5MiQJuUsNIRJd2fcaydv/+GUFdmdMhqqY+ulWmaKfQaVtwiiMZ4pfQUhNlnq79+BSw66WT WoNN77jpUNPGNcT5tQhNo7PQoxzcsMBpEknBQgheBnPbo2Sory1OVjHlJpUYwEKI9gscbN NlKCG2r13kZyuIiRP6wGkImgy15crtvtzvFxwQnTP+JwjQn1ynpaCmtzihb/bw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pantherx.org header.s=fm2 header.b=nc7KWDV5; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=VPZIbBG3; 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: -3.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pantherx.org header.s=fm2 header.b=nc7KWDV5; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=VPZIbBG3; 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: 067B9364C6 X-Spam-Score: -3.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: tZ3ws56hu/1C Hi Stefan,=20 First of all, thanks for your great work to bring the Guix for RPi.=20 >Your troubles might indicate that you didn=E2=80=99t properly mount the ex= t4 >and FAT file systems below /mnt. You should follow the manual >regarding an EFI system=C2=B9: Mount the ext4 partition of the microSD card >at /mnt and the FAT partition of the microSD card at /mnt/boot/efi =E2=80= =93 >you will have to call =E2=80=98mkdir -p /mnt/boot/efi=E2=80=99 after mount= ing the ext4 >partition and before mounting the FAT partition. > >> Do you have different suggestion on how to invoke the guix system >> init command? =20 > >Please separate build and installation. First build guix as described >in the manual=C2=B2 without any sudo but inside its build environment with >the amount of cores you like to use: > >$ guix environment --pure guix >$ ./bootstrap >$ ./configure --localstatedir=3D/var >$ make -j 4 >$ exit > >Then use the new guix outside its build environment to initialize the >system with sudo: > >$ sudo -E ./pre-inst-env guix system init --system=3Daarch64-linux >gnu/system/examples/raspberry-pi-64.tmpl /mnt I just followed your instructions from Guix host machine, but I faced following error during the `guix system init process:=20 --8<---------------cut here---------------start------------->8--- @ unsupported-platform /gnu/store/4dc56sq286h0pdvs0s6917vvzlr9xsrg-module-i= mport-compiled.drv aarch64-linux while setting up the build environment: a `aarch64-linux' is required to bu= ild `/gnu/store/4dc56sq286h0pdvs0s6917vvzlr9xsrg-module-import-compiled.drv= ', but I am a `x86_64-linux' --8<---------------cut here---------------end--------------->8--- it seems that the `--system=3Daarch64-linux` doesn't work as expected to cross-compile the image for RPi.=20 here is more details about my build process:=20 - I tried to build the Guix for RPi compute module 4 with embedded 32GB emmc.=20 - identified the `rootfs` and `boot` partitions using usbboot [1]. - mounted the `rootfs` to the `/mnt` - created the `/mnt/boot/efi` prior to mounting the `boot` partition there.=20 - added following required initrd modules to the system configuration. --8<---------------cut here---------------start------------->8--- (initrd-modules (append (list "uas" "usb_storage") %base-initrd-modules)) (initrd-modules (append (list "uas" "usb_storage") %base-initrd-modules)) --8<---------------cut here---------------end--------------->8--- 1. https://github.com/raspberrypi/usbboot Best,=20 Reza --=20 Reza Alizadeh Majd PantherX Team https://pantherx.org