Can someone with serial console access try NixOS kernel on Librem 5?

Perhaps this merge request may be of interest to you:

If it is we can share here how to install it.

2 Likes

Also do you have the mandatory screenshot of it running NixOS :slight_smile:

:scream:
That seems exactly what is needed! Please share :blush:

Will create :yum:

Well…

On a debian based system…

You would download the .deb package from here;

  1. https://source.puri.sm/a-wai/uboot-imx/-/jobs/405334/artifacts/raw/debian/output/u-boot-librem5_2022.10-librem5.1_arm64.deb

install it with:

sudo apt install ./u-boot-librem5_2022.10-librem5.1_arm64.deb

then run sudo u-boot-install-librem5 /dev/mmcblk0

1 Like

But maybe @angus.ainslie can assist with how to do this on a non PureOS system ^^.

$ curl -LOC - https://source.puri.sm/a-wai/uboot-imx/-/jobs/405334/artifacts/raw/debian/output/u-boot-librem5_2022.10-librem5.1_arm64.deb
$ ar -x u-boot-librem5_2022.10-librem5.1_arm64.deb
$ tar xf data.tar.xz
$ cat usr/bin/u-boot-install-librem5
$ sudo dd if=/dev/zero of=/dev/mmcblk0 bs=1024 count=1055 seek=2
$ sudo dd if=usr/lib/u-boot/librem5/u-boot.imx conv=notrunc of=/dev/mmcblk0 bs=1024 seek=33

I’ll need to verify and execute this.

edit: this works, thanks! :partying_face:

3 Likes

I’ve revived my Librem 5 after it has been laying on my desk for months - plugged in once a week to prevent the battery from draining to zero - after a failed u-boot update, and wanted to finally follow up to your request:

[ookhoi@librem5:~]$ nix run -- nixpkgs#screenfetch
          ::::.    ':::::     ::::'           ookhoi@librem5
          ':::::    ':::::.  ::::'            OS: NixOS 24.11.20241001.e277415 (Vicuna)
            :::::     '::::.:::::             Kernel: aarch64 Linux 6.6.52-librem5
      .......:::::..... ::::::::              Uptime: 1h 25m
     ::::::::::::::::::. ::::::    ::::.      Packages: 1306
    ::::::::::::::::::::: :::::.  .::::'      Shell: bash 5.2.32
           .....           ::::' :::::'       Disk: 11G / 30G (38%)
          :::::            '::' :::::'        CPU: Unknown @ 4x 1.5GHz
 ........:::::               ' :::::::::::.   GPU:
:::::::::::::                 :::::::::::::   RAM: 682MiB / 2888MiB
 ::::::::::: ..              :::::
     .::::: .:::            :::::
    .:::::  :::::          '''''    .....
    :::::   ':::::.  ......:::::::::::::'
     :::     ::::::. ':::::::::::::::::'
            .:::::::: '::::::::::
           .::::''::::.     '::::.
          .::::'   ::::.     '::::.
         .::::      ::::      '::::.

Not much installed yet.

4 Likes