From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +IEiLLsdgWFgLQAAgWs5BA (envelope-from ) for ; Tue, 02 Nov 2021 12:15:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oKDdJ7sdgWGaGgAA1q6Kng (envelope-from ) for ; Tue, 02 Nov 2021 11:15:07 +0000 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 E5E2FBC6B for ; Tue, 2 Nov 2021 12:15:06 +0100 (CET) Received: from localhost ([::1]:35074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhrkv-0007Xt-EJ for larch@yhetil.org; Tue, 02 Nov 2021 07:15:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhrX8-0000rm-Fj for help-guix@gnu.org; Tue, 02 Nov 2021 07:00:50 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:59929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhrX5-00073p-De for help-guix@gnu.org; Tue, 02 Nov 2021 07:00:49 -0400 Date: Tue, 02 Nov 2021 11:00:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1635850840; bh=0GFgm4MUxDNTxOWSdUVoWP3snKTd04GK+4oFhgLrfsM=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=YL0BGUzolN6+HHFe/enjxf8EaKGw1cA39POdXJkGCmaBGwUjIEg12MwGbVij+ILgY 8THgOn1IiJB01O7QBXj4nRbu0Yw1ilFge3ZU4d4KFE/lBztxUCTnV2LxNwSX0Z/tB+ w903EK30N5MNP0RiY9vmA8p5i8ykfbNeAwbQXq+8= To: Stefan From: phodina Cc: help-guix@gnu.org, Vagrant Cascadian Subject: Re: U-Boot for Raspberry Pi Message-ID: In-Reply-To: <2907A11C-DF13-469F-A0EC-CA70ABAC61B0@vodafonemail.de> References: <2907A11C-DF13-469F-A0EC-CA70ABAC61B0@vodafonemail.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.133; envelope-from=phodina@protonmail.com; helo=mail-40133.protonmail.ch 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, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: , Reply-To: phodina Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635851707; h=from:from:sender:sender:reply-to: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=0GFgm4MUxDNTxOWSdUVoWP3snKTd04GK+4oFhgLrfsM=; b=fKuYTl30+3KGZVzWs/FkNbgNRbmnHiGV4DmVB2m+QqkVscPIUKWC6ctGcQPqNpdsRj69BG ZDq4xOvkbo4OlcqKdK63JQFzgbskLVcNP5xQjNimEMPUAhAcmf16cDfC4jpkDvuYmXKelA L+Ohtk3Q7+WFS3/Dphh0nlRqCJ0Z4wK5kDUja+eCMitX9nTyJlP55ssp8g1pOXmcM6jc9x avLTmJKmey2ZbGvAqbG5s3lA6+q89PM19SrfUvdisORzHsxjsyFgKig6mYUjp0LMaoz9Y4 IqlYIn6oPGCtLLNRxGSEavTkMIZR7UqduObTzO9O3ce2cOI9GVGYwEDqJ79mpQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635851707; a=rsa-sha256; cv=none; b=dx7pVcdcLk2pduHR2hvTgX9GhhmX70DdHTLoIkHRaocW6oHRHxAb9NCbmgaP3zL+xfzaST bwT2q3/9/0INhfWx0vt7imKtGjUqGuiFF3rxQRrjXIIiYCs6a5UntnXwFhg4luiH4OuE2v c6YKziGC9U5B8DX8l5Z2yV4IqL7PSgUd3DqyNzx9VSskEJRZKqCG28lCrea3/VOAo8Gz5I xJKNatfA4VmKaW2z1xco+/z7LKNxvI8TNzRJNj6Y8edMUYKkBpQSnL6dk/08DwslWzl+SH ZyNnHU0A2K5gWCCmgoVfoeHzCwm6rNDTfW9cRMOSM8+eXozZMIS56cmP6f1gwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=YL0BGUzo; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.76 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=YL0BGUzo; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: E5E2FBC6B X-Spam-Score: -3.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: 03NnaNYcdVz7 Hi Stefan, On Monday, November 1st, 2021 at 12:09 AM, Stefan wrote: > Hi! > > There is already a patch series available since May =E2=80=93 patiently a= waiting a review =E2=80=93, which brings support for the Raspberry Pi. It e= ven supports booting via NFS, which helps to avoid all the common troubles = with microSD cards. Thanks for your amazing work! I've applied the patches and it builds the sy= stem. > > For the usual mircoSD card installation just partition and format it as u= sual, and put the well known bootloader blob on the FAT partition. Then do = a =E2=80=98guix system init config.scm /mnt/microsd=E2=80=99. The patch ser= ies contains an example configuration at =E2=80=98gnu/system/examples/raspb= erry-pi-64.tmpl=E2=80=99. However, I ran into several issues. Firstly it's hard to run the init command as it requires root. What I did is the following: sudo guix environment --pure guix --ad-hoc coreutils findutils which This gives me pure environment with the patches and root access. Do you have different suggestion on how to invoke the guix system init comm= and? Secondly I have to run the command to init the system on the microSD card w= ith the following flag --skip-checks: [env]# ./pre-inst-env guix system init -s aarch64-linux gnu/system/examples= /raspberry-pi-64.tmpl /mnt --skip-checks Otherwise I have to build with the following initrd config: (initrd-modules (append (list "mmc_block" "rtsx_pci_sdmmc" "rtsx_pci") ;; %base-initrd-modules)) But adding these the build fails. Thought they might be needed as the kerne= l needs to access the blocks on microSD. Another issue were certificates: ... initializing operating system under '/mnt'... copying to '/mnt'... [####################################################= ##### ]i/o error: /gnu/s= tore/j76446v1asknzjl5lvzp9mnrg8gxl24d-nss-certs-3.59/etc/ssl/certs/NetLock_= Arany_=3DClass_Gold=3D_F??tan??s??tv??ny:2.6.73.65.44.228.0.16.pem: No such= file or directory copying to '/mnt'... [####################################################= ############## ]i/o error: /gnu/s= tore/db3kp42msgw9f53jk5hvp2bgsaq6jdyv-profile/etc/ssl/certs/NetLock_Arany_= =3DClass_Gold=3D_F??tan??s??tv??ny:2.6.73.65.44.228.0.16.pem: No such file = or directory copying to '/mnt'... populating '/mnt'... Lastly the init fails as the FAT file system not supporting symlinks. guix system: error: symlink: Operation not permitted: "/boot/efi/gnu/store" I formatted the microSD card with FAT32 and Ext4 partitions. The FAT32 partition is mounted to /boot. Could you please help me as I've might done something incorrectly? > > Take a look here: http://issues.guix.gnu.org/48314#10 > > In hope to get more attention and interest for a review, allow me to add = two side notes. > > Ever in need for a Guix System on an USB thump drive? Give the new = =E2=80=98grub-efi-netboot-removable-bootloader=E2=80=99 a try instead of = =E2=80=98grub-efi-bootloader=E2=80=99. It is not only usable for booting ov= er network. > > Ever in need to quickly modify the kernel Linux? Give the new function = =E2=80=98modify-linux=E2=80=99 a try. For the Raspberry this is needed to g= et the kernel linux-libre working. (By the way, would Guix System be the fi= rst distribution using a libre kernel on the Raspberry?) > > For example to enable NFS root functionality for virtual machines, use a = kernel definition like this in your operating-system definition: > > (kernel (modify-linux #:configs '("CONFIG_E1000=3Dy" > > "CONFIG_ROOT_NFS=3Dy" > > "CONFIG_NFS_FS=3Dy" > > "CONFIG_NFS_V4=3Dy"))) > > Bye > > Stefan