2021-01-17
00:36acelogic has joined #asahi-dev
01:07Shizafter a bunch of silly bit twiddle debugging, to-adt now works and roundtrips successfully :)
01:35acelogic has quit [Ping timeout: 246 seconds]
01:39dstzd has quit [Quit: ZNC - https://znc.in]
01:42dstzd has joined #asahi-dev
02:32qyousef has quit [Ping timeout: 256 seconds]
03:01qyousef has joined #asahi-dev
03:04qyousef1 has joined #asahi-dev
03:07qyousef has quit [Ping timeout: 272 seconds]
03:08qyousef1 has quit [Client Quit]
03:08qyousef has joined #asahi-dev
03:10qyousef has quit [Client Quit]
03:11qyousef has joined #asahi-dev
03:30tbodt has quit [Ping timeout: 256 seconds]
03:31tbodt has joined #asahi-dev
03:41mindentropy has joined #asahi-dev
04:00_whitelogger has joined #asahi-dev
04:39_whitelogger has joined #asahi-dev
05:24_whitelogger has joined #asahi-dev
05:53krzywix has joined #asahi-dev
06:08Shizdt gained a few more useful functions (chief among 'show'), should be somewhat ready for actual usage now
06:15Shizmarcan: so dt.py can export to dts, i figure we could just use that in combination with git :)
06:18clayfreemandoes dtc(1) always output in big endian? might cause issues with comparisons unless you compensate for that
06:18clayfreemanI think I remember the bin marcan posted being LE
06:20sirn has quit [Ping timeout: 260 seconds]
06:20sirn has joined #asahi-dev
06:23clayfreemanah, excellent!
06:24Shizcontrast https://github.com/Shizmob/img4/blob/715c6d55935d50896dd1b9420ad2b6c776490cd0/dt.py#L53-L61 and https://github.com/Shizmob/img4/blob/715c6d55935d50896dd1b9420ad2b6c776490cd0/dt.py#L121-L129 :)
06:26Shizthere 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
06:33clayfreemanI might try to implement to_fdt if I get some free time
06:33clayfreemanopened a small PR for a typo that breaks regs
06:35Shizto_fdt is rather annoying as a fair warning :) you might get wrapped up in the struct library, hehe
06:36clayfreemanwill do :)
06:36clayfreemanIf to_fdt can be done, then we could use dtc(1) to convert the dtb to dts and vice-versa
06:37clayfreemantrue, but it's less code ownership that you have to worry about
07:54acelogic has joined #asahi-dev
08:00Necrosporus has quit [Killed (verne.freenode.net (Nickname regained by services))]
08:00Necrosporus has joined #asahi-dev
08:04Esmil has quit [Ping timeout: 256 seconds]
08:04Esmil has joined #asahi-dev
08:22CalumK has joined #asahi-dev
08:30_whitelogger has joined #asahi-dev
09:34VinDuv has joined #asahi-dev
09:36rwhitby has quit [Ping timeout: 264 seconds]
09:38rwhitby has joined #asahi-dev
09:44CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:44CalumK has joined #asahi-dev
09:44CalumK has quit [Client Quit]
09:45CalumK has joined #asahi-dev
09:45CalumK has quit [Client Quit]
09:46CalumK has joined #asahi-dev
09:46CalumK has quit [Client Quit]
09:47CalumK has joined #asahi-dev
09:47CalumK has quit [Client Quit]
09:47CalumK has joined #asahi-dev
09:48CalumK has quit [Client Quit]
09:48CalumK has joined #asahi-dev
09:48CalumK has quit [Client Quit]
09:49CalumK has joined #asahi-dev
09:49CalumK has quit [Client Quit]
09:50CalumK has joined #asahi-dev
09:50CalumK has quit [Client Quit]
10:12mindentropy has quit [Quit: Leaving]
10:13dstzd has quit [Quit: ZNC - https://znc.in]
10:15dstzd has joined #asahi-dev
10:15dstzd has quit [Client Quit]
10:16dstzd has joined #asahi-dev
10:18dstzd has quit [Client Quit]
10:19dstzd has joined #asahi-dev
10:21dstzd has quit [Client Quit]
10:21dstzd has joined #asahi-dev
10:22acelogic has quit [Ping timeout: 246 seconds]
10:24dstzd has quit [Read error: Connection reset by peer]
10:24dstzd_ has joined #asahi-dev
10:25dstzd_ is now known as dstzd
10:26dstzd_ has joined #asahi-dev
10:30dstzd has quit [Ping timeout: 264 seconds]
10:30dstzd_ is now known as dstzd
11:10CalumK has joined #asahi-dev
11:23CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:48qyousef1 has joined #asahi-dev
11:49qyousef1 has quit [Client Quit]
11:51qyousef has quit [Ping timeout: 256 seconds]
11:56CalumK has joined #asahi-dev
11:59furkan has joined #asahi-dev
12:03qyousef has joined #asahi-dev
12:06qyousef has quit [Client Quit]
12:07qyousef has joined #asahi-dev
12:34mogery has joined #asahi-dev
13:09frode_0xa has joined #asahi-dev
13:41yrlfcurrently 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
13:49frode_0xa has quit [Quit: leaving]
13:56yrlfyes, that's my patch. I don't have an M1, so I'm effectively reversing this with a crash log and binary sven got from marcan
13:57yrlfI already found one weirdness: the clang assembler doesn't understand '\r' and writes a literal 'r' instead
13:59furkan has quit [Remote host closed the connection]
14:05j`eyyrlf: can you get the objdump of the clang built binary, or at least just the asm for the apply_reloc function
14:07j`eyi dont want to create a pr (long story, employer etc), but I wouldnt mind a spotted by credit or something :P
14:09yrlfhttps://github.com/llvm/llvm-project/blob/00dc97f16708aad67834552285c0af01b37303d6/llvm/lib/MC/MCParser/AsmLexer.cpp#L566
14:11yrlfsven, do you wanna write the PR, or should I just push that fix as another commit on the clang branch?
14:14mindentropy has joined #asahi-dev
14:22svenhttps://f.svpe.de/e3f0f69a273a0399062954ead797c2de1e7b0ee6a5162452b4922c33aae8031e_m1n1.macho if you have time to test another binary :)
14:24svenyrlf: https://f.svpe.de/ff5cf1249619e5291d6dff096f45c3c7d6ffcee157626b51926ec47fbd8d0666_m1n1.elf elf if you want to continue debugging.
14:49yrlfrelocations do exist, but, for some reason, it looks like clang or lld decided to use the _vectors_start relocation for base as well
14:53yrlfhuh, so I guess it's time to understand how that "get my own base address" hack works portably then
15:06bastilianIf 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?
15:06yrlfit seems LLD thinks all symbols in the linker script defined outside of the SECTIONS block are absolute apparently
15:21superk has joined #asahi-dev
15:59CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:02mogeryy has joined #asahi-dev
16:05Esmil has quit [Ping timeout: 256 seconds]
16:05Esmil has joined #asahi-dev
16:05mogery has quit [Ping timeout: 256 seconds]
16:06mogeryy is now known as mogery
16:42marcanyrlf: 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
16:42marcanI've resolved to properly fix my sleep schedule starting this week, so I'll review tomorrow :)
16:45marcannp, feel free to throw more binaries at me. takes me 5 seconds to reload and give you a dump
16:57CalumK has joined #asahi-dev
17:12CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:12CalumK has joined #asahi-dev
17:12CalumK has quit [Client Quit]
17:13CalumK has joined #asahi-dev
17:13CalumK has quit [Client Quit]
17:14CalumK has joined #asahi-dev
17:14CalumK has quit [Client Quit]
17:14CalumK has joined #asahi-dev
17:15CalumK has quit [Client Quit]
17:15CalumK has joined #asahi-dev
17:15CalumK has quit [Client Quit]
17:16CalumK has joined #asahi-dev
17:16CalumK has quit [Client Quit]
17:17CalumK has joined #asahi-dev
17:17CalumK has quit [Client Quit]
17:19CalumK has joined #asahi-dev
17:28modwizcode has joined #asahi-dev
17:44CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:08q3k|m has quit [Ping timeout: 264 seconds]
18:09q3k|m has joined #asahi-dev
18:25mindentropy has quit [Quit: Leaving]
18:37crafteck[m] has joined #asahi-dev
18:53CalumK has joined #asahi-dev
19:01CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:20modwizcode_ has joined #asahi-dev
19:22modwizcode has quit [Ping timeout: 256 seconds]
19:23modwizcode_ is now known as modwizcode
19:41CalumK has joined #asahi-dev
19:54CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:54CalumK has joined #asahi-dev
19:54CalumK has quit [Client Quit]
19:55CalumK has joined #asahi-dev
19:55CalumK has quit [Client Quit]
19:56CalumK has joined #asahi-dev
19:56CalumK has quit [Client Quit]
19:57CalumK has joined #asahi-dev
19:57CalumK has quit [Client Quit]
19:57CalumK has joined #asahi-dev
20:00CalumK has quit [Client Quit]
20:23acelogic has joined #asahi-dev
21:19mogery has quit [Quit: Leaving]
21:28ewlsh[m] has joined #asahi-dev
21:38irl25519 has joined #asahi-dev
22:07irl25519 has quit [Quit: irl25519]
22:09irl25519 has joined #asahi-dev
22:16DarthCloud has quit [*.net *.split]
22:22DarthCloud has joined #asahi-dev
22:36irl25519 has quit [Quit: irl25519]
23:00yrlf has quit [Quit: The Lounge - https://thelounge.chat]
23:01yrlf has joined #asahi-dev
23:07rockinrobstar[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
23:13rockinrobstar[m]yeah, was meaning as a full interactive console - still need to fix usb for hid etc before that can happen :-)
23:20yrlf2 has joined #asahi-dev
23:21Esmil has quit [Ping timeout: 256 seconds]
23:21Esmil has joined #asahi-dev
23:22yrlf has quit [Read error: Connection reset by peer]
23:22bastilianrockinrobstar: 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.
23:46yrlf2 is now known as yrlf
23:53rwhitbybastilian: 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.
23:57rwhitbybastilian: https://gist.github.com/rwhitby/b98254e84ae402e87a25c6b981303511 is where I'm at so far