ChanServ changed the topic of #aarch64-laptops to: Linux support for AArch64 Laptops (Chrome OS Trogdor Devices - Asus NovaGo TP370QL - HP Envy x2 - Lenovo Mixx 630 - Lenovo Yoga C630 - Lenovo ThinkPad X13s - and various other snapdragon laptops) - https://oftc.irclog.whitequark.org/aarch64-laptops
laine has quit [Ping timeout: 480 seconds]
smpl has quit [Ping timeout: 480 seconds]
hexdump0815 has joined #aarch64-laptops
hexdump01 has quit [Ping timeout: 480 seconds]
jhovold has joined #aarch64-laptops
juergh has quit [Ping timeout: 480 seconds]
iivanov has joined #aarch64-laptops
<Adam[m]> Love the upstreaming support for the Yoga
srinik has joined #aarch64-laptops
juergh has joined #aarch64-laptops
iivanov has quit [Remote host closed the connection]
iivanov has joined #aarch64-laptops
Caterpillar has quit [Quit: Konversation terminated!]
Caterpillar has joined #aarch64-laptops
<JosDehaes[m]> woohoo! GL_RENDERER: zink Vulkan 1.3(Adreno X1-85 (MESA_TURNIP))
<JosDehaes[m]> for those using Arch, I have a PKGBUILD here: https://github.com/joske/PKGBUILDs-x1e/tree/master/mesa
<JosDehaes[m]> * have a mesa PKGBUILD here:
<sera[m]> I used @strongtz's PKGBUILD also as a base, can be found at https://gitea.classfun.cn:4443/ci/pkg-linux-x1e80100-test .. they have a daily mesa git package too on the renegade project repo (which is available via the image builder), which also worked perfectly for me
<JosDehaes[m]> .sera: oh nice, that could have save me a few hours ๐Ÿ˜…
smpl has joined #aarch64-laptops
owlman has quit [Quit: Konversation terminated!]
juergh has quit [Ping timeout: 480 seconds]
<lollaritits[m]> how do i get box86 running on the x13s?
juergh has joined #aarch64-laptops
juergh has quit [Ping timeout: 480 seconds]
<FarchordSteveCossette[m]> Well, I'm stuck with my vivobook lol guess I'll have to wait some time, got no idea what to do next
juergh has joined #aarch64-laptops
<JensGlathe[m]> does everything work?
iivanov_ has joined #aarch64-laptops
iivanov has quit [Read error: Connection reset by peer]
<FarchordSteveCossette[m]> <JensGlathe[m]> "does everything work?" <- Nope almost nothing does. System boots, screen seems to tilt real quick, freeze, auto reboot
<JensGlathe[m]> snafu
<FarchordSteveCossette[m]> The only potential thing I can find in the logs is this:... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/aNzuirSkQzWSUIFKqXbeaOXC>)
<JensGlathe[m]> that's pretty outspoken. Can't find fw file. On X13s you'd better have them in the initramfs
<sera[m]> make sure the fw is in the initramfs, but even if the GPU fw all dies you should be able to boot into a tty
<FarchordSteveCossette[m]> Oh and panel_edp crashing
<sera[m]> in my experience it tries to load the fw again once the root is mounted if it fails earlier, too
<sera[m]> is it an actual crash or just the warning?
<sera[m]> * the warning? the warning prints a stack trace which looks like a crash
<FarchordSteveCossette[m]> Lemme get you a full boot log one sec
<FarchordSteveCossette[m]> This is my current grub config btw
<FarchordSteveCossette[m]> https://paste.centos.org/view/0fd6f72d
<lollaritits[m]> <FarchordSteveCossette[m]> "This is my current grub config..." <- a linux users selfie!
<FarchordSteveCossette[m]> lollaritits[m]: Yup!
<FarchordSteveCossette[m]> <sera[m]> "make sure the fw is in the..." <- That's the thing: I have no idea how the Linux kernel works XD all this is is the Fedora kernel (6.11) with the kernel configs posted here dumped on top.
<FarchordSteveCossette[m]> And quite litterally: Added to the pile lol
<sera[m]> you compiled the kernel though right? try running check scripts/dtc/dt_to_config
<FarchordSteveCossette[m]> And let's say I'd do a clean build, not a rpm build... I have no idea how to manually install a kernel from a secondary system lol
<sera[m]> it should tell you what needs to be enabled and if it's missing
<FarchordSteveCossette[m]> sera[m]: in mock with fedpkg mockbuild ya
<FarchordSteveCossette[m]> Well in fedora's copr
<FarchordSteveCossette[m]> I think I might just be a lost cause until I get some one on one time with someone who knows what he's doing XD
<sera[m]> use loglevel=8 in your grub cmdline
<sera[m]> all I can see from the log that looks like it could be crashing you is the "msm_dpu ae01000.display-controller: adev bind failed: -19", which looks almost like some sort of devicetree issue, but I don't really know.. I don't see the error about failing to load the GPU fw either in the logs you pasted
<FarchordSteveCossette[m]> aiite, right now it's spamming the everloving crap out of "failed to read out thermal zone (-19)
<sera[m]> set CONFIG_THERMAL=n in the kernel config, not sure if the vivobook devicetree has support for it. i think you can use initcall_blacklist=thermal_init in the cmdline if you just want to get rid of that
<sera[m]> the other thing looks like a systemd service that can't load, need to remove that from startup on the os side
<robclark> FarchordSteveCossette[m]: gpu fw failing to load before rootfs is mounted is normal, the driver will try again later
<FarchordSteveCossette[m]> https://paste.centos.org/view/5e518907 latest log with the thermal errors suppressed, and loglevel=8
<sera[m]> Jul 07 20:00:05 fedora systemd-udevd[705]: modprobe: FATAL: Module snd-seq not found in directory /lib/modules/6.11.0-0.rc0.20240719git720261cfc732.7.fc41.aarch64
<sera[m]> you can just build that specific module and put it in the folder
<robclark> also, maybe try the config that I am using? https://paste.centos.org/view/d4b1d2e4
<agl> steev: Which Snapdragon X Elite notebook do you prefer now? Still the Lenovo T14s or another one? The T14s only has the slowest processor (without Turbo Boost) from the X-Elite series.
<FarchordSteveCossette[m]> robclark: yeah thats the problem, I am going based on the fedora kernel, I don't know how to build a kernel from scratch.... and even then, I don't have an aarch64 system to build it on, and no idea how to manually install a kernel XD
<FarchordSteveCossette[m]> but lmc how to build a single module
<Jasper[m]> FarchordSteveCossette[m]: Cross compilation is very doable
<Jasper[m]> Are you able to get into userspace without it crashing? Maybe you can do it on device even.
<FarchordSteveCossette[m]> Jasper[m]: Seems it's barely starting user space (I think)
<JensGlathe[m]> @farchord you could do the build on wsl2 on that box
<JensGlathe[m]> * Farchord (Steve Cossette): you could do the build on wsl2 on that box
<sera[m]> did the output from the fedora build include the /lib/modules directory somewhere?
<FarchordSteveCossette[m]> the builder_live logs are there
<sera[m]> what you can do is go into the build tree (that built the kernel), make INSTALL_MOD_PATH=somewhere modules, then make INSTALL_MOD_PATH=somewhere modules_install, copy that output to lib/modules/blabla as the log said
<sera[m]> looks like it should be included in the kernel-modules-core, kernel-modules packages there yeah
<FarchordSteveCossette[m]> <sera[m]> "what you can do is go into the..." <- But I'd have to build that on an aarch64 machine right?
<FarchordSteveCossette[m]> i.e. from wsl2 or something
<sera[m]> Not necessarily, you can just set some variables to a cross compilation toolchain and it should work. But I think the modules are in your package already
<sera[m]> is there files in /lib/modules/6.11.0-0.rc0.20240719git720261cfc732.7.fc41.aarch64 on your boot drive?
<FarchordSteveCossette[m]> Yep, alot of files. and folders.
<FarchordSteveCossette[m]> (base) root@steve-desktop:/run/media/farchord/fedora_fedora/root/lib/modules/6.11.0-0.rc0.20240719git720261cfc732.7.fc41.aarch64# ls
<FarchordSteveCossette[m]> build dtb kernel modules.alias.bin modules.builtin modules.builtin.bin modules.dep modules.devname modules.modesetting modules.order modules.symbols source System.map updates vmlinuz weak-updates
<FarchordSteveCossette[m]> config internal modules.alias modules.block modules.builtin.alias.bin modules.builtin.modinfo modules.dep.bin modules.drm modules.networking modules.softdep modules.symbols.bin symvers.xz systemtap vdso vmlinuz-virt.efi
<robclark> re: cross-compile: alias amake='make INSTALL_PATH=`pwd`/aarch64/target O=aarch64 INSTALL_MOD_PATH=`pwd`/aarch64/target'
<sera[m]> is there a file kernel/sound/core/seq/snd-seq.ko? might be an issue with mounting the drive in that case
<FarchordSteveCossette[m]> sera[m]: snd-seq.ko.xz ya
<sera[m]> it looks like your device gets mounted after it wants the module... you can change the CONFIG_SND_SEQ_*=m lines to CONFIG_SND_SEQ_*=y to make sure it's available at that point. you can also try just adding make localyesconfig after copying the config file, which makes everything possible built-in
<FarchordSteveCossette[m]> sera[m]: That requires rebuilding the kernel right?
<sera[m]> yep, if the speed is really an issue I can just build it for you if there's a docker image for the process
<sera[m]> will take like 5-10m
<FarchordSteveCossette[m]> sera[m]: Before we do that, because to be honest I don't know how to install a kernel by hand, is there a way to disable the sound driver completely to see if that is indeed the problem?
<sera[m]> It looks like it wants the driver because of some systemd or dracut configuration... don't know how to diagnose that more
<sera[m]> https://docs.fedoraproject.org/en-US/quick-docs/debug-dracut-problems/ says you can get a shell at each stage and see where it dies
laine has joined #aarch64-laptops
<abelvesa> robclark: just pushed new tag, it will give you PCIe6 gen4x4
<robclark> ok, cool.. will that make something faster?
<abelvesa> NVMe
<robclark> cool
<steev> lucky
zeph[m] has joined #aarch64-laptops
<clover[m]> <JosDehaes[m]> "for those using Arch, I have a..." <- nice to see Arch effort for x1e :)
<FarchordSteveCossette[m]> <clover[m]> "nice to see Arch effort for x1e..." <- Do you guys have an iso for x1es for arch yet?
<clover[m]> i don't plan on buying an x1e laptop any time soon, the x13s is powerful enough for me. but it shouldn't be too hard to fork my archiso repo if someone wants to do that
<JosDehaes[m]> <FarchordSteveCossette[m]> "Do you guys have an iso for x1es..." <- Yes, you can easily build one using https://github.com/joske/arch-image-builder/tree/x1e
<JosDehaes[m]> this is for the lenovo yoga, but you can replace your kernel and initrd in configs/files
<JosDehaes[m]> it creates a bootable image, you can probably just dd it to drive, but I haven't tried it
<robclark> FarchordSteveCossette[m]: I usually don't use `make binpkg-rpm` for kernel.. but this might work: https://drive.google.com/file/d/14BZoovEzOzsOPY1JxzLg_aJoyjHnvIW6/view?usp=drive_link
<FarchordSteveCossette[m]> Sent a request
<robclark> heh, silly drive.. if I create a shareable link it kinda means I want it to be shareable :-P
<robclark> try now
<FarchordSteveCossette[m]> robclark: wait -- that's a kernel with all the good config?
<robclark> yeah, I just did `make O=builddir binrpm-pkg`
<FarchordSteveCossette[m]> IF it is, that's awesome!
<JensGlathe[m]> make bindeb-pkg works well, have used it a while
<robclark> I don't know if that builds the rpm in exactly the same way as fedora's builders
<FarchordSteveCossette[m]> Wait, that's 6.10 is that normal?
<robclark> but it is a working kernel+config
<robclark> it is linux-next on top of 6.10 with other x1 stuff (basically abelvesa's x1e80100-next branch)
<robclark> so kinda bleeding edge
<FarchordSteveCossette[m]> ah ok
<FarchordSteveCossette[m]> fair enough!
<FarchordSteveCossette[m]> Ah crap I will have to chroot this on my raspberry pi.... mmmm
<FarchordSteveCossette[m]> *orangepi
<FarchordSteveCossette[m]> <robclark> "I don't know if that builds..." <- yeah this is the raw kernel libraries... I'll look into it I don't know how to generate an initrd/(???)/grub config for it, ill look into it later
<FarchordSteveCossette[m]> Thanks though!
<robclark> I guess you could just manually run `dracut --force $version`
<robclark> presumably that is what the official kernel rpms do in post_install script?
<steev> FarchordSteveCossette[m]: you could also build it in wsl
<Eighth_Doctor> yes
<robclark> (I build kernel plenty... but never looked into the rpm packaging)
<Eighth_Doctor> robclark: once all the things are in place, yes, `dracut -f --kver <version>` works
<Eighth_Doctor> then a bls config snippet needs to be made
<Eighth_Doctor> which is the easy part :P
<FarchordSteveCossette[m]> but yeah this has to be done on another aarch64 system right?
<FarchordSteveCossette[m]> so yeah ill try to do that tonight
<robclark> wsl is probably what I'd try if I didn't have the x13s
<JensGlathe[m]> Or cross-compile. Setup with all the packages and compilers you need might be a challenge, though. Haven't done this for rpm.
<FarchordSteveCossette[m]> This is all compiled
<FarchordSteveCossette[m]> that rpm is good to go, I just need to chroot on the drive and get it in
<FarchordSteveCossette[m]> ....alledgedly XD
<FarchordSteveCossette[m]> I might have to setup wsl2 on the machine and play with that
<JensGlathe[m]> fingers crossed
<FarchordSteveCossette[m]> I tried to setup wsl2 with tumbleweed, didn't work. Refused to start.
<FarchordSteveCossette[m]> ill try debian or ubuntu tonight
kalebris_ has joined #aarch64-laptops
kalebris has quit [Ping timeout: 480 seconds]
kalebris_ is now known as kalebris
<FarchordSteveCossette[m]> <JosDehaes[m]> "Yes, you can easily build one..." <- btw, nice script! I can't seem to get much further than this here:... (full message at <https://matrix.org/_matrix/media/v3/download/matrix.org/gdFzBgypBXHFFtiVpIcbTETx>)
srinik has quit [Ping timeout: 480 seconds]
<JosDehaes[m]> Hmm didn't have that issue, maybe you're missing some dependency?
<FarchordSteveCossette[m]> and wsl is being a pain....
<FarchordSteveCossette[m]> PS C:\Users\steve> wsl --mount 1
<FarchordSteveCossette[m]> wsl.exe --mount nโ€™est pas pris en charge sur ARM64.
<FarchordSteveCossette[m]> Error code: Wsl/Service/WSL_E_WSL_MOUNT_NOT_SUPPORTED
<FarchordSteveCossette[m]> Translation: "--mount is not supported on ARM64."
<JensGlathe[m]> hmm I'm running wsl on X13s and Volterra
<JensGlathe[m]> default tutorial from Microsoft
<FarchordSteveCossette[m]> Conan Kudo So I've run depmod (Seems that was necessary according to dracut) then dracut, but I'm missing the entry in /boot/loader/entries is that normal?
<Eighth_Doctor> it is if you're doing everything manually
<Eighth_Doctor> you will need to create it yourself
<FarchordSteveCossette[m]> ahh
<FarchordSteveCossette[m]> Seems kernel-install did it all! neat!
<FarchordSteveCossette[m]> systemd ftw!
<FarchordSteveCossette[m]> now, to test....
<agl> steev: Which Snapdragon X Elite notebook do you prefer now? Still the Lenovo T14s or another one? The T14s only has the slowest processor (without Turbo Boost) from the X-Elite series.
<HdkR> A shame that the Yoga also ships the lowest end elite SKU
<FarchordSteveCossette[m]> <robclark> "Farchord (Steve Cossette): I..." <- Thanks man! I honestly learned alot here about installing a kernel XD
<FarchordSteveCossette[m]> If you're interested, the latest boot log, seems to crash at seemingly the same place: https://paste.centos.org/view/e53aceb3
<FarchordSteveCossette[m]> I'm still using the dtb file from the 6.11 kernel release, I don't know if that's the best one tbh
<robclark> the panel_edp_probe warning is safe to ignore.. it probably shouldn't even print a backtrace. It is just telling you it doesn't know the model of panel on your laptop so it falls back to conservative power-on timings
<robclark> ie. your boot might be taking 10's of ms longer than it needs to
<FarchordSteveCossette[m]> Meh.
<FarchordSteveCossette[m]> That's fine
<FarchordSteveCossette[m]> I still don't get why it crashes
<robclark> is it still rebooting?
<FarchordSteveCossette[m]> Yup
<FarchordSteveCossette[m]> Latest boot, this time I removed the efi= argument, and set loglevel to 8: https://paste.centos.org/view/ad65ce4f
<robclark> does it work if you add init=/bin/sh in kernel cmdline?
<FarchordSteveCossette[m]> lmc that
<robclark> and then next stop is with systemd.unit=multi-user-target
<robclark> I had to remove something.. hmm what was that?
<FarchordSteveCossette[m]> robclark: Yup:
<FarchordSteveCossette[m]> Init=/bin/sh dropped me in a shell
<robclark> FarchordSteveCossette[m]: ahh, I remember what it is.. try removing /lib/udev/rules.d/80-drivers.rules
<FarchordSteveCossette[m]> Ok
<robclark> somehow that was the thing triggering the reboot (but no idea why)
jhovold has quit [Ping timeout: 480 seconds]
<FarchordSteveCossette[m]> Alright well its not crashing rn
<FarchordSteveCossette[m]> Its waiting for services
<FarchordSteveCossette[m]> That might be an issue with me using my usb-c drive
<FarchordSteveCossette[m]> The 6.11 kernel did it
<robclark> yeah, you could try using /dev/sdaN instead of uuid? And, I guess if orientation-switch isn't working yet you could try plugging the usb drive in the other way around
<robclark> ahh
<robclark> nice
<JensGlathe[m]> you could also try rootdelay=20 rootwait.
<JensGlathe[m]> This helped to get out of some oddities with type-c as bootdevice and no adsp firmware
<steev> agl: i'm still liking the thinkpad, but again, i'm not looking to purchase one for a long time (but donations are always welcome ;) )
<FarchordSteveCossette[m]> One problem, idk the root password ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚
<steev> fedora
<steev> but for real, there probably isn't one set?
<robclark> there isn't a root passwd.. if you are booting of thumb drive, then just edit /etc/shadow and remove the "!locked" (but don't forget to put it back later after you've setup a user account)
<FarchordSteveCossette[m]> I fixed it im in
<FarchordSteveCossette[m]> No wifi and no sound but im in!
<steev> dmesg output should tell you why no wifi or sound
<steev> but sound might still need alsa ucm configs
<robclark> I don't have sound yet either.. I assume I'm missing at least ucm configs.. but I also didn't have sound on x13s (pipewire issue, maybe?)
<steev> sound has been fixed for a very long time on x13s
<steev> i've got it with pipewire here, and i know johan has it with pulseaudio
<robclark> hmm, maybe just a fedora issue? idk, audio was mostly not that important to me so I never tried to figure it out
<FarchordSteveCossette[m]> Yeah on the 6.10-next kernel, even with the two wait args, mount fails
<robclark> hmm, ok.. could be random things broken in linux-next
<robclark> I haven't tried to boot off of usb drive with that kernel
<JosDehaes[m]> I have a weird issue with qcom_battmgr. When I boot with the module enabled, I get an oops and systemd hangs during startup. When I blacklist the module, the system boots. When I then manually modprobe qcom_battmgr after I'm logged in, the battery indicator works
<FarchordSteveCossette[m]> Yeah i got a working system but no sound or wifi. I think wifi is not implemented yet, soooโ€ฆ ๐Ÿ˜‚
<robclark> wifi is working here, but you probably need a dts patch.. or to patch wifi fw
<robclark> you need something like https://gitlab.freedesktop.org/robclark/msm/-/commit/28e26e43d9d47df96aac7b55cab8d4121cf10743 but for the asus.. idk if the calibration data would be the same or not
<robclark> bluerise might have an idea
<JosDehaes[m]> qcom_battmgr oops: https://paste.debian.net/1324011/
krei-se- has joined #aarch64-laptops
krei-se has quit [Ping timeout: 480 seconds]
<bluerise> robclark: I'm not sure it's in there
<bluerise> I found it in the ACPI tables had a WLN device with a BDFE node
<robclark> hmm, ok, you mean for the Asus we'd anyways need a fw update?
<steev> maybe
<bluerise> the Omnibook-X has BDFE as 'external reference'
<bluerise> wonder where it comes from
<bluerise> bus=pci,vendor=17cb,device=1107,subsystem-vendor=105b,subsystem-device=e0ef,qmi-chip-id=2,qmi-board-id=255,variant=AS_S55_SA
<bluerise> This kinda sounds like Asus S55, the S15 starts with S55
<bluerise> is that the subsystemdevice in there?
<bluerise> bus=pci,vendor=17cb,device=1107,subsystem-vendor=105b,subsystem-device=e0ee,qmi-chip-id=2,qmi-board-id=255,variant=DE01m
<bluerise> bus=pci,vendor=17cb,device=1107,subsystem-vendor=105b,subsystem-device=e0ee,qmi-chip-id=2,qmi-board-id=255,variant=DE02m
<bluerise> wonder if these could be the dells lol
<bluerise> but one Dell I know has ath11, not ath12
<FarchordSteveCossette[m]> <robclark> "wifi is working here, but you..." <- I think it has more to do with that drivers udev file we deleted. The devices seem to be there, justโ€ฆ not associated
<robclark> no, that udev file wasn't related to wifi.. it was for compact-flash and things like that... wifi is working here for me, but the existing fw already had the correct set of calibration data
<FarchordSteveCossette[m]> Reason im saying this is, i have a usb-c dongle with an ethernet port on it. I plugged it in and it saw it. But nothing happened, networkmanager didnt pick up on it
<FarchordSteveCossette[m]> Ahhh
anonymix007[m] has joined #aarch64-laptops
<anonymix007[m]> <robclark> "you need something like https..." <- Does this patch actually do anything? I can't find any references to `ath12k-calibration-variant` in the driver itself. ath11k has it though
<robclark> I guess bluerise is more familiar with that code.. all I know is it worked for me. I guess there must be some code sharing or something