marcan changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
jamadazi has quit [Ping timeout: 264 seconds]
amw2 has joined #asahi-dev
amw2 has quit [Ping timeout: 256 seconds]
linkmauve has joined #asahi-dev
amw2 has joined #asahi-dev
amw2 has quit [Ping timeout: 256 seconds]
jamadazi has joined #asahi-dev
jamadazi has quit [Ping timeout: 260 seconds]
modwizcode has quit [Quit: Later]
massoud has quit [Ping timeout: 272 seconds]
massoud has joined #asahi-dev
DarthCloud has quit [Ping timeout: 268 seconds]
DarthCloud has joined #asahi-dev
bostjan has joined #asahi-dev
liur[m] has joined #asahi-dev
mogery has joined #asahi-dev
<marcan> starting soon
<j`ey> starting now ^
<jn__> hmm, make.sh, i do that too :)
<j`ey> jn__: hm?
<jn__> on my linux projects, i use a similar make.sh wrapper script
<jn__> i.e. the same approach for always setting ARCH and CROSS_COMPILE when i run make
<j`ey> oh i must have missed that
<j`ey> I just have a makefile currently, but maybe make.sh is better..
<jn__> (or maybe i misinterpreted the script?)
<Shiz> marcan: this is x86 menuconfig
<j`ey> so I run: make -C .. linux_arm64_menuconfig, but its a bit clumsy
<Shiz> (and nconfig is better :p)
<j`ey> jn__: can you paste your make.sh?
<jn__> j`ey: here's the one for my ebook reader stuff. it's for arm32 though, and it has a bug in a corner case: https://susepaste.org/view/raw/88798578
<jn__> marcans was simpler
<j`ey> I'll go back and view his later
<j`ey> I basically just made a few makefile rules, but I need one that can run abritrary make commands
maor26 has joined #asahi-dev
<jn__> i wonder if interrupts can be configured in the AIC to be routed either to FIQ or to IRQ. i've seen that in a different interrupt controller
frode_0xa has joined #asahi-dev
frode_0xa has quit [Client Quit]
frode_0xa has joined #asahi-dev
frode_0xa has joined #asahi-dev
<j`ey> jn__: yeah, I was wondering the same thing
konradybcio has quit [Quit: authenticating]
konradybcio has joined #asahi-dev
mogery has quit [Quit: Leaving]
mogery has joined #asahi-dev
frode_0xa has quit [Client Quit]
klaus has joined #asahi-dev
frode_0xa has joined #asahi-dev
mogery has quit [Client Quit]
klaus has quit [Client Quit]
mogery has joined #asahi-dev
mogery has quit [Remote host closed the connection]
mogery has joined #asahi-dev
_whitelogger has joined #asahi-dev
zkrx has joined #asahi-dev
Axenntio has joined #asahi-dev
<Gaelan> marcan: need close curly on line 24
<yrlf> marcan: you sometimes need to do .buffer.flush() on python3 IIRC
<yrlf> don't know if that actually is needed, but let me check that
amboar has joined #asahi-dev
<dottedmag> marcan: If CPU is running so slow at boot, wouldn't it be faster to upload uncompressed file than to decompress?
mogery has quit [Quit: Leaving]
mogery has joined #asahi-dev
<Shiz> marcan: just gonna casually link https://github.com/Shizmob/unimgc/blob/master/lzo.c here :)
ant__ has joined #asahi-dev
TheLemonMan has joined #asahi-dev
<TheLemonMan> marcan, is this what you were looking for? https://raw.githubusercontent.com/madler/zlib/master/contrib/puff/puff.c
ant__ has quit [*.net *.split]
justMaku has quit [*.net *.split]
superk has quit [*.net *.split]
browzing_ has quit [*.net *.split]
djhuk has quit [*.net *.split]
spikebike has quit [*.net *.split]
superk has joined #asahi-dev
ant__ has joined #asahi-dev
mogeryy has joined #asahi-dev
spikebike has joined #asahi-dev
browzing_ has joined #asahi-dev
bostjan has quit [Read error: Connection reset by peer]
crucifix has joined #asahi-dev
justMaku has joined #asahi-dev
djhuk has joined #asahi-dev
mogery has quit [Ping timeout: 256 seconds]
mogeryy is now known as mogery
<jix> this is an inflate impl I wrote 12 years ago for an avr which kept the output in externally connected ram: https://github.com/optixx/quickdev16/tree/deflate/avr/usbload/neginf it's probably quite slow but it is small and simple
plainbits has joined #asahi-dev
q3k|m has quit [Ping timeout: 246 seconds]
<jix> the code is probably horrible though, I blame me from 12 years ago
<Shiz> can't be worse than gzip code
<jn__> since both transfer (via uart) and decompression are slow, i wonder if interleaving them could speed up the end result. this would probably require a FIFO in the UART or DMA, though, so the CPU doesn't have to poll for input bytes all the time. and also, no flow control on the uart makes this a bit risky
<dottedmag> marcan: incomplete type z_stream, prolly
<dottedmag> typo? missing m
<dottedmag> at line 101
suskun has joined #asahi-dev
suskun is now known as lucid_0x80
lucid_0x80 has quit [Remote host closed the connection]
suskun has joined #asahi-dev
suskun is now known as lucid_0x80
lucid_0x80 has quit [Remote host closed the connection]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
suskun has joined #asahi-dev
suskun is now known as lucid_0x80
q3k|m has joined #asahi-dev
<jix> raw deflate vs gz? (or did he handle that at some point I was distracted?)
<jix> I think it's not using a header at all because the stored/fixed/dynamic thing is a single deflate block already
lucid_0x80 has quit [Ping timeout: 264 seconds]
ant__ is now known as ayehavgunne
<Shiz> marcan: oy, just realised that lzo.c is noncompliant
<Shiz> marcan: you want to do tinf_gzip_uncompress
<Shiz> not tinf_uncompress
suskun has joined #asahi-dev
Necrosporus has joined #asahi-dev
Necrosporus is now known as Guest35351
suskun has quit [Read error: Connection reset by peer]
suskun has joined #asahi-dev
suskun is now known as lucid_0x80
lucid_0x80 has quit [Remote host closed the connection]
Guest35351 has quit [Read error: Connection reset by peer]
suskun has joined #asahi-dev
suskun has quit [Remote host closed the connection]
opticron has quit [Ping timeout: 264 seconds]
Axenntio has quit [Quit: Leaving]
opticron has joined #asahi-dev
ayehavgunne has quit [Quit: Lost terminal]
modwizcode has joined #asahi-dev
<mogery> marcan: wrong putc?
<mogery> it was graham and michiel i just relayed to irc :D
jamadazi has joined #asahi-dev
Axenntio has joined #asahi-dev
<j`ey> marcan: in menuconfig, after you search the results are numbered. pressing 1 (for example), takes you directly to result 1
jamadazi has quit [Ping timeout: 264 seconds]
frode_0xa has quit [Quit: leaving]
Emantor has joined #asahi-dev
<mogery> marcan: you copied base not fb
<j`ey> https://github.com/torvalds/linux/blob/master/drivers/of/fdt.c#L902 you need CONFIG_SERIAL_EARLYCON (might have it already?) and a chosen/stdout-path.
suskun has joined #asahi-dev
<jn__> somehting on the screen turned blue
<jn__> now white
<jn__> cool
suskun has quit [Remote host closed the connection]
<j`ey> marcan: can you check that ^
<davidrysk[m]> jn__: is your stream behind?
<modwizcode> That was in reference to the earlier bit I think
<j`ey> marcan: yes, check the link
<jn__> davidrysk[m]: no, 6s delay
<Necrosporus> marcan, maybe you have some UART to be set to software flow control? Then it might be dropping Xon/Xoff bytes?
snalty has joined #asahi-dev
<jix> did anyone see whether glasgow reports any framing errors when this stuff happens? I missed it
<jix> ah ok nope
jamadazi has joined #asahi-dev
qyousef has quit [Ping timeout: 256 seconds]
qyousef has joined #asahi-dev
<Shiz> marcan: did you actually recompile the DTS
ransom has joined #asahi-dev
ransom_ has joined #asahi-dev
ransom has quit [Ping timeout: 256 seconds]
<j`ey> setup_arch calls cpu_uninstall_idmap
<jn__> hmm, i was about to suggest looking into CONFIG_DEBUG_LL, but it doesn't exist on arm64
<Emantor> Yeah, ARM64 only supports earlycon.
linkmauve has quit [Ping timeout: 256 seconds]
djhuk has quit [Ping timeout: 256 seconds]
crucifix has quit [Ping timeout: 256 seconds]
djhuk1 has joined #asahi-dev
bostjan has joined #asahi-dev
linkmauve has joined #asahi-dev
Hakon has joined #asahi-dev
manawyrm has joined #asahi-dev
<yrlf> marcan: Graham Sutherland in the YT chat says according to some docs "Options are not yet supported." on the Samsung uart drivers
<marcan> I saw that
<marcan> but it's *getting to the options parser*
<marcan> and *mapping the memory*
<yrlf> oh, then that's really wierd
volpe has joined #asahi-dev
<yrlf> wait, so if I understand that code correctly you added some putc code into the regster_earlycon, and it doesn't show up, right?
<jn__> yrlf: that's from Documentation/admin-guide/kernel-parameters.txt, as far as i can see
diddledan has joined #asahi-dev
Ristovski has joined #asahi-dev
volpe has quit [Quit: Leaving]
hatf0 has joined #asahi-dev
volpe has joined #asahi-dev
<jn__> boots to panic \o/
<jn__> congrats :)
<Raqbit> \o/
<yrlf> at least you had framebuffer debug
<yrlf> without that that would have been even wore
<yrlf> *worse
<jn__> debug colors saved the day
<jn__> (somewhat)
<yrlf> kind of reminds me of HBC boot on 3DS
<j`ey> its going to be interesting to see the xnu code for m1 now
fewfewwe has joined #asahi-dev
<yrlf> so "early acknowledge" is pretty much "dev null all register writes" on the M1?
<Hakon> that's crazy
jamadazi has quit [Read error: Connection reset by peer]
jamadazi has joined #asahi-dev
<ar> thanks for the stream
volpe has quit [Remote host closed the connection]
volpe has joined #asahi-dev
<j`ey> "ob1cannoli
<j`ey> ​there's fabric config to make it work"
Axenntio has quit [Ping timeout: 272 seconds]
<yrlf> j`ey: of course there's vendor specific config. oh boy, this is gonna be """fun"""
<Shiz> aw shit, i missed the boot
<j`ey> Shiz: it panics!
VinDuv has joined #asahi-dev
fewfewwe has quit [Quit: Connection closed]
<mogery> "Apple M1: A Special Level Of Fail"
<Shiz> not particularly special, silicon errata exist everywhere
ransom has joined #asahi-dev
<segher> in some places more than in others
ransom_ has quit [Ping timeout: 260 seconds]
<jn__> the overall implementation quality probably evens out, but this issue is kind of spectacular
<segher> apple is not the worst. take that either way :-)
<mogery> soo it paniced to "i have no clock" right?
<marcan> it crashed with a SError
<marcan> don't know why, but that's for tomorrow to figure out
<jix> it said "SError Interrupt on CPU0, code 0xbe000000 -- SError"
<marcan> [ 0.000000] pc : memmap_init_zone+0x11c/0x190
<marcan> could just be because I didn't remove the idmap
<davidrysk[m]> marcan, go to bed
<marcan> I made a lot of garbage changes, those all have to be reverted now
<Shiz> petition to make a hammer irc trigger that bonks marcan :3
<Shiz> for bed
<davidrysk[m]> marcan: push those garbage changes to a wip branch or something just for backup :)
<marcan> I have HA, I could literally give you an API endpoint that locks my computer, turns off the screen, sleeps the laptop, and turns off the lights
<Shiz> stash
<Shiz> hahaha
<Shiz> !votesleep
<modwizcode> It should monitor how long he's been using his computer past bed and start like playing louder and louder white noise until he stops :p
<yrlf> "YouTube plays sleep schedule"
<yrlf> or IRC
ransom_ has joined #asahi-dev
ransom has quit [Ping timeout: 256 seconds]
browzing_ is now known as browzing
plainbits has quit [Ping timeout: 244 seconds]
browzing has quit [Quit: WeeChat 3.0]
ransom_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
browzing has joined #asahi-dev
bostjan has quit [Quit: Leaving]
ransom has joined #asahi-dev
ransom has quit [Read error: Connection reset by peer]
ransom has joined #asahi-dev
volpe_ has joined #asahi-dev
volpe_ has quit [Client Quit]
plainbits has joined #asahi-dev
ransom has quit [Read error: Connection reset by peer]
plainbits has quit [Client Quit]
ransom has joined #asahi-dev
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ransom has joined #asahi-dev
snalty has quit [Read error: Connection reset by peer]
djhuk1 has quit [Quit: The Lounge - https://thelounge.chat]
prabinspkt has quit [Quit: Connection closed for inactivity]
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acelogic has joined #asahi-dev
ransom has joined #asahi-dev
mogery has quit [Read error: Connection reset by peer]
ransom_ has joined #asahi-dev
ransom has quit [Ping timeout: 246 seconds]
browzing has quit [Ping timeout: 256 seconds]
VinDuv has quit [Quit: Leaving.]
acelogic has quit [Ping timeout: 256 seconds]
thresh has quit [Quit: I'm a quit message virus. Please replace your old line with this line and help me take over the world]
volpe has quit [Ping timeout: 260 seconds]
sirn has quit [Ping timeout: 260 seconds]
sirn has joined #asahi-dev
jamadazi has quit [Read error: Connection reset by peer]
ransom_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
browzing has joined #asahi-dev
ransom has joined #asahi-dev
snalty has joined #asahi-dev
DarthCloud has quit [Remote host closed the connection]
DarthCloud has joined #asahi-dev
robinp has joined #asahi-dev
robinp_ has quit [Ping timeout: 258 seconds]
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maor26 has quit [Ping timeout: 272 seconds]
snalty has quit [Quit: Leaving]
<robinp> so is the nGnRnE thing related to "Write XOR execute, Kernel Integrity Protection, Pointer authentication or Device Isolation" features somehow?
r3n has joined #asahi-dev
<winocm> nGnRnE refers to a type of ARM memory mapping