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

soft lockup cpu on galaxy book s #16

Open
nullexistence opened this issue May 30, 2021 · 79 comments
Open

soft lockup cpu on galaxy book s #16

nullexistence opened this issue May 30, 2021 · 79 comments

Comments

@nullexistence
Copy link

DSC_0060

@TheOneWithTheBraid
Copy link

Could you solve this? I got similar problems too, even though I tried newer kernels too (which should theoretically support the Snapdragon 8cx).

@ghost
Copy link

ghost commented Jun 11, 2022

I found a workaround, it will sound absolutely insane but still.
I just plugged a second usb stick into the laptop.

My setup is:
Left usb port with installer
Right port with some random fat32 stick.
Have sadly no time to tinker atm and have done no more testing just saw that I was suddenly sitting in the Debian installer.

On a unrelated note. Does any one know what this image does differently to any other arm64 installer from other distros? Fedora and any other just reboot after grub.
20220611_161135_1

@ghost
Copy link

ghost commented Jun 11, 2022

Finally installed it, and got it to boot I to multiuser target

@ghost
Copy link

ghost commented Jun 12, 2022

20220612_100201_1

Charger is not working

@TheOneWithTheBraid
Copy link

For me, this didn't work. Could you maybe add some more words on what you did before?

In my case, the Grub simply reboots - even when having the second USB drive connected.

Did you use the Debian image linked in the release https://github.com/aarch64-laptops/debian-cdimage/releases/tag/v0.4?

What device tree blob did you load? Did you change any settings in the UEFI settings?

@ghost
Copy link

ghost commented Jun 13, 2022

Yes, I used debian-unstable-arm64-DVD-1_20210314.iso
with no changes to device tree. While installing I used two usbc -> usba adapters with usb sticks. But later realized that one usbc -> usba adapter and my usbc -> ethernet adapter also did the trick.
Check the first photo by nullexistance. I get the cpu lockup from his photo everytime I have just one port occupied.

Edit:
I think it's a problem with power delivery and having those usb2.0 devices maybe somehow works around some problem.

@TheOneWithTheBraid
Copy link

Ah, I found my problem: Using a USB 3 drive simply didn't work. Switching to a USB 2 drive did the trick.

@misyltoad
Copy link

How did you manage to use debian-unstable-arm64-DVD-1_20210314.iso?

I dd'ed it to a flash drive and my boot menu doesn't pick up on it. I tried dd'ing a raw (not ISO) Fedora image and it detects it, but as noted above doesn't work.

Seems like my Book S doesn't detect any isohybrid images.

@misyltoad
Copy link

I committed some horrible sins and dumped the ISO contents all onto a vfat partition, and that at least got me to the soft lockup

@misyltoad
Copy link

The double USB trick worked here too, haha amazing!

@misyltoad
Copy link

I got the error "Failed to determine the codename for the release" but worked around by plugging in an ethernet cable to my Dock.

@pierro78
Copy link

pierro78 commented Aug 10, 2022

thanks for sharing the double usb trick !!

here are some newbie notes/questions :

apparently I still need the double usb trick to boot from internal ssd ...
... maybe this could be fixed by installing a newer kernel as told in https://github.com/aarch64-laptops/debian-cdimage ?? but which version ?? is 5.19 available ??

also gdm3 was giving me a black screen but I managed to open an alternative console (with "Ctrl Alt F2") and I installed the openssh-server to work more easily from another PC ... but I needed an ethernet cable to connect to the galaxy book S ... anybody has found how to connect the galaxy book S through wifi ??
... then I installed xfce and using lightdm worked to start my DEs !! (gnome was kind of slow but xfce feels faster ...)

also as @Systemscape said the charger doesn't seem to charge ... anybody found a solution to get the galaxy book S to charge ???
... and what tool can we use to check if the galaxy book S is actually charging ??

