#
✕ nick:RealityVoid
#asahi · 2021-11-19 20:10
RealityVoidLet me print something in the kernel bootup just to make sure it's my binary.
#asahi · 2021-11-19 20:10
RealityVoidlooks fine to me.
#asahi · 2021-11-19 20:10
RealityVoidcat ../build/m1n1.macho <(echo 'boot-args=earlycon console=ttySAC0,1500000 console=tty0 debug cpus=1') ../../linux_mainline/arch/arm64/boot/dts/apple/*.dtb ../../linux_mainline/Image.gz >| /tmp/m1n1-linux.macho && python3 tools/run_guest.py /tmp/m1n1-linux.macho
#asahi · 2021-11-19 20:09
RealityVoidand then ran the command from marcan with some path adjustments for my machine relative locations.
#asahi · 2021-11-19 20:08
RealityVoidSo I gzipped it in the linux root dir. gzip < ../linux/arch/arm64/boot/Image > Image.gz
#asahi · 2021-11-19 20:08
RealityVoidBut let me double check.
#asahi · 2021-11-19 20:07
RealityVoidI _think_ I did.
#asahi · 2021-11-19 20:06
RealityVoidhttps://gist.github.com/RealityVoid/23f665160d531c80704ee3f418d08fa7
#asahi · 2021-11-19 20:06
RealityVoidTo me, that is exactly the same. But maybe I am missing something.
#asahi · 2021-11-19 20:05
RealityVoidShould I remove the single core run?
#asahi · 2021-11-19 20:04
RealityVoidYes, we did that intentionally.
#asahi · 2021-11-19 20:04
RealityVoidDid that, pretty much same result.
#asahi · 2021-11-19 20:00
RealityVoidSure
#asahi · 2021-11-19 19:58
RealityVoidYes.
#asahi · 2021-11-19 19:57
RealityVoidno match for aic_init_cpu+0xc/0x108
#asahi · 2021-11-19 19:57
RealityVoidskipping aic_init_cpu address at 0xffff8000104e776c due to size mismatch (0x108 != 0x1b8)
#asahi · 2021-11-19 19:57
RealityVoidUhhh, this is wierd.
#asahi · 2021-11-19 19:56
RealityVoidOk, so when it tries starting the IRQ's it gets some undefined instruction?
#asahi · 2021-11-19 19:55
RealityVoidhttps://gist.github.com/RealityVoid/20b5bf9a5e0ee4f18809a6d1d8b77729
#asahi · 2021-11-19 19:54
RealityVoidSo. I get kernel panic if I lower now.
#asahi · 2021-11-19 19:54
RealityVoidAhh, ok.
#asahi · 2021-11-19 19:53
RealityVoidwhat does lower() actually do?
#asahi · 2021-11-19 19:53
RealityVoidYes.
#asahi · 2021-11-19 19:53
RealityVoidWell, it's running _something_
#asahi · 2021-11-19 19:52
RealityVoidhttps://gist.github.com/RealityVoid/45397e80396fa9d9d4e251dc0f9b7de2
#asahi · 2021-11-19 19:52
RealityVoidOk, cool. So I can run both at the smae time, the pico needs to be on 2nd. Usefull.
#asahi · 2021-11-19 19:49
RealityVoidI seem to either be able to connect to picocom or do the m1n1 loading, but not both?
#asahi · 2021-11-19 19:49
RealityVoidheres is my question about picocom. If I connect to that, how can I do the connection to load the kernel?
#asahi · 2021-11-19 19:44
RealityVoidI do not, let me try to get that running.
#asahi · 2021-11-19 19:43
RealityVoidhttps://gist.github.com/RealityVoid/cae58efaea4d1084fc53b72ce8143edf
#asahi · 2021-11-19 19:42
RealityVoidMaybe I either borked something when building the kernel or when running the hypervisor?
#asahi · 2021-11-19 19:42
RealityVoidBut lower is always stuck, even after ctrl+c
#asahi · 2021-11-19 19:41
RealityVoidWell, it seems that now I don't get the secondary core exceptions, which is nice.
#asahi · 2021-11-19 19:38
RealityVoidThe wiki is freely editable, soI think anyone here can add stuff if they think it's usefull.
#asahi · 2021-11-19 19:34
RealityVoidShould I run that while hypervisor shell is up or how?
#asahi · 2021-11-19 19:32
RealityVoidhttps://gist.github.com/RealityVoid/0028e075b76369e2d2a129261ef66761 this is what I got this run, just in case it's intersting.
#asahi · 2021-11-19 19:31
RealityVoidWorth a try booting with 1 CPU, do you think?
#asahi · 2021-11-19 19:31
RealityVoidNah, seems same faulting on CPU5.
#asahi · 2021-11-19 19:29
RealityVoidlower() untill something interesting happens?
#asahi · 2021-11-19 19:28
RealityVoidI can now lower() several times.
#asahi · 2021-11-19 19:28
RealityVoidYes, that worked.
#asahi · 2021-11-19 19:28
RealityVoidI thought I broke it, but seems not to have been the case.
#asahi · 2021-11-19 19:27
RealityVoidNo shell response, asahi logo on framebuffer.
#asahi · 2021-11-19 19:27
RealityVoidYes, just did that and the result is the same.
#asahi · 2021-11-19 19:25
RealityVoidWell, nope seems to not do anything, the console on my machine is stuck and the display on the M1 has only the asahi logo.
#asahi · 2021-11-19 19:24
RealityVoidI did some stuff before running that.
#asahi · 2021-11-19 19:23
RealityVoidWell, did, aaaand, it's dead. :)) Let me reset and retry loading the thing.
#asahi · 2021-11-19 19:21
RealityVoidOk, so I eventually added the dtb from j_ey and I ran the image in the ypervisor and... I got this: https://gist.github.com/RealityVoid/cf1bd5f22755af36b072dca685ba167c
#asahi · 2021-11-19 17:17
RealityVoidWill update that as well.
#asahi · 2021-11-19 17:16
RealityVoidCONFIG_SYSFB_SIMPLEFB - I can add this as well to the options, juuust in case.

plus ›