From patchwork Sat Feb 15 18:49:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 20257 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 B72C027BBE4; Sat, 15 Feb 2020 18:51:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 78508174E9 for ; Sat, 15 Feb 2020 18:51:13 +0000 (GMT) Received: from localhost ([::1]:53622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j32X2-00020o-Ui for patchwork@mira.cbaines.net; Sat, 15 Feb 2020 13:51:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33312) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j32Wx-00020Z-3v for guix-patches@gnu.org; Sat, 15 Feb 2020 13:51:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j32Ws-0004nr-DC for guix-patches@gnu.org; Sat, 15 Feb 2020 13:51:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j32Ws-0004nj-9m for guix-patches@gnu.org; Sat, 15 Feb 2020 13:51:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j32Ws-00021p-97 for guix-patches@gnu.org; Sat, 15 Feb 2020 13:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39617] [PATCH 0/2] Add initial Pinebook Pro support Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Feb 2020 18:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39617 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39617@debbugs.gnu.org Cc: Vagrant Cascadian , Danny Milosavljevic X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15817926047725 (code B ref -1); Sat, 15 Feb 2020 18:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Feb 2020 18:50:04 +0000 Received: from localhost ([127.0.0.1]:36373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j32Vq-0001zy-MC for submit@debbugs.gnu.org; Sat, 15 Feb 2020 13:50:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:35318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j32Vn-0001zq-P8 for submit@debbugs.gnu.org; Sat, 15 Feb 2020 13:49:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33119) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j32Vm-0001QH-Dq for guix-patches@gnu.org; Sat, 15 Feb 2020 13:49:55 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j32Vl-00048c-MN; Sat, 15 Feb 2020 13:49:53 -0500 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=34866 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j32Vk-0002ws-EF; Sat, 15 Feb 2020 13:49:52 -0500 From: Jan Nieuwenhuizen Date: Sat, 15 Feb 2020 19:49:48 +0100 Message-ID: <87tv3rd6sz.fsf@gnu.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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 Hello ARM Gurus! These patches add initial Pinebook Pro support. There are several rough edges, your help would be much appreciated! A vanilla kernel does not work yet; apparently development to upstream pinebook-pro patches lives here: https://gitlab.manjaro.org/tsys/linux-pinebook-pro Similarly, Das U-Boot has a pinebook-pro development branch https://git.eno.space/pbp-uboot.git Because of "guix pull failing on aarch64" https://issues.guix.gnu.org/issue/39352 these patches must be applied on top of c7dd15596ffd09ab40629c89e7014e51a4d7e95e (or use branch wip-pinebook-pro from https://gitlab.com/janneke/guix.git) To install Guix System on the microSD in a Pinebook Pro, do something like --8<---------------cut here---------------start------------->8--- sudo mount /dev/mmcblk0p1 /mnt sudo -E ./pre-inst-env guix system init gnu/system/examples/pinebook-pro.tmpl /mnt sudo -E ./pre-inst-env guix system init arm-baar.scm /mnt sudo sed 's,FDTDIR \([^ ]*\),FDT \1/rockchip/rk3399-pinebook-pro.dtb,' /boot/extlinux/extlinux.conf --8<---------------cut here---------------end--------------->8--- Because of the aarch64 guix pull problem, the separate repositories for kernel and u-boot, the weird MMC numbering changes /dev/mmcblk0 <-> /dev/mmcblk1 and this ugly extlinux.conf fixup I am not sure where to share this code, maybe wip-pinebook-pro @ savannah. WDYT? For more details, see https://joyofsource.com/guix-system-on-the-pinebook-pro.html I think it would be nice to have an updated this blog on guix.gnu.org when these silly problems are resolved. Greetings, janneke Jan Nieuwenhuizen (2): gnu: Add linux-libre-pinebook-pro. gnu: Add u-boot-pinebook-pro-rk3399. Makefile.am | 1 + gnu/bootloader/u-boot.scm | 11 ++++++ gnu/packages/bootloaders.scm | 45 ++++++++++++++++++++- gnu/packages/linux.scm | 48 ++++++++++++++++++++++ gnu/system/examples/pinebook-pro.tmpl | 57 +++++++++++++++++++++++++++ 5 files changed, 160 insertions(+), 2 deletions(-) create mode 100644 gnu/system/examples/pinebook-pro.tmpl