also from https://github.com/aarch64-laptops/debian-cdimage "Firmware installation" it looks like we need to load some kind of firmware for the galaxy book S to get some hardware blocks working ?? but how do we do that ??

thanks folks for any help !!

... oops ... sound doesn t seem to work ... did anybody find a way to make it work ??
... thanks again !

PS1 : installed the linux arm64 thorium browser (with google sync) from https://github.com/Alex313031/Thorium-Special/releases ... only 6725 in octane v2 (got about 32500 with Edge on Windows ...) ... chromium only 6493 ... firefox feels slow too ... anybody has an idea how to improve performance ??

PS2 2022 08 11 : here is an answer I got on https://webchat.oftc.net/?channels=%23aarch64-laptops (archive : https://oftc.irclog.whitequark.org/aarch64-laptops/2022-08-11 ) (not sure I understand everything) (see also comment below) :

15:39 <jenneron[m]> pierro78: i started to work on samsung galaxy book s, but it needs multi port usb for keyboard/touchpad, there are 5.19-based branches with support for it, but on 5.19 pmic arbiter fails..
15:41 <jenneron[m]> if you want to play around with it e.g. to bisect some kernel versions, you can use my dtb https://gitlab.com/jenneron/linux/-/commit/76f402e89cfb8308eb44822eda8fc816282d74a1, the latest version which works was 5.15 rc something

@misyltoad
Copy link

Something broke for me and now I always get dumped straight into grub minimal on the same flash drive I had working before argh

@pierro78
Copy link

pierro78 commented Aug 11, 2022

here is an answer I got on https://webchat.oftc.net/?channels=%23aarch64-laptops (archive : https://oftc.irclog.whitequark.org/aarch64-laptops/2022-08-11 ) (not sure I understand everything) :

15:39 <jenneron[m]> pierro78: i started to work on samsung galaxy book s, but it needs multi port usb for keyboard/touchpad, there are 5.19-based branches with support for it, but on 5.19 pmic arbiter fails..
15:41 <jenneron[m]> if you want to play around with it e.g. to bisect some kernel versions, you can use my dtb https://gitlab.com/jenneron/linux/-/commit/76f402e89cfb8308eb44822eda8fc816282d74a1, the latest version which works was 5.15 rc something

PS :
device tree :
https://gitlab.com/jenneron/linux/-/tree/galaxy-book-s

@pierro78
Copy link

progress as seen on https://oftc.irclog.whitequark.org/aarch64-laptops/2022-08-17 :

20:11 <jenneron[m]> qzed: thank you, disabling pmic@a and pmic@2 does the trick
20:11 <jenneron[m]> also, your usb-mp patchset gives working keyboard and touchpad on samsung galaxy book s

@pierro78
Copy link

pierro78 commented Aug 22, 2022

progress thanks to jenneron and the aarch64-laptops group : newer kernel 5.19.0 with patches, dtb, firmware ... still working on it to add stuff (like, for example, wifi) ... octane v2 28228 on thorium instead of 6725 with debian-cdimage kernel ... can boot with an empty usb slot ... all the "dirty details" are in the irc archive, for example https://oftc.irclog.whitequark.org/aarch64-laptops/2022-08-21 ...

