From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Gibbons Subject: Re: guix system disk-image /etc/config.scm error: u-boot-allwinner-bootloader: unbound variable Date: Sat, 01 Feb 2020 13:33:54 -0700 Message-ID: References: <1580501925.21798.2.camel@post.su> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46844) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixzSv-0004VF-QU for help-guix@gnu.org; Sat, 01 Feb 2020 15:34:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixzSt-0003R2-Hm for help-guix@gnu.org; Sat, 01 Feb 2020 15:34:04 -0500 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:44885) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixzSt-0003Mm-Ak for help-guix@gnu.org; Sat, 01 Feb 2020 15:34:03 -0500 Received: by mail-pg1-x542.google.com with SMTP id x7so5518100pgl.11 for ; Sat, 01 Feb 2020 12:34:03 -0800 (PST) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: anon , help-guix@gnu.org On Sat, 2020-02-01 at 12:56 -0700, Jesse Gibbons wrote: > Hi anon, > On Fri, 2020-01-31 at 20:18 +0000, anon wrote: > > Hi, > > I installed guix on Armbian 19.11.6 on BananaPi M1. Command > > 'guix pull' executing correctly, but when i try execute 'guix > > system > > disk-image /etc/config.scm' it end whith error: > > /etc/config.scm:20:0: error: u-boot-allwinner-bootloader: > > unbound variable > > hint: Did you forget `(use-modules (#g549 #))'? > > > > I cant find any information about this module, what is it? > > Configuration file: https://pastebin.com/Tf5igU23 > > > > Thanks. > > > In order to boot on ARM-based machines (i.e. banana pi), guix needs > to > use u-boot. u-boot-allwinner-bootloader should be in (gnu bootloader > u- > boot). > Since every ARM computer has different hardware, you may need to make > a > new bootloader and u-boot package for your banana pi M1. You can try > greping the sources for "bananapi-m2-ultra" and making corresponding > packages for bananapi-m1. I'm afraid I can't help you if that doesn't > work though. > I have been trying to make my banana pi m2u run the guix system for > several weeks now without success because it isn't very well > documented. The installer disk image I generated doesn't work when I > dd > it to the built-in emmc (bug report pending). If the disk image you > are > generating doesn't work, try using guix on armbian to bootstrap the > system as described in the tutorial at < > https://guix.gnu.org/blog/2019/guix-on-an-arm-board/> and make sure > the > bootloader and / refer to separate partitions. > -Jesse > Sorry, I should have looked at your pastebin. If your guix is running on guile 3, @@ apparently doesn't work. You could copy the related definitions from (gnu bootloader u-boot), or you could roll back to before the guile 3 update, or you could make a channel from the current guix source with a difference that exports u- boot-allwinner-bootloader. If you aren't on guile 3, I'm not sure what's causing your error. Also, I'm looking at a list of boards U-Boot can be built for at its current version. Bananapi-M1 is not listed. Here are all the banana pi boards it lists: - Bananapi - bananapi_m1_plus - bananapi_m2_berry - bananapi_m2_plus_h3 - bananapi_m2_plus_h5 - Bananapi_M2_Ultra - bananapi_m2_zero - Bananapi_m2m - bananapi_m64 -Jesse