From patchwork Fri Apr 24 23:58:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brian Woodcox X-Patchwork-Id: 21463 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 E594227BBE4; Sat, 25 Apr 2020 01:00:11 +0100 (BST) 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,HTML_MESSAGE, 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 1A76C27BBE1 for ; Sat, 25 Apr 2020 01:00:11 +0100 (BST) Received: from localhost ([::1]:55562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jS8Es-0000es-Gg for patchwork@mira.cbaines.net; Fri, 24 Apr 2020 20:00:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57484) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jS8El-0000el-O2 for guix-patches@gnu.org; Fri, 24 Apr 2020 20:00:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jS8Ek-0004Zr-VM for guix-patches@gnu.org; Fri, 24 Apr 2020 20:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jS8Ek-0004ZE-Fx for guix-patches@gnu.org; Fri, 24 Apr 2020 20:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jS8Ek-0005Vg-9M for guix-patches@gnu.org; Fri, 24 Apr 2020 20:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40835] [PATCH] Update to use panfrost for graphics hardware acceleration Resent-From: Brian Woodcox Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Apr 2020 00:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40835 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40835@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158777277921116 (code B ref -1); Sat, 25 Apr 2020 00:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Apr 2020 23:59:39 +0000 Received: from localhost ([127.0.0.1]:58244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jS8EN-0005UW-5d for submit@debbugs.gnu.org; Fri, 24 Apr 2020 19:59:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:46856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jS8EL-0005UO-59 for submit@debbugs.gnu.org; Fri, 24 Apr 2020 19:59:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57394) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jS8EK-0000dn-9r for guix-patches@gnu.org; Fri, 24 Apr 2020 19:59:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jS8EI-0004Iy-Vv for guix-patches@gnu.org; Fri, 24 Apr 2020 19:59:36 -0400 Received: from mail.inskydata.com ([184.68.229.6]:34372 helo=server.inskydata.com) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jS8EI-0003E4-2n for guix-patches@gnu.org; Fri, 24 Apr 2020 19:59:34 -0400 Received: from [192.168.19.76] (unknown [192.168.19.76]) by server.inskydata.com (Postfix) with ESMTPSA id 632D55D2FE8B for ; Fri, 24 Apr 2020 17:58:43 -0600 (MDT) From: Brian Woodcox Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Message-Id: <54EFA16B-27F2-40F4-8FF0-F59BC65BF8AB@inskydata.com> Date: Fri, 24 Apr 2020 17:58:41 -0600 X-Mailer: Apple Mail (2.3445.6.18) Received-SPF: none client-ip=184.68.229.6; envelope-from=bw@inskydata.com; helo=server.inskydata.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/24 19:59:06 X-ACL-Warn: Detected OS = Mac OS X 10.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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 Pinebook Pro Users, These patches add the panfrost graphics acceleration for the Pinebook Pro laptop. These patches must be applied on top of d4c6e06f369024efc63e11de1a5bacd3fe9f7e8d (wip-pinebook-pro branch) The following instructions assume this patch has been added to the wip-pinebook-pro branch. So apply the patch if necessary. Many thanks to janneke and for his blog post —> https://joyofsource.com/guix-system-on-the-pinebook-pro.html Some notes for successfully creating the image to boot guix on the Pinebook pro. Most of this is borrowed from janneke. Many thanks. If you are using the Pinebook Pro to build this image, you need to have guix running on a foreign distro. janneke showed how to use Debian, I used Arch Linux, but you can probably also use Manjaro. Since I was booting arch linux from an SD card already, I installed the image on the SD card plugged into an adapter. So with the SD card (256G in my case) inserted into a USB adapter. Prepare SD Card: sudo parted -- /dev/sda mkpart p 0% -1 sudo parted -- /dev/sda set 1 boot on sudo mkfs.ext4 -F /dev/sda1 sudo mount /dev/sda1 /mnt Clone guix: git clone https://git.savannah.gnu.org/git/guix.git cd guix git checkout wip-pinebook-pro For the next commands, you need to setup your Pinebook Pro to have enough swap, otherwise webkitgtk will fail to build and it takes about 3 Hours for that alone. modprobe zram echo lz4 > /sys/block/zram0/comp_algorithm echo 12G > /sys/block/zram0/disksize mkswap --label zram0 /dev/zram0 swapon --priority 100 /dev/zram0 Increase size of tmp file: mount -o remount,size=6G,noatime /tmp guix environment guix --ad-hoc git ./bootstrap ./configure --localstatedir=/var GUILE=$(type -p guile) GUILD=$(type -p guild) make sudo -E ./pre-inst-env guix system init config.scm /mnt --fallback Once the image is created and copied along with uboot to the SD card, there is one more thing you need to boot. You need to edit the /boot/extlinux/extlinux.conf file on the SD card and alter the FDTDIR line. I changed mine from FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs to FDTDIR /gnu/store/ls1byzmapi911cylh4s6044x0cmc61c8-linux-libre-pinebook-pro-5.6.0/lib/dtbs/rockchip Shutdown the laptop and insert the freshly minted SD card into the SD card slot on the Pinebook Pro. You should now have a guix system running and if you setup your using the sample attached config.scm file, you will have Xorg running on hardware and xfce4 will run nicely. Some extra notes (not the guix way): Since I don’t have a usb wifi adapter, I cheated (until I get one) and I commented out the following in the gnu/packages/linux.scm file as follows: Also if you do this, you need to create the following folders on the SD card: /lib/firmware/brcm /lib/firmware/rockchip Inside the brcm folder you need to place all the brcmfmac43456-sdio.* files Inside the rockchip folder you need to place pptx.bin I will leave it up to the reader to find and install these files, since this is not the preferred way. Good luck!! Brian C. Woodcox --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -326,8 +326,8 @@ corresponding UPSTREAM-SOURCE (an origin), using the given DEBLOB-SCRIPTS." (with-directory-excursion dir (setenv "PYTHON" (which "python")) (format #t "Running deblob script...~%") - (force-output) - (invoke "/tmp/bin/deblob")) + (force-output)) +;; (invoke "/tmp/bin/deblob")) (format #t "~%Packing new Linux-libre tarball...~%") (force-output)