[META] Run Guix System on Purism Librem 5

OpenSubmitted by Jonathan Brielmaier.
Details
2 participants
  • Jesse Gibbons
  • Jonathan Brielmaier
Owner
unassigned
Severity
normal
J
J
Jonathan Brielmaier wrote on 8 Jul 2019 17:16
(address . bug-guix@gnu.org)
554ccbea-73e4-5692-8f04-53e4bde5ee9e@web.de
This is a meta/tracker bug to track what needs to be done and what isalready done, to run Guix system on the Purism Librem 5 phone.https://puri.sm/products/librem-5/
The Librem 5 will be shipped with a mobile optimized GNOME based onPureOS which is based on Debian, but contains only free software :)
As the phone and the software is still in heavy development, we don'tknow yet what exactly is required to have a proper "phone" experience.
Hardware spec:SoC: NXP iMX8M Quad Corearch: aarch64storage: 32GB eMMCFor more details see: https://shop.puri.sm/shop/librem-5/
GNOME and it's packages should be on the newest versions, as they couldcontain fixes and improvements for a mobile UI (responsive).
The following packages are still missing in Guix or may need adjustments.
Kernel/boot:- kernel: At the moment there are surely patches on top of linux-vanilla required, but Purism pushes hard to upstream those. So maybe nospecial is required when the phones ship.- u-boot-imx: U-Boot for iMX, they have still patches on top of https://source.codeaurora.org/external/imx/uboot-imx
Core libraries:- libhandy: provides responsive UI stuff for GTK, may becomingdependency of some GNOME packages https://source.puri.sm/Librem5 /libhandy- phosh: Wayland shell (prototype) for GNOME on mobile devices: https://source.puri.sm/Librem5/phosh
Leaf packages:- calls: App for calling, backend ModemManager or oFono https://source.puri.sm/Librem5/calls- chatty: App for SMS and XMPP messaging: https://source.puri.sm/Librem5/chatty- epiphany/GNOME Web: They have some patches for mobile UI: https://source.puri.sm/Librem5/epiphany- gnome-contacts: Missing in Guix, they have a phone-focused fork: https://source.puri.sm/Librem5/gnome-contacts
Feel free to add comments, other bugs which are related or relevantlinks etc.
J
J
Jonathan Brielmaier wrote on 11 Jul 2019 15:58
(address . 36551@debbugs.gnu.org)
42eb36e4-9c98-2814-6e48-73c9fcc2fe3b@web.de
Another missing package:
- squeekboard: virtual keyboard supporting Wayland https://source.puri.sm/Librem5/squeekboard
J
J
Jonathan Brielmaier wrote on 15 Jul 2019 18:59
(address . 36551@debbugs.gnu.org)
08fdd4d5-2523-f9d8-8ebc-0cf50e11813b@web.de
J
J
Jonathan Brielmaier wrote on 26 Aug 2019 15:31
(address . 36551@debbugs.gnu.org)
95377454-8a0b-4860-b876-de607013c5b4@web.de
libhandy is already in master since commit 213315d485:https://issues.guix.gnu.org/issue/36926
J
J
Jonathan Brielmaier wrote on 9 Dec 2019 11:53
(address . 36551@debbugs.gnu.org)
2640e15a-34ae-792c-a8df-985ee51af10b@web.de
Further "audio" packages:- wys, daemon for PulseAudio loopbacks for phone calls:https://source.puri.sm/Librem5/wys- haegtesse, daemon for audio between modem and PulseAudio. Seems toonly be used on the developer board:https://source.puri.sm/Librem5/haegtesse- sound-theme-librem5: https://source.puri.sm/Librem5/sound-theme-librem5
Core:- phoc, wlroots based phone compositor https://source.puri.sm/Librem5/phoc
Leaf packages:- kgx (King's cross), a simple terminal:https://gitlab.gnome.org/ZanderBrown/kgx
J
J
Jonathan Brielmaier wrote on 3 Feb 13:42 +0100
(address . 36551@debbugs.gnu.org)
8847b9eb-a4ae-c051-9b9c-0351ce7af6bd@web.de
On the Guix days there was a session about running Guix on mobilephones. The notes will be published somewhere else. Don't know when andwhere yet.
Patch for chatty:http://issues.guix.gnu.org/issue/39312
On my personal (dirty) wip-librem5 branch on Gitlab.com is additionallysoftware for the Librem5:https://gitlab.com/jonsger/Guix/commits/wip-librem5phoc: successful build, somehow workingphosh: successful build but not yet runningpurple-mm-sms: successful build, don't know if it's working as I lackmodem for testingcalls: not yet pushed, depends on updates (meson) who are not yet inmaster, but on core-updates
J
J
Jesse Gibbons wrote on 10 Feb 18:51 +0100
ebea1d00b97c3c70ccb9a5afc995fff7ac41d6c3.camel@gmail.com
Hi JonathanOn Mon, 2020-02-03 at 13:42 +0100, Jonathan Brielmaier wrote:
Toggle quote (4 lines)> On the Guix days there was a session about running Guix on mobile> phones. The notes will be published somewhere else. Don't know when> and> where yet.
I too hope guix system can work on L5, but it looks like guix systemitself has a long way to go. IIRC, L5 is aarch64, and there areproblems running guix (package manager) on aarch64. If L5 is armhfthat's possibly a little better, but it still needs a lot of work.
Toggle quote (8 lines)> > Patch for chatty:> http://issues.guix.gnu.org/issue/39312> > On my personal (dirty) wip-librem5 branch on Gitlab.com is> additionally> software for the Librem5:> https://gitlab.com/jonsger/Guix/commits/wip-librem5
Thanks for doing this!
Toggle quote (4 lines)> phoc: successful build, somehow working> phosh: successful build but not yet running> purple-mm-sms: successful build, don't know if it's working as I lack> modem for testing
I think I saw somewhere in the purism docs how to emulate a modem fortesting. I'll send a link if I find it, or you can ask in their matrixrooms.
Toggle quote (2 lines)> calls: not yet pushed, depends on updates (meson) who are not yet in> master, but on core-updates
If you use this branch as a channel, you can take the necessary mesonupdates and dependencies from core-updates to test things. Just makesure you're prepared to rebuild the world.
Another thing to consider is the bootloader. Last I checked the librem5 u-boot still isn't available in the current u-boot packages.
Thanks again for working on this!
J
J
Jonathan Brielmaier wrote on 10 Feb 19:14 +0100
210ce74d-e145-057d-d720-cce802cf18a3@web.de
On 10.02.20 18:51, Jesse Gibbons wrote:
Toggle quote (5 lines)> I too hope guix system can work on L5, but it looks like guix system> itself has a long way to go. IIRC, L5 is aarch64, and there are> problems running guix (package manager) on aarch64. If L5 is armhf> that's possibly a little better, but it still needs a lot of work.
The Librem5 is aarch64 based. I think you mixed something here. aarch64runs fine with Guix, armhf has some problems with Guile 3.0 ATM. So Idon't think the way is so long.
Toggle quote (8 lines)>> phoc: successful build, somehow working>> phosh: successful build but not yet running>> purple-mm-sms: successful build, don't know if it's working as I lack>> modem for testing> I think I saw somewhere in the purism docs how to emulate a modem for> testing. I'll send a link if I find it, or you can ask in their matrix> rooms.
Oh that is interesting. My laptop has a 3G modem (Ericsson N5321). I'lltry to test stuff with it. But I'm not sure if it supports SMS and callsat all.
Toggle quote (6 lines)>> calls: not yet pushed, depends on updates (meson) who are not yet in>> master, but on core-updates> If you use this branch as a channel, you can take the necessary meson> updates and dependencies from core-updates to test things. Just make> sure you're prepared to rebuild the world.
I know, but I guess I'll just wait. As the phones will likely ship inJuly, I have no real time pressure :P
Toggle quote (3 lines)> Another thing to consider is the bootloader. Last I checked the librem> 5 u-boot still isn't available in the current u-boot packages.
I'm aware of that. We probably need a "custom" u-boot package for theLibrem 5.
J
J
Jonathan Brielmaier wrote on 6 Jul 01:31 +0200
(address . 36551@debbugs.gnu.org)
1c4ab8d3-5bae-7d1b-d341-d69edd003335@web.de
chatty was merged as d26186232ed4c753db73c6a0d2c623d2816e721d in June 2020.
phoc and phosh are still bitrotting in a not really functional state inmy personal repo. I need to revive that...
?