[META] Run Guix System on Purism Librem 5

  • Open
  • quality assurance status badge
Details
4 participants
  • jgart
  • Jesse Gibbons
  • Jonathan Brielmaier
  • phodina
Owner
unassigned
Submitted by
Jonathan Brielmaier
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 is
already done, to run Guix system on the Purism Librem 5 phone.

The Librem 5 will be shipped with a mobile optimized GNOME based on
PureOS which is based on Debian, but contains only free software :)

As the phone and the software is still in heavy development, we don't
know yet what exactly is required to have a proper "phone" experience.

Hardware spec:
SoC: NXP iMX8M Quad Core
arch: aarch64
storage: 32GB eMMC

GNOME and it's packages should be on the newest versions, as they could
contain 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 no
special is required when the phones ship.
- u-boot-imx: U-Boot for iMX, they have still patches on top of

Core libraries:
- libhandy: provides responsive UI stuff for GTK, may becoming
dependency of some GNOME packages https://source.puri.sm/Librem5 /libhandy
- phosh: Wayland shell (prototype) for GNOME on mobile devices:

Leaf packages:
- calls: App for calling, backend ModemManager or oFono
- chatty: App for SMS and XMPP messaging:
- epiphany/GNOME Web: They have some patches for mobile UI:
- gnome-contacts: Missing in Guix, they have a phone-focused fork:

Feel free to add comments, other bugs which are related or relevant
links etc.
J
J
J
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:
- haegtesse, daemon for audio between modem and PulseAudio. Seems to
only be used on the developer board:

Core:
- phoc, wlroots based phone compositor https://source.puri.sm/Librem5/phoc

Leaf packages:
- kgx (King's cross), a simple terminal:
J
J
Jonathan Brielmaier wrote on 3 Feb 2020 13:42
(address . 36551@debbugs.gnu.org)
8847b9eb-a4ae-c051-9b9c-0351ce7af6bd@web.de
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.

Patch for chatty:

On my personal (dirty) wip-librem5 branch on Gitlab.com is additionally
software for the Librem5:
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
calls: not yet pushed, depends on updates (meson) who are not yet in
master, but on core-updates
J
J
Jesse Gibbons wrote on 10 Feb 2020 18:51
ebea1d00b97c3c70ccb9a5afc995fff7ac41d6c3.camel@gmail.com
Hi Jonathan
On 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 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.
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 for
testing. I'll send a link if I find it, or you can ask in their matrix
rooms.
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 meson
updates and dependencies from core-updates to test things. Just make
sure you're prepared to rebuild the world.

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.

Thanks again for working on this!
J
J
Jonathan Brielmaier wrote on 10 Feb 2020 19:14
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. aarch64
runs fine with Guix, armhf has some problems with Guile 3.0 ATM. So I
don'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'll
try to test stuff with it. But I'm not sure if it supports SMS and calls
at 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 in
July, 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 the
Librem 5.
J
J
Jonathan Brielmaier wrote on 6 Jul 2020 01:31
(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 in
my personal repo. I need to revive that...
J
P
P
phodina wrote on 17 Nov 2021 14:46
Waydroid
(name . 36551@debbugs.gnu.org)(address . 36551@debbugs.gnu.org)
ON2CJCvF-YGoLxnHnc5TIwVuIs7yLWaQ_JsD0LL0-YoNwKnFtmcDzUw3yCb-2Sr--DPd_6QmVMpQOEx9659_7fLjKoK9Uq0JYUi_wzXYx5k=@protonmail.com
Hi,

there's a new alternative to Anbox [1]. I've created patches that aim to bring the support [2].

Cheers
Petr

J
(no subject)
(address . 36551@debbugs.gnu.org)
20220331110851.GB9269@gac.attlocal.net
Hi,

I have a patch open for sxmo-st from January 17:


It is the simple terminal used on the sxmo pinephone distro:


I have the other packages from the sxmo suite packaged here:


I can send them all if there is interest in merging them upstream.

all best,

jgart

https://whereis.???/
gemini://whereis.???/
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 36551@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 36551
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch