From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eORxv-0001oE-4P for guix-patches@gnu.org; Mon, 11 Dec 2017 12:34:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eORxq-00023k-TA for guix-patches@gnu.org; Mon, 11 Dec 2017 12:34:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48469) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eORxq-00023G-OY for guix-patches@gnu.org; Mon, 11 Dec 2017 12:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eORxq-0006z8-FT for guix-patches@gnu.org; Mon, 11 Dec 2017 12:34:02 -0500 Subject: [bug#29409] [PATCH] system: Add BeagleBone Black installer. Resent-Message-ID: Date: Mon, 11 Dec 2017 17:32:56 +0000 From: ng0 Message-ID: <20171211173256.p7onixr6if6wcpyz@abyayala> References: <877euhtjkj.fsf@gmail.com> <1512636765-3322-1-git-send-email-m.othacehe@gmail.com> <87zi6pus80.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="hzvstk2qgywvipow" Content-Disposition: inline In-Reply-To: <87zi6pus80.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 29409@debbugs.gnu.org --hzvstk2qgywvipow Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s transcribed 1.9K bytes: > m.othacehe@gmail.com skribis: >=20 > > From: Mathieu Othacehe > > > > * gnu/bootloader/u-boot.scm (u-boot-beaglebone-black-bootloader): New e= xported > > bootloader. > > * gnu/system/boards/beaglebone-black.scm: New file returning bbb instal= ler. > > * gnu/local.mk (GNU_SYSTEM_MODULES): Add new file. >=20 > [...] >=20 > > +(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"))) >=20 > Could you add a comment explaining what=E2=80=99s specific to the BBB, pe= rhaps > with a link to relevant documentation? >=20 > > +++ 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) >=20 > I=E2=80=99d be tempted to just add it to (gnu system install) and then we= =E2=80=99d do: >=20 > guix system disk-image -e '(@ (gnu system install) beaglebone-black-ins= tallation-os)' >=20 > WDYT? >=20 > Of course we first need to add support for -e but that should be fine. > ;-) For portability (extending into more templates and more installers etc) this seems like a nice idea. For example: you want to have a minimal XFCE image with just one definition, and you want to maintain deriviates of this minimal XFCE image in the same file. Or more in the spirit of this thread: You have one system install definition, but for hardware compability reasons you need to change some tiny pieces in it and add 3 variants for various hardware architecture. This would allow me to reduce infotropique/system/{core,$arch-core,$arch-$wm,=E2=80=A6} or something like infottropique/system/$arch/$wm to a more clean library overview. Just as a potential reference sneak-peak without much context ;) > > +beaglebone-black-installation-os >=20 > Now that sounds really awesome. :-) >=20 > So you=E2=80=99ve successfully installed GuixSD on BBB using this image? >=20 > Is the BBB powerful enough to run =E2=80=98guix pull=E2=80=99? (I have a= n Olimex A20 > with 1G of RAM that just dies.) >=20 > For small devices, it would also make sense to (cross-)build a > ready-to-use GuixSD image and just write it to the device. >=20 > Thoughts? >=20 > Anyway, kudos on that one! I think you owe us a blog post with pictures > of the BBB running GuixSD. :-) >=20 > Ludo=E2=80=99. Definitely very exciting! --=20 GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 GnuPG: https://c.n0.is/ng0_pubkeys/tree/keys WWW: https://n0.is --hzvstk2qgywvipow Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlouwUgACgkQ4i+bv+40 hYjEnw/+O585x9jzSt7OjZhezjWwuaUULppr+2QiOpudDqViQcZ/d1jngK5GrECx blsU0TB5WpEQSKlNfkvBQhRgHXvcUbRe0oAKQBBZTA0hKw5kNas+rOtQKo1NZ+fX lfBBzEnLH6rN5MpRmoHIaXoK+UGdC/oo+4j6EG+YUkMkZ3PKQVW3CwSpa2Q73bnt gO8efS+66Hh54+6XWmWI3zBUMsU8EB6xlTAAFrhvKYo8MoEz+dEiiAxQmEl+l8Aq gAd7LqlxPBf177zU+Xx3JKxoEo2qgdhDewv9RfkSWDzxxWpK7WQhrqV5mhbV9n6S xVPbsp9Zm3V846uf+4YlYity/K5EaaiHVAsq9CAumU8q9pZcI53egA+0/9lkAL+j jMUkWdoXy+jWjZsQk7TzKlKGf18T72km7F8JwIesw8okHKvKK6IfKUNpr/2/ujRt akfjgoR54CqX9lyqyZKIs/YWsVKODXMYDTKS3lXhGSbYRIdYdDIf+mmIorKsDpI7 KYSllYuHneD0NKxzZF5KrECVtKHTlh2tGGWY9TvnoI+En0x7vUkMLQ7y1rW8FATY 632/z1jlTbG7Z6SCBEFh4AMM1U4w1OFhFCsGE0Szz6hhzJTQUCBDF4wdih23msly KWnO6rEicDVsaVdAVEtqbBjQjjMbkuf8QVc/V9sIneHE8uP5uIo= =X7iO -----END PGP SIGNATURE----- --hzvstk2qgywvipow--