#
✕ nick:sven
#asahi · 2021-10-30 18:40
svenlike once every 15-20 reboots or so chainload times out a few times before it works
#asahi · 2021-10-30 18:39
sveni also get some timeouts sometimes after a reboot fwiw. but they haven't been very consistent and i haven't been able to figure out why they happen
#asahi · 2021-10-30 16:01
sveni think the only time we don't want to try messing with the baudrate is if we're running over usb
#asahi · 2021-10-30 16:00
svenbut we might still want to increase the baudrate
#asahi · 2021-10-30 16:00
svendon't think so. if whoami fails due a wrong baudrate we want to try changing it. i think.
#asahi · 2021-10-30 15:59
svenit needs additional brackets
#asahi · 2021-10-30 15:59
svenyes
#asahi · 2021-10-30 15:58
svenoh, also that patch is wrong python :D
#asahi · 2021-10-30 15:57
svenit's just meant to detect if you're using the usb uart
#asahi · 2021-10-30 15:56
svenwill test it later myself with the usb serial
#asahi · 2021-10-30 15:55
svenVinDuv: https://files.svenpeter.dev/79b8a2676ddedd8458245763a2e6c4a2bce05571b3eadf01398141b7c1634b21_0001-fix-bootstrap_port-hardware-uart.patch might fix it
#asahi · 2021-10-30 15:48
svensounds like this might be a regression then
#asahi · 2021-10-30 15:45
sven(i just realized i haven't used the hw uart in a long time so maybe it's actually a bit broken right now)
#asahi · 2021-10-30 15:44
svendoes just catching the UartTimeout fix that issue?
#asahi · 2021-10-30 15:44
svenso the iodev_whoami is meant to detect if you're connected via USB and to just skip baudrate adjustment then
#asahi · 2021-10-30 15:43
svenhrm, now that i'm reading the code again it also confuses me :D
#asahi · 2021-10-30 15:42
svenand if you're using UART it'll try to adjust the baudrate if it failed
#asahi · 2021-10-30 15:41
svenif you're using USB it doesn't matter because there's no baudrate and it'll never fail anyway
#asahi · 2021-10-30 15:40
svenhm, but reading that code it's fine if that one fails
#asahi · 2021-10-30 15:39
sventhat's indeed weird
#asahi · 2021-10-30 15:39
svenhuh
#asahi · 2021-10-30 15:33
sveni always use two m1 macs and never had any issues
#asahi · 2021-10-30 15:33
svendoesn't the proxy code try both baudrates during setup?
#asahi · 2021-10-30 15:21
svenhrm. i guess remove the early uart debug (unless we want some hack to identify the mmio range there), then get uart, ram_start and watchdog from the ADT
#asahi · 2021-10-30 15:18
svenohh... but true... there are also other hardcoded addresses in there
#asahi · 2021-10-30 15:17
svens/0x0800000000/ram_start/ :P
#asahi · 2021-10-30 15:16
svenwe don't wanna steal all his fun doing remote debugging :)
#asahi · 2021-10-30 15:15
svenanyway, i'm sure marcan will figure it out on monday :D
#asahi · 2021-10-30 15:10
svenor it might actually need new chicken bits to work correctly
#asahi · 2021-10-30 13:04
sveni only have my "old" m1 here
#asahi · 2021-10-30 13:04
svenis just guessing fwiw
#asahi · 2021-10-30 12:29
svenand then maybe the REGION_RWX_EL0, etc. defines need to be changed as well so that they don't overlap
#asahi · 2021-10-30 12:29
svenVinDuv: so as a quick hack you can probably replace 0x0800000000 with 0x1000000000 in memory.c
#asahi · 2021-10-30 12:26
svenand the exception handlers won't work because they're not mapped either :D
#asahi · 2021-10-30 12:26
svenso when it enables the MMU the page it's running from disappears
#asahi · 2021-10-30 12:26
svenah, no, i think the current code will create some wrong mappings
#asahi · 2021-10-30 12:25
svenor it just needs some of the chicken bits
#asahi · 2021-10-30 12:24
svenif RAM starts at 0x10_0000_0000 now we don't map that i think
#asahi · 2021-10-30 12:24
sven+it dies
#asahi · 2021-10-30 12:24
svenpossibly because not enough RAM is mapped
#asahi · 2021-10-30 12:24
svenyeah, that turns on the MMU
#asahi · 2021-10-30 12:24
sven:D
#asahi · 2021-10-30 12:22
svenyeah
#asahi · 2021-10-30 12:22
svenit's just that RAM starts at 0x10_0000_0000 now
#asahi · 2021-10-30 12:21
sveni actually think the registers might be the same
#asahi · 2021-10-30 12:20
svenit's the only part of trustzone they use
#asahi · 2021-10-30 12:20
sventhe locked down memory region that SErrors if you try to read/write from it
#asahi · 2021-10-30 12:19
svenhm, looks like they also moved the RAM around
#asahi · 2021-10-30 12:18
svennice!
#asahi · 2021-10-30 12:17
sventhough that error shouldn't matter all that much

plus ›