#
#asahi · 2022-09-11 19:19
jeppojeps1 it does support UART
#asahi · 2022-09-11 19:16
jannauyou could install m1n1 manually on 11.4
#asahi · 2022-09-11 19:14
jannaudoes the emulator support the uart (or dwc3)? if yes you could build m1n1 without payload and the correct size and control/load payload via the proxy interface over uart
#asahi · 2022-09-11 19:12
jannauthat sounds if the emulator exposes the iboot2 / os kernel interface and just has problems with the open payload
#asahi · 2022-09-11 19:10
jeppojepsotherwise I could have installed on the bare metal
#asahi · 2022-09-11 19:10
jeppojepsand right now I can't update my M1, stuck on 11.4 (work reason)
#asahi · 2022-09-11 19:10
jeppojepssince you already have something worked on the ramfb
#asahi · 2022-09-11 19:09
jeppojepsbut I wanted to boot Asahi to check few things on the DCP in the kernel
#asahi · 2022-09-11 19:09
jeppojepsthe emulator is capable to boot bash on top of XNU right now
#asahi · 2022-09-11 19:08
jeppojepsso the difference shouldn't be that huge
#asahi · 2022-09-11 19:08
jeppojepswe are talking here that iPhone apps run on M1 seamlessly
#asahi · 2022-09-11 19:08
jeppojepsindeed I looked at the one of Asahi and it's pretty similar
#asahi · 2022-09-11 19:08
jeppojepsthen the code puts everything together
#asahi · 2022-09-11 19:07
jeppojepsso I normally give them as separated params
#asahi · 2022-09-11 19:07
jeppojepsapple device tree coming from one of the blobs downloadable for iPhone
#asahi · 2022-09-11 19:07
jannauwhat does the simulator provide? an apple device tree or a linux device tree?
#asahi · 2022-09-11 19:06
jeppojepswhacking the emulator shouln't be that hard, doing it properly likely it takes a bit more
#asahi · 2022-09-11 19:06
jeppojepsthe rationale it's just to understand the best way or the more compatible way to do it
#asahi · 2022-09-11 19:06
jeppojepsso it's a kinda of bare-metal iPhone
#asahi · 2022-09-11 19:05
jeppojepsno iBoot
#asahi · 2022-09-11 19:05
jeppojepsif I provide m1n1 as a kernel
#asahi · 2022-09-11 19:05
jeppojepsit does, but I guess it's in the kernelcache
#asahi · 2022-09-11 19:05
jannaunah, a system emulator should be able to run iboot
#asahi · 2022-09-11 19:05
jeppojepsin my case iboot doesn't exist
#asahi · 2022-09-11 19:05
jeppojepsyes I understand
#asahi · 2022-09-11 19:04
jannaufrom our point of view iboot is a not replaceable part of the system
#asahi · 2022-09-11 19:04
jeppojepsit complains about the size going after EOF
#asahi · 2022-09-11 19:04
jeppojepsor it's just because it's a iPhone emulator
#asahi · 2022-09-11 19:04
jeppojepsso the implementation is somewhat not faithful
#asahi · 2022-09-11 19:04
jeppojepshow funny on qemu-t8030 it fails miserably
#asahi · 2022-09-11 19:03
jannauapple boot loader can handle that format
#asahi · 2022-09-11 19:03
jeppojepsin my case I think I have to do the math and prepare the recipe myself
#asahi · 2022-09-11 19:03
jeppojepsyeah but I guess the M1 likes that format
#asahi · 2022-09-11 19:02
jannauthat's intentional. it allows appending unknown payloads to the m1n1 mach-o binary and get them loaded
#asahi · 2022-09-11 19:02
jeppojepslike instead of leaving arbitrary appends
#asahi · 2022-09-11 19:02
jeppojepsthat thing doesn't seem to be legal on the emulator (which BTW I can change) but I have to understand why I can just make it fit within by knowing the size of the blobs I append
#asahi · 2022-09-11 19:01
jeppojepslike the PYLD section is beyond EOF
#asahi · 2022-09-11 19:01
jeppojepsOK but you know the linker makes sth dirty
#asahi · 2022-09-11 19:01
jannaujeppojeps: m1n1 can load a standard arm64 kernel image directly
#asahi · 2022-09-11 19:00
jeppojepsI thought there wasn't much difference with Linux
#asahi · 2022-09-11 19:00
jeppojepsseemed easier looking at how they boot XNU
#asahi · 2022-09-11 19:00
jeppojepsand get you back
#asahi · 2022-09-11 19:00
jeppojepsI will check the documentation
#asahi · 2022-09-11 18:59
jeppojepsbut maybe before that I can just load an example initramfs with an hello world
#asahi · 2022-09-11 18:59
jeppojepsso I need m1n1 for stage 1 + uboot + grub, that seems an infinite chain
#asahi · 2022-09-11 18:58
jeppojepsyes I wanted to load the linux kernel
#asahi · 2022-09-11 18:54
waldiand in a UEFI environment, the linux kernel is a PE binary
#asahi · 2022-09-11 18:53
waldijeppojeps: which kernel do you mean? m1n1 is usualy used to load uboot, then grub and only then a linux kernel
#asahi · 2022-09-11 18:39
povikotherwise the details of how it works are in the document jannau linked
#asahi · 2022-09-11 18:39
poviki guess you need to ask a more specific question

plus ›