From patchwork Sun Mar 24 18:02:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 1547 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B28AD16DCE; Sun, 24 Mar 2019 18:04:33 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UPPERCASE_50_75, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 5C8A416DC8 for ; Sun, 24 Mar 2019 18:04:29 +0000 (GMT) Received: from localhost ([127.0.0.1]:59146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h87Tw-0003IL-JX for patchwork@mira.cbaines.net; Sun, 24 Mar 2019 14:04:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h87Tj-0002xT-1h for guix-patches@gnu.org; Sun, 24 Mar 2019 14:04:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h87TX-0008KI-Bx for guix-patches@gnu.org; Sun, 24 Mar 2019 14:04:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43491) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h87TW-0008K8-Vm for guix-patches@gnu.org; Sun, 24 Mar 2019 14:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h87TW-0007mg-Ix; Sun, 24 Mar 2019 14:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#34978] Enable support for veyron chrombooks Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: samplet@ngyro.com, guix-patches@gnu.org Resent-Date: Sun, 24 Mar 2019 18:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34978 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 34978@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: timothy sample Received: via spool by submit@debbugs.gnu.org id=B.155345060429868 (code B ref -1); Sun, 24 Mar 2019 18:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Mar 2019 18:03:24 +0000 Received: from localhost ([127.0.0.1]:57036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h87St-0007lg-SY for submit@debbugs.gnu.org; Sun, 24 Mar 2019 14:03:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h87Ss-0007lU-Cl for submit@debbugs.gnu.org; Sun, 24 Mar 2019 14:03:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:52759) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h87Sk-00087w-P6 for submit@debbugs.gnu.org; Sun, 24 Mar 2019 14:03:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h87SX-0002kl-Mf for guix-patches@gnu.org; Sun, 24 Mar 2019 14:03:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h87SK-00080P-Qm for guix-patches@gnu.org; Sun, 24 Mar 2019 14:03:01 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:39112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h87SJ-0007zp-Nu for guix-patches@gnu.org; Sun, 24 Mar 2019 14:02:48 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 77CBD1AA27 for ; Sun, 24 Mar 2019 11:02:44 -0700 (PDT) From: Vagrant Cascadian Date: Sun, 24 Mar 2019 11:02:33 -0700 Message-ID: <87wokogngm.fsf@ponder> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches X-Debbugs-Cc: Timothy Sample Attached is a patch series that adds a linux-libre kernel variant for "veyron" type chromebooks, tested on an Asus-C201 (a.k.a. veyron-speedy), and corresponding support for installing the kernel so that the "depthcharge" bootloader can boot it, and an example system config used on the veyron-speedy. It may also work on other veyron models; they are untested. I've taken the WIP patch that Timothy Sample proposed and split it into two patches (one for the bootloader support, and one for the example system config slightly adjusted for the new kernel package name), and dropped the prawnos kernel, though the linux-libre-arm-veyrong kernel config is largely based on the prawnos kernel config. The thread on guix-devel describes more of the background: https://lists.gnu.org/archive/html/guix-devel/2019-03/msg00053.html Big thanks to Timothy for the WIP patches that made it possible to get this far! Caveats: * The kernel patch introduces kernel-config-veyron, which should eventually get refactored into kernel-config directly. * It would be much preferable to figure out how to just use linux-libre without a separate kernel variant, but I've been unable to figure out the right combination of options at this point. * Xorg works, although so slowly as to be almost unusable. The framebuffer console works quite well, so not sure why X is *so* much slower. Might be configuration options to improve that. * dm_crypt "works" briefly, but hangs the device-mapper device after brief use. * Sometimes stalls out indefinitely in the initrd after "loading modules..." ... keyboard stays responsive in the sense that you can hit enter and it scrolls the screen one line. That said, it's a decent fairly affordable and portable Guix System, free software all the way down to the firmware (if you install libreboot yourself). live well, vagrant From ae4e8d69cdbc4f7d2b006a83ce3498801cdfe17b Mon Sep 17 00:00:00 2001 From: Timothy Sample Date: Mon, 4 Mar 2019 09:52:49 -0500 Subject: [PATCH 3/3] gnu: Add example system configuration for asus-c201. * gnu/system/examples/asus-c201.tmpl: New file. --- gnu/system/examples/asus-c201.tmpl | 60 ++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 gnu/system/examples/asus-c201.tmpl diff --git a/gnu/system/examples/asus-c201.tmpl b/gnu/system/examples/asus-c201.tmpl new file mode 100644 index 0000000000..098958f4a2 --- /dev/null +++ b/gnu/system/examples/asus-c201.tmpl @@ -0,0 +1,60 @@ +;; This is an operating system configuration template +;; for a "bare bones" setup for an ASUS C201PA. + +(use-modules (gnu) (gnu bootloader depthcharge)) +(use-service-modules networking ssh) +(use-package-modules linux screen) + +(operating-system + (host-name "komputilo") + (timezone "Europe/Berlin") + (locale "en_US.utf8") + + ;; Assuming /dev/mmcblk0p1 is the kernel partition, and + ;; "my-root" is the label of the target root file system. + (bootloader (bootloader-configuration + (bootloader depthcharge-bootloader) + (target "/dev/mmcblk0p1"))) + + ;; The ASUS C201PA requires a very particular kernel to boot, + ;; as well as the following arguments. + (kernel linux-libre-arm-veyron) + (kernel-arguments '("console=tty1")) + + ;; We do not need any special modules for initrd, and the + ;; PrawnOS kernel does not include many of the normal ones. + (initrd-modules '()) + + (file-systems (cons (file-system + (device (file-system-label "my-root")) + (mount-point "/") + (type "ext4")) + %base-file-systems)) + + ;; This is where user accounts are specified. The "root" + ;; account is implicit, and is initially created with the + ;; empty password. + (users (cons (user-account + (name "alice") + (comment "Bob's sister") + (group "users") + + ;; Adding the account to the "wheel" group + ;; makes it a sudoer. Adding it to "audio" + ;; and "video" allows the user to play sound + ;; and access the webcam. + (supplementary-groups '("wheel" + "audio" "video")) + (home-directory "/home/alice")) + %base-user-accounts)) + + ;; Globally-installed packages. + (packages (cons screen %base-packages)) + + ;; Add services to the baseline: a DHCP client and + ;; an SSH server. + (services (append (list (service dhcp-client-service-type) + (service openssh-service-type + (openssh-configuration + (port-number 2222)))) + %base-services))) -- 2.21.0