all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Timothy Sample <samplet@ngyro.com>
To: Vagrant Cascadian <vagrant@debian.org>
Cc: guix-devel@gnu.org
Subject: Re: Guix on the ASUS C201PA
Date: Wed, 06 Mar 2019 09:33:20 -0500	[thread overview]
Message-ID: <871s3kjcnj.fsf@ngyro.com> (raw)
In-Reply-To: <87lg1s4bv9.fsf@ponder> (Vagrant Cascadian's message of "Wed, 06 Mar 2019 00:59:22 -0800")

Hi Vagrant,

Vagrant Cascadian <vagrant@debian.org> writes:

> On 2019-03-06, Timothy Sample wrote:
>> I was able to get Guix to boot on an ASUS Chromebook C201PA.  This model
>> of computer is pretty neat.  It’s an ARMv7 (32-bit) machine that can be
>> run with entirely free software.  There is even a free graphics driver
>> in the works [1].
>
> Very excited to try this!
>
> I've been working on getting Debian to work on it for years, and had it
> working with linux 4.8.x... and then haven't gotten it working with any
> kernel version since. I've very recently been trying to get Archlinux
> and Parabola working on it, but haven't gotten very far yet...

Arch Linux ARM worked well enough for me.  It even boots from stock
Google firmware.  It was the system I used to build Guix.  I assume that
Parabola would be similar.

>> For the bootloader, these machines use Depthcharge.  Depthcharge boots a
>> specially packaged and signed kernel image from a specially marked
>> partition.  This kernel image is written to the partition directly
>> without a file system.
>
> I have two big technical frustrations with Depthcharge:
>
> It's really hard to debug or select alternate kernels when boot is
> failing.
>
> The kernel+initrd is limited to ~16MB. linux-libre on armhf is about
> 5MB, and the initrd around 11MB... so it's running pretty close to that
> limit (Debian initrd's are even larger these days). I even increased the
> size of the partition to 32MB to see if it would work, but it refused to
> boot from anything larger than 16MB.

I didn’t know about the image size limit.  Guix (with the very spartan
PrawnOS kernel build) is only 14M, so I guess I was just lucky here.

It might be worth trying to better mimic what Google does with
ChromeOS.  That is, you could lay out the disk as follows.

    p1. kernel-a
    p2. initrd-a
    p3. kernel-b
    p4. initrd-b
    p5. root

If you could get initrd to run correctly from a separate partition, then
you could both make use of Depthcharge’s fall-back feature and avoid the
size limitation.  In Guix, we could toggle which kernel and initrd
partition we write to and set the boot priorities appropriately.  This
would allow one to fearlessly run “guix system reconfigure”.

> [...]
>
> Thanks for working on it, and I'll try it out and report back.

Good luck!


-- Tim

  reply	other threads:[~2019-03-06 14:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-06  7:20 Guix on the ASUS C201PA Timothy Sample
2019-03-06  8:59 ` Vagrant Cascadian
2019-03-06 14:33   ` Timothy Sample [this message]
2019-03-10  2:42     ` Vagrant Cascadian
2019-03-17  6:47       ` Vagrant Cascadian
2019-03-17 15:20         ` Timothy Sample
2019-03-18  5:38           ` Vagrant Cascadian
2019-03-19  7:22             ` Danny Milosavljevic
2019-03-23 16:33             ` Ludovic Courtès
2019-03-23 19:10               ` Mark H Weaver
2019-03-23 21:04               ` Vagrant Cascadian
2019-03-24 18:19                 ` Vagrant Cascadian
2019-03-06 12:02 ` swedebugia
2019-03-06 15:46 ` mikadoZero
2019-03-15 11:23 ` Ludovic Courtès
2019-03-15 17:39   ` Timothy Sample

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

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

  git send-email \
    --in-reply-to=871s3kjcnj.fsf@ngyro.com \
    --to=samplet@ngyro.com \
    --cc=guix-devel@gnu.org \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.