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
<mps> and sound, very nice, we will hear 'beep' I think
<kettenis> no sound support in u-boot, but I did resync the device trees
<tpw_rules> does that just mean copy and paste them?
<mps> kettenis: which dtb to use with u-boot? from kernel build or from u-boot?
<kettenis> u-boot
<mps> ok, thanks
<tpw_rules> which is just the latest kernel ones, right? it's just that uboot does the compilation
c10l has quit [Quit: The Lounge - https://thelounge.chat]
<duck[m]> Welcome @_oftc_c10l:matrix.org! Howdy?
c10l has joined #asahi
<duck[m]> Welcome c10l! Howdy?
<kettenis> tpw_rules: there are still some small differences
<kettenis> but the u-boot one should work for the kernel as well
c10l has quit [Remote host closed the connection]
<duck[m]> Welcome @_oftc_c10l:matrix.org! Howdy?
aleasto has quit [Quit: Konversation terminated!]
<duck[m]> Welcome @_oftc_aleasto:matrix.org! Howdy?
aleasto has joined #asahi
<duck[m]> Welcome aleasto! Howdy?
aleasto has quit []
<duck[m]> Welcome @_oftc_aleasto:matrix.org! Howdy?
aleasto has joined #asahi
<duck[m]> Welcome aleasto! Howdy?
<tpw_rules> erm, whose bot is this?
aleasto has quit []
<duck[m]> Welcome @_oftc_aleasto:matrix.org! Howdy?
aleasto has joined #asahi
<duck[m]> Welcome aleasto! Howdy?
aleasto has quit []
<duck[m]> Welcome @_oftc_aleasto:matrix.org! Howdy?
aleasto has joined #asahi
<duck[m]> Welcome aleasto! Howdy?
aleasto has quit []
<duck[m]> Welcome @_oftc_aleasto:matrix.org! Howdy?
duck[m] was banned on #asahi by marcan [*!*@2001:470:1af1:101::a411]
duck[m] was kicked from #asahi by marcan [duck[m]]
chadmed has joined #asahi
jeffmiw has quit [Ping timeout: 480 seconds]
Rhys[m] has joined #asahi
DarkShadow44 has quit [Ping timeout: 480 seconds]
riker77_ has joined #asahi
riker77 has quit [Ping timeout: 480 seconds]
riker77_ is now known as riker77
c10l has joined #asahi
squags has quit [Ping timeout: 480 seconds]
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
DarkShadow44 has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
hollister has joined #asahi
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
dsrt^ has joined #asahi
squags has joined #asahi
yuyichao has joined #asahi
squags has quit [Ping timeout: 480 seconds]
PhilippvK has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
hollister has quit [Ping timeout: 480 seconds]
squags has joined #asahi
<Namidairo> yeah might want to turn off the user join messages going over the matrix bridge
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
<marcan> Namidairo: those aren't the user join messages, that was some silly script/bot (that wasn't even working properly, since it was greeting people on quit)
<Namidairo> quite a few matrix users here though, which is neat in itself
darkapex3 has joined #asahi
darkapex2 has quit [Ping timeout: 480 seconds]
dsrt^ has quit [Remote host closed the connection]
squags has quit [Ping timeout: 480 seconds]
squags has joined #asahi
nuh^ has joined #asahi
squags has quit [Ping timeout: 480 seconds]
squags has joined #asahi
darkapex4 has joined #asahi
darkapex3 has quit [Ping timeout: 480 seconds]
darkapex has joined #asahi
darkapex4 has quit [Ping timeout: 480 seconds]
squags has quit [Ping timeout: 480 seconds]
sailorek1234 has joined #asahi
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
Dcow_ has joined #asahi
Dcow___ has joined #asahi
Dcow____ has joined #asahi
Dcow has quit [Ping timeout: 480 seconds]
Dcow__ has quit [Ping timeout: 480 seconds]
squags has joined #asahi
Dcow_ has quit [Ping timeout: 480 seconds]
Dcow has joined #asahi
Dcow___ has quit [Ping timeout: 480 seconds]
Dcow_ has joined #asahi
Dcow__ has joined #asahi
Dcow____ has quit [Ping timeout: 480 seconds]
Dcow has quit [Ping timeout: 480 seconds]
Dcow__ has quit [Remote host closed the connection]
Dcow has joined #asahi
darkapex1 has joined #asahi
darkapex has quit [Ping timeout: 480 seconds]
the_lanetly_052__ has joined #asahi
darkapex2 has joined #asahi
squags has quit [Ping timeout: 480 seconds]
darkapex1 has quit [Ping timeout: 480 seconds]
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
squags has joined #asahi
suricato_ has quit [Ping timeout: 480 seconds]
darkapex3 has joined #asahi
the_lanetly_052___ has joined #asahi
darkapex2 has quit [Ping timeout: 480 seconds]
the_lanetly_052__ has quit [Ping timeout: 480 seconds]
yournoob[m] has joined #asahi
<yournoob[m]> where can i find working debian rootfs with kde preinstalled? i don't know how to do it myself
squags has quit [Ping timeout: 480 seconds]
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
jeffmiw has joined #asahi
squags has joined #asahi
aleasto has joined #asahi
<FireFox317> yournoob[m], if you dont know how to that yourself, then this project is probably in a stage to early for you to try, and you want to wait till we have a proper installer etc
squags has quit [Ping timeout: 480 seconds]
squags has joined #asahi
<mps> anyone knows on which bus is battery interface?
<j`ey> SMC
<mps> ah, have to wait then. thanks
<mps> and RTC?
squags has quit [Ping timeout: 480 seconds]
<kettenis> inside the SPMI PMU
<mps> kettenis: thanks
nsr_ has quit [Remote host closed the connection]
<yournoob[m]> <firefox317> "yournoob, if you dont know how..." <- yeah i know, but i read the official guides and i think i managed to build a m1n1-payload.macho
<yournoob[m]> at least m1n1 boots up and also Linux, until it says no root device
squags has joined #asahi
<landscape15[m]> Dyournoob: Have you tried to build it with debootstrap?
<landscape15[m]> s/Dyournoob/yournoob/
<amw> yournoob[m]: I don't think there are "official" guides - have you looked at https://tg.st/u/asahi.txt ?
<amw> Once you get an X server + wifi going kde is probably a few apt install steps away
<yournoob[m]> amw: ok but i need to install kde later.
<yournoob[m]> landscape15[m]: what is this metod?
<landscape15[m]> yournoob: I followed this https://www.debian.org/releases/stable/i386/apds03.en.html
<amw> yournoob[m]: apt install kde-full - "complete KDE Software Compilation for end users" sounds what you want - once you have a networking + base debian rootfs ...
squags has quit [Ping timeout: 480 seconds]
<landscape15[m]> amw: Are you sure it works under a chroot environment?
<yournoob[m]> amw: ok i'm trying
<amw> landscape15[m]: Does what work on a chroot environment? You need to install
<amw> landscape15[m]: the base debian rootfs onto a USB drive or even better an nvme partition you create
<amw> I wouldn't try to build a base rootfs with X in it for copying onto the USB drive/nvme partition if that is what you mean
<amw> No need - just do the minimal one, then once it is booted (with networking) you can install the rest
squags has joined #asahi
<landscape15[m]> Yeah I think it’s the best way. I already installed the rootFS onto the nvme partition. But I don’t have Wi-Fi connection, because I didn’t build the kernel with the new Wi-Fi patches.
<yournoob[m]> amw: wouldn't be better to preinstall everything?
<amw> I used a USB networking dongle to get initial networking going
<amw> yournoob[m]: I think it's much better to start simple and small / command line - graphic's likely to be very tricky
<landscape15[m]> amw: I have a usb-c to Ethernet adapter. Do I need some configuration?
<amw> I just used dhclient - if you have the driver (i.e. eth0 appears) try "dhclient eth0"
<amw> That will do dhcp to get networking IP and route up
<amw> I looked at what driver was needed for my USB networking devices and made sure my kernel compiled those in (=y not =m) not as a module
<landscape15[m]> Thanks I will try
squags has quit [Ping timeout: 480 seconds]
zimsneexh has joined #asahi
squags has joined #asahi
hollister has joined #asahi
<mps> kettenis: I tested new u-boot, works fine. but grub doesn't recognize keyboard in grub menu and also grub scans only first two partitions for grub files it seems
<mps> but these are grub problems and not u-boot
<mps> kettenis: congrats for good work
<kettenis> the keyboard should work in grub
<kettenis> but most of the "special" keys (such as the arrows) are currently not mapped
<mps> it works in 'grub rescue>' prompt but not in menu
<mps> ah, only tried arrow keys :)
squags has quit [Ping timeout: 480 seconds]
jelly has quit [Read error: Connection reset by peer]
jelly has joined #asahi
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
chadmed has quit [Remote host closed the connection]
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
yuyichao has quit [Ping timeout: 480 seconds]
squags has joined #asahi
joske has joined #asahi
<joske> mps: I tried the new u-boot too, however it never seems to find the nvme on my macbook air. I used the apple_m1_defconfig, booting with linux.py u-boot-nodtb.bin.gz t8103-j313.dtb. Anything I missed?
yuyichao has joined #asahi
yuyichao has quit []
<joske> mps: ok when booted with the dtb from u-boot it now seems to see the disk, but says unrecognized filesystem
<kettenis> it says that a lot
yuyichao has joined #asahi
<joske> kettenis: when I issue nvme info command, the machine resets
<kettenis> it's not supposed to do that
<mps> joske: right, but I guess this for nvme scan is grub issue not u-boot
<mps> but didn't tested extensively
<mps> u-boot loads bootefi64 from nvme0n1p4 partition
sailorek1234 has quit []
joske has quit [Ping timeout: 480 seconds]
rose_ has joined #asahi
<rose_> hey, yesterday someone told me that in order to load u-boot, i should use m1n1's run_guest.py. we've tried this just now and it spat out some register reads and writes before talking about a dangerous write and rebooting the machine - is there anything obvious we could be doing wrong here?
<rose_> wait, is anyone around here actually using monterey?
<ChaosPrincess> i think you are supposed to use monterey
<rose_> apparently even kettenis is using big sur, maybe wasn't a good idea to upgrade
<rose_> our main problem with monterey is that the framebuffer was the only real output we had, and now that's gone, we can't just boot netbsd and see if it works because iirc it has no other working i/o lol
darkapex4 has joined #asahi
darkapex3 has quit [Ping timeout: 480 seconds]
<tpw_rules> rose_: if it reboots then u-boot crashed
<tpw_rules> the dangerous register accesses don't mean anything afaict
<rose_> noted
<rose_> is there a way to tell why it crashed?
<tpw_rules> it might have printed an exception log to the console on /dev/ttyACM1. but i never figured out how to parse them
<tpw_rules> all of mine have been "synchronous abort"s with a register dump. you can also use m1n1 to set up an exception trap to halt and put you in the debugger instead of rebooting but frankly it sounds easier to figure out what step you're missing that's causing a crash
<rose_> woahhhh mb i never realised there were two consoles, thanks
<tpw_rules> like using the wrong device tree or putting together the bin file you're loading with run_guest incorrectly
<rose_> i reckon it's the latter tbh
<rose_> "cat m1n1.bin u-boot.dtb u-boot-nodtb.bin > blah.bin" right?
<tpw_rules> i said that and you might actually need to use m1n1.macho
<rose_> so s/m1n1.bin/m1n1.macho/ and that's it, you think?
<tpw_rules> but definitely pull up the second console using your favorite serial port program, e.g. picocom. that's the whole point of using the hypervisor. /dev/ttyACM0 is access to m1n1 to load stuff and /dev/ttyACM1 is a redirected serial console that u-boot and the kernel and m1n1 print to
<tpw_rules> maybe u-boot is fine but it's crashing when it tries to automatically load the kernel
<tpw_rules> (which it will if it also tries to load a device tree)
<rose_> epic, thanks. do you know how this console is exposed to the guests (or where it's documented)? i suppose i'll need to write a driver for it in netbsd
<tpw_rules> not 1000% sure. linux calls it /dev/ttySAC0
<kettenis> rose_: shows up on OpenBSD as ucom0 and ucom1
<kettenis> umodem0 at uhub1 port 5 configuration 1 interface 0 "Asahi Linux m1n1 uartproxy 4089443" rev 2.00/1.00 addr 4
<kettenis> ucom0 at umodem0
<rose_> woah thanks a lot that's great
<kettenis> umodem1 at uhub1 port 5 configuration 1 interface 2 "Asahi Linux m1n1 uartproxy 4089443" rev 2.00/1.00 addr 4
<kettenis> ucom1 at umodem1
<kettenis> I don't think I added any code to make this work
<rose_> wait wait wait
<kettenis> so expect that it works on NetBSD as well
<rose_> when you say it shows up on openbsd, is this openbsd running *on the m1*, or on a machine that's plugged into it?
<kettenis> separate machine connected using a type-C to type-C cable
squags has quit [Ping timeout: 480 seconds]
<rose_> right
<sven> yeah, I just made the usb code emulate a normal CDC ACM drive which should work everywhere
<sven> on the M1 it emulates apple’s serial and probably needs a driver in whatever you’re running on there
<rose_> right, that's what i was looking for, thanks
<rose_> tpw_rules: ty for your help, we have a u-boot shell now
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
nick_ has joined #asahi
nick_ is now known as skrll
squags has joined #asahi
hollister has quit [Ping timeout: 480 seconds]
squags has quit [Ping timeout: 480 seconds]
squags has joined #asahi
the_lanetly_052___ has quit [Ping timeout: 480 seconds]
rose_ has quit [Quit: Connection closed]
<SamAdams[m]> Great chart for the boot process for beginners.
the_lanetly_052___ has joined #asahi
skrll has quit [Ping timeout: 480 seconds]
skrll has joined #asahi
squags has quit [Ping timeout: 480 seconds]
skrll has quit [Ping timeout: 480 seconds]
squags has joined #asahi
squags has quit [Ping timeout: 480 seconds]
squags has joined #asahi
artemist0 has joined #asahi
squags has quit [Ping timeout: 480 seconds]
yuyichao_ has joined #asahi
squags has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
Dcow__ has joined #asahi
Dcow___ has joined #asahi
squags has quit [Ping timeout: 480 seconds]
Dcow has quit [Ping timeout: 480 seconds]
Dcow_ has quit [Ping timeout: 480 seconds]
squags has joined #asahi
XeR has joined #asahi
skrll has joined #asahi
yuyichao has joined #asahi
yuyichao_ has quit [Ping timeout: 480 seconds]
skrll has quit [Ping timeout: 480 seconds]
zimsneexh has quit [Ping timeout: 480 seconds]
<roxfan> "beginners"
maor26 has joined #asahi
maor26 has quit [Quit: Leaving]
skrll has joined #asahi
<NightRaven[m]> Is a 2nd machine still needed for enabling wifi ?
nuh^ has quit [Remote host closed the connection]
<mps> NightRaven[m]: yes
<NightRaven[m]> Hmm ok
<NightRaven[m]> Thx
squags has quit [Ping timeout: 480 seconds]
dsrt^ has joined #asahi
squags has joined #asahi
skrll has quit [Ping timeout: 480 seconds]
squags has quit [Ping timeout: 480 seconds]
<j`ey> NightRaven[m]: be more patient!
squags has joined #asahi
<NightRaven[m]> I am waiting I am Just checking if it is supported
<SamAdams[m]> Beginning was used in the sense that it would be useful to someone who's starting out. Once you scroll down, it's more technical about the boot process.
bradfier has quit [Quit: Leaving...]
bradfier has joined #asahi
bdju has quit [Ping timeout: 480 seconds]
bdju has joined #asahi
skrll has joined #asahi
Dcow has joined #asahi
Dcow___ has quit [Read error: Connection reset by peer]
bdju has quit [Ping timeout: 480 seconds]
bdju has joined #asahi
skrll has quit [Ping timeout: 480 seconds]
bdju has quit [Ping timeout: 480 seconds]
bdju has joined #asahi
skrll has joined #asahi
skrll has quit [Ping timeout: 480 seconds]
curlyqueue has joined #asahi
<marcan> that article is confused about iBoot/xnu
<marcan> all those logs are from xnu
<marcan> iBoot does not verify the snapshot seal or any of that, it merely passes through the root signature to xnu
<marcan> it can't verify the seal, that would take forever; the whole point is it's a hash tree verified dynamically at runtime, so it has to be done by the kernel