<Shiz>
there is one issue right now, which is the endian-ness of prop-encoded-array fields, whose parsing is nontrivial and as such not done automatically
<clayfreeman>
I might try to implement to_fdt if I get some free time
<clayfreeman>
opened a small PR for a typo that breaks regs
<Shiz>
ah whoops, merged
<Shiz>
to_fdt is rather annoying as a fair warning :) you might get wrapped up in the struct library, hehe
<Shiz>
feel free to ping me anytime about it
<clayfreeman>
will do :)
<clayfreeman>
If to_fdt can be done, then we could use dtc(1) to convert the dtb to dts and vice-versa
<Shiz>
well
<Shiz>
it already supports dts output
<Shiz>
see the `to-src` command :)
<clayfreeman>
true, but it's less code ownership that you have to worry about
acelogic has joined #asahi-dev
Necrosporus has quit [Killed (verne.freenode.net (Nickname regained by services))]
Necrosporus has joined #asahi-dev
Esmil has quit [Ping timeout: 256 seconds]
Esmil has joined #asahi-dev
CalumK has joined #asahi-dev
_whitelogger has joined #asahi-dev
<marcan>
Shiz: yeah sorry, I meant dts
<marcan>
not fdt of course
<marcan>
:)
VinDuv has joined #asahi-dev
rwhitby has quit [Ping timeout: 264 seconds]
rwhitby has joined #asahi-dev
CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dstzd has quit [Read error: Connection reset by peer]
dstzd_ has joined #asahi-dev
dstzd_ is now known as dstzd
dstzd_ has joined #asahi-dev
dstzd has quit [Ping timeout: 264 seconds]
dstzd_ is now known as dstzd
CalumK has joined #asahi-dev
CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qyousef1 has joined #asahi-dev
qyousef1 has quit [Client Quit]
qyousef has quit [Ping timeout: 256 seconds]
CalumK has joined #asahi-dev
furkan has joined #asahi-dev
qyousef has joined #asahi-dev
qyousef has quit [Client Quit]
qyousef has joined #asahi-dev
mogery has joined #asahi-dev
frode_0xa has joined #asahi-dev
<yrlf>
currently debugging a crash of the clang build of m1n1; what is a sensible value of the address of boot_args? knowing if that address still makes sense or if it already broke before that is useful
<j`ey>
(as a last resort, you could look in the streams)
<j`ey>
0x8056280000
<j`ey>
I think
frode_0xa has quit [Quit: leaving]
<yrlf>
yeah, I thought to look in there, but haven't found a convenient moment yet. thanks :)
<yrlf>
yeah, so then that's probably what's wrong: 0x10020 is not a good boot_args address xD
<j`ey>
no that doesnt look right :-)
<j`ey>
btw someone posted some patches for clang.. unless that was you?
<marcan>
I'm surprised it gets this far without that :D
<marcan>
check the rela section between gcc and clang
<yrlf>
yeah, for some reason the relocation for base doesn't actually exist. like, what?
<yrlf>
I'll dig through print_regs and see whatever the hell clang produced there
<marcan>
maybe the linker symbols do not have relocations emitted for some reason?
<yrlf>
relocations do exist, but, for some reason, it looks like clang or lld decided to use the _vectors_start relocation for base as well
<yrlf>
oh.
<yrlf>
_base isn't actually defined anywhere
<yrlf>
it's just declared, and clang gets confused and just puts it somewhere
<yrlf>
oh, woops, that's a linker script symbol
<yrlf>
my bad
<yrlf>
huh, so I guess it's time to understand how that "get my own base address" hack works portably then
<yrlf>
okay, I think I found a way to fix it
<bastilian>
If I were interested in testing Asahi at some point, like tooling, early builds and help validate bug reports, etc. In addition to a dedicated Apple Silicon test machine, what other hardware/devices would be helpful to do that?
<yrlf>
it seems LLD thinks all symbols in the linker script defined outside of the SECTIONS block are absolute apparently
<yrlf>
the relocation resolves correctly in binaryninja now, for both GCC and clang
superk has joined #asahi-dev
CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mogeryy has joined #asahi-dev
Esmil has quit [Ping timeout: 256 seconds]
Esmil has joined #asahi-dev
mogery has quit [Ping timeout: 256 seconds]
mogeryy is now known as mogery
<marcan>
yrlf: btw, I know I need to reply to your PR but tl;dr what you're doing all looks good to me, keep it up
<marcan>
I've resolved to properly fix my sleep schedule starting this week, so I'll review tomorrow :)
<yrlf>
no problem :) Thanks a lot for the testing assistance with the crash logs as well :)
<marcan>
np, feel free to throw more binaries at me. takes me 5 seconds to reload and give you a dump
CalumK has joined #asahi-dev
CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
<yrlf>
woohoo! clang-built m1n1 works!
CalumK has joined #asahi-dev
<sven>
:-)
CalumK has quit [Client Quit]
CalumK has joined #asahi-dev
<mogery>
\o/
modwizcode has joined #asahi-dev
CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Shiz>
nice!
q3k|m has quit [Ping timeout: 264 seconds]
q3k|m has joined #asahi-dev
mindentropy has quit [Quit: Leaving]
crafteck[m] has joined #asahi-dev
CalumK has joined #asahi-dev
CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
modwizcode_ has joined #asahi-dev
modwizcode has quit [Ping timeout: 256 seconds]
modwizcode_ is now known as modwizcode
CalumK has joined #asahi-dev
CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
CalumK has joined #asahi-dev
CalumK has quit [Client Quit]
acelogic has joined #asahi-dev
mogery has quit [Quit: Leaving]
ewlsh[m] has joined #asahi-dev
irl25519 has joined #asahi-dev
irl25519 has quit [Quit: irl25519]
irl25519 has joined #asahi-dev
DarthCloud has quit [*.net *.split]
DarthCloud has joined #asahi-dev
irl25519 has quit [Quit: irl25519]
<Shiz>
product-description = "Mac mini (M1, 2020)";
<rockinrobstar[m]>
bastilian: if you want to play around with m1n1 before framebuffer support you will need a USB C UART breakout that supports the Apple VDM PD commands. Details in the wiki
<j`ey>
rockinrobstar[m]: framebuffer is supported, but communicating to m1n1 is only UART
<j`ey>
(for now)
<rockinrobstar[m]>
yeah, was meaning as a full interactive console - still need to fix usb for hid etc before that can happen :-)
yrlf2 has joined #asahi-dev
Esmil has quit [Ping timeout: 256 seconds]
Esmil has joined #asahi-dev
yrlf has quit [Read error: Connection reset by peer]
<bastilian>
rockinrobstar: Thank you! I was already looking into that a bit, is the wiring the one mentioned in the vdmtool repo with using an Arduino? I'll also get a hdmi capture card that will allow to see something in any case.
yrlf2 is now known as yrlf
<rwhitby>
bastilian: yes, that's what marcan is using (Arduino and FUSB302). if you have any USB-PD VDM questions, I can help too. I don't use the same setup as marcan but I'm using USB-PD messages from a different proprietary card to explore the interface.