mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 21:04:32 +01:00
FM-1 Rescue for Android; live rescue progress on the data port
android/rescue: one-screen app that programs the RP2040 (RP2040-Zero or XIAO) over PICOBOOT through an OTG cable with the rescue firmware, the user's official V15 and JieLi's loader, reboots it, and follows the FM-1 repair on the board's data port. Core (RescueImage, Picoboot, RescueStatus) tested on a computer against a mock RP2040: the flash ends identical to the web page's .uf2. Built by the android workflow. Firmware: `rescue` is answered on core 0 with phase and sector, so the progress is readable during a restore. The done flag no longer survives a watchdog reboot (a re-flashed board could have reported done for a new unit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UVqsRpwNe3f8G3bWubf9TX
This commit is contained in:
25 files changed
+1399
-36
No files matched your search
@@ -1,11 +1,12 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# (JIANT) the Android probe (android/probe, JIANT Probe: what a phone does with the FM-1's USB audio), built on every
|
||||
# push that touches it, the APK as a workflow artifact. On main the site's workflow (emulator.yml) also publishes it
|
||||
# next to the installer (app/jiant-probe.apk). The JIANT Stems app is a separate product, not in this repository.
|
||||
# next to the installer (app/jiant-probe.apk). FM-1 Rescue (android/rescue: unbricks an FM-1 with an RP2040 and
|
||||
# the phone) is built the same way, with the rescue firmware from rescue/base as its assets. The JIANT Stems app is a separate product, not in this repository.
|
||||
name: android
|
||||
on:
|
||||
push:
|
||||
paths: ["android/**", ".github/workflows/android.yml"]
|
||||
paths: ["android/**", "rescue/base/**", ".github/workflows/android.yml"]
|
||||
workflow_dispatch:
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -27,3 +28,20 @@ jobs:
|
||||
with:
|
||||
name: jiant-probe
|
||||
path: android/probe/app/build/outputs/apk/debug/app-debug.apk
|
||||
rescue:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "17"
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
with:
|
||||
gradle-version: "8.9"
|
||||
- name: the APK
|
||||
run: gradle -p android/rescue assembleDebug --no-daemon
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: fm1-rescue
|
||||
path: android/rescue/app/build/outputs/apk/debug/app-debug.apk
|
||||
Reference in new issue
Block a user