From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eORFM-0004iy-SY for guix-patches@gnu.org; Mon, 11 Dec 2017 11:48:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eORFK-0005kO-35 for guix-patches@gnu.org; Mon, 11 Dec 2017 11:48:04 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48444) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eORFJ-0005kI-W7 for guix-patches@gnu.org; Mon, 11 Dec 2017 11:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eORFJ-0005g1-Mj for guix-patches@gnu.org; Mon, 11 Dec 2017 11:48:01 -0500 Subject: [bug#29409] [PATCH] system: Add BeagleBone Black installer. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <877euhtjkj.fsf@gmail.com> <1512636765-3322-1-git-send-email-m.othacehe@gmail.com> Date: Mon, 11 Dec 2017 17:47:27 +0100 In-Reply-To: <1512636765-3322-1-git-send-email-m.othacehe@gmail.com> (m. othacehe's message of "Thu, 7 Dec 2017 09:52:45 +0100") Message-ID: <87zi6pus80.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: m.othacehe@gmail.com Cc: 29409@debbugs.gnu.org m.othacehe@gmail.com skribis: > From: Mathieu Othacehe > > * gnu/bootloader/u-boot.scm (u-boot-beaglebone-black-bootloader): New exp= orted > bootloader. > * gnu/system/boards/beaglebone-black.scm: New file returning bbb installe= r. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add new file. [...] > +(define install-beaglebone-black-u-boot > + #~(lambda (bootloader device mount-point) > + (let ((mlo (string-append bootloader "/libexec/MLO")) > + (u-boot (string-append bootloader "/libexec/u-boot.img"))) Could you add a comment explaining what=E2=80=99s specific to the BBB, perh= aps with a link to relevant documentation? > +++ b/gnu/system/boards/beaglebone-black.scm > @@ -0,0 +1,33 @@ > +(define-module (gnu system boards beaglebone-black) > + #:use-module (gnu) > + #:use-module (gnu system install) > + #:use-module (gnu bootloader u-boot) > + #:use-module (gnu packages bootloaders) > + #:use-module (gnu packages linux) > + #:export (beaglebone-black-installation-os)) > + > +(define beaglebone-black-installation-os > + (operating-system > + (inherit installation-os) I=E2=80=99d be tempted to just add it to (gnu system install) and then we= =E2=80=99d do: guix system disk-image -e '(@ (gnu system install) beaglebone-black-insta= llation-os)' WDYT? Of course we first need to add support for -e but that should be fine. ;-) > +beaglebone-black-installation-os Now that sounds really awesome. :-) So you=E2=80=99ve successfully installed GuixSD on BBB using this image? Is the BBB powerful enough to run =E2=80=98guix pull=E2=80=99? (I have an = Olimex A20 with 1G of RAM that just dies.) For small devices, it would also make sense to (cross-)build a ready-to-use GuixSD image and just write it to the device. Thoughts? Anyway, kudos on that one! I think you owe us a blog post with pictures of the BBB running GuixSD. :-) Ludo=E2=80=99.