unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Vincent Legoll <vincent.legoll@gmail.com>
To: Leo Famulari <leo@famulari.name>,
	Vagrant Cascadian <vagrant@debian.org>,
	 Grant Wilson II <grantm.wilsonii@gmail.com>,
	help-guix <help-guix@gnu.org>
Subject: Re: Pinebook pro build
Date: Sat, 24 Apr 2021 10:44:32 +0200	[thread overview]
Message-ID: <CAEwRq=ph-iPQfxnWhU1P1=YYzLq0-rV0gV7zaUCyGCrf2UkcvQ@mail.gmail.com> (raw)
In-Reply-To: <YH6CHCi6kr6d0UgM@3900XT>

Hello,

I did try to get guix running on the pbp earlier, with the images, first
trying to cross-build them myself, then with the cuirass built ones.
I'm not sure I got anything working at all (no console output, serial
console problem).

I now got some time to try again, and chose a different path, seeing
that Janneke go it to work, I tried to replicate what he's done, and it
worked, I've now got guixrunning on my pbp, yay !

Some of the steps were different in my attempt, but that's not really
important, I could have done the whole thing on the pbp itself too. I
chose that because the pbp is slower (CPU and storage-wise) than
the Odroid N2.

So, what I did is the following: on an Odroid N2 with the guix binary
tarball installed over Armbian on the eMMC with the help from
guix-install.sh script.

I put /gnu on an external USB3 SSD that is way bigger and also faster
than the eMMC.

I had to make the guix-daemon use a TMPDIR in there, as the system
one was too small (2GB tmpfs):

  sudo mkdir /gnu/tmp
  sudo chmod 1777 /gnu/tmp
  sudo chmod 644 /etc/systemd/system/guix-daemon.service
  sudo vi /etc/systemd/system/guix-daemon.service
  # Add to "[Service]" section:
  # Environment=TMPDIR=/gnu/tmp
  sudo systemctl daemon-reload
  sudo systemctl restart guix-daemon

then plugged an sdcard and did:

  SDCARD=/dev/mmcblk1

  sudo parted -- ${SDCARD} mkpart p 0% -1
  sudo parted -- ${SDCARD} set 1 boot on
  sudo mkfs.ext4 -F ${SDCARD}p1
  sudo e2label ${SDCARD}p1 GUIXROOT
  blkid

  sudo mkdir /mnt/tmp
  sudo mount ${SDCARD}p1 /mnt/tmp

  git clone git://git.savannah.gnu.org/guix.git
  cd guix
  git checkout wip-pinebook-pro

  guix environment guix
  ./bootstrap
  ./configure --localstatedir=/var
  make -j 7
  cp gnu/system/examples/pinebook-pro.tmpl ./config-pbp.scm
  vi config-pbp.scm
  # Set bootloader target to ${SDCARD}
  # Set filesystem / to uuid you got by the above blkid, or to label GUIXROOT
  sudo -E ./pre-inst-env guix system init config-pbp.scm /mnt/tmp --fallback

I checked that he final section from Janneke's blog post was not
needed anymore

  grep DEFAULT_FDT /gnu/store/*u-boot*pinebook*/libexec/.config
  grep FDT /mnt/tmp/boot/extlinux/extlinux.conf
  find /mnt/tmp/gnu/store/z1kmpmyvm3shh59fsnw5v7s41bdi2fs1-linux-libre-pinebook-pro-5.10.29/lib/dtbs/
-name rk3399-pinebook-pro.dtb
  cat /mnt/tmp/boot/extlinux/extlinux.conf

  sudo umount /mnt/tmp

unplug the sdcard from the N2 and put it in the pinebook pro, turn it
on, enjoy.

Hope that report is helpful.

Many thanks to Janneke, his blog post is very nice and simple to follow.
And to the guix community for all the good work done !

Regards

-- 
Vincent Legoll


  reply	other threads:[~2021-04-24  8:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-18 20:06 Pinebook pro build Grant Wilson II
2021-04-18 23:03 ` Leo Famulari
2021-04-18 23:27   ` Grant Wilson II
2021-04-19  4:03     ` Leo Famulari
2021-04-19 22:55     ` Vagrant Cascadian
2021-04-20  0:24       ` Leo Famulari
2021-04-20  7:26         ` Efraim Flashner
2021-04-24  8:44           ` Vincent Legoll [this message]
2021-04-20  1:10       ` Vagrant Cascadian
2021-04-20  2:02         ` Leo Famulari
2021-04-20  3:40           ` Brian Woodcox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEwRq=ph-iPQfxnWhU1P1=YYzLq0-rV0gV7zaUCyGCrf2UkcvQ@mail.gmail.com' \
    --to=vincent.legoll@gmail.com \
    --cc=grantm.wilsonii@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=leo@famulari.name \
    --cc=vagrant@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).