Compare commits

..

4 commits

Author SHA1 Message Date
tomtomx3
7dd3a01989
Just for test purposes 2026-06-25 01:37:48 +02:00
8eb749f6f2 Build Script angepasst um arch derivate zu Unterstützen. 2026-06-24 22:31:20 +02:00
DefenderOfHyrule
71266314eb remove CLK check, apparently it's problematic for some specific/random consoles? 2026-04-19 11:05:57 +02:00
DefenderOfHyrule
c0f8d7c186
More proper implementation of my BCT resync fix and add CLK detection (#9)
* add CLK detection, apparently was never checked :P

* 2.82, more proper implementation of the BCT resync fix.

* 2.82 also contains a fingerprint (first few characters of BCT pubkey) that can be used with modchip toolbox 1.0.2.
2026-04-15 20:33:56 +02:00
4 changed files with 7 additions and 13 deletions

11
main.c
View file

@ -55,7 +55,7 @@ void self_test()
{
absolute_time_t tio_time = make_timeout_time_ms(2500);
adc_init();
bool rst_ok = false, cmd_ok = false, d0_ok = false, clk_ok = false;
bool rst_ok = false, cmd_ok = false, d0_ok = false;
while (!time_reached(tio_time)) {
if (!rst_ok)
rst_ok |= safe_test_voltage(PIN_RST, 1.8f, 0.2f);
@ -63,9 +63,7 @@ void self_test()
cmd_ok |= safe_test_voltage(PIN_CMD, 1.8f, 0.2f);
if (!d0_ok)
d0_ok |= safe_test_voltage(PIN_DAT, 1.8f, 0.2f);
if (!clk_ok)
clk_ok |= safe_test_voltage(PIN_CLK, 1.8f, 0.2f);
if (rst_ok && cmd_ok && d0_ok && clk_ok)
if (rst_ok && cmd_ok && d0_ok)
break;
}
if(!rst_ok)
@ -80,11 +78,6 @@ void self_test()
{
halt_with_error(2, 2);
}
if(!clk_ok)
{
halt_with_error(3, 2);
}
}
extern bool was_self_reset;

View file

@ -19,7 +19,7 @@ fi
# detect distribution
if [ -f /etc/os-release ]; then
. /etc/os-release
DISTRO=$ID
DISTRO=${ID-LIKE:-$ID}
else
echo -e "${RED}Error: Cannot detect distribution${NC}"
exit 1

View file

@ -12,7 +12,7 @@ echo -e "${GREEN}=== Picofly build script (multi-distro) ===${NC}\n"
# detect distribution
if [ -f /etc/os-release ]; then
. /etc/os-release
DISTRO=$ID
DISTRO=${ID_LIKE:-$ID}
else
echo -e "${RED}Error: Cannot detect distribution${NC}"
exit 1

1
test123 Normal file
View file

@ -0,0 +1 @@
asdöfgljkklgj