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

Some GRUB versions do not work #12

Open
qzed opened this issue Jun 10, 2022 · 2 comments
Open

Some GRUB versions do not work #12

qzed opened this issue Jun 10, 2022 · 2 comments
Labels
A: Boot Area: Boot problems

Comments

@qzed
Copy link
Member

qzed commented Jun 10, 2022

Some GRUB versions, notably the ones provided by Arch Linux ARM and Fedora, do not seem to work well with the Surface Pro X and prevent the kernel from booting. The device seems to lock up even before the kernel exits the EFI stub. This may be an issue with kernel loader changes introduced by Red Hat, as plain upstream GRUB sources seem to behave well. We should find out what exactly causes this issue.

Known working GRUB images can be found at https://github.com/linux-surface/grub-image-aarch64.

@qzed qzed added the A: Boot Area: Boot problems label Jun 10, 2022
@qzed qzed mentioned this issue Jun 12, 2022
@qzed
Copy link
Member Author

qzed commented Jun 28, 2022

See linux-surface/grub#1 for more information.

@qzed
Copy link
Member Author

qzed commented Jun 29, 2022

It looks like the Pro X is one of the few devices that actually care about different memory types and the redhat patches allocate data-type memory for the kernel. When we try to execute that on the Pro X, it stalls. Allocating code-type memory instead fixes this: linux-surface/grub@55b95a3. I've submitted a PR with this commit to rhboot/grub2: rhboot/grub2#101.

@qzed qzed moved this from Todo to Tracking Upstream in Surface Pro X Linux Support Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: Boot Area: Boot problems
Projects
Status: Tracking Upstream
Development

No branches or pull requests

1 participant