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

create a microsoft surface image #202

Open
KUKARAF opened this issue Aug 17, 2024 · 3 comments
Open

create a microsoft surface image #202

KUKARAF opened this issue Aug 17, 2024 · 3 comments
Labels
enhancement New feature or request triage

Comments

@KUKARAF
Copy link

KUKARAF commented Aug 17, 2024

Feature Description

adding kernel support for surface linux
https://github.com/linux-surface/linux-surface/wiki/Installation-and-Setup

Rationale

huge part of the hardware does not work without the kernel and i fail to see a obvious way of adding it

Additional Information

No response

@KUKARAF KUKARAF added the triage label Aug 17, 2024
@KUKARAF KUKARAF changed the title surface linux for vanilla os surface linux support Aug 17, 2024
@juan11iguel
Copy link

(warning, I am just starting to discover vanilla os so take my take with a grain of salt)

This would probably have to be achieved by creating a custom image by forking this repo and modifying recipe.yml

Here is a draft taking the instructions from linux-surface - Installation-and-Setup

name: Vanilla Desktop
id: desktop

stages:
- id: build
  base: ghcr.io/vanilla-os/core:dev
  singlelayer: false
  labels:
    maintainer: Vanilla OS Contributors
  args:
    DEBIAN_FRONTEND: noninteractive
  runs:
    commands:
      - echo 'APT::Install-Recommends "1";' > /etc/apt/apt.conf.d/01norecommends

  modules:
	...
    - name: install-linux-surface
        type: shell
        commands:
        # Import keys
        - wget -qO - https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc | gpg --dearmor | dd of=/etc/apt/trusted.gpg.d/linux-surface.gpg
        # Update repository configuration
        - echo "deb [arch=amd64] https://pkg.surfacelinux.com/debian release main" | tee /etc/apt/sources.list.d/linux-surface.list
        - apt update
        # Install linux-surface kernel and its dependencies
        - apt install linux-image-surface linux-headers-surface libwacom-surface iptsd
        # Install linux-surface bootloader so that the kernel is bootable without disabling secureboot
        - sudo apt install linux-surface-secureboot-mok
        # Post-install instructions
        # Install CPU microcode firmware for the latest CPU updates
        - apt install intel-microcode

This probably won't work just as is, and I am unsure how this image would be kept updated as new versions of the base are updated. Maybe this is not the best approach?

@taukakao taukakao added the enhancement New feature or request label Jan 2, 2025
@taukakao taukakao changed the title surface linux support create a microsoft surface image Jan 2, 2025
@taukakao
Copy link
Member

taukakao commented Jan 2, 2025

I'm not closing this but a surface image would need a maintainer for that image who has a surface device to test it.
If someone is willing to put in the regular work required to maintain and test this image then this might happen.

@KUKARAF
Copy link
Author

KUKARAF commented Jan 9, 2025

I would be down for testing on my sb2 but atm just dont have the time to spend the time on development

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

3 participants