marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | Not ready for end users / self contained install yet. Soon. | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
sirn has quit [Server closed connection]
sirn has joined #asahi
<ah-[m]> does wifi work with a 4k kernel? i got some IOMMU error
<ah-[m]> I think i read something about a patch for 16k dart with 4k page size?
yuyichao has quit [Ping timeout: 480 seconds]
Techcable has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi
user982492 has quit []
AndrewLee[m] has quit [Server closed connection]
AndrewLee[m] has joined #asahi
PeterB[m] has quit [Server closed connection]
PeterB[m] has joined #asahi
Dcow[m] has quit [Server closed connection]
Dcow[m]1 has joined #asahi
ianlienfa[m] has quit [Server closed connection]
ianlienfa[m] has joined #asahi
jeh[m] has quit [Server closed connection]
jeh[m] has joined #asahi
Krumble[m] has quit [Server closed connection]
Krumble[m] has joined #asahi
ll3macorn[m] has quit [Server closed connection]
ll3macorn[m] has joined #asahi
PeterHilgenfeld[m] has quit [Server closed connection]
PeterHilgenfeld[m] has joined #asahi
PixelyIon[m] has quit [Server closed connection]
PixelyIon[m] has joined #asahi
robotrIP[m] has quit [Server closed connection]
robotrIP[m] has joined #asahi
SamAdams[m] has quit [Server closed connection]
SamAdams[m] has joined #asahi
SocioProphet[m] has quit [Server closed connection]
SocioProphet[m] has joined #asahi
toroto008[m] has quit [Server closed connection]
toroto008[m] has joined #asahi
Techcable has joined #asahi
ciggi has joined #asahi
yuyichao has joined #asahi
ciggi_ has quit [Ping timeout: 480 seconds]
user982492 has joined #asahi
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi
<ah-[m]> looks like ring = dma_alloc_coherent(&devinfo->pdev->dev, size, dma_handle, GFP_KERNEL); fails in brcmf_pcie_init_dmabuffer_for_device
<ah-[m]> it seems like size is divisible by 16, so maybe something else broken? I'm not quite sure how to debug that further
<ah-[m]> oh I see, that patch series was never merged so 16k dart with 4k page sizes just doesn't work atm?
phiologe has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
threerik[m] has quit [Server closed connection]
threerik[m] has joined #asahi
drwhax[m]1 has quit [Server closed connection]
drwhax[m]1 has joined #asahi
<ah-[m]> haha, one tiny fixup for the patch series and it works :)
l3k[m] has quit [Server closed connection]
l3k[m] has joined #asahi
RianSouzaSantos[m] has quit [Server closed connection]
RianSouzaSantos[m] has joined #asahi
kov has quit [Quit: Coyote finally caught me]
kov has joined #asahi
jelly has quit [Server closed connection]
mini has quit [Server closed connection]
mini has joined #asahi
bradfier has quit [Server closed connection]
bradfier has joined #asahi
jelly has joined #asahi
BlazinWeed[m] has quit [Server closed connection]
BlazinWeed[m] has joined #asahi
josipknezovic[m] has quit [Server closed connection]
josipknezovic[m] has joined #asahi
NotHere[m] has quit [Server closed connection]
NotHere[m] has joined #asahi
lemonsus[m] has quit [Server closed connection]
lemonsus[m] has joined #asahi
rethematrix[m] has quit [Server closed connection]
rethematrix[m] has joined #asahi
fionera[m] has quit [Server closed connection]
fionera[m] has joined #asahi
dek[m] has quit [Server closed connection]
dek[m] has joined #asahi
Rhys[m]12 has quit [Server closed connection]
Rhys[m]12 has joined #asahi
marvin24_ has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
blasty has quit [Server closed connection]
blasty has joined #asahi
chengsun_ has quit [Server closed connection]
chengsun has joined #asahi
kit_ty_kate has quit [Server closed connection]
kit_ty_kate has joined #asahi
Raito_Bezarius has quit [Server closed connection]
Raito_Bezarius has joined #asahi
akemin_dayo has quit [Server closed connection]
akemin_dayo has joined #asahi
M0x8FF[m] has quit [Server closed connection]
M0x8FF[m] has joined #asahi
ciggi has quit [Ping timeout: 480 seconds]
yuukirafflesia[m] has quit [Server closed connection]
yuukirafflesia[m] has joined #asahi
DarkShadow44 has quit [Server closed connection]
DarkShadow44 has joined #asahi
krirogn[m] has quit [Server closed connection]
krirogn[m] has joined #asahi
ChristianOndaatje[m] has quit [Server closed connection]
ChristianOndaatje[m] has joined #asahi
pent1ckel has quit [Server closed connection]
pent1ckel has joined #asahi
NightsOnly[m] has quit [Server closed connection]
NightsOnly[m] has joined #asahi
<Glanzmann> ah-[m]: For me wifi works with 16k pages.
<chadmed> ah-[m] wants 4k pages though
<Glanzmann> chadmed: I see, for me wifi also worked with 4k pages.
<Glanzmann> Not that I'm using that, but I tried it for a day or two.
<Glanzmann> But it might not have 5 GHZ support on 4k pages, at least I noticed that when I had the 4k page kernel it never connected to 5 GHZ.
eta has quit [Server closed connection]
eta has joined #asahi
kenzie35 has quit []
vup has quit [Server closed connection]
c10l3 has quit [Server closed connection]
c10l3 has joined #asahi
kenzie35 has joined #asahi
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
joske has joined #asahi
<joske> For me, with the iommu patch, WiFi works on 2.4 and 5 GHz
dhewg has quit [Server closed connection]
dhewg has joined #asahi
<Glanzmann> I see, than it was wpa_supplicant.
<chadmed> aiui iwd doesnt work at all yet?
<chadmed> wait no that cant be right im literally using it right now lmao
<Glanzmann> chadmed: It does.
<chadmed> yeah i am using it as we speak, idk why i thought it doesnt work
<chadmed> been a long day :P
milek7 has quit [Server closed connection]
milek7_ has joined #asahi
<mps> chadmed: iwd 1.22 didn't worked on aarch64, had a bug
<mps> I detected this bug on m1 and reported upstream, got patch from upstream and tested, and iwd 1.23 is released next day
<mps> iwd devs are very responsive whenever I find any issue and talk with them
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ninja[m] has quit [Server closed connection]
ninja[m] has joined #asahi
the_lanetly_052 has quit [Ping timeout: 480 seconds]
joske has quit [Quit: Quit]
neven has joined #asahi
perigoso[m] has quit [Server closed connection]
perigoso[m] has joined #asahi
nsklaus_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<NightRaven[m]> When I try to boot into the HDD it says waiting for /dev/sda and it already has the rootFS and everything any idea ?
<chadmed> off a usb drive or the internal nvme drive?
<NightRaven[m]> It's an external HDD
<chadmed> check your kernel config. if youre not using an initrd you need to have usb, scsi support, usb mass storage and usb attached scsi set to y not m
<chadmed> if you are using an initrd you need to have those modules packed into it
<chadmed> you also need to specify which minor on /dev/sda has the root partition. i would always use the partitions UUID instead of its name in /dev/ since the uuid never changes
<NightRaven[m]> Oh ok I will try to get the partions uuid but then how would I put that into the .bin file ?
<NightRaven[m]> Like using the cat command
<chadmed> if youre building a payload for an untethered boot you will need to build the kernel with the arguments built in. the "official" way will be to only chainload m1n1 and u-boot and then use GRUB to pick a kernel and pass its boot arguments to it
<NightRaven[m]> I already have the kernel and the files
neven has quit []
<NightRaven[m]> Like this cat m1n1.bin <(echo 'boot-args=net.ifnames=0 rw root=/dev/"nvme partition" rootdelay=5 rootfstype=ext4') Image.gz *.dtb > linux.bin
<NightRaven[m]> But I am not sure where to put the uuid
<chadmed> oh right so to use a uuid as your root you change root=/dev/sdX to root=UUID=[uuid of the partition]
<j`ey> did you also compile all the necessary USB parts into the kernel?
<NightRaven[m]> I think yea I did
<NightRaven[m]> chadmed: thanks
<NightRaven[m]> so something like this ```cat m1n1.bin <(echo 'boot-args=net.ifnames=0 rw root=UUID=1154e9a7-9daf-4cd9-950d-99ea6b312e4b rootwait rootfstype=ext4') linux/Image.gz linux/arch/arm64/boot/dts/apple/*.dtb > untethered.bin
<NightRaven[m]> ```
<chadmed> yep
<NightRaven[m]> sorry something like this cat m1n1.bin <(echo 'boot-args=net.ifnames=0 rw root=UUID=1154e9a7-9daf-4cd9-950d-99ea6b312e4b rootwait rootfstype=ext4') linux/Image.gz linux/arch/arm64/boot/dts/apple/*.dtb > untethered.bin
<NightRaven[m]> yea ok
<NightRaven[m]> i will reboot now thanks
<j`ey> that's unlikely to be it tbh
<NightRaven[m]> what do you think i should do ?
<NightRaven[m]> for the command is there something wrong with it ?
<j`ey> probably your kernel is wrong
<NightRaven[m]> for the kernel building
<jannau> I don't think UUID works without initrd, PARTUUID for GPT works though
<NightRaven[m]> i will try PARTUUID after the reboot
<j`ey> CONFIG_TYPEC_TPS6598X=m
<ChaosPrincess> rootfs is on external hdd?
<j`ey> your USB driverr stuff is a module
<j`ey> 10:33:47 < j`ey> did you also compile all the necessary USB parts into the kernel?
<j`ey> this is why we're saying people should wait, for something end user friendly
<chadmed> +1
<NightRaven[m]> oh ok then i will wait till it's user friendly then
<ChaosPrincess> NightRaven[m]: maybe try building an initrd
EdwardAnd[m] has quit [Server closed connection]
EdwardAnd[m] has joined #asahi
<NightRaven[m]> Oh ok
ChrisHembree[m] has quit [Server closed connection]
ChrisHembree[m] has joined #asahi
DanielHuisman[m] has quit [Server closed connection]
DanielHuisman[m] has joined #asahi
davidrysk[m] has quit [Server closed connection]
davidrysk[m] has joined #asahi
Liam[m] has quit [Server closed connection]
Liam[m] has joined #asahi
Ferluci[m] has quit [Server closed connection]
Ferluci[m] has joined #asahi
patience[m] has quit [Server closed connection]
patience[m] has joined #asahi
marcan[m] has quit [Server closed connection]
marcan[m] has joined #asahi
nemanjan00[m] has quit [Server closed connection]
nemanjan00[m] has joined #asahi
DanStrong[m] has quit [Server closed connection]
DanStrong[m] has joined #asahi
pulpy_orange2[m] has quit [Server closed connection]
pulpy_orange2[m] has joined #asahi
retonlage[m] has quit [Server closed connection]
retonlage[m] has joined #asahi
rob-3[m] has quit [Server closed connection]
rob-3[m] has joined #asahi
Davis[m] has quit [Server closed connection]
Davis[m] has joined #asahi
Spectrejan[m] has quit [Server closed connection]
Spectrejan[m] has joined #asahi
stttcccccccccccc[m] has quit [Server closed connection]
stttcccccccccccc[m] has joined #asahi
YichaoYu[m] has quit [Server closed connection]
YichaoYu[m] has joined #asahi
martinstewart has joined #asahi
<jannau> arch linux rust package recompiled without jemalloc works
<j`ey> jannau: did you build it on the m1?
<jannau> building the package with a 16k page size kernel is ~9% faster than building it on a 4k kernel using the original package with jemalloc
<jannau> 19m29.452s vs. 21m23.592s on m1 max (perf cores at 2GHz) with makeflags='-j8'
<landscape15[m]> NightRaven: For me now usb works oob. I built a monolithic kernel and set verbose usb in the config. Also when you boot, the kernel shows you all partitions, you should find the right one
<landscape15[m]> However, I don’t know how to show up full USB information while verbose booting. It only shows “Attached USB storage” or something like that. Anyone knows?
martinstewart has quit [Remote host closed the connection]
mtjzh has joined #asahi
CDFH has quit [Server closed connection]
mtjzh has quit [Remote host closed the connection]
tomtastic has quit [Server closed connection]
mtjzh has joined #asahi
tomtastic has joined #asahi
mtjzh has quit [Ping timeout: 480 seconds]
mtjzh has joined #asahi
ChaosPrincess has quit [Quit: WeeChat 3.4]
ChaosPrincess has joined #asahi
mtjzh has quit [Ping timeout: 480 seconds]
vup has joined #asahi
mtjzh has joined #asahi
mtjzh has quit [Ping timeout: 480 seconds]
mtjzh has joined #asahi
mtjzh has quit [Ping timeout: 480 seconds]
mtjzh has joined #asahi
eroux has quit [Ping timeout: 480 seconds]
<mps> booted today arm64 gru kevin chromebook with u-boot and it loads fine compressed kernel
<mps> so maybe this can be implemented for M1 also
mtjzh has quit [Ping timeout: 480 seconds]
<jannau> it might has a bootscript to decompress the kernel first
<jannau> load nvme 0:6 ${loadaddr} Image.gz
<jannau> unzip ${loadaddr} ${kern_addr_r}
eroux has joined #asahi
<jannau> booti ${kern_addr_r} ${fdtcontroladdr}
mtjzh has joined #asahi
<mps> jannau: I tried with your fork but didn't got it because I don't know what addresses to change and which values to set
<mps> may naive try is here https://tpaste.us/Bgb4
<mps> looked this in local cloned git but still have no idea what to set where
<jannau> mps: missing kernel_comp_addr_r and kernel_comp_size
<j`ey> whats the diff between kernel_addr_r and loadaddr?
<jannau> I think loadaddr is the fallback then there is no more appropiate variable, otherwise it seems mostly arbitrary to me
<mps> jannau: I looked and read this on above url
<ar> that's one of the fastest kernel reads in uboot I've ever seen > 9542381 bytes read in 5 ms (1.8 GiB/s)
<landscape15[m]> jannau: what’s the difference in terms of performance?
<landscape15[m]> I’m also using compressed kernel
mtjzh has quit [Ping timeout: 480 seconds]
<jannau> it's meaningless, mps wanted to have compressed kernel support in u-boot
mtjzh has joined #asahi
<mps> jannau: this was really fast. it works. thank you
<landscape15[m]> jannau: thanks
* mps sends virtual $prefered_drink to jannau
<mps> and I looked at this part you posted but didn't understood it, my knowledge about u-boot 'inner working' is nearly zero
<mps> to find what is it I will probably need full week
<j`ey> mps: its like your attempt, but done in runtime code :)
<j`ey> instead of fixed at build time
<mps> landscape15[m]: loading 20MB kernel from slow usb disk is slower than 6MB
<mps> j`ey: yes, I understand it 'from airplane view' but not details
mtjzh has quit [Ping timeout: 480 seconds]
<j`ey> ah
<mps> curios question: how openbsd boots, use some efi bootloader?
bisko has joined #asahi
mtjzh has joined #asahi
<landscape15[m]> mps: yeah also considering there is no USB3 support
<caleb010[m]> Is disk partitioning safe in Linux? I want to reduce the running partition to make EFI
<ChaosPrincess> you can't shrink a running ext4 fs
<landscape15[m]> caleb010: You can only if you are running Linux from an external USB, otherwise no
<Glanzmann> caleb010[m]: If you have u-boot you can use the debian live system.
<Glanzmann> than you install gparted and xinit
<Glanzmann> and use gparted to shrink the partition or move it or whatever you want and add an efi partition.
<Glanzmann> caleb010[m]: Do __not__ touch the first, the second and the last partition.
user982492 has joined #asahi
mtjzh has quit [Ping timeout: 480 seconds]
bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
myon98 has quit [Ping timeout: 480 seconds]
mtjzh has joined #asahi
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi
mtjzh has quit [Ping timeout: 480 seconds]
user982492 has quit []
user982492 has joined #asahi
user982492 has quit []
<as400[m]> Finally got uboot working on my t6000. But I need to stop autoboot issue "nvme scan" then "boot". Otherwise the kernel doesn't see root partition.
<as400[m]> Strange
user982492 has joined #asahi
user982492 has quit []
<Glanzmann> as400[m]: Can you give us the exact specs of your t6000?
<Glanzmann> as400[m]: Which model, which features (especially nvme size?)
<as400[m]> Glanzmann: m1pro, 1TB nvme
<Glanzmann> I see strange, axboe has, I think the same but with a 500 GB NVMe.
<Glanzmann> jannau: Do you have the model?
<as400[m]> can i retrieve it from command line ?
eragon has joined #asahi
mtjzh has joined #asahi
<as400[m]> This is what happens without issuing nvme scan in uboot
<Glanzmann> as400[m]: I never saw that before.
<Glanzmann> as400[m]: Did you try to install my binary?
<Glanzmann> And boot using Debian live?
<Glanzmann> as400[m]: This is how my partitioning looks like: https://pbot.rmdir.de/DmScCL5drnKlEq7tVxFMeQ
<as400[m]> yeah I tried your uboot macho but it didn't work for me
tertu has quit [Quit: so long...]
<Glanzmann> as400[m]: Strange.
<Glanzmann> as400[m]: I have updated all my system to 12.1 stub. So, I'm using the bin now.
<jannau> I suspected that the 4T or 8T version might cause problems
<jannau> as400[m]: which macos is the m1n1 partion based on?
<Glanzmann> as400[m]: 12.0.1 he said yesterday.
<Glanzmann> jannau: ^
mtjzh has quit [Remote host closed the connection]
mtjzh has joined #asahi
<as400[m]> Yes, I think it's 12.0.1
mtjzh has quit [Remote host closed the connection]
mtjzh has joined #asahi
<as400[m]> jannau: would updating stub to 12.1 change anything ?
<jannau> no idea
<as400[m]> ok np. Glad it works
<as400[m]> anyway
axboe has joined #asahi
<Glanzmann> ‰/clear
user982492 has joined #asahi
mtjzh has quit [Remote host closed the connection]
<jannau> as400[m]: is your ESP on the nvme or on a usb stick?
<as400[m]> jannau: everything on nvme
<as400[m]> so it sees nvme and loads kernel from it
<as400[m]> but kernel cannot mount root partition
tertu has joined #asahi
<sven> that looks like admin queue hasn’t been setup correctly
<sven> there’s a bug in the current nvme driver where I don’t disable the controller before setting it up
<sven> I don’t think the fix for that is in the adagio branch yet
mtjzh has joined #asahi
<as400[m]> sven: thx for the info. There is a workaround for now "nvme scan" in uboot console almost always helps.
<sven> that sounds weird
<as400[m]> it is. I have to do this and wait few seconds. If I do "nvme scan" and "boot" immediately after that uboot freezes on "loading kernel"
mtjzh has quit [Ping timeout: 480 seconds]
<sven> huh, so u-boot itself also doesn’t work?
<as400[m]> Well, it works when I issue "nvme scan"
<sven> sure
<sven> but when you don’t u-boot hangs?
<as400[m]> It boots kernel but kernel doesn't find the root partition
<jannau> can you test if something like https://paste.debian.net/1230695/ helps?
<sven> But didn’t you just say that it freezes on loading kernel?
<as400[m]> "NVMMU TCB invalidation failed" - this is what I get from kernel. U-boot sometimes freezes when loading kernel.
<sven> okay, I’m just confused now
<as400[m]> jannau: sure - can I do it tommorrow?
<jannau> sure, when ever you have time
<as400[m]> sven: maybe I'm not making myself clear. Ask whatever you want.
<as400[m]> There are two problems
<jannau> as400[m]: it appears you have 2 distinct failures
<as400[m]> 1. U-boot freezes sometimes on loading kernel.
<as400[m]> 2. When it loads kernel and I didn't issued "nvme scan" on uboot console, kernel does not find root partition.
<as400[m]> jannau: yes, but it might be caused by the same thing.
<as400[m]> Maybe "sleep" will help
<sven> okay, that makes more sense now
<sven> that bug should be fixed anyway but i don't think it causes your issues
josip[m] has joined #asahi
<as400[m]> Well, I'll try it tommorrow anyway
eroux_ has joined #asahi
eroux has quit [Ping timeout: 480 seconds]
<kov> Glanzmann, I'm doing a tethered boot of debian bullseye using the config / patches from your guide and I have a weird problem with the trackpad: the buttons work, but no movement of the cursor, have you seen that before?
<kov> the good news is gnome sees the battery, wifi seems to as well \o/
<kov> yep, managed to use the keyboard to connect to it from the gnome panel!
bpye4 has joined #asahi
bpye has quit [Ping timeout: 480 seconds]
bpye4 is now known as bpye
<Glanzmann> kov: I had the same issue. So I used testing.
<Glanzmann> THere it works.
<Glanzmann> But I know that people are in here that run bullseye with a working touchpad, but I did not understand what they did.
<Glanzmann> IIRC amw is running bullseye with a working touchpad.
<Glanzmann> kov: Here are few files that amw uploaded me: https://tg.st/u/amw.tar.gz
<Glanzmann> One thing that made me use testing was that the libinput in bullseye is a little bit to old of what I think jannau recommended on using.
mtjzh has joined #asahi
amw has quit [Ping timeout: 480 seconds]
axboe has quit [Quit: rebooting]
axboe has joined #asahi
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
axboe has quit []
amw has joined #asahi
mtjzh has quit [Ping timeout: 480 seconds]
mtjzh has joined #asahi
user982492 has joined #asahi
mtjzh has quit [Ping timeout: 480 seconds]
eroux_ has quit [Ping timeout: 480 seconds]
mtjzh has joined #asahi
mtjzh has quit [Ping timeout: 480 seconds]
kenzie35 has quit []
kenzie35 has joined #asahi
eroux has joined #asahi
<kov> Glanzmann, hmm interesting, I'll try upgrading libinput firs then, see if that fixes it
<kov> it's weird because I remember the trackpad working a while ago
mtjzh has joined #asahi
<kov> yep, just upgrading to testing's libinput makes it work heh thanks Glanzmann!
mtjzh has quit [Ping timeout: 480 seconds]
grgy has joined #asahi
mtjzh has joined #asahi
grgy has quit [Quit: ZNC 1.8.2 - https://znc.in]
grgy has joined #asahi
eroux has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eroux has joined #asahi
myon98 has joined #asahi
eroux has quit [Ping timeout: 480 seconds]