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
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tuxcaeli[m] has joined #asahi
user982492 has joined #asahi
xiuxuanwang[m] has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi
phiologe has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
kov has quit [Quit: Coyote finally caught me]
kov has joined #asahi
angustrau[m] is now known as emilytrau[m]
babilen_ has quit [Server closed connection]
babilen has joined #asahi
hays has quit [Server closed connection]
hays has joined #asahi
Xe has quit [Server closed connection]
Xe has joined #asahi
hl` has quit [Server closed connection]
hl` has joined #asahi
kendfinger has quit [Server closed connection]
kendfinger has joined #asahi
Esmil has quit [Server closed connection]
Esmil has joined #asahi
anuejn has joined #asahi
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
eric_engestrom has quit [Server closed connection]
eric_engestrom has joined #asahi
anuejn has quit [charon.oftc.net kinetic.oftc.net]
Xe has quit [charon.oftc.net kinetic.oftc.net]
hl` has quit [charon.oftc.net kinetic.oftc.net]
babilen has quit [charon.oftc.net kinetic.oftc.net]
babilen has joined #asahi
hl` has joined #asahi
anuejn has joined #asahi
Xe has joined #asahi
raiaq has quit [Server closed connection]
raiaq has joined #asahi
jkkm has quit [Server closed connection]
jkkm has joined #asahi
aeroraptor has quit [Server closed connection]
aeroraptor has joined #asahi
exhan[m] has joined #asahi
_alice has quit [Server closed connection]
_alice has joined #asahi
xerpi[m] has quit [Server closed connection]
xerpi[m] has joined #asahi
WhyNotHugo has quit [Server closed connection]
WhyNotHugo has joined #asahi
nsklaus_ has joined #asahi
nsklaus has quit [Ping timeout: 480 seconds]
emilazy has quit [Server closed connection]
emilazy has joined #asahi
darkapex has quit [Ping timeout: 480 seconds]
ciggi_ has quit [Ping timeout: 480 seconds]
arnd has quit [Server closed connection]
arnd has joined #asahi
ciggi has joined #asahi
darkapex has joined #asahi
jeffmiw has joined #asahi
sven has quit [Server closed connection]
sven has joined #asahi
rolodondo9378[m] has quit [Server closed connection]
rolodondo9378[m] has joined #asahi
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkjnsn[m] is now known as rkjnsn
sheepgoose has quit [Ping timeout: 480 seconds]
<jannau>
jmr2: works for me with arch linux arm, still complains about the non-standard page size 16384 though. might be version dependent since pvck produces different output
<jannau>
WARNING: pv_header.disk_locn[2].offset 16384 is unexpected # for first mda
andorinhariver[m] has quit [Server closed connection]
andorinhariver[m] has joined #asahi
ArcticFive[m] has quit [Server closed connection]
ArcticFive[m] has joined #asahi
Bastian[m] has quit [Server closed connection]
Bastian[m] has joined #asahi
blazra[m] has quit [Server closed connection]
blazra[m] has joined #asahi
AnushervonTabarov[m] has quit [Server closed connection]
AnushervonTabarov[m] has joined #asahi
CristianMgheruan-Stanciu[m] has quit [Server closed connection]
CristianMgheruan-Stanciu[m] has joined #asahi
digitalfx[m] has quit [Server closed connection]
digitalfx[m] has joined #asahi
facez[m] has quit [Server closed connection]
facez[m] has joined #asahi
izzyisles[m] has quit [Server closed connection]
izzyisles[m] has joined #asahi
jakou[m] has quit [Server closed connection]
jakou[m] has joined #asahi
<kettenis>
yay, next batch of u-boot patches is in
kdas has quit [Server closed connection]
kdas has joined #asahi
lucifer178[m] has quit [Server closed connection]
lucifer178[m] has joined #asahi
<j`ey>
nvme, keyboard
mrbatmanface[m] has quit [Server closed connection]
mrbatmanface[m] has joined #asahi
NightRaven[m] has quit [Server closed connection]
NightRaven[m] has joined #asahi
pho[m] has quit [Server closed connection]
pho[m] has joined #asahi
rohin[m] has quit [Server closed connection]
rohin[m] has joined #asahi
<j`ey>
kettenis: so what else is missng for m1 (not pro/max)?
<j`ey>
(looking at the mailing list it seems to only be max/pro stuff left)
twoscomplement0b[m] has quit [Server closed connection]
twoscomplement0b[m] has joined #asahi
<kettenis>
jannau's dynamic mem layout would also be helpful for m1
vasilymilovidov[m] has quit [Server closed connection]
vasilymilovidov[m] has joined #asahi
<kettenis>
tpw_rules's usb keyboard thing would also be really helpful
<kettenis>
and there is the usb3 role switching issue (but we can work around that in the device trees)
PieroDel[m] has quit [Server closed connection]
PieroDel[m] has joined #asahi
<j`ey>
but otherwise, it seems that mainline u-boot would be usuable for m1?
<kettenis>
yes
MajorBiscuit has joined #asahi
<j`ey>
very cool!
<kettenis>
I'd like to put back pcie support at some point (type-A ports on the mini), but that will have to wait until after U-Boot 2022.04 has been released
<kettenis>
m1 pro/max support might still make 2022.04 since it only touches board-specific files
<kettenis>
but if not, the asahi-installer can just use a handful of patches on top of the official U-Boot release
<mps>
kettenis: nice. now I could try boot with upstream u-boot
ponkey364[m] has quit [Server closed connection]
ponkey364[m] has joined #asahi
<ar>
kettenis: why would the pcie have to wait until after 2022.04?
<Jamie[m]1>
^ lol, valve's embedded controller for the steam deck uses apple-style 4-letter attributes
<Jamie[m]1>
i didn't realise that was a more widespread practise
<Jamie[m]1>
oh is it an ACPI thing? right :/
<j`ey>
yeah
<mps>
mainline u-boot can load fine grub and then linux
<mps>
from nvme, doesn't detect external usb storage as expected
<mps>
so good progress
<mps>
kettenis: congrats
<mps>
and jannau ofc
eroux has quit [Ping timeout: 480 seconds]
<kov>
kettenis, good stuff! does that include the latest smc dt stuff as well, or is that still pending?
<kettenis>
that is dependent on things landing on the asahi branch of the kernel repository
eroux has joined #asahi
<kettenis>
tpw_rules: looks like your usb keyboard fix diff is on its way to master as well
<kov>
kettenis, makes sense
roxfan has quit [Remote host closed the connection]
roxfan has joined #asahi
<tpw_rules>
kettenis: they accepted v3? how can i double check that?
<kettenis>
marex sent a pull request with v3 included
<tpw_rules>
okay, excellent. thanks for your help with that, grateful to be able to contribute
<kettenis>
(well, I assume it is v3)
<tpw_rules>
oh i see it on patchwork, yes it is
<kettenis>
I just noticed the pull request on the mailing list
le0n_ has joined #asahi
le0n has quit [Ping timeout: 480 seconds]
ifthenelse has quit [Quit: see ya!]
ifthenelse has joined #asahi
ifthenelse has quit []
ifthenelse has joined #asahi
jmr2 has joined #asahi
<jmr2>
jannau: thanks. It was a bad kernel config - CONFIG_SYSFS_DEPRECATED and/or CONFIG_UEVENT_HELPER interfering.
<jmr2>
Still not sure about that 16k warning, though since I plan to share the VG between Asahi and a Linux VM running on MacOS+QEMU. I guess I'll have to try.
Techcable has quit [Remote host closed the connection]
Techcable has joined #asahi
bmrgz[m] has quit [Server closed connection]
bmrgz[m] has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
le0n_ is now known as le0n
jmr2 has quit [Quit: Page closed]
allegorie[m] has quit [Server closed connection]
allegorie[m] has joined #asahi
TomHobson[m] has quit [Server closed connection]
yuyichao has joined #asahi
TomHobson[m] has joined #asahi
LorenzKofler[m] has quit [Server closed connection]
LorenzKofler[m] has joined #asahi
oi_wtf has quit [Server closed connection]
oi_wtf has joined #asahi
latko[m] has quit [Server closed connection]
latko[m] has joined #asahi
jonnymac[m] has quit [Server closed connection]
jonnymac[m] has joined #asahi
st3g4n0[m] has quit [Server closed connection]
st3g4n0[m] has joined #asahi
SteffanKaragianis[m] has quit [Server closed connection]
SteffanKaragianis[m] has joined #asahi
taowa_ has quit []
David[m]12345678 has quit [Server closed connection]
David[m]12345678 has joined #asahi
taowa has joined #asahi
ogimgd[m] has quit [Server closed connection]
ogimgd[m] has joined #asahi
n1c has quit [Quit: ZNC 1.8.2+deb1+focal2 - https://znc.in]
kholtastrophe[m] has quit [Server closed connection]
kholtastrophe[m] has joined #asahi
alexstore06[m] has quit [Server closed connection]
alexstore06[m] has joined #asahi
wollymilkcap[m] has quit [Server closed connection]
wollymilkcap[m] has joined #asahi
sppdqd[m] has quit [Server closed connection]
sppdqd[m] has joined #asahi
the_lanetly_052 has quit [Ping timeout: 480 seconds]
JamieMagee[m] has quit [Server closed connection]
JamieMagee[m] has joined #asahi
M32thSystem[m] has quit [Server closed connection]
M32thSystem[m] has joined #asahi
citruscitrus[m] has quit [Server closed connection]
citruscitrus[m] has joined #asahi
cangurbuz[m] has quit [Server closed connection]
cangurbuz[m] has joined #asahi
isitaboat[m] has quit [Server closed connection]
isitaboat[m] has joined #asahi
long[m] has quit [Server closed connection]
long[m] has joined #asahi
matthewayers[m] has quit [Server closed connection]
matthewayers[m] has joined #asahi
Santiago[m]1 has quit [Server closed connection]
Santiago[m]1 has joined #asahi
essentia[m] has quit [Server closed connection]
essentia[m] has joined #asahi
nirusu[m] has quit [Server closed connection]
nirusu[m] has joined #asahi
ghantaz[m] has quit [Server closed connection]
ghantaz[m] has joined #asahi
sproede[m] has quit [Server closed connection]
sproede[m] has joined #asahi
emilytrau[m] has quit [Server closed connection]
emilytrau[m] has joined #asahi
haterade[m] has quit [Server closed connection]
haterade[m] has joined #asahi
nykma[m] has quit [Server closed connection]
nykma[m] has joined #asahi
MajorBiscuit has quit [Quit: WeeChat 3.4]
suricato has quit [Server closed connection]
suricato has joined #asahi
coolshaurya has quit [Server closed connection]
coolshaurya has joined #asahi
<as400[m]>
Hey, looking for a working config for t6000 - anyone ?
<Glanzmann>
as400[m]: Do you use Debian or System i?
<as400[m]>
hehe - that's a joke right ?
<Glanzmann>
No, you're nick is as400 so you must be an IBM guy.
<as400[m]>
Let's say I was
<as400[m]>
And I just love those machines
<as400[m]>
And that's where the nick came from
<Glanzmann>
I see. 27 years ago, I had access to a lot of AIX machines.
Retr0id has quit [Server closed connection]
Retr0id has joined #asahi
<as400[m]>
AIX is completely different animal than OS/400
anon2022[m] has quit [Server closed connection]
anon2022[m] has joined #asahi
<Glanzmann>
Anyway, to come back to your original question in the above repository you find instructions to build a kernel and u-boot that works on t6000 machines.
axboe has joined #asahi
<as400[m]>
Glanzmann: could you be so kind and just paste .config for me somewhere ?
<Glanzmann>
Or if you really just want the patch: tg.st/u/iommu.patch
<sven>
:-)
<as400[m]>
sven: your patch is famous :)
<sven>
apparently, and I’ve been neglecting it for months now!
<as400[m]>
sven: have no idea why, really.
<sven>
I guess because it’s just not in asahi because I worked in that series before that branch even existed
<sven>
*on
<as400[m]>
sven: well, you just abandoned this patch and it started to live its own life I guess :)
<sven>
haha :D
* tophevich[m]
hopes it doesn't act out based on abandonment issues
<Glanzmann>
It is not abonded, some in here run it in production. :-)
<as400[m]>
Glanzmann: I just downloaded your u-boot binary. Did anyone tried it on t6000 ?
martinstewart has joined #asahi
<Glanzmann>
as400[m]: axboe was the beta tester.
<Glanzmann>
as400[m]: I also tried it, but not on 6000, since I have only mini and macbook air.
<Glanzmann>
Oh and jannau is of course also running it.
<as400[m]>
wow ! You found a respactable beta tester :)
<as400[m]>
Glanzmann: thx for all the ingo
<as400[m]>
info
j`ey has quit [Server closed connection]
j`ey has joined #asahi
<martinstewart>
hello just wondering if mac os 12.2.1 is supported by the asahilinux installer
<as400[m]>
you're starting to be a living wiki of this channel
<martinstewart>
im currently on montery bata 10
<Glanzmann>
martinstewart: The installer installs a 12.1 stub.
<Glanzmann>
martinstewart: Is your question which macos version it installs or from which version you can run it?
<tophevich[m]>
Glanzmann: But its father who birthed it abandoned it *sigh*
<martinstewart>
the later option
<Glanzmann>
martinstewart: So I tried installing it from 12.2 which works. Today I got an update, I have not yet tried to install it using that version.
<Glanzmann>
martinstewart: I'll try it for you, one second.
<as400[m]>
when running with u-boot --> grub I don't have to specify a dtb in grub, right ?
<tpw_rules>
if you do everything will explode, so don't
<as400[m]>
tpwrules: thx
<as400[m]>
I don't want my beautiful and expensive mac to explode
<as400[m]>
anyone tried jannaus u-boot with extlinux on t6000 ?
<tpw_rules>
you also can't specify a dtb with extlinux
<as400[m]>
ok, just asking if anyone tried
<tpw_rules>
just making sure you weren't hoping to dodge that restriction :)
<tpw_rules>
alright, my patch landed in u-boot master
<as400[m]>
tpw_rules: no, I understand where it comes from. Congrats on patch :)
<kettenis>
it did and and I rebased my t6000 branch on master and added jannau's patches to it
<Glanzmann>
kettenis: Does it also have the pci patch?
<tpw_rules>
is the m1-m1n1-nvme branch obsolete now?
<Glanzmann>
tophevich[m]: It was already 3 days ago.
<kettenis>
there is no new pcie patch yet
<Glanzmann>
kettenis: Does the old pcie patch work with master?
<kettenis>
no
<Glanzmann>
I see.
<kettenis>
but I'll declare apple-m1-m1n1-nvme obsolete as soon as we have an asahilinux branch with smc support
<Glanzmann>
kettenis: Yes, I already added a warning to the wiki that the usb-a ports are not working on the mini for the time being but that you will work on it.
martinstewart has quit [Ping timeout: 480 seconds]
<mps>
as400[m]: I'm using jannau branch with extlinux.conf but only MBP j293 (2020)
<mps>
this is only machine I have
<as400[m]>
mps: ok, nice it works. Asking because extlinux is just so much easier to handle for me than grub.
<mps>
tpw_rules: you can specify dtb with extlinux but you shouldn't
<as400[m]>
otherwise I would have to use lame systemd-boot - hehe
<mps>
this is on usb flash, for testing, first option works
<j`ey>
mps: ah, have you tried something similar on nvme?
<mps>
i.e. uncompressed kernel image
<j`ey>
I think you can create menus within u-boot too, with a *.scr file, so that might be another option
<Glanzmann>
martinstewart: I also installed u-boot and it works.
<mps>
j`ey: yes, menus could be created but I didn't yet, maybe later when all stabilize
<mps>
j`ey: I simply follow 'syslinux' (boot loader) style with u-boot
<martinstewart>
Glanzmann: what device you on?
<mps>
I used grub version 1, but stopped when it become 2.x and used syslinux on x86
<mps>
now I had to relearn grub 2 for M1
<mps>
j`ey: I planned to test extlinux.conf on nvme on weekend, but I don't expect problems
<j`ey>
yeah i assume it'll just work
<mps>
will see, could be that u-boot stop scan for extlinux on few first partitions
<mps>
if it reach nvme0n1p4 then it should work
<tpw_rules>
afaik it scans the same way it does for EFI partitions
<mps>
tpw_rules: yes, we don't need even to change partition type, it find extlinux also on ESP
ChaosPrincess has quit [Server closed connection]
ChaosPrincess has joined #asahi
<mps>
j`ey: I'm impatient person sometimes, yes it boots from nvme with extlinux, just tested
<j`ey>
mps: so you had extlinux.conf and kernels in your ESP partition?
<mps>
j`ey: right
<mps>
though on usb disk I have them on ext4
Misthios has quit [Server closed connection]
Misthios has joined #asahi
<as400[m]>
u-boot will even read btrfs if compiled with afair
<mps>
as400[m]: yes, if compiled. pity u-boot doesn't yet have f2fs
nzzz has quit [Server closed connection]
nzzz has joined #asahi
<mps>
j`ey: I even made yesterday script which install alpine on usb disk but didn't tested it thoroughly yet, https://tpaste.us/jN7o
<as400[m]>
well, good news is that it just seeks for extlinux.conf no matter what is the partition type
<j`ey>
mps: neat
martinstewart has quit [Ping timeout: 480 seconds]
<mps>
as400[m]: yes, that's good. but I prefer FS where TUGO can be changed
<as400[m]>
mps: that's why we have linux in the end. Everybody gets what she/he wants
<mps>
and OpenBSD ;)
<Glanzmann>
matthewayers[m]: macbook air.
user982492 has joined #asahi
Emantor has quit [Server closed connection]
Emantor has joined #asahi
user982492 has quit []
<Glanzmann>
mps: When I first tried u-boot, someone suggested extlinux, I tried it and it failed. j`ey solved me by looking up the error in the source code.
<Glanzmann>
j`ey: Why do you expect that extlinux.conf now works with u-boot?
user982492 has joined #asahi
JuniorJPDJ has quit [Quit: Reconnecting]
JuniorJPDJ has joined #asahi
<j`ey>
Glanzmann: well it does seem to work for mps! I cant exactly rememeber what the issue now with your attempt
<mps>
Glanzmann: it didn't worked about month or two ago
<j`ey>
I think scriptaddr wasnt set or something
<Glanzmann>
Yep.
<Glanzmann>
mps: Did you try a menu?
<mps>
Glanzmann: no, numeric menus is quite fine for me
<Glanzmann>
mps: I mean, can you choose between different kernels with extlinux and modify the boot options?
<mps>
for menus boot.scr must be used
<as400[m]>
it was me suggesting extlinux. As joey said addresses were not set
<Glanzmann>
I don't care about graphical menus either, but I want to be able to choose between kernels and modify boot options.
<tpw_rules>
you can definitely choose between kernels defined in extlinux
<mps>
Glanzmann: ah this, no, u-boot doesn't have editing in menus
<tpw_rules>
i don't think you can modify options
<tpw_rules>
except to make two menu entries with idifferent options
<Glanzmann>
mps: But I can select different kernels?
<mps>
Glanzmann: yes
<as400[m]>
extlinux has no edit menu option. It's static
<Glanzmann>
Perfect, than I have to try if it now works out of the box with debian.
<NightRaven[m]>
Does the audio or microphone work on arch linux on the m1 ?
<mps>
I keep on every SBC one rescue kernel usually as last option
the_lanetly_052 has joined #asahi
<Glanzmann>
NightRaven[m]: povik was working on it, but I did not hear anyone reporting that it does.
<as400[m]>
I wonder what takes precedence - if efi file and extlinux is present. Anyone tried it ?
<tpw_rules>
extlinux i believe
<mps>
as400[m]: I did
<as400[m]>
and ?
<NightRaven[m]>
oh ok i might install arch on my system again and i want to get the wifi and some gui working
<mps>
on usb efi had precedence but on nvme it is extlinux. funny
<NightRaven[m]>
which i will try to do
<as400[m]>
mps: indeed
<Glanzmann>
NightRaven[m]: Should not be a problem. Have a look at the Debian videos, it is the same procedure, just that you have to manually install grub and extract a rootfs, if you have troubel let me know.
<mps>
but 'mv EFI something' is safe to do I think
<j`ey>
hmm I wonder how it's working without scriptaddr set then
<mps>
j`ey: iirc jannau added it
<as400[m]>
joey: I don't think so
<NightRaven[m]>
i will do the same step installing it on my ssd like before which i can do it but my only issue is the wifi i am a bit confused how you do it since i have never done before
<as400[m]>
And with other sbcs it gets even worse
<Glanzmann>
NightRaven[m]: It is also in the videos, but basically it is:
<j`ey>
mps: oh I thought you were on mainline!
<Glanzmann>
Collect the firmware form macos: curl -sL tg.st/u/fwx.sh
<mps>
CONFIG_SYS_LOAD_ADDR=0x880000000
<Glanzmann>
And extract it in /lib/firmware and reboot
<Glanzmann>
than use iwd or wpa_supplicant
<mps>
j`ey: mainline works also but I didn't tested it on nvme
<NightRaven[m]>
j`ey: i want to try to do it since i interested in it
<j`ey>
I know, but it's not easy currently
<Glanzmann>
NightRaven[m]: So easiest way for you is, install u-boot
<Glanzmann>
use the debian live system to boot
<Glanzmann>
partition and format it
<Glanzmann>
use the rootfs from above and extract it to root. Than you need a kernel.
<Glanzmann>
Either compile it yourself or extract tg.st/u/k.deb
<Glanzmann>
Than you can boot the grub.efi on the esp parition or within ext4 and you have a system that boots.
<NightRaven[m]>
For now i might skip grub and install linux on my ext4 partion on my ssd and boot into it using kmutil
<NightRaven[m]>
and then later on i can try grub
homulilly[m] has quit [Server closed connection]
homulilly[m] has joined #asahi
martinstewart has joined #asahi
<Glanzmann>
NightRaven[m]: Grub is as easy as to put one binary on the right path. Than you have grub command line. There you type linux (hd0,gpt5)/boot/vmlin<tab> root=/dev/nvme0n1p5 rw
<Glanzmann>
j`ey: See, I can learn a new command. :-)
<Glanzmann>
NightRaven[m]: Path
<j`ey>
Glanzmann: haha
<Glanzmann>
j`ey: I still try image and kernel ...
<Glanzmann>
NightRaven[m]: The path: EFI/BOOT/BOOTAA64.EFI the binary: tg.st/u/grubaa64.efi (I took that from Debian testing).
<NightRaven[m]>
Glanzmann: oh you put the grub.efi in the .bin file ?
<Glanzmann>
NightRaven[m]: Nope.
<Glanzmann>
In the bin file you have m1n1 <all dtbs> u-boot
<Glanzmann>
m1n1 picks the right dtb and loads u-boot
<Glanzmann>
u-boot has a driver for ext4 and msdos and looks for an efi binary. Once it finds it, it loads it.
<Glanzmann>
That efi binary is grub which also has a ext4 and msdos driver and loads the grub.cfg There is the kernel and initrd and kernel command line parameters referenced
<Glanzmann>
and than it boots.
<NightRaven[m]>
what is the command again to put all the dtb and image.gz into the .bin file ?
<NightRaven[m]>
and the root="/dev/somethinghere"
<Glanzmann>
NightRaven[m]: see the bootstrap.sh link I pasted above.
<Glanzmann>
But I think I'll stay with grub, because it has more features and it works out of the box with debian.
<mps>
Glanzmann: I see there something like it trying to load dtb (fdt check ...)
<Glanzmann>
I see.
<mps>
Glanzmann: do you use mainline or jannau fork
<NightRaven[m]>
does the trackpad work on linux ?
<Glanzmann>
NightRaven[m]: Yes.
<NightRaven[m]>
oh ok thanks
<Glanzmann>
NightRaven[m]: And not only for me, but for everyone.
<Glanzmann>
NightRaven[m]: jannau took good care of it.
<NightRaven[m]>
oh how did you get it working ?
<Glanzmann>
NightRaven[m]: jannau wrote the drivers, than you need a kernel tree with the driveres and a config which enables the drivers (see the link above).
<Glanzmann>
NightRaven[m]: And than you need mps xorg config to finetune it (see also the link above)
<Glanzmann>
NightRaven[m]: But for me it works out of the box with Debian testing and others have reported that it works for them even with debian stable.
<NightRaven[m]>
oh ok thanks
<Glanzmann>
For me it did not work with debian stable but I might have done something wrong.
eroux has quit [Ping timeout: 480 seconds]
eroux has joined #asahi
<mps>
j`ey: Glanzmann: just tested mainline u-boot with extlinux.conf, doesn't work
<mps>
got error similar like on latest Glanzmanns image
<Glanzmann>
mps: I tried jannaus branch. I thought it worked for you already?
<as400[m]>
Glanzmann: wait, these instructions are for linux not for u-boot
<jannau>
as400[m]: what does not work? does the u-boot screen load?
<jannau>
as400[m]: scroll 17 lines up
<as400[m]>
yes, it loads - I just get bunch of nvmmu errors
<Glanzmann>
as400[m]: These instructions contain multiple things: linux, m1n1, u-boot, debian rootfs, debian dd, debian live stick, and upload the artefacts to my site.
<Glanzmann>
as400[m]: But if you want a binary that works: tg.st/u/ush
<Glanzmann>
as400[m]: Did you try the u-boot binary from my site or did you try to build it yourself? I have no pro/max but jannau and axboe use it succesfully.
<as400[m]>
jannau: ok, will try to build. I was lazy and took entire macho from others. Which is no no no probably. Will build my own u-boot bin
<as400[m]>
Glanzmann: I took you entire macho bin
user982492 has joined #asahi
<jannau>
j`ey: especially considering it took several hours per character to find the fix
<j`ey>
jannau: you werent to know :)
<Glanzmann>
as400[m]: I would install the 12.1 stub using asahi installer.
user982492 has quit []
user982492 has joined #asahi
MrHunk[m] has quit [Server closed connection]
MrHunk[m] has joined #asahi
<as400[m]>
Glanzmann: you might be right
<as400[m]>
although I'm not that old - 120.1
<as400[m]>
12.0.1
<Glanzmann>
that is new enough
<Glanzmann>
but you need a bin
<Glanzmann>
The bin that you need is m1n1 + dtb(s) + u-boot
<Glanzmann>
the dtb is from the smc branch with jannaus patches.
<as400[m]>
I have m1n1 compiled. Where do I take dtb from ? linux or u-boot ?
<Glanzmann>
as400[m]: From the linux kernel
<Glanzmann>
but it needs the patches from jannau.
<Glanzmann>
for the dtb.
<as400[m]>
yeah - patches applied
<Glanzmann>
as400[m]: Than build the kernel.
<tpw_rules>
12.0.1 is still the mach-o
<Glanzmann>
tpw_rules: It works with both.
<as400[m]>
tpw_rules - I know
<Glanzmann>
Doesn't it?
<tpw_rules>
i don't think so?
<Glanzmann>
Okay, maybe not. Than you need the macho.
<as400[m]>
Glanzmann: where I live - I have only gsm connection. Basically im in the middle of the forest
<Glanzmann>
as400[m]: So I need to add transcribes for my videos, that you can access it easier.
<Glanzmann>
as400[m]: So the answer is use the dtb from the kernel. :-)
<j`ey>
Glanzmann: kmutil took 12mins??
<Glanzmann>
j`ey: Nope, the whole process. From start to finish.
<j`ey>
Glanzmann: oh ok
<Glanzmann>
Actually It was only 11:52
<as400[m]>
Glanzmann: don't do this. I'm just a freak. I will manage. Imagine what will happen when Asahi Crew will release installer ! It will be like "unleash the hell" :)
<j`ey>
Glanzmann: the logo is kinda ugly with that blue square lol
<Glanzmann>
j`ey: You have to take this to jannau. And request an asahi logo.
<Glanzmann>
as400[m]: So around 94 when some student of my father showed me the internet (www, ftp, gother, irc). I had only a modem line at home and it was expensive. Luckily I had access to the university because my father was working there. So what I did is, I spend every free minute in the university.
<Glanzmann>
jannau / kettenis / j`ey: Thank you crosscompiling is working.
<as400[m]>
Glanzmann: I guess we are similar age then :)
<Glanzmann>
I'm born 80.
<as400[m]>
wow
<as400[m]>
I'm born 72
<Glanzmann>
jannau / j`ey: Now I would like to run debootstram on aarch64, you have some fancy qemu command I can use?
<Glanzmann>
s/aarch64/amd64/g
<j`ey>
I thought debbootstrap took an --arch param?
<Glanzmann>
But than it is bailing out on me when it wants to run /bin/true.
<j`ey>
Glanzmann: Ive never used debbootstrap, but I think it is possible to cross compile, maybe more arguments are needed
<Glanzmann>
I see, I'll google it up. I thought you had some fancy qemu line which makes it work.
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
casperes1996[m] has quit [Server closed connection]
casperes1996[m] has joined #asahi
xorly[m] has quit [Server closed connection]
xorly[m] has joined #asahi
coin3x[m] has quit [Server closed connection]
coin3x[m] has joined #asahi
Bai-Chiang[m] has quit [Server closed connection]
Bai-Chiang[m] has joined #asahi
enick_341 has quit [Server closed connection]
enick_341 has joined #asahi
PedroArajo[m] has quit [Server closed connection]
PedroArajo[m] has joined #asahi
shu9[m] has quit [Server closed connection]
shu9[m] has joined #asahi
<Glanzmann>
j`ey: Turns out there is a qemu-debootstrap which does anything.
smvg[m] has quit [Server closed connection]
smvg[m] has joined #asahi
<Glanzmann>
So now I can bootstrap on an amd64 host.
legarts[m] has quit [Server closed connection]
legarts[m] has joined #asahi
samfromspace[m] has quit [Server closed connection]
samfromspace[m] has joined #asahi
<j`ey>
Glanzmann: neat
djk121[m] has quit [Server closed connection]
<Glanzmann>
IIUC, it puts a qemu binary in the root of the debian being boostraped and registers a binfmt handler to execute arm64 binaries using this statically linked qemu binary.
djk121[m] has joined #asahi
Lucy[m]1 has quit [Server closed connection]
Lucy[m]1 has joined #asahi
<tpw_rules>
can you do that in a chroot?
<tpw_rules>
and have it be specific to that? doesn't that have to involve a kernel?
<tpw_rules>
s/a/the/
user982492 has joined #asahi
<as400[m]>
jannau: I get constant "nvmmu invalidation failed" and then "waiting for root device" forever
slado122[m] has quit [Server closed connection]
slado122[m] has joined #asahi
houlton[m] has quit [Server closed connection]
<Glanzmann>
tpw_rules: Yes, I can.
houlton[m] has joined #asahi
<Glanzmann>
tpw_rules: Yes it does. The kernel of the host.
lockna has quit [Server closed connection]
lockna has joined #asahi
AONeiLL[m] has quit [Server closed connection]
AONeiLL[m] has joined #asahi
<Glanzmann>
as400[m]: What distribution do you try to boot?
alessandrorzz[m] has quit [Server closed connection]
<Glanzmann>
as400[m]: Does grub come up?
alessandrorzz[m] has joined #asahi
<Glanzmann>
as400[m]: Where does the kernel come from?
quentincestino[m] has quit [Server closed connection]
quentincestino[m] has joined #asahi
OrganicPumpkin[m] has quit [Server closed connection]
<tpw_rules>
ah. i don't really have any modern x86 machines
<tpw_rules>
the fastest i have is my thinkpad, but it's still a mobile processor
<ah-[m]>
how do dtbs work with grub? does it take the dtb from m1n1/u-boot?
<tpw_rules>
yes
<tpw_rules>
u-boot and grub and linux all have to use the device tree prepared by m1n1
<Glanzmann>
ah-[m]: m1n1 picks the right dtb and than loads u-boot. u-boot loads grub, grub loads kernel and initrd
<ah-[m]>
ah cool, so to update that device tree it's necessary to do the kmutil thing again?
<tpw_rules>
yes
<as400[m]>
Glanzmann: kernel is just my build. u-boot comes up but it seems it does not find any nvme partition. Well, I will get back to this tomorrow. It's late. G'night guys - I do appreciate your work very much !!!
<Glanzmann>
tpw_rules: 44 seconds for the kernel, but that involes building a debian package. If I leave that out it will be faster.
<Glanzmann>
as400[m]: Good night. You need a efi partition with the grub on it.