#asahi · 2022-02-07 19:15
GlanzmannPerfect. :-)#asahi · 2022-02-07 19:13
Glanzmannaxboe: If that does not work, I build a new rootfs containing your kernel.#asahi · 2022-02-07 19:13
Glanzmannaxboe: I just sent you another email.#asahi · 2022-02-07 19:12
Glanzmannaxboe: Perfect.#asahi · 2022-02-07 19:09
Glanzmannmarcan: Nice job on the smc, but I just read the wrap up in irc.#asahi · 2022-02-07 19:08
Glanzmanninside the rootfs.#asahi · 2022-02-07 19:08
Glanzmannjannau: With your u-boot variant, does the internal keyboard work? Is it good for the pro/max. I'm asking because I sent Jens Axboe some instructions and he ends up with black screen, asahi logo and no output. He is on a pro/max with untethered m1n1 kernel options dtb, kernel. I think the current issue is that the kernel config I sent him has CONFIG_DRM_SIMPLEDRM=m and he does not have the kernel module #asahi · 2022-02-07 04:24
Glanzmannjannau: Nice.#asahi · 2022-02-06 18:49
Glanzmanncaleb010[m]: Anyway. What I did 24 years ago is build a Linux distribution using linuxfromscratch.org. Do that and it will jumpstart you. ;-)#asahi · 2022-02-06 18:48
Glanzmanncaleb010[m]: A monotlithic kernel is a kernel without modules, I assume.#asahi · 2022-02-06 18:16
GlanzmannI'll soon improve these instructions and rerecord all videos with bigger front sizes and more straight forward. Sometimes I struggle to instlal grub for example ...#asahi · 2022-02-06 18:16
GlanzmannThere are three video, maybe you want to watch them. That is for the u-boot part but it also shows you the asahi installer which you need for m1n1.#asahi · 2022-02-06 18:15
Glanzmanncaleb010[m]: Asahi is not ready for end users, but we're very close. So you can either wait, or if you can't, than this might be of help: https://github.com/AsahiLinux/docs/wiki/Debian . It still has a few sharp edges, but it might get you going.#asahi · 2022-02-06 18:14
Glanzmanncaleb010[m]: If you have never build a Linux from scratch or compiled a linux kernel. You'll have a steep learning curve.#asahi · 2022-02-06 18:13
Glanzmanncaleb010[m]: The kernel is not everything, you also need a root file system. This is where you binaries, libraries, configs and files live.#asahi · 2022-02-06 17:57
Glanzmannmps: If you get it running, let me know, I'll reproduce.#asahi · 2022-02-06 17:56
Glanzmanncaleb010[m]: It can be, but in most cases the ramdisk contains modules that are necessary to mount the rootfs (that would be in our case for example the nvme driver and the ext4 driver but could also involve raid or device mapper crypt).#asahi · 2022-02-06 17:55
GlanzmannThe ramdisk can also contain a whole system. That is what I did when I build the Debian livesystem, It is just waht you would find in a a regular system in a 200 MB ramdisk.#asahi · 2022-02-06 17:55
Glanzmanncaleb010[m]: Multiple options, two of them: You set every option that you want into your kernel to =y or you use a ramdisk and put the modules there.#asahi · 2022-02-06 17:54
GlanzmannIf you decide to build modules, you can either install them in the root filesystem in /lib/modules/`uname -r` (what make modules_install does) or you put it in a ramdisk.#asahi · 2022-02-06 17:52
Glanzmanncaleb010[m]: So when you build a linux kernel you have three options: n,y,m So yes you can build a statically linked kernel.#asahi · 2022-02-06 17:49
Glanzmannmps: For easy patching: https://github.com/AsahiLinux/linux/commit/32b2ffdb7972fb3bb867e0579ea6e7bf8dc08ae4.patch#asahi · 2022-02-06 17:49
GlanzmannIt also makes it easier for us to transfer the wifi blog from macos to Linux, because we're not allowed to redistribute it.#asahi · 2022-02-06 17:48
Glanzmanncaleb010[m]: I'm not 100% sure if you really need it, because u-boot can read ext4, but this is what we want in the end, because that is what most distros do.#asahi · 2022-02-06 17:47
GlanzmannAnd reverse engineer what is going on.#asahi · 2022-02-06 17:47
Glanzmanncaleb010[m]: But most people use tethered setup because it is much more practical to run experiments, put macos or Linux in the hyeprvisor.#asahi · 2022-02-06 17:46
GlanzmannSo we run it like any other Linux. This is also what the final bootchain looks like more or less.#asahi · 2022-02-06 17:46
Glanzmanncaleb010[m]: So what mps and I'm doing is we use the m1n1+dtb+u-boot chain to load grub and grub loads the kernel and the initrd.#asahi · 2022-02-06 17:46
Glanzmanncaleb010[m]: On the air the following works: unaccelerated but fast framebuffer with xorg in full screen resolution, wifi, nvme, usb with usb 2.0 speed and audio jack, trackpad and keyboard. See also: https://github.com/AsahiLinux/docs/wiki/Feature-Support#asahi · 2022-02-06 17:45
GlanzmannI hope that gets you started in whatever you want to do.#asahi · 2022-02-06 17:44
GlanzmannYou can also use the Debian livesystem to install any other distro that has a rootfs archive that you can extract.#asahi · 2022-02-06 17:44
Glanzmanncaleb010[m]: If you want to install Debian, look at https://github.com/AsahiLinux/docs/wiki/Debian#asahi · 2022-02-06 17:43
Glanzmanncaleb010[m]: For the tethered quickstart look at tg.st/u/asahi.txt or if you want more to read: https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart-2.0#asahi · 2022-02-06 17:43
Glanzmanncaleb010[m]: But to answer your question, if you compile a kernel with modules, you either have to put them in the ramdisk or transfer them to the machine.#asahi · 2022-02-06 17:43
GlanzmannSo with the m1 air you can do tethered and untethered.#asahi · 2022-02-06 17:41
Glanzmanncaleb010[m]: Which m1 machine (m1 or m1 pro/max)?#asahi · 2022-02-06 17:41
Glanzmanncaleb010[m]: Do you want to boot an m1 machine using another Linux machine (teethered) or do you want it to build Linux by itself?#asahi · 2022-02-06 17:08
Glanzmannjeffmiw: So mps use the air/pro has Laptop under Linux. U-boot makes our live easy when we need to install a new kernel. Also u-boot is the official boot chain at some point.#asahi · 2022-02-06 16:59
Glanzmannmarcan: Neither do I. it was a smc joke.#asahi · 2022-02-06 16:57
Glanzmannmarcan: Have a good night sleep and don't forget to power off your system. :-)#asahi · 2022-02-06 16:56
GlanzmannBut if you want I can try it with tethered.#asahi · 2022-02-06 16:56
Glanzmannmps: I have no rtc build root at the moment.#asahi · 2022-02-06 16:50
Glanzmannjeffmiw: Are you using u-boot?#asahi · 2022-02-06 16:50
Glanzmannmps: So jannau made the rtc work in a tethered setup on the mini.#asahi · 2022-02-06 16:49
Glanzmannmps: Here are the config options: https://pbot.rmdir.de/BeWvRX0_gaxL4wg4Pu0bBQ#asahi · 2022-02-06 16:48
Glanzmannmps: I see. Thanks.#asahi · 2022-02-06 16:47
Glanzmannjeffmiw: SO on the air, rtc works for me. with the default u-boot dtb.#asahi · 2022-02-06 16:46
Glanzmannjeffmiw: https://github.com/AsahiLinux/docs/wiki/U-Boot#asahi · 2022-02-06 16:46
Glanzmannjeffmiw: We boot using u-boot.#asahi · 2022-02-06 16:45
Glanzmannmps: I hope that rtc will also be merged in asahi.