• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Librem 5 dev-kit

Scheduled Pinned Locked Moved Porting
17 Posts 9 Posters 3.0k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z Offline
      ZeroPointEnergy
      last edited by 14 May 2019, 22:11

      Hello

      I have some librem5 dev-kit lying around here and maybe finally I can make some time to actually play with it. So far I just installed their Pure OS image and it isn't super overwhelming.

      Has anyone in the UBports community already started with looking at a port? If not I will probably have to start from scratch. As far as I know there isn't a native device port yet or is there something similar?

      T 1 Reply Last reply 15 May 2019, 17:15 Reply Quote 2
      • U Offline
        UniSuperBox
        last edited by 15 May 2019, 01:58

        You might be the only person in the community with a devkit so far... So, no, no one has any software yet 😅

        1 Reply Last reply Reply Quote 4
        • G Offline
          Giiba
          last edited by 15 May 2019, 17:08

          I wish you success!

          1 Reply Last reply Reply Quote 3
          • T Offline
            trainailleur @ZeroPointEnergy
            last edited by 15 May 2019, 17:15

            @ZeroPointEnergy said in Librem 5 dev-kit:

            If not I will probably have to start from scratch. As far as I know there isn't a native device port yet or is there something similar?

            Some of the developers are working on a port to the PinePhone, but I have no idea how far along that is or if any of that work would be useful to you. It's not really on-topic for the PinePhone IRC or Telegram group, but you might ask in the UBPorts Porting group on Telegram.

            1 Reply Last reply Reply Quote 0
            • Z Offline
              ZeroPointEnergy
              last edited by 15 May 2019, 20:14

              @UniSuperBox Oh snap 🙂

              @trainailleur Good points. Once I figured out how to create an ubuntu-touch image that at least boots I will definitely look at what's there for the PinePhone.

              @Giiba Thanks 😅

              D 1 Reply Last reply 18 May 2019, 06:51 Reply Quote 1
              • D Offline
                doniks @ZeroPointEnergy
                last edited by 18 May 2019, 06:51

                @ZeroPointEnergy said in Librem 5 dev-kit:

                @trainailleur Good points. Once I figured out how to create an ubuntu-touch image that at least boots I will definitely look at what's there for the PinePhone.

                Maybe even for the route towards a bootable image efforts could be shared with pinephoneporting. Which tooling to use to even create an image, etc. @UniSuperBox is there any public repo for how you guys are kicking around the pinephone?

                Another relevant resource is probably the way how librem builds and installs their image, since they have to have a way of getting some kind of linux system without android onto the librem 5. Maybe just building that image yourself will already teach you a lot.

                A Z 2 Replies Last reply 18 May 2019, 07:09 Reply Quote 0
                • A Offline
                  advocatux @doniks
                  last edited by 18 May 2019, 07:09

                  @doniks probably the best way to follow the Pinephone development is to join https://t.me/pinephone or #pinephone on irc.pine64.xyz (both groups are bridged) 🙂

                  1 Reply Last reply Reply Quote 1
                  • Z Offline
                    ZeroPointEnergy @doniks
                    last edited by ZeroPointEnergy 18 May 2019, 20:06

                    @doniks Yeah I already did that. They use a script with vmdebootstrap to build a debian , which is similar to the way the ubuntu-touch image is built. It should probably be possible to modify that script to build ubuntu-touch.

                    Image build script: https://source.puri.sm/Librem5/image-builder
                    Flash scripts: https://source.puri.sm/Librem5/librem5-devkit-tools/

                    The images are a bit different and have the kernel on the image itself and a boot sector from what I can tell.

                    I currently struggle more with figuring out how the ubuntu-touch image is built. I know the rootstock-ng is used, but I'm not sure what parameters are used on the Jenkins.

                    @UniSuperBox is there somewhere a list of repositories and packages (meta package or a list?) that are used to build the image? I already asked in the UBports_porting channel but got no answer so far.

                    1 Reply Last reply Reply Quote 3
                    • M Offline
                      Mark
                      last edited by 5 Jul 2019, 14:54

                      This sort of info would help those of us hoping to find a way of getting it running on the Raspberry Pi as well.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        david.boddie
                        last edited by 28 Oct 2019, 17:44

                        Is there a set of instructions describing how to install the port of UBports onto the Librem 5 development board, or is it handled in a generic way using an installer?

                        Thanks in advance for any hints. 🙂

                        M 1 Reply Last reply 29 Oct 2019, 00:37 Reply Quote 0
                        • M Offline
                          mariogrip Administrators @david.boddie
                          last edited by mariogrip 29 Oct 2019, 00:37

                          @david-boddie right now there is no "good" way of installing on the librem5, we have some basic images working on it, but we have not put too much time into it, and we have halted the development on it as purism wont send us final devices until last. Purism has also failed to meet anything they said on their "partnership" blog post we had with them a while back. We really want to have Ubuntu touch running, but at this point it seems like purism don't want us.

                          We have some images built by our ci server: https://ci.ubports.com/job/rootfs/job/rootfs-librem5/
                          but this has not been tested in a while so the state of the images are unknown. You can flash this using purism's uuu tool 🙂

                          D 1 Reply Last reply 29 Oct 2019, 16:02 Reply Quote 3
                          • D Offline
                            david.boddie @mariogrip
                            last edited by 29 Oct 2019, 16:02

                            @mariogrip Thanks for the link. I'll try and find some time to flash a known working image onto the board. 🙂

                            M 1 Reply Last reply 29 Oct 2019, 21:07 Reply Quote 0
                            • M Offline
                              mariogrip Administrators @david.boddie
                              last edited by 29 Oct 2019, 21:07

                              @david-boddie for the development board we do have most parts that is working on pureos and the images should be even better after an apt update since we got lots of mainline and wayland fixes in since last image was built 🙂

                              but i'll update jenkins now to build the new ones now since should be quick to get going 🙂

                              D 1 Reply Last reply 29 Oct 2019, 22:49 Reply Quote 2
                              • D Offline
                                david.boddie @mariogrip
                                last edited by 29 Oct 2019, 22:49

                                @mariogrip Thanks for updating Jenkins. I'll check back tomorrow or later this week.

                                M 1 Reply Last reply 30 Oct 2019, 00:25 Reply Quote 0
                                • M Offline
                                  mariogrip Administrators @david.boddie
                                  last edited by 30 Oct 2019, 00:25

                                  @david-boddie aaand we got some freshly baked images 😄 https://ci.ubports.com/job/rootfs/job/rootfs-librem5/

                                  I have not tried them, so may be broken 🙃

                                  D 1 Reply Last reply 30 Oct 2019, 14:40 Reply Quote 1
                                  • D Offline
                                    david.boddie @mariogrip
                                    last edited by 30 Oct 2019, 14:40

                                    @mariogrip I used the U-Boot image from the Purism Jenkins instance and this UBports image. I adapted a flashing script used for the stock Librem 5 development images to flash both of these onto the devkit.

                                    uuu_version 1.0.1
                                    # Using the recovery uboot in ../files/u-boot-devkit-recovery.imx
                                    # flash a new image ../files/devkit.img
                                    
                                    SDP: boot -f /tmp/u-boot-devkit-recovery.imx
                                    # This command will be run when use SPL
                                    SDPU: delay 1000
                                    SDPU: write -f /tmp/u-boot-devkit-recovery.imx -offset 0x57c00
                                    SDPU: jump
                                    # This command will be run when ROM support stream mode
                                    SDPS: boot -f /tmp/u-boot-devkit-recovery.imx
                                    SDPU: delay 1000
                                    FB: ucmd mmc dev 0
                                    FB: ucmd setenv fastboot_dev mmc
                                    FB: ucmd setenv mmcdev 0
                                    FB: flash -raw2sparse all /tmp/devkit.img
                                    FB: Done
                                    

                                    Where devkit.img is the ubuntu-touch-librem5-dev.img image file.

                                    It boots to a login prompt on the screen but doesn't switch to a graphical environment. I'll have to plug in a UART to serial cable to see what needs to be done to set up the phone environment. Any hints about that?

                                    D 1 Reply Last reply 30 Oct 2019, 15:17 Reply Quote 0
                                    • D Offline
                                      david.boddie @david.boddie
                                      last edited by 30 Oct 2019, 15:17

                                      I used the UART connection to log in (username: phablet password: phablet) and set up networking.

                                      I tried to start a graphical session but it looks like a lot of things are already running. I couldn't see anything obviously wrong in the system logs. I'll try to take another look at it later, or tomorrow.

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post