#asahi · 2021-07-03 02:39
amwI'm thinking it just loads the initrd (combined in the m1n1-payload.macho as per https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart#direct-payload-booting) and normal kernels just run the /init program/script by default #asahi · 2021-07-03 02:32
amwFor some reason it locks up when it's printing a 3 digit count, i.e. after 99 goes :"Still running 10"#asahi · 2021-07-03 02:31
amwFor what it's worth here's the init script in the initramfs - https://paste.debian.net/1203207/#asahi · 2021-07-03 02:29
amwSure: I'm going back to studying the page tables - I think I just understand the 3 layers under the HV...#asahi · 2021-07-03 02:27
amwThe stuff above that is m1n1 HV output - but below that is from the initrd - sorry I see how confusing that would be.#asahi · 2021-07-03 02:26
amwkfischer: From the "Starting Shell: Still running ..." is most definitely from my initrd shell that I put in there.#asahi · 2021-07-03 02:07
amwThe latest marcan rev I am using is commit e00e8f1 hv/trace_dcp.py: Fix stuff - of course I have to chainload that m1n1 first because my booting m1n1 is much older#asahi · 2021-07-03 02:05
amwIf I strip the leading blanks with this sed script: sed '/^ */s///' ttyACM1-serial-output.txt - I get the much more readable: https://paste.debian.net/1203206/#asahi · 2021-07-03 02:03
amwIt looks horrible because the console output has lots of spaces at the start - don't know why#asahi · 2021-07-03 02:02
amwI'll upload a dump of the console text output - https://paste.debian.net/?show=1203205;lines=0#asahi · 2021-07-03 02:00
amwI've got a compile date of 22 June #asahi · 2021-07-03 01:57
amwkfischer: I've loaded linux under the HV and the other ttyACM1 is still there and printing kernel messages for me....#asahi · 2021-07-03 01:46
amwThat's strange I think as long as the HV is running it should be keeping the USB gadget's going?#asahi · 2021-07-03 01:44
amwI don't think it does under run_guest.py (from memory) - I'll have to try again and update the Wiki#asahi · 2021-07-03 01:41
amwDid you get the console=ttySAC0,1500000 output on the 2nd serial interface on other PC?#asahi · 2021-07-03 01:37
amwe.g. See https://github.com/torvalds/linux/compare/master...AsahiLinux:dart/dev#asahi · 2021-07-03 01:34
amwFirst I haven't gotten the linux USB serial working. You might want to try the dart/dev branch of the Asahi Linux which appears to have the most recent dwc3 (USB) controller work#asahi · 2021-07-03 01:27
amwkfischer: Which python proxy client did you use? run_guest.py (under HV) or linux.py? #asahi · 2021-06-29 05:57
amwHmm clang-format is up to 12 :-( Sigh - 7 is Dec 2018 - pretty old#asahi · 2021-06-29 05:53
amwjannau: clang-7 doesn't like the m1n1/.clang-format info ? Perhaps later version? Not sure it says anything about comments - e.g. @param style stuff used in the kernel et cetera#asahi · 2021-06-29 02:04
amwI would like this to be helpful to others that come later so complying to a acceptable format would be good#asahi · 2021-06-29 02:03
amwmarcan: Is there any coding standard, for the C code? I am reading my way through the code and would like to add some comments as I understand things#asahi · 2021-06-21 13:11
amwSorry I=V/R = 0.58/(470+220)=0.0008A => drop over 470Ω = 470*0.0008=0.395V 1.8-0.395=1.40V at '+' pt ?#asahi · 2021-06-21 13:09
amwI get 1.8-1.22=0.58V So I=V/R = 0.58/(470+220)#asahi · 2021-06-21 05:59
amwUpdated the SW:Linux wiki page with some details of running Linux under m1n1 hypervisor + a photo, also Developer Quick Start#asahi · 2021-06-20 02:40
amwmarcan: FileVault is set (System Preferences -> Security & Privacy -> File is correct), I'm happy to leave it that way on the MacOS#asahi · 2021-06-20 02:28
amwWondering how useful you thought the help command - https://paste.debian.net/?show=1201723;lines=0 - I thought it very helpful to know what things you can do, but it needs some effort to add in the doc strings which I can do over time#asahi · 2021-06-20 02:14
amwCould m1n1 check it is at EL1 and do a hv call just before jumping to the target? or is that bad design?#asahi · 2021-06-20 02:12
amwSo the 2nd m1n1 is like a u-boot/loader which is discarded by Linux (one day)#asahi · 2021-06-20 02:12
amwI thought HV was m1n1? Do does the original HV stay around the the m1n1 in the payload run at EL1?#asahi · 2021-06-20 02:09
amwok so HV and proxy just slap the whole blob into memory and jump to the start address mindlessly?#asahi · 2021-06-20 02:07
amwThe code that picks out the dtb + initramfs probably knows what it is booting?#asahi · 2021-06-20 02:03
amwI notice that your HV.PAC_MASK has 5 x fs - PAC_MASK = 0xfffff00000000000 - but that *doesn't* work - https://paste.debian.net/1201805/#asahi · 2021-06-20 01:59
amwmarcan: I guess you mean VinDuv's suggestion, hv.pac_mask = 0xffff000000000000, which works: https://paste.debian.net/1201804/#asahi · 2021-06-19 20:58
amwEven using the load_system_map command it's still not working - https://paste.debian.net/1201789/#asahi · 2021-06-19 20:50
amwmarcan: Not quite - See https://paste.debian.net/1201788/#asahi · 2021-06-19 08:39
amwYep - much nicer : https://paste.debian.net/?show=1201744;lines=0#asahi · 2021-06-19 08:32
amwSee https://paste.debian.net/1201743/#asahi · 2021-06-19 08:32
amwYep - that did it !#asahi · 2021-06-19 08:30
amwGot this - https://paste.debian.net/1201742/ - how am I reloading the Sysmap?#asahi · 2021-06-19 08:24
amwVinDuv: Too many values to unpack Exception.... - see https://paste.debian.net/?show=1201741;lines=0#asahi · 2021-06-19 08:09
amwWoops just crashed my hv ... disassemble_at(0xffff8000102fdc3c, 8) -> it just rebooted...#asahi · 2021-06-19 08:00
amwhv.sym_offset=-0xa110000 , hv.tba.virt_base=0xfffffe001005c000 hv.macho.vmin=0xfffffe0007004000#asahi · 2021-06-19 07:55
amwYep: 0xffff8000102fdc3c#asahi · 2021-06-19 07:54
amwVinDuv: Nope :-(#asahi · 2021-06-19 07:29
amwSorry - had to go drive some one - that didn't do anything though - https://paste.debian.net/?show=1201738;lines=0#asahi · 2021-06-19 06:49
amwSee https://paste.debian.net/1201737/#asahi · 2021-06-19 06:48
amwI had to put the full path to System.map but bt is unchanged.#asahi · 2021-06-19 06:43
amwok - Offset by a little - thanks#asahi · 2021-06-19 06:41
amwok - yep - uploaded.