Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starlabs Starbook VI (Intel) Support #871

Open
w3irdrobot opened this issue Feb 20, 2024 · 8 comments
Open

Starlabs Starbook VI (Intel) Support #871

w3irdrobot opened this issue Feb 20, 2024 · 8 comments

Comments

@w3irdrobot
Copy link

It'd be great to have some support for Star Labs laptops. In my case, specifically the Starbook VI.

@samueldr
Copy link
Member

samueldr commented Feb 20, 2024

Note: when adding support for Star Labs devices, use the product skus from the DMI info and document we are using the product skus.

~ 2 $ cat /sys/class/dmi/id/product_sku 
B6-A

This is for my Starbook Mk VI with AMD Ryzen 7 5800U. I don't know what it will be for Intel-based hardware, but I suspect it will be different.

I will add that for this particular model, I have had to do absolutely nothing hardware specific, everything just worked.

Also, as a side-note, hardware support isn't generally "asked for", but added after having had the need for specifics. It's kinda hard to add support for a thing, when we don't have the thing on-hand :).

Given Star Labs aim to make their hardware just work on Linux, I'd say the best thing to do right now is to try it and see. I half expect that you either will need nothing, or maybe some "minor" things like currently needing the latest kernel (a bit unlikely now).

@w3irdrobot
Copy link
Author

~ 2 $ cat /sys/class/dmi/id/product_sku 
B6-I

i have been running NixOS on this machine for a few months now. i use it almost daily in the evenings. there's nothing that's a show stopper. however, there definitely seem to be some issues. admittedly it could just be the way it is configured on my end and it's not a hardware issue.

specifically, the only way to update the firmware is to mount ubuntu via usb and use it that way because fwupdmgr doesn't recognize the Star Labs hardware. Star Labs does not officially support NixOS which causes some issues in some places. i think the hardware not being recognized is because flashrom-starlabs is not packaged in nixpkgs or anything.

it also seems to struggle when doing anything somewhat "intensive," which with my setup shouldn't be difficult. however, the machine slows down immensely even when just updating the flake, for example. this could just be the way i have it configured. the initial instance was installed using the the NixOS Gnome image on the NixOS website. however, i've noticed there seem to be small tweaks available for other hardware in this repo and thought that perhaps others might have this issue and could commit them here if they had these tweaks fixed. it appears i'll just have to figure out my problems myself if i'm the only one having them.

@samueldr
Copy link
Member

because fwupdmgr doesn't recognize the Star Labs hardware.

Weird, it just works on my end.

services.fwupd.enable = true;
services.fwupd.extraRemotes = [
  "lvfs-testing" # might not be needed, config shared across systems
];

It's also weird that they don't tell you to use the "pure" UEFI-based updater, and to use Ubuntu. Though they might not have those for coreboot-based builds. (The AMD variant still does not have coreboot support...)

[other slight issues in last paragraph]

Yeah, the way they end-up in here is people figuring out things that solve their issue, and sharing.

So two ways you could find solutions are

  • See if anything from this repo for as-similar-as-possible hardware helps
  • See what people on other distros do to help.

As for the latter, really, if the vendor supports a distro, they should be able to tell you on any of those distro what to do from a clean slate install to get proper hardware support.

@samueldr samueldr changed the title Starlabs Support Starlabs Starbook VI Support Feb 21, 2024
@samueldr samueldr changed the title Starlabs Starbook VI Support Starlabs Starbook VI (Intel) Support Feb 21, 2024
@samueldr
Copy link
Member

[renamed the issue so it's a bit more actionable]

@matdibu
Copy link
Contributor

matdibu commented Mar 29, 2024

The only way I got fwupd to work on a StarBook VIr2 (B62-I) was with modified versions of fwupd and flashrom, because nixpkgs doesn't ship a version of fwupd with the flashrom plugin enabled, and for that to work it needs the meson build of flashrom.

This was my working config: https://codeberg.org/mateidibu/nix-config/src/commit/3f82645c9e5b5ae091530ac09e9ac484379fa071/hosts/nix-starbook/hardware/fwupd.nix

https://github.com/Roger/flashrom-meson-nix

@matdibu
Copy link
Contributor

matdibu commented Mar 29, 2024

Aside from that, things like GuC and HuC seem to be enabled by default, so I don't see anything else that needs to be done other than common-pc and common-pc-ssd.

@matdibu
Copy link
Contributor

matdibu commented Mar 29, 2024

@samueldr so on your B6-A you could update the BIOS via fwupd without any additional config other than enabling the service?

@samueldr
Copy link
Member

samueldr commented Mar 29, 2024

AFAIK nothing else is needed.

The only config about fwupd in my personal config is the one I shared earlier.

Though the install happens via an UEFI capsule with the AMI platform firmware. So that might be why I don't need anything flashrom-related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants