From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yI9iNrWZvWaTdAEA62LTzQ:P1 (envelope-from ) for ; Thu, 15 Aug 2024 06:01:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yI9iNrWZvWaTdAEA62LTzQ (envelope-from ) for ; Thu, 15 Aug 2024 08:01:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GUNjsMDK; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723701685; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=/qm4ksT2qd2K9AYPnO8fAjRvdgunixkvd5xKsOiaMbY=; b=P8js28cq1g1Gfqnof+4ag8b2ZQIyB0+hzAk1MVV6bxOvmmxARn3keT9hAdbnz3ro5cfQGp 66LI2oOljg6bTiMHK/ojDdbSLXj5xh+b9lmHGLj25drSMTgnuBE7IcgkVRuu1WaQL87Sna Xp446Pqz+iapiCIrfHq9CXt5UtvDiEIbDrdc/8zmej4RXx+TJHQpKe4aDHqtZqtcWCTSiW 9v2LWBaHD2ujn8ZrvV0Xiyr2ViyX2/rBS2YJ/5J/kBoNxeY26F0n/Xc6yVyIv6aMJAQYw7 CRJ74HjlisxamtuvzvwwrPH8+gYWz0/ZuTB4KIEPr2+1F5Qi/KRCpoS2pWrcDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GUNjsMDK; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723701685; a=rsa-sha256; cv=none; b=Z119W25f4dYcs8RcVhHoKCk9q211rC4y4iD8P0oAsCT4bGWNPnuJDzNlSJ9n+HBNx0i31e R+y1x39P1MJLshkAaZ1t8N5w8uzp/qm0CzTBEhajkNOw1aQ7Yo7hY1cJtgIwUZpRKYaVny mNOw0gDw1BB3V3bT/rEvVY6QsRC7VBXXcaaMoXQTiOof8eAzciYpXNgLNZOvoLd5tSeP/y v4XG6UruZMvLSXTl0Z22/NAcd/dpueG2uA5TrX9chk97Q+dMVaYI1JHBnxGfSn1zZWgJSP 7nAg8uJ+8KPQGJnkLAIq6fFLpcT265Hz3B5NKwQPZJAW7RIesAPlDaCEFzMTZQ== 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 A25EC1488E for ; Thu, 15 Aug 2024 08:01:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seTXE-0002iI-51; Thu, 15 Aug 2024 02:00:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seTXA-0002hK-Br for help-guix@gnu.org; Thu, 15 Aug 2024 02:00:29 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seTX4-0007Iz-K3 for help-guix@gnu.org; Thu, 15 Aug 2024 02:00:27 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B49C7240027 for ; Thu, 15 Aug 2024 08:00:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1723701613; bh=AtQ7+CEDMuzIrU4tLKsuL4DG9BRZ6qW19R2RbFd2CZE=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=GUNjsMDKYKYEPFlFmXbiT8p8ivjdOx9dWJIhbQi55EX9un+yRPgXzBIB+9lbAjti9 FjpZdhEBk2pS3DB74EEJkiaNFK8qPz/wL5AgoqGvn5aVITqQUv+FzK3wfRsrf/azmd bYPFchzjERE9r2PUyLp546jFd+yDKtTGpPGeJOv013OCWtilZmjKmz/b8ljGiwBImu RJlk3PW7RvKvhJG2AgcsiPct6t/4/9eLVstXKqz2EL4SHyZMoo2leOpedIFpi7Dsmg r6Ot8KQBoo5ibNHcchF9Mr0YbLqP8swvOOn6pgcaGVORMF8jj+hoa8BhkFhGbxDJIw 96pGlPt5I21vg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Wkvbx0SYyz9rxF; Thu, 15 Aug 2024 08:00:12 +0200 (CEST) From: Fredrik Salomonsson To: Adrien 'neox' Bourmault , help-guix@gnu.org Subject: Re: Anyone built coreboot on a Guix system? In-Reply-To: References: <87plqd8x3p.fsf@posteo.net> Date: Thu, 15 Aug 2024 06:00:10 +0000 Message-ID: <87cyma72c5.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=plattfot@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: A25EC1488E X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.18 X-Spam-Score: -9.18 X-TUID: pav2BqYlGxtu Hi, Adrien 'neox' Bourmault writes: > Le lundi 12 ao=C3=BBt 2024 =C3=A0 17:33 +0000, Fredrik Salomonsson a =C3= =A9crit=C2=A0: >> Hi Guix, >>=20 >> I was trying to build coreboot for my wife's Lenovo x220 laptop this >> weekend but I wasn't successful.=C2=A0 I've built it before for my own x= 220 a >> few years ago but that was before I migrated most of my machines to >> Guix.=C2=A0 It was quite straightforward (not taking configuring coreboot >> into consideration=F0=9F=98=85).=C2=A0 Figured I'll do the same with my = wife's x220 as >> the brightness control does not work on her laptop after I installed >> Guix.=C2=A0 It works perfectly fine on mine and only difference is the b= ios >> (yay reproducible nature of Guix!). >>=20 >> Coreboot insists on building its own cross compilation of GCC for i686. >> And it wants Ada support.=C2=A0 I looked into adding a `gcc-ada-toolchai= n` for >> Guix but it looks like in order to build Ada for GCC you need GCC with >> Ada support=E2=80=A6 >>=20 >> Has anyone manage to build coreboot on a Guix system?=C2=A0 And if so ho= w did >> you setup the build environment to be able to do so? >>=20 >> I did get it somewhat building by just jump into a Ubuntu container via >> distrobox.=C2=A0 But it's a bit flaky with certificates, I need to hunt = down >> environment variables set in my Guix environment and unset them for >> things to work properly in the Ubuntu environment. >>=20 >> Thanks! >>=20 > > Hi, I'm lacking time right now to explain everything but I'll do tomorrow= . I'm a > maintainer of GNU Boot and worked on porting GNAT on Guix, and succeeded = to do > so privately because I use Guix as my main distro. It's not ready for me = to > upstream it, but in a few weeks probably. > No worries, I found a simple workaround for now. I realized just after I sent the email that I already got a built coreboot rom. Which is the one my x220 runs on. So today I simply copied that off the chip from my machine using flashrom and then flashed that to my wife's machine. Followed the troubleshooting tips [0] to fix grub. Cleaned up the connections in network manager as the device name for the WiFi had changed. Now it's back to normal but with working brightness controls! Not sure if GNU Boot supports x220, if it does I wouldn't mind testing it on Guix once you are done with the GNAT port. I got a spare x220 that I use for testing things like this (to avoid bricking mine or my wife's laptop). [0] https://guix.gnu.org/manual/en/html_node/Chrooting-into-an-existing-sys= tem.html --=20 s/Fred[re]+i[ck]+/Fredrik/g