marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | 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
kenjigashu has joined #asahi
kenjigashu has quit []
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<marcan> kettenis: I was thinking of keeping a copy in the m1n1 source (there's one already, horribly outdated)
<marcan> just need to make it all sync better with the linux version
<marcan> it could be a separate repo too though
yuyichao has joined #asahi
linearcannon has quit [Quit: Textual IRC Client: www.textualapp.com]
linearcannon has joined #asahi
PhilippvK has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
phiologe has quit [Ping timeout: 480 seconds]
tomtastic_ has joined #asahi
tomtastic has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
marvin24_ has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
kov has quit [Quit: Coyote finally caught me]
kov has joined #asahi
bgb has quit [Read error: Connection reset by peer]
bgb has joined #asahi
tomtastic_ has quit [Ping timeout: 480 seconds]
tomtastic has joined #asahi
bgb_ has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
c10l has quit [Quit: The Lounge - https://thelounge.chat]
c10l has joined #asahi
<marcan> kettenis: btw, feel free to CC me on the u-boot stuff (I also just subscribed to the ML)
bgb has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
jacoxon has joined #asahi
Nspace has joined #asahi
Nspace has quit [Quit: Nspace]
bps has joined #asahi
povik has joined #asahi
ZLSA has quit [Read error: Connection reset by peer]
kendfinger has quit [Read error: Connection reset by peer]
ZLSA has joined #asahi
kendfinger has joined #asahi
Ariadne has quit [Read error: Connection reset by peer]
sorear has quit [Read error: Connection reset by peer]
ovf has quit [Read error: Connection reset by peer]
balrog has quit [Quit: Bye]
robher has quit [Read error: Connection reset by peer]
jabashque has quit [Read error: Connection reset by peer]
aeroraptor has quit [Read error: Connection reset by peer]
aeroraptor has joined #asahi
sorear has joined #asahi
Ariadne has joined #asahi
ihaveamac has quit [Quit: fail]
ovf has joined #asahi
guan has quit [Read error: Connection reset by peer]
guan has joined #asahi
robher has joined #asahi
jabashque has joined #asahi
Chainsaw has quit [Read error: Connection reset by peer]
ihaveamac has joined #asahi
jkkm has quit [Read error: Connection reset by peer]
Chainsaw has joined #asahi
jkkm has joined #asahi
balrog has joined #asahi
bgb has left #asahi [WeeChat 3.0.1]
<kettenis> marcan: will do
<povik> marcan: ^ interested for inclusion in m1n1?
<povik> could be feature creep
<kettenis> must admit I like the elegance of just using cat ;)
<povik> don't blame you
povik has quit [Remote host closed the connection]
gruetze_ has joined #asahi
Patrick has joined #asahi
jbowen has joined #asahi
<marcan> povik: the idea yes, but I find the Concat class a bit... overkill :)
<marcan> I think we can afford the transient memory usage and just use BytesIO there
<marcan> just create an empty one, write all the data into it, seek to 0 and pass it on :)
aleasto has joined #asahi
Patrick has quit [Quit: Textual IRC Client: www.textualapp.com]
povik has joined #asahi
<povik> marcan: yeah, no contest here
everslick_ has joined #asahi
everslick has quit [Ping timeout: 480 seconds]
saintdev has quit [Read error: Connection reset by peer]
saintdev has joined #asahi
brinly has quit [Read error: Connection reset by peer]
brinly has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi
doggkruse has joined #asahi
jbowen has quit [Ping timeout: 480 seconds]
doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomtastic_ has joined #asahi
tomtastic has quit [Ping timeout: 480 seconds]
Nspace has joined #asahi
nepeat has quit [Quit: ZNC 1.8.2 - https://znc.in]
nepeat has joined #asahi
jbowen has joined #asahi
jbowen has quit [Ping timeout: 480 seconds]
jbowen has joined #asahi
Nspace has quit [Quit: Nspace]
Nspace has joined #asahi
Nspace has quit [Quit: Nspace]
skali has joined #asahi
skali has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rross101 has joined #asahi
<povik> ^ this is from certain leaked schematic
<povik> CHINA MIC?
<povik> CHINA GND?
<povik> what? :D
<rross101> Hi! I'm a non-developer enjoying the challenge of trying this out. Where's the best place to get some support? Here? Github? I'm currently at the stage of getting my MBP booting to the language selection page but keyboard (external or internal) not working. Sorry if spam.
<j_ey> here is a good place
<rross101> Thanks
<rross101> One place I wonder if I'm going wrong is which linux kernel to build and use - is the Asahi main one the best? I presume it's something about USB support.
<j_ey> asahi main is not the latest one
<rross101> And the other thing I've found is that I can get to the langauge selection page by concatenating the kernel onto m1n1; but when I try using linux.py I instead run into a 'device reports readiness' serial error and a black screen
<rross101> OK great I'll try that. Thank you
<j_ey> the device reports error is fine, since linux takes over the USB
<povik> yeah apparently there's a different wiring for audio jack used in china
<j_ey> rross101: you can just use defconfig I believe
Nspace has joined #asahi
<povik> ah there don't seem to be as good a match of the codec driving the audio jack with some public part from the same manufacturer as there was with the speaker amp
<povik> the ADT and schematic has cs42l83 driving the audio jack
<povik> the closest part i found is cs42l42, but the registers don't match exactly
<kettenis> cs42l73 isn't a closer match?
<povik> no suprisingly it isn't
<povik> the registers are all different
rross101 has quit [Remote host closed the connection]
<alyssa> j_ey: oh do you still need testing?
rross101 has joined #asahi
Nspace has quit [Quit: Nspace]
<rross101> OK making progress thank you. With that kernel image - concatenating and chainloading gets m1n1 rebooting with a 'kernel found' message - but not sure what to do from there. Using linux.py instead I get a decompression error after the 'FDT prepared' stage
Nspace has joined #asahi
<j_ey> alyssa: nah, sven did some testing!
<j_ey> rross101: can you paste the exact commands?
<rross101> sudo ../m1n1/env/bin/python ../m1n1/proxyclient/tools/linux.py -b 'earlycon console=ttySACO,1500000 console=tty0 debug' ./Image-new1.gz t8103-j274.dtb ./initrd.gz
<alyssa> j_ey: sweet, less for me to do now :-p
<j_ey> alyssa: ^_^
<j_ey> rross101: is that dtb from the kernel?
<rross101> yes copied from the folder arch/arm64/boot/dts/apple
<j_ey> rross101: can you paste the output (to a paste site, not here) when you use m1n1 / run_guest.py
Nspace has quit [Quit: Nspace]
<rross101> sure - it requires a payload - sorry I'm not sure what to put?
jbowen has quit [Quit: leaving]
Nspace has joined #asahi
<j_ey> looks good
<rross101> and on the screen it says 'error getting node /arm-io/atc-phy0
<rross101> and something similar for hpmbusmanager
<rross101> and dart-usb0
<j_ey> you should be able to use screen/picocom/something to connect to /dev/ttyACM0
<j_ey> and that will give the output there so you can copy/paste
<j_ey> rross101: can you show how you made m1n1-payload.macho ?
<rross101> cat ../m1n1/build/m1n1.macho ../linux/arch/arm64/boot/Image ../linux/arch/arm64/boot/dts/apple/t8103-j274.dtb ../linux/initrd.gz > m1n1-payload.macho
jacoxon has quit []
jacoxon has joined #asahi
<j_ey> ohh use Image.gz
<rross101> so zip the image that's there?
jacoxon has quit []
<j_ey> the kernel already outputs a .gz probably
<j_ey> check ../linux/arch/arm64/boot/Image.gz, it probably exists
<rross101> no but that is probably my poor kernel building skills
<j_ey> try: make ...... Image.gz
<j_ey> ... is all your normal args
<rross101> just gzipped it instead and I've now gone forward a few steps. booted to logo, although frozen, and this output https://paste.gg/p/anonymous/fd2fd25f241349b5a4eaa895c491f8c4
<rross101> but would rebuilding it as a gz be better/different?
<povik> should make no difference
<j_ey> rross101: can you paste ACM1 too
<j_ey> ok cool, thats booting
<j_ey> or you can try use linux.py again..
Nspace has quit [Quit: Nspace]
<povik> j_ey: i remember you said macos stopped booting for you in hypervisor with smp
<povik> i just tried the same after some time and it doesnt work
<j_ey> povik: yes
<povik> did it get fixed?
<j_ey> not yet
<povik> did it just reboot with little explanation? (that's what happens here)
<j_ey> povik: oh, mine never booted
<j_ey> povik: try before a16731e8b33fa492c000ed5d5b43bcfbb4a26a5c in m1n1
<povik> i mean, it reboots while booting
<povik> actualloy the hypervisor crashes
<povik> *actually
<povik> will try that
<j_ey> with mine, macOS crashes
<rross101> using linux.py gets me to the same point again
<j_ey> rross101: what about just reverting https://github.com/AsahiLinux/linux/commit/ce55208743f18b71731aff468d6032ffff796220 and trying with a clean linux-next
<rross101> ok
<povik> what now it boots, i didnt change anything
<povik> and it wants to tell apple everything about the crashes
<alyssa> povik: the best part is that the apple domain doesn't exist
<rross101> is that the next-base branch?
<povik> alyssa: the crash-report logging domain?
Nspace has joined #asahi
<povik> maybe we should implement the same crash reporter into linux
<povik> with enough confusion inside apple they would start fixing our bugs
<j_ey> rross101: it's a date
<j_ey> rross101: it's a tag like: next-2021somedate
<povik> (after they finally set up the domain)
<alyssa> povik: yeah
<alyssa> lol
<alyssa> panic.apple.com, right?
<povik> i don't know, i shut it down, it was a GUI thing once it fully booted after crashes
<povik> panic.apple.com sounds like a nice domain to send linux panics to
<alyssa> hihi
<alyssa> alyssa@sunset:~$ whois panis.apple.com
<alyssa> No match for "PANIS.APPLE.COM".
<povik> you have a typo there :-p
<alyssa> so i do
<alyssa> No match for "PANIC.APPLE.COM".
<alyssa> I guess whois doesn't work for subdomains though
<povik> i don't know
<povik> but maybe that's what apple thinks about our panic reports
<alyssa> no answer for `dig panic.apple.com`, though
<alyssa> povik: the only other people that see this are hackintoshers so...
<povik> and apple developers, if they do their work right
<alyssa> they have radar for that
<povik> hm?
<alyssa> Apple's internal NIH of phabricator
* povik looks up phabricator
<j_ey> povik: bug tracker
<povik> this is some issue tracker/code review tool
<povik> i meant if apple developers do their work right
<povik> noone but them, us and hackintoshers need to see panic.apple.com
<povik> wait
<povik> aren't we hackintoshers now?
<j_ey> no!
<j_ey> linuxtoshers
<povik> oh they do the same thing, but reverse, of course
<povik> we are linux sane people
<jn> reverse-hackintosh
<rross101> j_ey: no a clean linux-next image gives an exception immediately after 'preparing to boot kernel'. I'll try the latest commit with those lines commented out tomorrow; have to go now. I've really appreciated the live support. Thank you.
<j_ey> rross101: shame youre having trouble!
<rross101> oh that's part of the fun!
Nspace has quit [Quit: Nspace]
Nspace has joined #asahi
tomtastic has joined #asahi
tomtastic_ has quit [Ping timeout: 480 seconds]
aleasto has quit [Quit: Konversation terminated!]
Nspace has quit [Quit: Nspace]
Nspace has joined #asahi