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 UCzaDVEfNGENBQAAgWs5BA (envelope-from ) for ; Sun, 05 Sep 2021 03:37:21 +0200 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 sDOGCVEfNGGfDQAA1q6Kng (envelope-from ) for ; Sun, 05 Sep 2021 01:37:21 +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 71BF316337 for ; Sun, 5 Sep 2021 03:37:20 +0200 (CEST) Received: from localhost ([::1]:40904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMh5y-00030J-PB for larch@yhetil.org; Sat, 04 Sep 2021 21:37:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMh5p-000307-0f for help-guix@gnu.org; Sat, 04 Sep 2021 21:37:09 -0400 Received: from dustycloud.org ([50.116.34.160]:58542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMh5n-0004zj-7N for help-guix@gnu.org; Sat, 04 Sep 2021 21:37:08 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 4DB362661B; Sat, 4 Sep 2021 21:37:02 -0400 (EDT) References: <87ftcaqxer.fsf@dustycloud.org> <874kbogf1h.fsf@dustycloud.org> <877dgjd441.fsf@d2.com> User-agent: mu4e 1.6.2; emacs 27.2 From: Christine Lemmer-Webber To: Fredrik Salomonsson Subject: Re: Guix on the MNT Reform Date: Sat, 04 Sep 2021 21:31:08 -0400 In-reply-to: <877dgjd441.fsf@d2.com> Message-ID: <87mtordcqq.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=50.116.34.160; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630805840; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=05e8c9uq1+yL+F/K2JmMEQZPxBNIsONnm5aNFxZs3pM=; b=g/WaDu2PQAfHvZMxea2VnzcHsHGWIEqMNZ3FT/7UpvvmNSodt3XLlkj2tNlq2C8v9NC1do a54tXTJWB21c7HUvJXB3GFG+0r8aURhqKjpLAw/ShPy5SgDd1dTIs8YcAyrtcWC+7y8WYf CU2HR3K8ZJORK4irXNdyV24FF3UcUX+ajs29d7coo/yPyIc9hYB8epHnVBGktiL+H1k2l0 pQKEKHNiLlFgjTpmDwehp1yBA3BVt0AWouWCUnKA/rOt2AWJZqpxKsoJGqkZ5JTrqR1zV/ 5v+PZLku5TV7ezfSotiWXVgcjFNVqcd9YdgPYQpvDU928783bl8sxB0aZCt09A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630805840; a=rsa-sha256; cv=none; b=Bn3meSsHKohscTH3FpintthqaFlyiPpJcTtVJN0s1hTLAxZTQDGrduQs4vK/9jueqm5Qtc +t1Se9/XPiPBGHRKcXoV3oZy6eT8VdckSKqKllTnCUmDtPwS5oKbTvz6ZwzRsGbtIsH/SC zIxnV3+x6Y6WYnO1X+9k5+OXk2n1Re8EA0AU4IevyH5/6iRW+T/IxBpaYBSxJfVqcwTvFr /C7SQz0h5k+DQuXM+s5yCSZBlr0SFFaO89KZGojNiqkY3Q1iuN1rIKYb02sI6CmDkfbdKR zgdgf3V+sht6w72PGTVkEK3tZ8lB580kr5I16zmQlO5ljD32OQbgFr4FHvm5pw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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.88 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 71BF316337 X-Spam-Score: 3.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: clymBGxib/qk Fredrik Salomonsson writes: > Christine Lemmer-Webber writes: > >> Hi! Well my MNT Reform arrived. I'd like to start putting Guix on it >> but I'm kind of low on time right now... > > I got mine last week! Neat! >> I wonder if anyone else has started making progress towards this? > >> What I'd love: a tutorial that says "here are the steps to make an sd >> card you can boot your reform with"! > > I'm planning to start hacking on that once I've found a NVMe that works. > The XPG SX8200 Pro 1TB I bought for it had serious issues with access > times. Next up is to buy a WD Blue SN550 1TB and hopefully that will > work. Cool! Hope it gets up and running soon. In the meanwhile, some local notes... It looks like the relevant info to get going is here: https://mntre.com/reform2/handbook/advanced.html#system-boot There's a script to compile a custom u-boot: https://source.mnt.re/reform/reform-system-image/-/blob/main/reform2-imx8mq/mkuboot.sh #+BEGIN_SRC bash if [ ! -d u-boot ] then echo "Cloning U-Boot..." git clone --depth 1 https://source.mnt.re/reform/reform-boundary-uboot.git u-boot fi cd u-boot cp mntreform-config .config export CROSS_COMPILE=aarch64-linux-gnu- export ARCH=arm # build rescue u-boot first (loads kernel from eMMC) make -j$(nproc) flash.bin KCPPFLAGS='-DMNTREFORM_BOOT_EMMC' cp flash.bin flash-rescue.bin # build normal u-boot second (loads kernel from SD card) make -j$(nproc) flash.bin cd .. #+END_SRC So that doesn't look to complicated. Here's the custom u-boot: https://source.mnt.re/reform/reform-boundary-uboot It says: "Fork of the vendor (Boundary Devices) u-boot for Reform 2, with minor tweaks. The goal is to migrate to mainstream u-boot or barebox ASAP. The main impediment so far is the 4GB RAM config." So we probably want to make a u-boot-mnt-reform in gnu/packages/bootloaders.scm So we probably want to use "guix system image" and then add: gnu/system/images/mnt-reform.scm Ideally in the end we should be able to do: guix system image --image-type=mnt-reform my-os.scm So yeah, the rest of the pieces to figuring it out seem to be all here: https://mntre.com/reform2/handbook/advanced.html#system-boot It *seems* like this should all be possible... - Christine