| -rw-r--r-- | Fedora.kiwi | 4 | ||||
| -rw-r--r-- | Jenkinsfile | 6 | ||||
| -rw-r--r-- | README.md | 46 | ||||
| -rw-r--r-- | docs/Fedora45Progress.jpg | bin | 2694880 -> 0 bytes | |||
| -rw-r--r-- | teams/cloud/container.xml | 16 |
5 files changed, 25 insertions, 47 deletions
diff --git a/Fedora.kiwi b/Fedora.kiwi index 4804bf5..6ac2adb 100644 --- a/Fedora.kiwi +++ b/Fedora.kiwi @@ -7,12 +7,12 @@ <specification>Fedora Linux</specification> </description> <preferences> - <version>46</version> + <version>45</version> <packagemanager>dnf5</packagemanager> <locale>en_US</locale> <keytable>us</keytable> <timezone>UTC</timezone> - <release-version>46</release-version> + <release-version>45</release-version> </preferences> <include from="this://./repositories/core.xml"/> <include from="this://./repositories/kernel-sp12in.xml"/> diff --git a/Jenkinsfile b/Jenkinsfile index c9db63a..1732307 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { KIWI_FILE = 'Fedora.kiwi' IMAGE_TYPE = 'iso' IMAGE_PROFILE = 'Workstation-Live' - IMAGE_VERSION = '46' + IMAGE_VERSION = '45' OUTPUT_DIR = 'outdir' B2_ENDPOINT = 'https://s3.eu-central-003.backblazeb2.com' @@ -18,7 +18,7 @@ pipeline { // Must match the <source path="..."/> in // repositories/kernel-sp12in.xml. - KERNEL_SURFACE_REPO_URL = 'https://rpm.sayag.it/kernel-sp12in/fedora/46/aarch64' + KERNEL_SURFACE_REPO_URL = 'https://rpm.sayag.it/kernel-sp12in/fedora/45/aarch64' // awscli2 sends CRC32 checksums by default, which B2 rejects. Ask for // them only where the S3 API requires them. @@ -41,7 +41,7 @@ spec: kubernetes.io/arch: arm64 containers: - name: kiwi - image: fedora:45 + image: fedora:44 imagePullPolicy: Always command: [ 'sleep' ] args: [ 'infinity' ] @@ -1,13 +1,9 @@ # Fedora KIWI image descriptions, modified to build & launch for Surface Pro 12" Gen 1 - - -**UPD Sep 10 2026:** There has been huge progress made in this project since August! Thanks to kernel patches, pushed onto Linux 7.2 mainstream and [Gentoo overlay](https://github.com/miasvanklei/Gentoo-overlay), most of the previous features which this release lacked (stable suspend on GNOME, accelerometer sensor, dedicated video output, cameras) are now implemented. The project has diverged into [patched kernel](https://sayag.it/fedora-linux-surface-pro-12in/kernel-surface.git) + [libcamera](https://sayag.it/fedora-linux-surface-pro-12in/libcamera.git) builds with an [RPM repo](https://rpm.sayag.it/kernel-sp12in/) publicly available. You can see current state of things in a [feature matrix](#feature-matrix) down below. -  -It is the fork of the original [KIWI image descriptions](https://forge.fedoraproject.org/releng/kiwi-descriptions), modified for launching Fedora Linux 45 Live ISO on Surface Pro 12" Gen 1 (and further installing it on the device). +It is the fork of the original [KIWI image descriptions](https://forge.fedoraproject.org/releng/kiwi-descriptions), modified for launching Fedora Linux Rawhide Live ISO on Surface Pro 12" Gen 1 (and further installing it on the device). I bought this device as I viewed it as a great Linux GNOME tablet, but after several days, many hours of work of trying to do so, I must say that installing a distribution here (and then having it work fine) is a huge pain in the ass. @@ -15,9 +11,9 @@ I bought this device as I viewed it as a great Linux GNOME tablet, but after sev ## How to run -**The compiled ISOs can be downloaded [here](https://dist.sayag.it/fedora/46/aarch64).** +**The compiled ISOs can be downloaded [here](https://dist.sayag.it/surface-pro-12in-ports/fedora/rawhide).** -This KIWI project is built mainly on the base of Fedora Workstation 46 (Pre-release) LiveCD ISO. Trying a stable version (the latest is Fedora 44 at the time of writing this) is possible, but not tested for now. +This KIWI project is built mainly on the base of Fedora Workstation Rawhide LiveCD ISO. Trying a stable version (the latest is Fedora 44 at the time of writing this) is possible, but not tested for now. If you want to compile this image manually, **the build arch must be `aarch64`**. It means that if you are on an `amd64` machine, you would have to use aarch64 instructions emulation tools like `binfmt`. Unfortunately, such a tool will drastically increase the compilation time. @@ -34,29 +30,7 @@ To build this on Fedora Linux: []$ sudo ./kiwi-build --kiwi-file=Fedora.kiwi --image-type=iso --image-profile=Workstation-Live --output-dir ./outdir ``` -## Feature matrix - -| Hardware | State | Nuances | -| --- | --- | --- | -| Keyboard | ✓ | | -| Touchpad | ✓ | | -| Tablet Mode | ✓ | | -| Touchscreen | ✓ | | -| Pen | ✓ | Tested with Surface Slim Pen | -| WiFi | ✓ | 2.4/5 GHz networks | -| Bluetooth | ✓ | | -| Speakers | ✓ | | -| Buttons | ✓ | | -| Suspend | ✓ | `s2idle` tested | -| Hibernate | ? | | -| Sensors | ✓ | Accelerometer works, but light sensor outputs garbage, so adaptive brightness is disabled | -| Battery Status | ✓ | | -| Cameras | ✓ | Front camera -- overexposured areas tend to get green; back camera -- uncalibrated | -| GPU acceleration | ✓ | Video encoding/decoding driver is taken dynamically from a Windows partition | -| USB 3 | ✓ | Video passthrough on hubs (via HDMI) also tested and works | -| DisplayPort out | ✓ | Found issues with suspending while an external monitor is active, where the system freezes | - -## Compromises +## What is left out (for now) * Live CD has to run in RAM, so `rd.live.ram=1` is set for cmdline. Otherwise, at least on my ancient flash drive, it fails to load multiple necessary services, including `polkit`. So, ~5 minutes of loading on USB 2 drive, while screen is not backlit, is to be expected. * No rescue vmlinuz. @@ -64,17 +38,21 @@ To build this on Fedora Linux: * No GRUB auto hidden menu. Trying to have the menu hidden results in system restarting after trying to boot it. * Hardware video encoding/decoding needs a firmware blob the image is not allowed to ship. The `qcom/vpu/vpu30_p1_s7.mbn` that `linux-firmware` provides is the same codec signed with Qualcomm's SecTools *test* key chain, which a retail Surface's TrustZone rejects -- `qcom_scm_pas_init_image()` fails and the kernel logs `qcom-iris aa00000.video-codec: error -22 initializing firmware`. The production-signed build exists only inside Microsoft's Surface driver package, which grants no redistribution right, so what ships here is the means and not the blob: * If you kept the Windows ARM64 partition, `surface-video-firmware.service` finds it on the first boot after install and copies `qcvss8380_pa.mbn` out of its DriverStore. Nothing to do. - * If Windows is gone, download the [Surface Pro 12-inch driver pack](https://www.microsoft.com/en-us/download/details.aspx?id=108199) (~500 MB MSI) and run `sudo surface-video-firmware.sh -m /path/to/SurfacePro_12in_*.msi`. + * If Windows is gone, download the [Surface Pro 12-inch driver pack](https://www.microsoft.com/en-us/download/details.aspx?id=108199) (~500 MB MSI) and run `sudo surface-video-firmware.sh -m /path/to/SurfacePro_12in_*.msi`. There is no automatic download: the Download Center hands out per-session links. The kernel's device tree already points `iris` at `/lib/firmware/qcom/x1p42100/Microsoft/Surface12/qcvss8380_pa.mbn`, so the driver picks it up as soon as it is there. -* Explicitly set `s2idle` suspend mode, as `deep` mode did not work properly as of August (when the iso was built without kernel patches). Currently untested if `deep` mode works now. -* No 6 GHz network support (at least my device does not detect mine). -* Adaptive brightness is disabled, as of now the light sensor outputs garbage. +* Suspend on Snapdragon X is still very unstable. No deep sleep is available, so `mem_sleep_default=s2idle` was set. Even that leads to compromises as suspending via GNOME results in hard freeze, so the default power button behavior was changed to `interactive` and should not be changed back to `suspend`. ## Image variants Please look at [`VARIANTS`](VARIANTS.md) for details on the available configurations that can be built. +## CI information + +This project is yet to adapt CI, but it is coming. + +For now the images are being built and tested manually on my personal Surface Pro 12" Gen 1 (16 GB RAM, 512 GB storage). + ## Licensing This is free software: you can redistribute it and/or modify diff --git a/docs/Fedora45Progress.jpg b/docs/Fedora45Progress.jpg Binary files differdeleted file mode 100644 index 0f4a22b..0000000 --- a/docs/Fedora45Progress.jpg +++ /dev/null diff --git a/teams/cloud/container.xml b/teams/cloud/container.xml index c817bce..25dcd49 100644 --- a/teams/cloud/container.xml +++ b/teams/cloud/container.xml @@ -17,7 +17,7 @@ <type image="oci"> <containerconfig name="fedora" - tag="46" + tag="45" maintainer="Fedora Project Contributors <devel@lists.fedoraproject.org>" > <subcommand execute="/bin/bash"/> @@ -26,7 +26,7 @@ <label name="org.opencontainers.image.url" value="https://fedoraproject.org/"/> <label name="org.opencontainers.image.licenses" value="MIT"/> <label name="org.opencontainers.image.title" value="fedora"/> - <label name="org.opencontainers.image.version" value="46"/> + <label name="org.opencontainers.image.version" value="45"/> </labels> <environment> <env name="container" value="oci"/> @@ -43,7 +43,7 @@ <type image="oci"> <containerconfig name="fedora-minimal" - tag="46" + tag="45" maintainer="Fedora Project Contributors <devel@lists.fedoraproject.org>" > <subcommand execute="/bin/bash"/> @@ -52,7 +52,7 @@ <label name="org.opencontainers.image.url" value="https://fedoraproject.org/"/> <label name="org.opencontainers.image.licenses" value="MIT"/> <label name="org.opencontainers.image.title" value="fedora-minimal"/> - <label name="org.opencontainers.image.version" value="46"/> + <label name="org.opencontainers.image.version" value="45"/> </labels> <environment> <env name="container" value="oci"/> @@ -69,7 +69,7 @@ <type image="oci"> <containerconfig name="fedora-init" - tag="46" + tag="45" maintainer="Fedora Project Contributors <devel@lists.fedoraproject.org>" > <subcommand execute="/sbin/init"/> @@ -78,7 +78,7 @@ <label name="org.opencontainers.image.url" value="https://fedoraproject.org/"/> <label name="org.opencontainers.image.licenses" value="MIT"/> <label name="org.opencontainers.image.title" value="fedora-init"/> - <label name="org.opencontainers.image.version" value="46"/> + <label name="org.opencontainers.image.version" value="45"/> </labels> <stopsignal>SIGRTMIN+3</stopsignal> </containerconfig> @@ -92,7 +92,7 @@ <type image="oci"> <containerconfig name="fedora-toolbox" - tag="46" + tag="45" maintainer="Fedora Project Contributors <devel@lists.fedoraproject.org>" > <subcommand execute="/bin/bash"/> @@ -101,7 +101,7 @@ <label name="org.opencontainers.image.url" value="https://fedoraproject.org/"/> <label name="org.opencontainers.image.licenses" value="MIT"/> <label name="org.opencontainers.image.title" value="fedora-toolbox"/> - <label name="org.opencontainers.image.version" value="46"/> + <label name="org.opencontainers.image.version" value="45"/> <label name="com.github.containers.toolbox" value="true"/> </labels> <environment> |