From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cMQ/CVit12LUZQAAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 09:23:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uFQmCVit12IuBgEAauVa8A (envelope-from ) for ; Wed, 20 Jul 2022 09:23:04 +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 AA5FECB5E for ; Wed, 20 Jul 2022 09:22:59 +0200 (CEST) Received: from localhost ([::1]:51478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE42s-0005Hl-H6 for larch@yhetil.org; Wed, 20 Jul 2022 03:22:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE3x8-0005XH-IG for guix-patches@gnu.org; Wed, 20 Jul 2022 03:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE3x8-0000Wu-92 for guix-patches@gnu.org; Wed, 20 Jul 2022 03:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oE3x7-0003A2-TS for guix-patches@gnu.org; Wed, 20 Jul 2022 03:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48314] [PATCH v3] Install guix system on Raspberry Pi Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Jul 2022 07:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Stefan Cc: Vagrant Cascadian , dannym@scratchpost.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , 48314@debbugs.gnu.org Received: via spool by 48314-submit@debbugs.gnu.org id=B48314.165830141312128 (code B ref 48314); Wed, 20 Jul 2022 07:17:01 +0000 Received: (at 48314) by debbugs.gnu.org; 20 Jul 2022 07:16:53 +0000 Received: from localhost ([127.0.0.1]:55711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE3wz-00039X-0y for submit@debbugs.gnu.org; Wed, 20 Jul 2022 03:16:53 -0400 Received: from mail-4322.protonmail.ch ([185.70.43.22]:55775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE3wu-00039H-4M for 48314@debbugs.gnu.org; Wed, 20 Jul 2022 03:16:51 -0400 Date: Wed, 20 Jul 2022 07:16:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1658301401; x=1658560601; bh=u4gbV7LEyga3zXt30KqOPqCPhB874j5pxYwvlqLu4Fg=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=KRDRrswa5ip98mL/0+rufBWdWiZdu19I1ShAQUE5G+rBml6m+NQhUwNPLICBr8Yq8 M/ZrUh1bdBjrZj7cnvmQD9P2iwDc1bv/hqe86PQZRSNFyAhrrAnzw+0X0PPSpfOcM2 CXdR5DfRKD8yFKFAsRHcIAvNy31OLBzoCMlg7j4XvlBgT/G+4+z7Ycbz3OyWiCf2bT vF9zfO+U9wkTF1sn6DLY0S2bq96PmSJGP/ZQJcXE6HQJ8KintFeBF22wCwczIotnIh TH3ZY4eDdAjsH816w0nzdWVaaVPxHMqCF/0hemgYBKH12L69FPSkEgQPAOcGZ7/ZJ2 KKgUDtm/WU3/w== Message-ID: In-Reply-To: <9A647306-1C70-4A55-B6AB-35A414E6E633@vodafonemail.de> References: <9A647306-1C70-4A55-B6AB-35A414E6E633@vodafonemail.de> Feedback-ID: 14143818:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via 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=1658301779; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=u4gbV7LEyga3zXt30KqOPqCPhB874j5pxYwvlqLu4Fg=; b=rH+96VB77Dj213rGyUDLGwjP6W74zTEexjH+Vxroc+D9RpN0j7oQzq0zQ63M5+VOkb4OmG Wd8Y6LP2u+NEBZxw/CEXFI4hNp+sxKJ04XVeDJCWU3aNGV2yUsCxXp4boNp6cLVnVQ329y NVF79B+Y6oSNJcQyPO9L9uEznRoI7jkD5EjvwPvNfBMZKJ3+KKNVucCJjHIxe8DsaDw27N u++eJujjsEVR/e0u0BtTRQpT0/2RIZrveBLeUhRIUjZyVe76fj108eXQ00tNWoA/ANpPYu kLRaa4kRg3NQ2Q01iIyz8/c8ewgfq9CpBgOsL3Z7F/h2xMOevXIcAsuM7otHFQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658301779; a=rsa-sha256; cv=none; b=UQ5xWQBm/QKV69bU+LvF20k3miOiuO/HVjnW97cW7HBOKFb/upJahsTMBVdw5A7uDQPl10 JDzHGMFRcpB2J0n8TTD/PsaMLFwUCMq2yXDVQIOy6JR94KHq+vRG2ODfvinqiWVZW4M/6o nqFCiuQxOoBklkWQnwBQDRVbuRCV2rdwgS9xm9Gj9V5o0oH8Q6/nXcws7fiwWfTEGD4AEV duR5ZT387t1OB0idx0t7iz4uhJlEggE7k0ZdJBEjUcuHkg7TdoW8u6n2+teUmZBj5ugCUj lOuHMBkyG8EdRpEHLpdjOJio3lTOmWsJzt5/bgGkXeZz56ckznjN0L6jI+/e9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=KRDRrswa; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=KRDRrswa; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AA5FECB5E X-Spam-Score: -3.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: zcWi5pE1Cuwh Hi Stefan, > > So now I get some weird guix error during copying files: > > > initializing operating system under '/mnt'... > > copying to '/mnt'... [#################### ]guix system: error: readdir= : Bad message > > copying to '/mnt'... > > > The function make-grub-efi-netboot-installer in gnu/bootloader/grub.scm f= irst uses copy-recursively to copy the collection of bootloader files to /m= nt/boot/efi and creates afterwards the symlinks to /gnu/store and /boot/gru= b/grub.cfg or =E2=80=93 as in your case =E2=80=93 creates a /mnt/boot/efi/e= fi/boot/grub.cfg to point GRUB to the root partition to access /boot/grub/g= rub.cfg and /gnu/store. > > Yesterday your guix system init struggled to create these symlinks. That = means it was already done with the copy-recursively call. > > I=E2=80=99m pretty sure that this copy-recursively is using readdir inter= nally. The functionallity afterwards is surely not. > > Yesterday you also got the message =E2=80=98populating '/mnt'=E2=80=A6= =E2=80=99 before the symlink struggle. Therefore I assume that your current= error has nothing to do with the bootloader installation. > > Maybe there are leftovers from yesterday in /mnt, which prevent guix to c= opy files sucessfully onto /dev/mmcblk0p2? > > Reformatting the ext4 filesystem might help. the issue seems to be connected to my guix instance on the host. I got anot= her weird messages and what finally help was to clean the profile cache in = my home dir. I then reformatted the SD card just to be sure. # parted /dev/mmcblk0 GNU Parted 3.5 Using /dev/mmcblk0 Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) p Model: NORELSYS 1081CS0 (scsi) Disk /dev/mmcblk0: 31.3GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 269MB 268MB primary fat32 lba 2 269MB 31.3GB 31.0GB primary ext4 And then I also copied the firmware files [1] neccessary to boot: $ ls /mnt/boot/efi bcm2708-rpi-b.dtb bcm2710-rpi-2-b.dtb bcm2711-rpi-4-b.dtb efi= / fixup_db.dat start4.elf bcm2708-rpi-b-plus.dtb bcm2710-rpi-3-b.dtb bcm2711-rpi-cm4.dtb fix= up4cd.dat fixup_x.dat start4x.elf bcm2708-rpi-b-rev1.dtb bcm2710-rpi-3-b-plus.dtb bcm2711-rpi-cm4s.dtb fix= up4.dat LICENCE.broadcom start_cd.elf bcm2708-rpi-cm.dtb bcm2710-rpi-cm3.dtb bootcode.bin fix= up4db.dat manifest start_db.elf bcm2708-rpi-zero.dtb bcm2710-rpi-zero-2.dtb bootloader.txt fix= up4x.dat overlays/ start.elf bcm2708-rpi-zero-w.dtb bcm2710-rpi-zero-2-w.dtb config.txt fix= up_cd.dat start4cd.elf start_x.elf bcm2709-rpi-2-b.dtb bcm2711-rpi-400.dtb dtb.txt fix= up.dat start4db.elf u-boot.bin The board powers up and I see the RGB screen when the raspberrypi boots. Th= en it switches to black screen and I don't see any output on the HDMI. Also= there is no IP address assigned on the Ethernet even though the port itsel= f is active. I haven't run tcpdump or attached serial adapter yet so I don't know what's= wrong and where the system hangs. I'm testing this on Raspberry Pi 4. [1] https://github.com/raspberrypi/firmware ---- Petr