#
…

2021-12-29

00:00mpsand sound, very nice, we will hear 'beep' I think
00:01kettenisno sound support in u-boot, but I did resync the device trees
00:02tpw_rulesdoes that just mean copy and paste them?
00:03mpskettenis: which dtb to use with u-boot? from kernel build or from u-boot?
00:04mpsok, thanks
00:07tpw_ruleswhich is just the latest kernel ones, right? it's just that uboot does the compilation
00:10c10l has quit [Quit: The Lounge - https://thelounge.chat]
00:10duck[m]Welcome @_oftc_c10l:matrix.org! Howdy?
00:10c10l has joined #asahi
00:10duck[m]Welcome c10l! Howdy?
00:11kettenistpw_rules: there are still some small differences
00:12kettenisbut the u-boot one should work for the kernel as well
00:22c10l has quit [Remote host closed the connection]
00:22duck[m]Welcome @_oftc_c10l:matrix.org! Howdy?
00:25aleasto has quit [Quit: Konversation terminated!]
00:25duck[m]Welcome @_oftc_aleasto:matrix.org! Howdy?
00:26aleasto has joined #asahi
00:26duck[m]Welcome aleasto! Howdy?
00:27aleasto has quit []
00:27duck[m]Welcome @_oftc_aleasto:matrix.org! Howdy?
00:28aleasto has joined #asahi
00:28duck[m]Welcome aleasto! Howdy?
00:28tpw_ruleserm, whose bot is this?
00:29aleasto has quit []
00:29duck[m]Welcome @_oftc_aleasto:matrix.org! Howdy?
00:32aleasto has joined #asahi
00:32duck[m]Welcome aleasto! Howdy?
00:32aleasto has quit []
00:32duck[m]Welcome @_oftc_aleasto:matrix.org! Howdy?
00:35aleasto has joined #asahi
00:35duck[m]Welcome aleasto! Howdy?
00:35aleasto has quit []
00:35duck[m]Welcome @_oftc_aleasto:matrix.org! Howdy?
00:58duck[m] was banned on #asahi by marcan [*!*@2001:470:1af1:101::a411]
00:58duck[m] was kicked from #asahi by marcan [duck[m]]
01:04chadmed has joined #asahi
01:20jeffmiw has quit [Ping timeout: 480 seconds]
01:51Rhys[m] has joined #asahi
02:24DarkShadow44 has quit [Ping timeout: 480 seconds]
02:27riker77_ has joined #asahi
02:30riker77 has quit [Ping timeout: 480 seconds]
02:30riker77_ is now known as riker77
02:34c10l has joined #asahi
02:41squags has quit [Ping timeout: 480 seconds]
02:49squags has joined #asahi
02:58squags has quit [Ping timeout: 480 seconds]
02:58DarkShadow44 has joined #asahi
03:02yuyichao has quit [Ping timeout: 480 seconds]
03:06squags has joined #asahi
03:15squags has quit [Ping timeout: 480 seconds]
03:16hollister has joined #asahi
03:22squags has joined #asahi
03:31squags has quit [Ping timeout: 480 seconds]
03:33dsrt^ has joined #asahi
03:40squags has joined #asahi
03:46yuyichao has joined #asahi
03:48squags has quit [Ping timeout: 480 seconds]
03:50PhilippvK has joined #asahi
03:53phiologe has quit [Ping timeout: 480 seconds]
03:57hollister has quit [Ping timeout: 480 seconds]
03:58squags has joined #asahi
03:59Namidairoyeah might want to turn off the user join messages going over the matrix bridge
04:16marvin24 has joined #asahi
04:20marvin24_ has quit [Ping timeout: 480 seconds]
04:26marcanNamidairo: 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)
04:35Namidairoquite a few matrix users here though, which is neat in itself
04:48darkapex3 has joined #asahi
04:54darkapex2 has quit [Ping timeout: 480 seconds]
04:57dsrt^ has quit [Remote host closed the connection]
05:06squags has quit [Ping timeout: 480 seconds]
05:13squags has joined #asahi
05:18nuh^ has joined #asahi
05:22squags has quit [Ping timeout: 480 seconds]
05:31squags has joined #asahi
05:51darkapex4 has joined #asahi
05:54darkapex3 has quit [Ping timeout: 480 seconds]
06:03darkapex has joined #asahi
06:08darkapex4 has quit [Ping timeout: 480 seconds]
06:40squags has quit [Ping timeout: 480 seconds]
06:47sailorek1234 has joined #asahi
06:48squags has joined #asahi
06:56squags has quit [Ping timeout: 480 seconds]
07:00Dcow_ has joined #asahi
07:00Dcow___ has joined #asahi
07:03Dcow____ has joined #asahi
07:04Dcow has quit [Ping timeout: 480 seconds]
07:04Dcow__ has quit [Ping timeout: 480 seconds]
07:05squags has joined #asahi
07:08Dcow_ has quit [Ping timeout: 480 seconds]
07:08Dcow has joined #asahi
07:08Dcow___ has quit [Ping timeout: 480 seconds]
07:13Dcow_ has joined #asahi
07:13Dcow__ has joined #asahi
07:18Dcow____ has quit [Ping timeout: 480 seconds]
07:18Dcow has quit [Ping timeout: 480 seconds]
07:28Dcow__ has quit [Remote host closed the connection]
07:29Dcow has joined #asahi
07:34darkapex1 has joined #asahi
07:39darkapex has quit [Ping timeout: 480 seconds]
08:13the_lanetly_052__ has joined #asahi
08:14darkapex2 has joined #asahi
08:14squags has quit [Ping timeout: 480 seconds]
08:17darkapex1 has quit [Ping timeout: 480 seconds]
08:22squags has joined #asahi
08:30squags has quit [Ping timeout: 480 seconds]
08:39squags has joined #asahi
08:48squags has quit [Ping timeout: 480 seconds]
08:56squags has joined #asahi
09:00suricato_ has quit [Ping timeout: 480 seconds]
09:03darkapex3 has joined #asahi
09:07the_lanetly_052___ has joined #asahi
09:08darkapex2 has quit [Ping timeout: 480 seconds]
09:13the_lanetly_052__ has quit [Ping timeout: 480 seconds]
09:53yournoob[m] has joined #asahi
09:54yournoob[m]where can i find working debian rootfs with kde preinstalled? i don't know how to do it myself
10:03squags has quit [Ping timeout: 480 seconds]
10:11squags has joined #asahi
10:19squags has quit [Ping timeout: 480 seconds]
10:27squags has joined #asahi
10:36squags has quit [Ping timeout: 480 seconds]
10:37jeffmiw has joined #asahi
10:44squags has joined #asahi
11:21aleasto has joined #asahi
11:47FireFox317yournoob[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
11:52squags has quit [Ping timeout: 480 seconds]
12:01squags has joined #asahi
12:01mpsanyone knows on which bus is battery interface?
12:02mpsah, have to wait then. thanks
12:04mpsand RTC?
12:09squags has quit [Ping timeout: 480 seconds]
12:12kettenisinside the SPMI PMU
12:14mpskettenis: thanks
12:14nsr_ has quit [Remote host closed the connection]
12:16yournoob[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
12:17yournoob[m]at least m1n1 boots up and also Linux, until it says no root device
12:18squags has joined #asahi
12:19landscape15[m]Dyournoob: Have you tried to build it with debootstrap?
12:20landscape15[m]s/Dyournoob/yournoob/
12:20amwyournoob[m]: I don't think there are "official" guides - have you looked at https://tg.st/u/asahi.txt ?
12:21amwOnce you get an X server + wifi going kde is probably a few apt install steps away
12:22yournoob[m]amw: ok but i need to install kde later.
12:22yournoob[m]landscape15[m]: what is this metod?
12:26amwyournoob[m]: apt install kde-full - "complete KDE Software Compilation for end users" sounds what you want - once you have a networking + base debian rootfs ...
12:26squags has quit [Ping timeout: 480 seconds]
12:28landscape15[m]amw: Are you sure it works under a chroot environment?
12:29yournoob[m]amw: ok i'm trying
12:31amwlandscape15[m]: Does what work on a chroot environment? You need to install
12:31amwlandscape15[m]: the base debian rootfs onto a USB drive or even better an nvme partition you create
12:33amwI 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
12:34amwNo need - just do the minimal one, then once it is booted (with networking) you can install the rest
12:35squags has joined #asahi
12:36landscape15[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.
12:36yournoob[m]amw: wouldn't be better to preinstall everything?
12:37amwI used a USB networking dongle to get initial networking going
12:38amwyournoob[m]: I think it's much better to start simple and small / command line - graphic's likely to be very tricky
12:38landscape15[m]amw: I have a usb-c to Ethernet adapter. Do I need some configuration?
12:39amwI just used dhclient - if you have the driver (i.e. eth0 appears) try "dhclient eth0"
12:40amwThat will do dhcp to get networking IP and route up
12:41amwI 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
12:42landscape15[m]Thanks I will try
12:44squags has quit [Ping timeout: 480 seconds]
12:47zimsneexh has joined #asahi
12:53squags has joined #asahi
13:19hollister has joined #asahi
13:38mpskettenis: 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
13:38mpsbut these are grub problems and not u-boot
13:39mpskettenis: congrats for good work
13:41kettenisthe keyboard should work in grub
13:42kettenisbut most of the "special" keys (such as the arrows) are currently not mapped
13:42mpsit works in 'grub rescue>' prompt but not in menu
13:42mpsah, only tried arrow keys :)
14:01squags has quit [Ping timeout: 480 seconds]
14:05jelly has quit [Read error: Connection reset by peer]
14:09jelly has joined #asahi
14:11squags has joined #asahi
14:19squags has quit [Ping timeout: 480 seconds]
14:22chadmed has quit [Remote host closed the connection]
14:27squags has joined #asahi
14:35squags has quit [Ping timeout: 480 seconds]
14:40yuyichao has quit [Ping timeout: 480 seconds]
14:45squags has joined #asahi
14:45joske has joined #asahi
14:47joskemps: 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?
14:50yuyichao has joined #asahi
14:51yuyichao has quit []
14:52joskemps: ok when booted with the dtb from u-boot it now seems to see the disk, but says unrecognized filesystem
14:52kettenisit says that a lot
14:53yuyichao has joined #asahi
14:53joskekettenis: when I issue nvme info command, the machine resets
14:56kettenisit's not supposed to do that
14:56mpsjoske: right, but I guess this for nvme scan is grub issue not u-boot
14:56mpsbut didn't tested extensively
14:57mpsu-boot loads bootefi64 from nvme0n1p4 partition
14:58sailorek1234 has quit []
15:03joske has quit [Ping timeout: 480 seconds]
15:18rose_ has joined #asahi
15:24rose_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?
15:25rose_wait, is anyone around here actually using monterey?
15:26ChaosPrincessi think you are supposed to use monterey
15:26rose_apparently even kettenis is using big sur, maybe wasn't a good idea to upgrade
15:28rose_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
15:29darkapex4 has joined #asahi
15:34darkapex3 has quit [Ping timeout: 480 seconds]
15:38tpw_rulesrose_: if it reboots then u-boot crashed
15:38tpw_rulesthe dangerous register accesses don't mean anything afaict
15:39rose_is there a way to tell why it crashed?
15:40tpw_rulesit might have printed an exception log to the console on /dev/ttyACM1. but i never figured out how to parse them
15:40tpw_rulesall 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
15:41rose_woahhhh mb i never realised there were two consoles, thanks
15:41tpw_ruleslike using the wrong device tree or putting together the bin file you're loading with run_guest incorrectly
15:42rose_i reckon it's the latter tbh
15:44rose_"cat m1n1.bin u-boot.dtb u-boot-nodtb.bin > blah.bin" right?
15:44tpw_rulesi said that and you might actually need to use m1n1.macho
15:45rose_so s/m1n1.bin/m1n1.macho/ and that's it, you think?
15:46tpw_rulesbut 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
15:47tpw_rulesmaybe u-boot is fine but it's crashing when it tries to automatically load the kernel
15:47tpw_rules(which it will if it also tries to load a device tree)
15:47rose_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
15:48tpw_rulesnot 1000% sure. linux calls it /dev/ttySAC0
15:49kettenisrose_: shows up on OpenBSD as ucom0 and ucom1
15:49kettenisumodem0 at uhub1 port 5 configuration 1 interface 0 "Asahi Linux m1n1 uartproxy 4089443" rev 2.00/1.00 addr 4
15:50kettenisucom0 at umodem0
15:50rose_woah thanks a lot that's great
15:50kettenisumodem1 at uhub1 port 5 configuration 1 interface 2 "Asahi Linux m1n1 uartproxy 4089443" rev 2.00/1.00 addr 4
15:50kettenisucom1 at umodem1
15:51kettenisI don't think I added any code to make this work
15:51rose_wait wait wait
15:52kettenisso expect that it works on NetBSD as well
15:52rose_when you say it shows up on openbsd, is this openbsd running *on the m1*, or on a machine that's plugged into it?
15:52kettenisseparate machine connected using a type-C to type-C cable
15:52squags has quit [Ping timeout: 480 seconds]
15:55svenyeah, I just made the usb code emulate a normal CDC ACM drive which should work everywhere
15:55svenon the M1 it emulates apple’s serial and probably needs a driver in whatever you’re running on there
15:56rose_right, that's what i was looking for, thanks
15:58rose_tpw_rules: ty for your help, we have a u-boot shell now
16:01squags has joined #asahi
16:09squags has quit [Ping timeout: 480 seconds]
16:16nick_ has joined #asahi
16:16nick_ is now known as skrll
16:17squags has joined #asahi
16:25hollister has quit [Ping timeout: 480 seconds]
16:26squags has quit [Ping timeout: 480 seconds]
16:35squags has joined #asahi
16:47the_lanetly_052___ has quit [Ping timeout: 480 seconds]
16:49rose_ has quit [Quit: Connection closed]
17:04SamAdams[m]Great chart for the boot process for beginners.
17:10the_lanetly_052___ has joined #asahi
17:15skrll has quit [Ping timeout: 480 seconds]
17:36skrll has joined #asahi
17:42squags has quit [Ping timeout: 480 seconds]
17:51skrll has quit [Ping timeout: 480 seconds]
17:52squags has joined #asahi
18:00squags has quit [Ping timeout: 480 seconds]
18:10squags has joined #asahi
18:12artemist0 has joined #asahi
18:18squags has quit [Ping timeout: 480 seconds]
18:25yuyichao_ has joined #asahi
18:26squags has joined #asahi
18:29yuyichao has quit [Ping timeout: 480 seconds]
18:32Dcow__ has joined #asahi
18:33Dcow___ has joined #asahi
18:34squags has quit [Ping timeout: 480 seconds]
18:37Dcow has quit [Ping timeout: 480 seconds]
18:37Dcow_ has quit [Ping timeout: 480 seconds]
18:42squags has joined #asahi
18:45XeR has joined #asahi
18:50skrll has joined #asahi
18:50yuyichao has joined #asahi
18:54yuyichao_ has quit [Ping timeout: 480 seconds]
19:12skrll has quit [Ping timeout: 480 seconds]
19:12zimsneexh has quit [Ping timeout: 480 seconds]
19:18roxfan"beginners"
19:21maor26 has joined #asahi
19:28maor26 has quit [Quit: Leaving]
19:40skrll has joined #asahi
19:42NightRaven[m]Is a 2nd machine still needed for enabling wifi ?
19:43nuh^ has quit [Remote host closed the connection]
19:47mpsNightRaven[m]: yes
19:50squags has quit [Ping timeout: 480 seconds]
19:56dsrt^ has joined #asahi
19:59squags has joined #asahi
20:04skrll has quit [Ping timeout: 480 seconds]
20:07squags has quit [Ping timeout: 480 seconds]
20:14j`eyNightRaven[m]: be more patient!
20:14squags has joined #asahi
20:21NightRaven[m]I am waiting I am Just checking if it is supported
20:55SamAdams[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.
20:56bradfier has quit [Quit: Leaving...]
20:57bradfier has joined #asahi
21:06bdju has quit [Ping timeout: 480 seconds]
21:09bdju has joined #asahi
21:47skrll has joined #asahi
21:49Dcow has joined #asahi
21:49Dcow___ has quit [Read error: Connection reset by peer]
21:50bdju has quit [Ping timeout: 480 seconds]
21:53bdju has joined #asahi
22:09skrll has quit [Ping timeout: 480 seconds]
22:30bdju has quit [Ping timeout: 480 seconds]
22:33bdju has joined #asahi
23:01skrll has joined #asahi
23:14skrll has quit [Ping timeout: 480 seconds]
23:27curlyqueue has joined #asahi
23:54marcanthat article is confused about iBoot/xnu
23:54marcanall those logs are from xnu
23:55marcaniBoot does not verify the snapshot seal or any of that, it merely passes through the root signature to xnu
23:55marcanit 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
…