2021-12-17
00:51bmrgz[m]Which device tree is recommended for j274? Using the dtb from AsahiLinux-PKGBUILD u-boot can't access the nvme drive but Linux can, and with a dtb from the u-boot build both u-boot and grub can access nvme but Linux cannot.
01:15yuyichao_ has joined #asahi
01:19yuyichao has quit [Ping timeout: 480 seconds]
01:46yuyichao_ has quit [Ping timeout: 480 seconds]
01:50bdju has quit [Ping timeout: 480 seconds]
02:04bdju has joined #asahi
02:21dsrt^ has quit [Ping timeout: 480 seconds]
02:21dsrt^ has joined #asahi
02:24marvin24 has quit [Ping timeout: 480 seconds]
02:26marvin24 has joined #asahi
02:33leah has quit [Ping timeout: 480 seconds]
02:52chadmed has quit [Quit: Konversation terminated!]
02:55riker77_ has joined #asahi
03:00riker77 has quit [Ping timeout: 480 seconds]
03:00riker77_ is now known as riker77
03:13StupidYui has quit [Read error: Connection reset by peer]
04:02phiologe has joined #asahi
04:03squags has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
04:03squags has joined #asahi
04:05PhilippvK has quit [Ping timeout: 480 seconds]
04:05kov has quit [Quit: Coyote finally caught me]
04:05kov has joined #asahi
04:11dsrt^ has quit [Remote host closed the connection]
04:20nabaiste^ has joined #asahi
04:38marvin24_ has joined #asahi
04:41marvin24 has quit [Ping timeout: 480 seconds]
05:29yuyichao_ has joined #asahi
05:54Emantor has quit [Quit: ZNC - http://znc.in]
05:55Emantor has joined #asahi
06:20sailorek1234 has joined #asahi
06:37chadmed has joined #asahi
06:38Dcow has joined #asahi
06:39chadmed has quit [Remote host closed the connection]
06:41Glanzmannbmrgz[m]: I think the main problem is that uboot+grub does not deinitailize nvme, but linux needs nvme deinitialized, but OpenBSD needs it initialized. So noone knows if nvme can be deinitialized and sven has to think about if he wants to change the nvme driver on Linux to work also with a initialized nvme controller.
06:44Dcow has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:52jannau has quit [Ping timeout: 480 seconds]
06:52_jannau_ has quit [Ping timeout: 480 seconds]
06:54Dcow has joined #asahi
06:59Dcow__ has quit [Ping timeout: 480 seconds]
07:10jannau has joined #asahi
07:10_jannau_ has joined #asahi
07:33Glanzmannbmrgz[m]: Yes, if I understood correctly, u-boot initialized nvme. Linux does not work with a pre-initialized NVMe, while OpenBSD requires it. That is the problem.
07:36marcan(this is why I keep saying this isn't ready for end-users; there is literally no source tree right now that will give you a proper self-contained boot with u-boot+grub)
07:36marcanthe fix is simple but if you insist on trying right now, you really shouldn't expect things to work
07:43marcan 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
07:59gladiac is now known as Guest8685
07:59gladiac has joined #asahi
07:59Glanzmannmps: Not really. I tried it once. I was able to let it make a noice. But it is currently not ready for pulseaudio (this is what I use). So at the moment I'm using a USB sound card.
08:01mpshmm, on my machine it is not even registered, got these in dmesg out ' apple-pmgr-pwrstate 23b700000.power-management:power-controller@2c0: PS mca1: Failed to reach power state 0xf (now: 0x24f)'
08:05Guest8685 has quit [Ping timeout: 480 seconds]
08:17marcaneither way, the only thing that might work on that model is the headphones out, the speakers definitely aren't instantiated yet
08:19marcanthe thing is, debugging this kind of stuff is easy if you have a m1n1 setup and are familiar with booting that way and you can try kernels out
08:19marcanotherwise, it's just a waste of time, I'd rather test it myself when I get there and fix it then
08:21mpswell, I don't have development/debug 'laboratory' setup and it is complicated to set all these in my work environment
08:22Dcow_ has joined #asahi
08:23oi_wtf has quit [Remote host closed the connection]
08:23oi_wtf has joined #asahi
08:38chadmed has joined #asahi
08:40oi_wtf has quit [Quit: WeeChat 3.3]
08:41oi_wtf has joined #asahi
08:55coder_kalyan has joined #asahi
09:32Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:35chadmed has quit [Quit: Konversation terminated!]
10:03chadmed has joined #asahi
10:40marcanso apple broke kmutil in 12.1 for us, by requiring $something from the mach-o we don't know yet
10:40marcanwhich along with --entry-point and --lowest-virtual-address, lets you load a raw blob, not a mach-o
10:42Dcow_ has joined #asahi
10:42marcan(and people said apple wouldn't help... I can't think of how this could possibly *not* be intended for us)
10:43dottedmagThere ought to be "Merry Christmas, marcan" string in kmutil binary next to implementation of --raw
10:43marcanonly problem is the mach-o isn't contiguous for us; the payload skips bss, so if we do it this way we'll have to add a huge chunk of bss padding which isn't great
10:44marcanif I were to use this, I'd just add some bootstrap code to move the payload over to skip bss, though that might slow things down a bit with large payloads
10:59aleasto has joined #asahi
11:04marcanwell the raw thing works, though you need to pass the addresses in decimal for some inexplicable reason
11:10GlanzmannBtw. NightRaven[tm] reported this issue yesterday because he was unable to bless m1n1.macho after upgrading macos.
11:27as400 has joined #asahi
11:32chadmedtheyre not even allowed to tell people from the same department what theyre working on, its amazing that anything even gets done at all at apple
11:42Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:44marcanheh, interesting, it doesn't actually build a mach-o, instead it sticks the load addr and entrypoint into img4 tags
11:47chadmedhaving proper windows support via bootcamp or something would shift a lot more machines, but they cant even keep up with current demand. lead times on all the machines are 4+ weeks, and theyre out of stock at every apple store within 1000km of me
11:53as400Actually I stopped understanding big corpos long time ago. So I can't even answer this question for myself.
11:53Dcow_ has joined #asahi
11:54chadmedas400: theyd need NT drivers for all the hardware for it to actually boot and work properly. they could put this work in if they wanted to, and they really should since their own hw is crap and windows is going to be left behind if they hitch their cart exclusively to amd64
11:55chadmedthat said, i can imagine them holding off on it out of pure spite. im sure they have working builds internally though
11:56chadmedprobably not. i didnt mean the actual underlying chips but more the finished product. the surface book is a crap imitation of the macbook and the arm surface tablet things are ghoulish
11:57chadmedit actually astounds me that with the incomprehensible financial power of ms, intel, amd, nvidia and all their PC OEM partners they _still_ cant produce anything that comes close to a macbook in terms of UX quality
11:58marcanchadmed: this is a developer tool. none of this would be used for a hypothetical official windows port.
11:59chadmedi would expect them to be able to do it. its never been a matter of high performance arm chips being unviable, its just that no ones been keen on testing the market for them. apple were in a unique position to be able to do so by controlling the hardware and software. the PC ecosystem is too much of a hodgepodge for such disruptive changes to happen like the M1 introduction
12:01chadmedthe PC software ecosystem is in fact inexorably linked with the PC hardware platform, but because no one entity controls either its extremely difficult for anything to happen other than iterative changes because you would break 30 years of mostly unbroken backwards compatibility and paradigm
12:02marcanI don't know why people have this idea of Apple as the big evil behemoth we have to fight
12:02minitheir WWDC announces pre-launch even said they were going to support booting custom kernels etc (they framed it as for security research etc, but...)
12:02marcanthey opened up the platform, why wouldn't they have the tiniest bit of courtesy and add a couple features that cost them ~nothing on top and make our lives easier?
12:02chadmedas400: its not shocking. we've known for a while the engineers back of house want to see this succeed, and it doesnt actively get in the way of any plans the bean counters might have for normal users so they have no reason to block such feature enablement
12:03as400marcan: I don't think Apple is evil. I just thought that they are completely ignoring existence of such geeks.
12:04chadmedwhat would be shocking is if the bean counters let engineering give us their internal documentation on AGX or something like that
12:06miniplus, seeing the enthusiasm for the hardware they've worked on from a wider community can't hurt :)
12:07mpsin 199x I had comunications with MS engineers, they were 'fine' people what I can't say for their managers
12:10as400mini: yes, absolutely. What about seeing bunch of Linux geeks on FSF event walking with macbooks in their hands :) That would be also satisfaction for them I guess.
12:10chadmedsome of them could not document code to save their lives though. what little documentation exists in the NT5.3 branch is a mess of broken english and cryptic hungarian notation parameter names next to windows.h types
12:11Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:12as400[m] has joined #asahi
12:12marcanI wonder if this broke kmutil for 11.x; for those iBoot wouldn't understand a non-macho, but you'd be using SFR kmutil
12:12marcaneither way, I'm likely going to make 12.1 the minimum version soon enough, and this new feature is a good excuse to do that
12:13Dcow_ has joined #asahi
12:14as400 has quit [Quit: Page closed]
12:17Dcow_ has quit []
12:51FireFox317marcan, the m1n1.macho path just doesnt work at all in >=12.1?
12:52marcanbut also I wouldn't be surprised if the new way of doing things broke the payload concatenation trick
12:52FireFox317ahhh, and the devs thought why dont we just add a simpler way to boot for the asahi ppl xd
12:52Glanzmannmarcan: Does the installer already install the most Macos version or do we have to use a traditional macos installation in order to test that? Does it support payloads on the binaries? Is it ready for junior developers?
12:52marcanbut the payload thing always relied on abusing the format and having a section hang "off the end"
12:58chadmed has quit [Ping timeout: 480 seconds]
12:59Glanzmannmarcan: Go ahead, so that you don't get sidetracked with implementing the gpu kernel driver first
13:07j`eythe linker script doesn't know about the payloads, so it needs *some* value for _payload_end
13:28marcanonly issue now is non- --xnu chainloads will always clobber the SEPFW and friends, but well, you should use --xnu for that anyway
13:51nabaiste^ has quit [Remote host closed the connection]
14:11marvin24 has joined #asahi
14:15marvin24_ has quit [Ping timeout: 480 seconds]
14:29kgarrington has joined #asahi
14:29kgarrington has quit [Remote host closed the connection]
14:38sailorek1234 has quit []
14:42yuyichao_ has quit [Ping timeout: 480 seconds]
14:56skoobasteeve has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
14:59yuyichao_ has joined #asahi
14:59imakestuff has joined #asahi
15:01imakestuffHello
15:01imakestuffIs it possible to take advantage of Asahi as end user right now? Install Ubuntu on my M1 Air?
15:01imakestuffOr any other bistro..
15:01imakestuff*distro
15:02imakestuffoh okay.. the website wasn't clear to me?
15:02imakestuff? -> ...
15:02imakestuffwhat are the state of things now?
15:02imakestuffis there a roadmap i can look at
15:03j`eyno roadmap, it's ready when it's ready, https://asahilinux.org/2021/12/progress-report-oct-nov-2021/ has a table with some drivers, and when they will go into the kernel mainline
15:04imakestufflooks like there is some work left to go
15:04imakestuffoh okay
15:04imakestuffmy intention is to use an M1 Mini as Ubuntu server... how long do you expect for Asahi to get there?
15:06skoobasteeve has joined #asahi
15:08imakestu_ has joined #asahi
15:09imakestuff has quit [Quit: Page closed]
15:10j`eyimakestu_: well most things on the mini are in a roughly working order, but you have to build a kernel and rootfs yourself
15:11miniif you're not happy to go from what is basically on the wiki and work it out yourself, it's not really in a state where it's ready right now
15:14imakestu_marcan: what i found works for me is just do one thing now that will take you 10 mins and add as you go... "one day" is a mirage
15:15marcanthings blocking a release that's "usable enough" on the mini right now would be: cpufreq, wifi, the u-boot nvme stuff, installer work, and doing something about the iBoot framebuffer on 12.1
15:16ChaosPrincesswhats up with iboot framebuffer on 12.1?
15:16imakestu_BTW i live in a place where power is not reliable and was planning to get M1 Mini to use as server? shall i expect reasonable performance in a VM?
15:16Dcow_ has joined #asahi
15:19ChaosPrincessi still havent managed to find a good enough solution for vms on arm macs that is not the integrated vm of docker desktop
15:19minithe intel mini is a dead end at this point, you should only buy it if you absolutely need intel
15:20ChaosPrincessimakestu_: docker run :P
15:20ChaosPrincessdocker desktop is a linux vm with docker that automatically passes through commands from macos
15:21imakestu_ChaosPrincess: didn't think of it much! thanks.. i can actually do that and won't really need a VM actually
15:21svenI don’t think it kernel panics anymore but I don’t quite trust the recovery path yet if something goes wrong
15:21ChaosPrincessj`ey: i tried UTM, which seems to be a gui wrapper over qemu but that didnt get far
15:21svenyou'll probably want to use the new rtkit stuff from nvme/dev though once you start with SMC
15:22jbowen has joined #asahi
15:27zimsneexh has quit [Read error: Connection reset by peer]
15:52Maor[m] has joined #asahi
15:56Maor[m] has left #asahi [#asahi]
15:58* SamAdams[m]uploaded an image: (50KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/hkQUwmytbvXcKUrnjyHMFdVM/PXL_20211217_155312430.jpg >
15:58SamAdams[m]Hello all,
15:58SamAdams[m]I'm experiencing an issue with m1n1. I'm on Mac OS 12.1 and ran kmutil with m1n1.bin. Does this mean that I just need to install the Linux kernel? I want to install fedora rawhide with the latest 5.16 kernel. When I reboot it keeps on coming up with this message.
15:59SamAdams[m]Sorry, I'm 19 years old and am very interested in this project.
16:02j`eySamAdams[m]: there was just a recent change, in the last few hours to m1n1 for 12.1, make sure you're on the very latets
16:03SamAdams[m]Yep, I just cloned the GitHub repo (1 hour ago).
16:05SamAdams[m]Yes.
16:07tpw_rulesout of curiosity, has 12.1 improved the hdmi support on the mini any or is it still dead
16:07imakestu_ has left #asahi [Leaving...]
16:08SamAdams[m]Oh, I have Mac OS 12.1 recoveryOS and 11.6.1 Mac OS. So, I should upgrade my Mac OS to 12.1 and try again?
16:09SamAdams[m]I think I'm going to restart and reinstall Mac OS 12.1 and create the stub partitions.
16:19imakestuff has joined #asahi
16:24Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:26zimsneexh has joined #asahi
16:26marcanSamAdams[m]: there is no usable end-user install mechanism right now. unless you're a kernel developer you're better off waiting
16:28marcanand yes, if your recoveryOS is 12.1 and the partition you are installing to is 11.x, this is exactly the kind of failure I would expect to happen.
16:36Dcow_ has joined #asahi
16:37Dcow_ has quit []
16:42Dcow_ has joined #asahi
17:01jkm has joined #asahi
17:18yuyichao_ has quit [Quit: Konversation terminated!]
17:23m42uko has quit [Ping timeout: 480 seconds]
17:25yuyichao has joined #asahi
17:30free2 has joined #asahi
17:30free2 has left #asahi [#asahi]
17:31darkapex1 has joined #asahi
17:36darkapex has quit [Ping timeout: 480 seconds]
18:24SamAdams[m]Interesting, so I restored using DFU to 11.6 and the recoveryOS was the older version compatible with the macho. I ran the software upgrade to 11.6.2 and it upgraded the recoveryOS to the latest version. So, if you upgrade your Mac at all, you will have to use the m1n1.bin file and be on 12.1 or higher.
18:24kilrain[m] has joined #asahi
18:27imakestuff has quit [Remote host closed the connection]
18:29yuyichao_ has joined #asahi
18:32yuyichao has quit [Ping timeout: 480 seconds]
19:22gtklocker has joined #asahi
19:40aleasto has quit [Remote host closed the connection]
20:08Cy8aer[m] has joined #asahi
20:21Cy8aer[m] has left #asahi [#asahi]
20:35Sellerie has joined #asahi
20:38Cy8aer[m] has joined #asahi
20:57martinstewart_ has joined #asahi
20:58martinstewart_hello was just wondering if somebody would like to help me install linux on my m1 mac mini for tinkering sake
21:00Dcow_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:02j`eymartinstewart_: its not user friendly, unless you have prior kernel building / related experience
21:06martinstewart_how not user friendly are we talking we talking mkaefile stuff or is it full on kernel conpileing cus i have done abit of makefile with stuff llike boxx64 conpileing on a utm instance on my mac mini
21:07martinstewart_hmm maby ill wait
21:07NightRaven[m]j`ey: Maybe a video tutorial for how to do it
21:08NightRaven[m]Hmm ok
21:08svenright now installing only makes sense for people who also want to contribute to kernel development essentially
21:08zimsneexhAgreed, It's not intended for end users at the moment, a video wouldn't be of much use
21:08martinstewart_im bored but im not that bored (bored enoguht to go insane over linux)
21:09j`eyI feel bad, cos obviously people are excited to try it out.. but it's not there and will just end up wasting peoples time
21:10NightRaven[m]j`ey: I can see what you mean it's true
21:10martinstewart_thats the problem i got my mac mini because of this project knowing one day i could install linux on it
21:14martinstewart_if it was as simple as getting m1n1 installed useing anouther pc to load the pre built kernel config and distro rootfs install all the patches and have a happy linux box id be verry happy but sadly the linux enthusiest (me isnt really ready for it yet)
21:16martinstewart_cant be dealing with massive config files and hours of conpileing although i would only have to do it once due to me never turning my mac off unless it needs updates
21:17zimsneexhmartinstewart_: if you're comfortable with configuring a kernel you can probably do it
21:18martinstewart_am i correct in saying kernel config gui is exactly the same as the tasksel gui atleast from what i have seen
21:18martinstewart_navgation wise that is
21:19martinstewart_that could work
21:20martinstewart_i do have a spare 64gb usb drive laying around if thats of any use
21:21martinstewart_dose the internel ssd work yet?for putting the rootfs on
21:22martinstewart_do i dare try it
21:24martinstewart_cant be worse than installing cus i have a little more or less than 2 hours till i go to bed and i have nothing else to do
21:24zimsneexhmartinstewart_: There's a handy guide from Glanzmann that describes the process quite well, if you want to give it a shot
21:25martinstewart_9:24pm i have till 11
21:25mpszimsneexh: oh right, xconfig and gconfig are still there (I had impression they are removed long ago)
21:26martinstewart_if you think i have enough time go ahead send it over if not ill be on tomroww but earlier
21:27martinstewart_i do like to challange myself
21:28martinstewart_only one problem will m1n1 interface through windows since my only linux device has a dieing hard drive
21:29martinstewart_hmmmm wsl? that might work
21:32martinstewart_i do have anouther device but its one given to me by my educator and they said i can keep it aslong as i dont put linux on it (as soon as i leave im putting linux on it by the way)
21:35martinstewart_i could live boot it but then i risk breaking my windows install
21:51martinstewart_i think im going to have to leave this till tomorrow sadly but hopefully i can get something working
21:56roxfan has quit [Remote host closed the connection]
21:59martinstewart_ has quit [Ping timeout: 480 seconds]
22:00roxfan has joined #asahi
22:02m42uko has joined #asahi
22:12pavellatko[m] has joined #asahi
22:17pavellatko[m] is now known as latko[m]
22:22martinstewart has joined #asahi
22:37Sellerie has quit [Ping timeout: 480 seconds]
22:38martinstewart has quit [Ping timeout: 480 seconds]
23:14amarioguy has joined #asahi
23:15amarioguyhey is this working? can you all see this message? sorry new to irc so i'm not entirely sure how this works lmao
23:16kilrain[m]I can see it, but I'm not in IRC 😀
23:28jkm has quit []
23:29matthewayers[m]Alright, I’m committing the rest of my evening to getting an Asahi dev environment up on my local machine.
23:29yuyichao has joined #asahi
23:32yuyichao_ has quit [Ping timeout: 480 seconds]
23:42yuyichao has quit [Ping timeout: 480 seconds]