Is anyone successfully running guix system on PBP
#1
As per title.

If so, how?

If not, why not, what caught you out / stopped you?
  Reply
#2
(05-03-2021, 02:55 PM)bluekeys Wrote: As per title.

If so, how?

If not, why not, what caught you out / stopped you?

I have seen this article how to build the system from scratch (from last year) : http://www.joyofsource.com/guix-system-o...k-pro.html
And there is this pinebook-uboot package in the Guix package list: https://guix.gnu.org/en/packages/u-boot-...21.07-rc1/

I don't have any experience with Guix, but would also be interested to try it on the PBP as well.
  Reply
#3
Hi

There is a beta image available now. It boots into the console and you can install some more tools, but a desktop environment is not yet available.

https://othacehe.org/distributing-guix-s...mages.html
  Reply
#4
That's awesome. I'll give it a try!
  Reply
#5
(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
  Reply
#6
(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

I would love to se your guix config for Pinebook Pro, I would like to make my pinebook a proper lisp machine with guix and emacs but I a haven't use guix much yet so something to start from would be great.

And i possible I would love to know how you builded emacs with native comp. I tried the packages on AUR and Guix but both had problems with an out of date libgccjit.
  Reply
#7
(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.
  Reply
#8
(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
  Reply
#9
This is great. Thank you, I'll give it a go and let you know how i get on.

I'm thinking to use exwm, did you try that too yet?

Sent from my SM-G925F using Tapatalk
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation 'failed to open panfrost' after system update using archarm Puckla 1 866 03-01-2024, 06:46 PM
Last Post: Puckla
  Fedora 36 -> 37 upgrade kills system tydeman 0 845 10-28-2023, 09:53 AM
Last Post: tydeman
  what is the magic dd incantation to copy the system from the sd card to the emmc? geokon 18 13,219 08-18-2022, 11:26 PM
Last Post: calinb
Question Can't boot any operating system other than Fedora after following the nullr0ute guide TDC_PBP 1 2,880 10-09-2021, 07:35 PM
Last Post: TangoZuluTango
  After update in Ubuntu bionic mate system crashed Wawe 2 3,823 04-18-2021, 04:52 AM
Last Post: Wawe
  Manjaro Dim Display (Brightness 40%) After Every System Reboot runlinux.run 2 3,575 02-15-2021, 07:04 PM
Last Post: MtnSk8
  Running x86 software GloriousCoffee 19 27,536 02-15-2021, 11:43 AM
Last Post: jiyong
  Error when running pinebook-pro-keyboard-updater NoahB 13 17,338 07-29-2020, 06:33 PM
Last Post: guiltydoggy
  Qemu-system-i386 on manjaro binholz 0 2,077 02-28-2020, 09:38 AM
Last Post: binholz
  Restore default Debian system perceg 43 64,632 02-20-2020, 05:28 PM
Last Post: Thovthe

Forum Jump:


Users browsing this thread: 2 Guest(s)