-
Notifications
You must be signed in to change notification settings - Fork 18
framework_tool segfaults on framework 13 Core Ultra 125H running kubuntu 24.04.2 lts #153
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
Comments
So it's trying to use the portio userspace driver because for Core Ultra you need kernel 6.12 to have it load the proper And then it's failing trying to access it like a Microchip EC, but Core Ultra already have Nuvoton EC. Do you have secureboot enabled? |
I tried it on Fedora 42 (kernel 6.14.2) on Core Ultra and it can work okay with or without the new change. |
tl;dr better as it prints a reason it think it fails before seg faulting at the same point
Cherry picked both commits in #154 to main:
it seems to seg fault at the same place bt
You seem to be hinting that the workaround is to try a newer kernel but I'm not sure from your comments if I need to disable secure boot even with a newer kernel. I can try more recent kernel and test with secure boot off, but I wont run without secure boot for daily use. Thank you for responding so quickly on this. |
With secureboot the kernel enables lockdown mode and disables insecure raw hardware access like portio.
But that branch is already based on main - any reason you didn't just check out that branch?
Ah, I didn't exit properly, try again and it should print the error but not segfault. |
no reason, it was just the path of least resistance for me I'll see how difficult it is to upgrade to a 6.14 kernel (apparently available for ubuntu 24.10) on an ubuntu lts release or just build the cros_ec_lpc module as I've done similar before. Regardless, I comment and close this issue after testing. Thanks again. |
Upgrading to a signed kernel v6.14.0-17 on 24.04 lts (hence maintaining secure boot and retaining esm updates) is possible and resolves this issue for me.
and I observed my battery charging from 60% to 70%. For the benefit of others that may find their way here, details of what I did are below; however, I do not recommend what I did (one may have to manually update the 6.14 kernels going forward, issues unknown to me may arise later, etc.). Apparently, 24.04 lts is scheduled to get kernel 6.14 in August with the 24.04.2 -> 24.04.3 update so best wait for that or go through the pain of compiling a patched cros_ec_lpc, DKMS compliant, 6.11 loadable kernel module (and then undoing that when the kernel updates to 6.14). detailsSigned 6.14 kernel image from here. The remaining kernel packages came from here.
reboot and it "just worked" (including my win11 kvm instance) Note just after I did the kernel upgrade (and after verifying that framework_tool is now working as expected) some framework firmware updates popped up - not sure if that was related. I installed them and so far no issues. Hope I can roll-back if needed. Another good reason to not do what I did unless you're confident in your choices. |
Thanks for confirming and the detailed steps :D |
Uh oh!
There was an error while loading. Please reload this page.
I can build and partially run framework_tool on a framework 13 Intel Core Ultra Series 1 125H running kubuntu 24.04.2 LTS, kernel 6.11.0-25-generic:
However I get seg faults for many args. For example:
The charge limit is currently set to 60% via bios.
I can get the following back trace:
I followed the building instructions but if I've done something silly to get here, please let me know. I am unfamiliar with rust and the inner workings of the framework bios so will be of little use fixing this. That said, I can provide additional troubleshooting and testing.
Thank you.
The text was updated successfully, but these errors were encountered: