opened 01:25AM - 09 Nov 22 UTC
Discussion started in Issue #7, splitting to it's own issue for trackin…g:
I've recently gotten ahold of a [windows dev kit 2023](https://learn.microsoft.com/en-us/windows/arm/dev-kit/), which appears to be a surface pro 9 (5g) / sq3 in a box, and I'm attempting to boot linux on it with these patches.
Progress so far -
Booting base Ubuntu 22.04.1 LTS arm image - Hangs at:
Booting a command list
Synchronous Exception at 0x0000000C1B17927C
Building a "default" profile image with the [image tool](https://github.com/linux-surface/aarch64-arch-mkimg) - Hangs at:
Booting into Surface kernel...
EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
Barring better suggestions, I'm going to try to extract the firmware with the script from aarch64-firmware and stuff it into the arch image above and see where that gets booting
1) could possibly be fixed by https://github.com/linux-surface/grub/commit/55b95a388414a3d850e24fd2ae8fac100ffd9319. So you could try to use e.g. the pre-built grub from https://github.com/linux-surface/grub-image-aarch64/releases/tag/fedora-37-2 with your Ubuntu kernel. Alternatively, just use the image from 2) which contains the patched grub, but remove the `devicetree` option from the boot entry. That should get you booting in ACPI mode.
2) is way before any firmware gets loaded, so I doubt that that will make any difference. Can you make sure that `efi=novamap` is set (press `e` in the grub menu to edit)? Also, this is booting with the SPX DT, and I'm not sure if that's a good idea. So as I've said above, you can remove the `devicetree` option in the grub config and it should hopefully get you a bit further.
You can also experiment with `earlycon=efifb`.
In the long run, you'll probably want to have a look at the DT of the sc8280xp (that is 8cx Gen 3; it's also used in the Thinkpad X13s) and use that as a base. Also, you might want to join the `oftc/#aarch64-laptops` IRC. There are a lot more experienced people who also might have some ideas.
_Originally posted by @qzed in https://github.com/linux-surface/surface-pro-x/issues/7#issuecomment-1306998491_