08-11-2022, 03:52 AM
(01-20-2022, 03:06 PM)bluekeys Wrote:(10-07-2021, 08:06 AM)ennoausberlin Wrote:(09-05-2021, 04:31 PM)bluekeys Wrote: That's awesome. I'll give it a try!
I have managed to build a GUIX X11 environment on the Pinebook Pro. It took around 3 1/2 hours (kernel alone 2 hours),
but afterwards I was able to boot into gdm/i3wm for now. I don't need a full XFCE or Gnome environment. emacs-native is working too.
I will experiment a little with stumpwm and exwm in the future.
I can post my config here, if there is an interest
Yes, please do.
Ok. I am a little late, but it might be of use for you anyways.
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Minor changes by Enrico Schwass <ennoausberlin@me.com>
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu system images pinebook-pro)
#:use-module (gnu bootloader)
#:use-module (gnu bootloader u-boot)
#:use-module (gnu image)
#:use-module (gnu packages linux)
#:use-module (guix platforms arm)
#:use-module (gnu services)
#:use-module (gnu services base)
#:use-module (gnu services desktop)
#:use-module (gnu services networking)
#:use-module (gnu system)
#:use-module (gnu packages wm)
#:use-module (gnu packages firmware)
#:use-module (gnu packages vim)
#:use-module (gnu packages xorg)
#:use-module (gnu packages certs)
#:use-module (gnu system file-systems)
#:use-module (gnu system shadow)
#:use-module (gnu system image)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26)
#:export (pinebook-pro-barebones-os
pinebook-pro-image-type
pinebook-pro-barebones-raw-image))
;(use-service-modules desktop networking ssh xorg)
(define pinebook-pro-barebones-os
(operating-system
(host-name "hosaka")
(timezone "Europe/Berlin")
(users (cons (user-account
(name "enno")
(comment "Its's me")
(group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video")))
%base-user-accounts))
(locale "en_GB.utf8")
(packages (append (list
i3-wm i3status xterm vim nss-certs le-certs)
%base-packages))
;;; needed to fix broken i660p m2 nvme disk
(kernel-arguments (list "iommu=soft" "nvme_core.default_ps_max_latency_us=0"))
(firmware (cons* ath9k-htc-firmware %base-firmware))
(bootloader (bootloader-configuration
(bootloader u-boot-pinebook-pro-rk3399-bootloader)
(targets '("/dev/mmcblk1"))))
(initrd-modules '("nvme"))
(kernel linux-libre-arm64-generic)
(file-systems (cons (file-system
(device (file-system-label "Guix_image"))
(mount-point "/")
(type "ext4"))
%base-file-systems))
(swap-devices (list (swap-space
(target (file-system-label "sdswap")))))
(services (append (list (service agetty-service-type
(agetty-configuration
(extra-options '("-L")) ; no carrier detect
(baud-rate "1500000")
(term "vt100")
(tty "ttyS2"))))
%desktop-services))))
(define pinebook-pro-image-type
(image-type
(name 'pinebook-pro-raw)
(constructor (cut image-with-os
(raw-with-offset-disk-image (* 9 (expt 2 20))) ;9MiB
<>))))
(define pinebook-pro-barebones-raw-image
(image
(inherit
(os+platform->image pinebook-pro-barebones-os aarch64-linux
#:type pinebook-pro-image-type))
(name 'pinebook-pro-barebones-raw-image)))
;; Return the default image.
pinebook-pro-barebones-raw-image