#asahi-dev · 2021-02-12 21:21
svendidn't want to duplicate any work, just wanted to get my hands dirty#asahi-dev · 2021-02-12 21:20
svenjust wrote it in the past two hours or so :)#asahi-dev · 2021-02-12 21:20
svenheh#asahi-dev · 2021-02-12 21:19
sventhat font does look a lot nicer though, thanks!#asahi-dev · 2021-02-12 21:18
svenlooks like it's mostly the capture card#asahi-dev · 2021-02-12 21:11
svenyeah, I need to convert a better font. and this hdmi capture thing isn't all that great either.#asahi-dev · 2021-02-12 21:07
sven*uart adapter#asahi-dev · 2021-02-12 21:06
svenlooks like my most expensive part adapter works fine. and the chainload.py development workflow is a lot of fun as well https://files.svenpeter.dev/74fb88486def919c44ead01848a85b84a70159facf2fdc34024cd8b071f0dd5d_m1n1_framebuffer_console.png :)#asahi-dev · 2021-02-07 08:55
svenbastilian: which usb-c cable are you using? it sounds like it's one that just doesn't support usb 3.0#asahi-dev · 2021-02-01 16:46
svennice :-)#asahi-dev · 2021-01-24 17:18
sven^-- agraf#asahi-dev · 2021-01-24 17:12
svenah, nice. i just took some random board which had a different serial#asahi-dev · 2021-01-24 17:11
svenoh, and i commented out most of the bootargs stuff so that it doesn't crash#asahi-dev · 2021-01-24 17:11
svenit's... not great.#asahi-dev · 2021-01-24 17:10
svenand then i replaced uart_write with something qemu emulates#asahi-dev · 2021-01-24 17:10
svenso i just drop the .maco file into flash at 0x0, manually set the initial PC to 0x4800, then after _start in m1n1 i have a copy loop that moves it to 0x8_0000_0000#asahi-dev · 2021-01-24 17:09
svenin pretty horrible ways#asahi-dev · 2021-01-24 17:09
sveni patched m1n1 :D#asahi-dev · 2021-01-23 15:27
svenwinocm: i actually expect this to crash horribly on real hardware :D#asahi-dev · 2021-01-23 14:37
svenhttps://github.com/AsahiLinux/m1n1/pull/15/files works in qemu but still has some FIXMEs/TODOs#asahi-dev · 2021-01-23 13:04
sveni'm not 100% sure but i don't think so#asahi-dev · 2021-01-23 13:03
sveni also wanted to understand how the aarch64 mmu works#asahi-dev · 2021-01-23 13:03
sventhat's what i'm hoping, but we'll see#asahi-dev · 2021-01-23 13:01
svenso... qemu to the rescue#asahi-dev · 2021-01-23 13:01
sveni was actually trying to add basic mmu support to m1n1 but my apple silicon mba is RMAed right now#asahi-dev · 2021-01-23 13:00
svenwell... so far i've just hacked up m1n1 :D#asahi-dev · 2021-01-23 12:57
svenhttps://files.svenpeter.dev/124ed587f397f28b68483d45731b286fdbccfd145e0cb41949a571d4bc941f1c_m1n1-mmu-qemu.log getting m1n1 to run in qemu was rather... ugly. trying to add very basic mmu stuff now#asahi-dev · 2021-01-22 12:00
svenyeah, probably#asahi-dev · 2021-01-22 12:00
svenclang and gcc default to lp64 but there was a -mabi=lp64 in the CFLAGS that clang didn't like. so my suggestion was to just remove that and add a guard in case that default changes or if someone tries to use a different compiler that defaults to something else#asahi-dev · 2021-01-22 11:59
svensure#asahi-dev · 2021-01-22 11:58
sven(that "your compiler sucks" was meant to be a dumb joke)#asahi-dev · 2021-01-22 11:56
svenmy point just was to assume that a toolchain targeting aarch64 defaults to LP64 and fail loudly if it doesn't so that it can be fixed#asahi-dev · 2021-01-22 11:55
svenI'm not arguing against LLP64 :)#asahi-dev · 2021-01-22 11:55
svenhuh?#asahi-dev · 2021-01-21 19:21
svenor just use the boring but more helpful #error "This code assumes LP64" :-)#asahi-dev · 2021-01-21 19:16
sven#ifndef __LP64__ #error "your compiler sucks" #endif#asahi-dev · 2021-01-21 19:05
svenso gcc and clang support should be enough imho#asahi-dev · 2021-01-21 19:05
svenand when you have brew install you may as well just brew install llvm and use "regular" clang#asahi-dev · 2021-01-21 19:05
svenAppleClang doesn't come with llvm-objcopy and you probably need homebrew (or another package manager) for imagemagick anyway#asahi-dev · 2021-01-21 18:46
svenhttps://f.svpe.de/62a739f0ab048e59e6416c07f4c5ef41da714e785eda3d9890a2296bafea23a8_ld-lexsup.c.html#asahi-dev · 2021-01-21 18:42
svenboth call bfd_link_relocatable. shared additionally makes ld ignore unresolved references#asahi-dev · 2021-01-21 18:42
sven-shared and -pie almost do the same thing in gnu binutils fwiw#asahi-dev · 2021-01-20 19:33
svenfor some reason the linker has -shared and -pie#asahi-dev · 2021-01-20 19:33
svenleftovers from a decade old codebase originally written for the wii :)#asahi-dev · 2021-01-17 17:17
sven:-)#asahi-dev · 2021-01-17 14:24
svenyrlf: https://f.svpe.de/ff5cf1249619e5291d6dff096f45c3c7d6ffcee157626b51926ec47fbd8d0666_m1n1.elf elf if you want to continue debugging.#asahi-dev · 2021-01-17 14:23
sventhat's progress at least :D#asahi-dev · 2021-01-17 14:22
svenhttps://f.svpe.de/e3f0f69a273a0399062954ead797c2de1e7b0ee6a5162452b4922c33aae8031e_m1n1.macho if you have time to test another binary :)#asahi-dev · 2021-01-17 14:15
svennot right now, but it might if something in the compiler changes