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]
<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 ?
<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
<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.
<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.