#
✕ nick:nickchan
#asahi-dev · 2024-09-30 16:04
nickchanoh nice linux has the driver for the battery gauge on a10... just not on an uart bus
#asahi-dev · 2024-09-30 12:19
nickchanI can check on t6000 a bit later
#asahi-dev · 2024-09-30 12:09
nickchanokay whatever I think the best course of action is to remove the readl_relaxed() from the wdt driver
#asahi-dev · 2024-09-30 12:03
nickchana7-a10 has wd0 and wd1
#asahi-dev · 2024-09-30 12:03
nickchanokay after a lot of testing wd2 exists a11 and above
#asahi-dev · 2024-09-30 11:57
nickchanugh so wd2 *does* exist at least on iphone x just not iphone 5s
#asahi-dev · 2024-09-30 11:40
nickchanhttps://paste.debian.net/hidden/055a3a42/
#asahi-dev · 2024-09-30 11:29
nickchanneeded
#asahi-dev · 2024-09-30 11:28
nickchanreading current time is not neede
#asahi-dev · 2024-09-30 11:26
nickchanthis sequence works
#asahi-dev · 2024-09-30 11:26
nickchan1. set APPLE_WDT_WD1_BITE_TIME to 0, 2. set APPLE_WDT_WD1_CTRL to 4 (bit 2), 3. set APPLE_WDT_WD1_CUR_TIME to 0
#asahi-dev · 2024-09-30 11:19
nickchanwait no
#asahi-dev · 2024-09-30 11:19
nickchan1. set APPLE_WDT_WD1_CUR_TIME to 1
#asahi-dev · 2024-09-30 11:19
nickchanand iphone x as well
#asahi-dev · 2024-09-30 11:15
nickchanOkay, this sequence correctly reset system on 5s
#asahi-dev · 2024-09-30 11:04
nickchanon wdt-version 1
#asahi-dev · 2024-09-30 11:04
nickchanwd2 doesn't seem to exist here
#asahi-dev · 2024-09-30 11:04
nickchanand wd1 does a normal system reset
#asahi-dev · 2024-09-30 11:04
nickchanI mean wd0 in linux not related to the wdt version above
#asahi-dev · 2024-09-30 11:03
nickchanthings like display stays on and are put in a weird state
#asahi-dev · 2024-09-30 11:03
nickchanwdt0 casues SoC and only SoC to reset
#asahi-dev · 2024-09-30 10:52
nickchanwdt1 is a7-a11; wdt2 is from a12z
#asahi-dev · 2024-09-30 10:46
nickchantime to check some more in m1n1
#asahi-dev · 2024-09-30 10:37
nickchanokay, it doesn't exactly work like that
#asahi-dev · 2024-09-30 10:30
nickchanand if it happens to be 0 right now it will become non-zero like immediately after anyways
#asahi-dev · 2024-09-30 10:30
nickchanit really doesn't matter what the current time is it is basically always going to be larger than 0
#asahi-dev · 2024-09-30 10:29
nickchanso are the current time reg write and current time reg read even needed?
#asahi-dev · 2024-09-30 10:28
nickchansven: I am not super familiar with the watchdog but from my understanding of it, to immediately reset the machine all that needs to happen is setting bit 2 in control reg, then set 0 in bite time reg
#asahi-dev · 2024-09-30 10:27
nickchanhttps://lore.kernel.org/linux-watchdog/6775f288-9278-412e-957b-b341b1a75ae8@app.fastmail.com/
#asahi-dev · 2024-09-30 07:37
nickchanchaos_princess: correct
#asahi-dev · 2024-09-30 03:48
nickchanpatches should start to get applied again now merge window is closed
#asahi-dev · 2024-09-30 03:47
nickchanincrease reset delay 50ms -> 150ms
#asahi-dev · 2024-09-30 03:47
nickchanmaybe I should resend the watchdog patch? it's been two weeks but then again the past two weeks is the merge window
#asahi-dev · 2024-09-30 03:46
nickchananyways onto less shady stuff
#asahi-dev · 2024-09-30 03:39
nickchans/if is/it is/
#asahi-dev · 2024-09-30 03:38
nickchanand the damage is all different so with some luck if is possible to cannibalize parts for fully working units
#asahi-dev · 2024-09-30 03:36
nickchanthe thing to do here would have been drill right through the soc but some of them just got a small piece of the board where there doesn't seem to be much ripped off
#asahi-dev · 2024-09-30 03:35
nickchanchadmed_: in case you are wondering they are in fact damaged
#asahi-dev · 2024-09-30 03:29
nickchanfalling of a truck would be very illegal
#asahi-dev · 2024-09-30 03:29
nickchanim quite sure that they are sent to china to get destoryed, and then after they are destoryed they got sold as scrap, but the catch it some isn't destoryed properly
#asahi-dev · 2024-09-30 03:28
nickchanwell they are *supposed* to be
#asahi-dev · 2024-09-30 03:27
nickchanthese are scrap metal
#asahi-dev · 2024-09-30 03:27
nickchanchadmed_: in particular they did not fell off a truck
#asahi-dev · 2024-09-30 02:28
nickchanpersonally id say it is fair game this is just equivalent of picking trash from the bin
#asahi-dev · 2024-09-30 02:22
nickchanclearly some of them are not properly destroyed though
#asahi-dev · 2024-09-30 02:22
nickchansome additional context: 1. ADP3,2 can be get up and running using only publicly release copyright material 2. these hardware comes from chinese scrapyard selling supposedly destroyed boards as scrap
#asahi-dev · 2024-09-29 04:19
nickchanthe policy is entirely about copyright which doesn't extend to hardware
#asahi-dev · 2024-09-29 03:59
nickchanAlso, are ADP3,2 ports acceptable? I am not doing it but I know people that are trying to do it.
#asahi-dev · 2024-09-29 03:26
nickchandriver
#asahi-dev · 2024-09-29 03:26
nickchanthere's some page size checks in the dart

plus ›