just adding some notes here :
. grub.cfg entry : add "devicetree /path/to/dtb" (somewhat similar to https://dpaste.com/C9AWZJTFA)
. I built the kernel without ufs support but it seems to work fine from internal ssd ...
. firmware files into /lib/firmware/qcom/sc8180x/sm-w767 and /lib/firmware/qcom

@pierro78
Copy link

pierro78 commented Aug 23, 2022

progress : wifi working (but no touchscreen, and no charging) (dirty details in https://oftc.irclog.whitequark.org/aarch64-laptops/2022-08-23 )

@IDavideI
Copy link

Hi everyone, i'm also trying to make linux working on the samsung galaxy book S 2020. Mine is with intel lakefield, and I noticed that Fedora 36 and Pop!_OS work on the computer (touchpad, touchscreen and keyboard). Pop!_OS is better because Fedora 36 crashes a lot of time. 2 things do not work:

  • the soundcard is not detected, thus there is no audio and no microfone;
  • the battery isn't recognized and you can't see how much battery is left. Anyway if the computer is connected to the power it get in charging.
    I don't know if these informations are useful. If you have some advice for me, then share with me please. Thanks

@monkeyfart34
Copy link

How did you manage to use debian-unstable-arm64-DVD-1_20210314.iso?

I dd'ed it to a flash drive and my boot menu doesn't pick up on it. I tried dd'ing a raw (not ISO) Fedora image and it detects it, but as noted above doesn't work.

Seems like my Book S doesn't detect any isohybrid images.

Same here, I'm able to boot to grub but its just restarts into windows past that

@pierro78
Copy link

pierro78 commented Aug 27, 2022

Same here, I'm able to boot to grub but its just restarts into windows past that

you need to add DtbLoader.efi as explained in https://github.com/aarch64-laptops/debian-cdimage
also you need 2 USB2 sticks for the system to run with this debian-unstable-arm64-DVD-1_20210314.iso ...

I could build an iso with jenneron's kernel, dtb and firmware but I don t know how to do it ... need to find some instructions ...

PS : here are some instructions to build a debian iso installer : https://github.com/Mani-Sadhasivam/debian-cdimage/tree/main/doc ( as seen on https://oftc.irclog.whitequark.org/aarch64-laptops/2022-09-01 )

@pierro78
Copy link

pierro78 commented Aug 30, 2022

I could build an iso with jenneron's kernel, dtb and firmware but I don t know how to do it ... need to find some instructions ...

in the meantime I am "releasing" the packages made from jenneron's kernel v5.19 sources here : https://github.com/pierro78/galaxybooks8cxkerneldeb/releases/tag/v0.1

i am going to explain how to install these below

@pierro78
Copy link

pierro78 commented Aug 30, 2022

i am going to explain how to install these below

these kernel v5.19 packages and files bring the following avantages over the 5.11custom kernel that is included in the debian-unstable-arm64-DVD-1_20210314.iso :
. no need to keep usb sticks in usb ports
. speed (octane v2 about 28500 instead of 6500)
. wifi

however it is still very much a work in progress :
. touchscreen not working
. not drawing power from charger ? (jenneron released another dtb where the laptop would draw some power (like 6W) but not enough to charge) (actually no : I tried again and it now charges for a minute at the beginning (like 30W) and then it only draws like 5W)
. seems like external usb storage is not working ? (maybe jenneron released some other dtbs where this was working) (strange thing is I can boot debian linux on external usb, but then it sees only the external usb storage with debian as /dev/sda and not the others I plugin ...) (oh : when I plugin my usb storage in my usb c hub then it sees it !)
. no sound
. minimal kernel (some features are not activated ... like, for example, network bridge needed by docker)

Installation :
. install the .deb packages
. copy the dtb to /boot and add a line like "devicetree /boot/dtbfilename" to your grub entry, update grub
. untar the firmware file from / directory (it will untar the contained files in /lib/firmware/qcom ... )

I hope this will bring some attention to the remarkable work that jenneron has done with the help of the aarch64-laptops group and that we'll have a better functionning linux on our snapdragon galaxy book S in the future ...

2022 09 14 CAUTION NOTE

@Joshua-Ashton tried to use these files/packages but it didn t work for him. I don't know why (I ve got debian installed with these files/packages (I think) on 2 partitions and these 2 installations work)

but according to https://oftc.irclog.whitequark.org/aarch64-laptops/2022-09-13 , if I get it right, @Joshua-Ashton was able to get a working 5.19 kernel on his galaxy book s ...

@ghost
Copy link

ghost commented Sep 3, 2022

I'm grateful that there is progress on this laptop.
Thanks especially to jenneron for his work and time he contributed into pushing this forward.

@pierro78 you should add a word of caution for using those packages you assembled. Like you said this is testing quality. Jenneron device is also starting to suffer permanent display glitches.
Mine looks unaffected though.

@misyltoad
Copy link

you need to add DtbLoader.efi as explained in https://github.com/aarch64-laptops/debian-cdimage

I didn't get that automatically placed for me when I used the installer :/

@misyltoad
Copy link

I copied the DTBLoader from the deb and it still doesn't boot... Maybe its missing the dtb files or something idk.

@pierro78
Copy link

pierro78 commented Sep 11, 2022

you need to add DtbLoader.efi as explained in https://github.com/aarch64-laptops/debian-cdimage

@Joshua-Ashton : you need to follow the instructions in the "AArch64 quirks" section of https://github.com/aarch64-laptops/debian-cdimage to get the "AArch64 EFI" to load/boot linux ... this implies starting Shell.efi to run a bcfg command to modify the linux EFI boot entry ...

@misyltoad
Copy link

No what I mean is there was no dtbloader for the bcfg to use. It was not present after install. I will try re-installing today and maybe it'll work.

@misyltoad
Copy link

Okay I reinstalled it and got it to kinda boot. It gets onto kernel cmdline, I keep the two sticks in so it doesn't lockup and it hangs on a black screen with a _ after that.

@misyltoad
Copy link

It seems stuff goes to crap when it starts graphical session for me... I can get a bit of tty by spamming ctrl + alt + FX before boot, but after gdm starts or whatever it goes to crap and freezes :S

@misyltoad
Copy link

Managed to use text on cmdline to get in and disable gdm + enable ssh

@matdomis
Copy link

Hey guys! Any updates? I'm really looking forward to use linux in this machine.

Is any linux distro working fine on Book S with the latest kernel updates??

I really need for my school/work.

Also do you recommend making a Dual Boot to not delete windows if any thing goes wrong with the linux OS?

@pierro78
Copy link

pierro78 commented Jan 31, 2023

Any updates?

I am following the devs work on the aarch64-laptops irc and to my understanding there has not been notable progress lately although jenneron has worked on his Snapdragon Book S recently

@mothenjoyer69
Copy link

@pierro78 @matdomis Unfortunately nothing from my end; My Galaxy Book S has been loaned out for the foreseeable future, and I haven't quite been able to stomach the cost of buying a second unit yet. It is a device I am keen to return to when I am able to. It does look like jenneron has done some work lately, although I haven't touched base with them in a while.

@SNF444
Copy link

SNF444 commented Feb 17, 2023

Hey all

Just wondering about the potential NAS applications with the work being done here. At this stage from my understanding is that the charging has issues but I'm wondering if enough power is delievered to keep the device on indefinitely as long as it remains plugged in ?

If thats the case does anyone know of any potential issues running things like docker or OMV, any virtual machines and shares etc.

It wouldn't require graphical desktops and the like, aswell touchscreen and similar features, acting only as a low powered NAS just for the sake of it.

@pierro78
Copy link

@SNF444 : the kernel provided in #16 (comment) is minimal and some features are not activated ... like, for example, network bridge needed by docker ... so you'd need to recompile your kernel if you want to do docker stuff with an up-to-date kernel ...

@SNF444
Copy link

SNF444 commented Feb 19, 2023

Thanks for the quick reply , and alright I think thats doable I'll give it ago.

@pierro78
Copy link

pierro78 commented Apr 8, 2023

comment from "agl7" on the aarch64-laptops irc :
"As a Linux system I got Armbian to work. But not really either, there are always kernel panic errors."

https://oftc.irclog.whitequark.org/aarch64-laptops/2023-04-08
.

@SlowKnight0
Copy link

SlowKnight0 commented Apr 9, 2023

Hey I'm very much a novice when it comes to regular linux let alone talking about kernels and what not.

I've followed this page in a regular x64 Ubuntu vm:

https://github.com/Mani-Sadhasivam/debian-cdimage/tree/main/doc

And this error appeared in the very first of the Build kernel deb

Screenshot 2023-04-09 130615

When I look for the lexer.lex.c it isn't in the respoitory if thats correct.

Can anyone point in the right direction ?

@pierro78
Copy link

pierro78 commented Apr 9, 2023

Hey I'm very much a novice when it comes to regular linux let alone talking about kernels and what not.

I've followed this page in a regular x64 Ubuntu vm:

https://github.com/Mani-Sadhasivam/debian-cdimage/tree/main/doc

And this error appeared in the very first of the Build kernel deb

Screenshot 2023-04-09 130615

When I look for the lexer.lex.c it isn't in the respoitory if thats correct.

Can anyone point in the right direction ?

are you trying to cross compile your ARM Snapdragon Galaxy Book S kernel ?
it might be easier to compile it under windows on your ARM Snapdragon Galaxy Book S with WSL (that s what I did)

you have requirements (see https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel ) before compiling your kernel
"flex not found" means you have not installed the "flex" package (see for example https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel )

@SlowKnight0
Copy link

SlowKnight0 commented Apr 9, 2023

Yes I think, I'm trying to build an installer for both your version and the battery fork, to install either alongside windows or standalone on the galaxy book s.

I did originally begin under wsl on the device itself but encountered the same issue (thanks lots for the answer)

I'm not entirely sure how to specifically target those source packages so I was going to start by following the guide I linked above.

Thanks for the help, and do you see any issues with my current path?

I had thought that building those sources into an image alone might mean that I could skip most of the steps but I'm thinking they will all still need to be done.

@pierro78
Copy link

pierro78 commented Apr 9, 2023

I'm not entirely sure how to specifically target those source packages so I was going to start by following the guide I linked above.

Thanks for the help, and do you see any issues with my current path?

not really, myself I just followed the "Kernel Upgrade" section of https://github.com/aarch64-laptops/debian-cdimage and did not have any issue building my kernel packages from jenneron's sources ( aarch64-laptops irc )
(note that in the "Kernel Upgrade" section of https://github.com/aarch64-laptops/debian-cdimage they tell you how to install flex, etc ...)

@SlowKnight0
Copy link

Ah this crossed my mind, perhaps I should just do this instead.

So instead of I might do this.

When following your instructions on copying the dtb and installing the .deb etc.

Do I intially boot from the latest iso under

https://github.com/aarch64-laptops/debian-cdimage/releases

and follow those instructions with the your resource ? here

https://github.com/pierro78/galaxybooks8cxkerneldeb/releases/tag/v0.1

Reading those instructions it talks about firmware related to the flex 5g, guessing I just skip over those parts.

@oktaykarakiya
Copy link

I'd like to help out with the coding stuff, i dont have much experience with these things, but i can code, and if someone could help me a little initially i think that i could dedicate some time to code stuff for this wonderful device

@LeosDing
Copy link

All done under galaxy book s w767?

@pierro78
Copy link

All done under galaxy book s w767?

sure, you are in the AArch64-laptops github project here ....

@pierro78
Copy link

I'd like to help out with the coding stuff, i dont have much experience with these things, but i can code, and if someone could help me a little initially i think that i could dedicate some time to code stuff for this wonderful device

did you try to talk about your project in the aarch64-laptops irc ??

@LeosDing
Copy link

Okay I reinstalled it and got it to kinda boot. It gets onto kernel cmdline, I keep the two sticks in so it doesn't lockup and it hangs on a black screen with a _ after that.

I have encountered the same problem as you, and I also need a random FAT32 USB drive to start. Otherwise, there will still be lockup issues.

How did you solve it later?

@pierro78
Copy link

How did you solve it later?

I think he re-compiled the kernel ( I have also recompiled it and made it available, see #16 (comment) )

@LeosDing
Copy link

How did you solve it later?

I think he re-compiled the kernel ( I have also recompiled it and made it available, see #16 (comment) )

In my case, the 5.11 kernel you compiled must have two typec HUBs plugged in to boot properly from the UFS disk.

@pierro78
Copy link

pierro78 commented May 26, 2023

In my case, the 5.11 kernel you compiled must have two typec HUBs plugged in to boot properly from the UFS disk.

I compiled Jenneron's kernel sources and they are 5.19 and no need for USB sticks to boot, see #16 (comment) , see also the comment below for more details : #16 (comment)

@LeosDing
Copy link

In my case, the 5.11 kernel you compiled must have two typec HUBs plugged in to boot properly from the UFS disk.

I compiled Jenneron's kernel sources and they are 5.19 and no need for USB sticks to boot, see #16 (comment) , see also the comment below for more details : #16 (comment)

Is your DTB compiled from the 5.19 kernel?
Is this DTB file placed in /boot and added as a devicetree in grub.cfg?
Or was it directly thrown into the /boot/efi/dtb directory?

@pierro78
Copy link

Is your DTB compiled from the 5.19 kernel? Is this DTB file placed in /boot and added as a devicetree in grub.cfg?

Exactly ! ( as I said in #16 (comment) )

@LeosDing
Copy link

LeosDing commented May 30, 2023

Is your DTB compiled from the 5.19 kernel? Is this DTB file placed in /boot and added as a devicetree in grub.cfg?

Exactly ! ( as I said in #16 (comment) )

Following your steps, the 5.19 kernel you compiled will display the following boot time:
EFI stub: Booting Linux Kernel... EFI Stub: Using DTB from configuration table EFI Stub: Exiting boot service...
if add 'devicetree /sc8180x-samsung-galaxy-book-s.dtb' to grub.cfg (this dtb file from your 'linux-image-5.19.0-next-20220810-custom-..deb' file.), only show:
_

Using ISO default kernel(5.11):
Picture1. Do not plug in 2 typec hub(Failed and hang)
1

Picture2. Plug in 2 typec hub(Success startup)
2

@LeosDing
Copy link

LeosDing commented May 31, 2023

Is your DTB compiled from the 5.19 kernel? Is this DTB file placed in /boot and added as a devicetree in grub.cfg?

Exactly ! ( as I said in #16 (comment) )

Following your steps, the 5.19 kernel you compiled will display the following boot time:
EFI stub: Booting Linux Kernel...
EFI Stub: Using DTB from configuration table
EFI Stub: Exiting boot service...
if add 'devicetree /sc8180x-samsung-galaxy-book-s.dtb' to grub.cfg (this dtb file from your 'linux-image-5.19.0-next-20220810-custom-..deb' file.), only show:
_

add 'console=tty0' under linux kernel line.

@LeosDing
Copy link

The 5.19 kernel you compiled requires the DTB file you provided to boot properly, and the DTB in this kernel cannot be used. The DTB in the 5.19 kernel that I compiled myself can boot the system normally.
WIFI is ok.
No longer requires two typec hubs to start.

Some issues:

  1. 5.19 Kernel needs to add 'console=tty0'
  2. Unable to recognize wired network card on typec hub
  3. No sound card driver
  4. Unable to identify battery and battery level
  5. Touch screen cannot be used

Tomorrow, I will try the 6.0.6-battery kernel again and perhaps solve the above problems.

@oktaykarakiya
Copy link

Debian 12 came out, did anyone try?

@LeosDing
Copy link

Debian 12 came out, did anyone try?

It's auto upgrade to Debian 12.

@oktaykarakiya
Copy link

So you had Debian 11 and now you have Debian 12? how is it? (aka did you try Debian 12)
Does everything work?

@LeosDing
Copy link

So you had Debian 11 and now you have Debian 12? how is it? (aka did you try Debian 12) Does everything work?

For me, just like 11, there's no big difference.

@levitskyyy
Copy link

Linux still doesn't work on this laptop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

14 participants