diff options
author | Brian Woodcox <bw@inskydata.com> | 2020-04-24 17:58:41 -0600 |
---|---|---|
committer | Guix Patches Tester <> | 2020-04-25 01:01:17 +0100 |
commit | 518d2cff2101d461168a659d8bb027fcff447285 (patch) | |
tree | ac8912ddd13407a0e352947e1feb9e4d993add77 | |
parent | f2ce2d1274a94246e20d85ecdd375b2450ebb11b (diff) | |
download | patches-series-3666.tar patches-series-3666.tar.gz |
Update to use panfrost for graphics hardware accelerationseries-3666
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 <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 <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
-rw-r--r-- | gnu/packages/linux.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index f2d45eb07a..5d0749c1e5 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -325,8 +325,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) |