linux-surface / linux-surface

Linux Kernel for Surface Devices
4.71k stars 206 forks source link

Surface 6 pro - I cannot boot to linux #1325

Open coacharnold1 opened 6 months ago

coacharnold1 commented 6 months ago

I have looked up and down and cannot find the answer for this

I have changed secure boot to secure boot and 3rd party CA

I'm running windows 11 on a Surface 6 Pro, I cannot boot to a live usb running either Fedora or Ubuntu created both in windows on rufis and linux using DD.

in both fedora and ubuntu I get to grub and select linux try/install in the case of fedora it goes to a black screen with a curser in the top left. In Ubuntu, i get a boot screen with ubuntu logo, then a mess of data scrolls with an error i cannot read .... in continues until I force a power off

I have used several different USB sticks all of with i test out on a laptop after creating and they work fine. I see random messages about a surface firmware upgrade that causes this, but i cant find anything that says this exactly.

I was really hoping to set this up as dual boot, but i'm growing doubtful that linux will run.

any thoughts?

thanks Tim

sughero commented 6 months ago

if you completely disable secure boot (chose "None" in following menu) IMG_20231218_185817981

does system start?

coacharnold1 commented 6 months ago

no it still gets hung up after grub, and then the stupid bit locker encryption makes me jump through hoops to get windows back. I haven't yet figured out how to disable that.

lcyf9102s commented 6 months ago

I have faced the same issue on surface pro 7, trying to install fedora workstation 39. Then I tried arch linux, seems to work fine. Maybe It's distro related?

sughero commented 6 months ago

no it still gets hung up after grub, and then the stupid bit locker encryption makes me jump through hoops to get windows back. I haven't yet figured out how to disable that.

If I understood correctly in your first message you said you changed secure boot to "Microsoft and 3rd party CA".

Maybe I got you wrong but I've got the impression you're trying to boot an unsecure OS using secure boot. Bitlocker is a filesystem encryption of your NTFS partition and has nothing to do with linux. If you don't disable completely secure boot you won't be able to launch an unsigned kernel.

In order to boot an untrusted system I would

  1. Go to the BIOS,
  2. Change secure boot configuration to "None" (not to MS or 3rd party signed whatever)
  3. Disable TPM and then reboot.

Once you reboot you can easily check wether secure boot is disabled: you should see an open locker at the top of the screen on a red ribbon along with boot logo as in the picture below. If you see the boot logo without the locker it means secure boot is still on. Only if you see the open locker you are sure that secure boot is disable and you can boot whatever you want.

69104adf-89e4-48dd-bf7d-725505a25bb3

This is the only condition you will be able to boot from usb. Once you're done with installation, and your system boots fine "untrusted" you can try to get secure boot with linux. If, for some reason, you want to enable secure boot back again you can follow a guide on how to sign your kernel.

ruslanbay commented 6 months ago

Probably related to #1274 and #1162

gamer191 commented 6 months ago

Bitlocker is a filesystem encryption of your NTFS partition and has nothing to do with linux.

Doubt it's related to this, but Bitlocker would make it impossible to shrink the NTFS partition, thus making it impossible to install Linux without first repartitioning your hard drive in Windows (or wiping your hard drive completely)

then a mess of data scrolls with an error i cannot read

Can you please send a photo?

By the way, I'm right now on a Surface Pro 6 running Ubuntu, and I'm happy to run some tests if anyone suggests any

Pairman commented 5 months ago

I'm facing the same issue on my SP7P after a windows update in September last year (I don't remember if it includes firmware update). Starting from that day I cannot boot into my installed Fedora. Grub will stuck showing "_" after selecting a boot entry.

I cannot boot into live CD like normal either. "Start Fedora... live CD" has the same issue above, and my USB's LED lights are not blinking, indicating that there's no r/w happening. With "Test this media ..." I can boot into Fedora live CD successfully.

I'm not using BitLocker and disabling secure boot doesn't do anything. Currently my machine is sent to repair and hope Microsoft will get me a new motherboard.

Pairman commented 4 months ago

I've found the old bootable UEFI firmware for Surface Pro 7+. Unfortunately I have no device to try it currently. So I'm leaving the links here in case someone interested.

Update: my SP7P has been fixed and shipped back. Firmware stays new after replacing motherboard, so the only usable way is downgrading.

Update: The links for the firmware was wrong. This is the right link : https://www.catalog.update.microsoft.com/Search.aspx?q=UEFI%5CRES_%7Bf3e47718-bcbb-4691-b67f-5408c8f8105f%7D

"Surface - Firmware - 18.200.143.0" can be installed and boot Fedora successfully.

bad1dea commented 4 months ago

I've found the old bootable UEFI firmware for Surface Pro 7+. Unfortunately I have no device to try it currently. So I'm leaving the links here in case someone interested.

Update: my SP7P has been fixed and shipped back. Firmware stays new after replacing motherboard, so the only usable way is downgrading.

Update: The links for the firmware was wrong. This is the right link : https://www.catalog.update.microsoft.com/Search.aspx?q=UEFI%5CRES_%7Bf3e47718-bcbb-4691-b67f-5408c8f8105f%7D

"Surface - Firmware - 18.200.143.0" can be installed and boot Fedora successfully.

Any chance you can find the one for SP6 and.. guide to install?

Pairman commented 4 months ago

I've found the old bootable UEFI firmware for Surface Pro 7+. Unfortunately I have no device to try it currently. So I'm leaving the links here in case someone interested. Update: my SP7P has been fixed and shipped back. Firmware stays new after replacing motherboard, so the only usable way is downgrading. Update: The links for the firmware was wrong. This is the right link : https://www.catalog.update.microsoft.com/Search.aspx?q=UEFI%5CRES_%7Bf3e47718-bcbb-4691-b67f-5408c8f8105f%7D "Surface - Firmware - 18.200.143.0" can be installed and boot Fedora successfully.

Any chance you can find the one for SP6 and.. guide to install?

Sorry but I don't know the UUID of SP6. You can use an older drivers .msi installer and unpack it to get the older UEFI firmware .cab file. The downgrade tutorial is mentioned in the google docs in https://github.com/linux-surface/linux-surface/issues/1162

ashleybwalton commented 1 month ago

Surface7 user.

FC39 surface kernel will not boot on my Fedora Desitro. Neither will the default distro FC39 kernel. Fortunately I can select FC38 from Grub and have set this to default, and still works fine.

This issue seems to be blocking upgrading to FC40 also, but may be unrelated.

ashleybwalton commented 1 month ago

I manually installed the FC40 kernel prior to upgrade, and then manually selected the working kernel (fc38) for the upgrade, and then flipped to the fc40 kernel post upgrade restart.

dnf install --best --allowerasing kernel-surface iptsd libwacom-surface --releasever=40 --nogpgcheck