No description
  • Rust 94.5%
  • C 5.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marcus Ramberg fd59265048 samsung-sit: SIM PIN/PUK verify and facility lock set
Builders for SIM_VERIFY_PIN1 (0x0201), SIM_VERIFY_PUK1 (0x0202) and
SIM_SET_FACILITY_LOCK (0x020a), with the layouts of the downstream
ProtocolSimBuilder::BuildSimVerifyPin/VerifyPuk/SetFacilityLock, and a
result parser that hands back the CP status and retry counter instead of
raising on PASSWORD_INCORRECT. FFI wrappers for all four.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X8Ae7ndNtBzrVUtsf9RYry
2026-10-22 21:09:51 +02:00
.cargo oem: answer the CP's oem_ipc1 (GEMS) channel 2026-07-09 20:28:36 +02:00
crates samsung-sit: SIM PIN/PUK verify and facility lock set 2026-10-22 21:09:51 +02:00
.gitignore oem: answer the CP's oem_ipc1 (GEMS) channel 2026-07-09 20:28:36 +02:00
Cargo.lock gnss: add long-running KEPLER daemon 2026-08-11 16:29:33 +00:00
Cargo.toml add samsung-sit codec crate; convert repo to a Cargo workspace 2026-07-13 16:19:49 +02:00
README.md add samsung-sit-ffi: a plain-C ABI over the codec 2026-07-13 17:08:19 +02:00

exynos-modem workspace

Userspace pieces for the Exynos s5300 ("Shannon") modem on the mainline-Linux bring-up of the Google Tensor G4 (Pixel 9a). A Cargo workspace of peer crates:

  • crates/exynos-modem — the daemon that answers the CP's vendor channels (GEMS/OEM on oem_ipc1, RFS, boot supervision + crash recovery). The analog of Qualcomm's rmtfs. See its own README for details.
  • crates/samsung-sit — a pure, I/O-free codec for the SIT (Exynos RIL) wire protocol: bytes ⟷ typed structs, no transport, no GLib. Consumed today via a C FFI shim from ModemManager's samsung-sit plugin (so the plugin keeps owning the wwan0sit* ports and the async/mainloop) and natively by any future Rust modem daemon. Written with binrw for declarative binary layouts.
  • crates/samsung-sit-ffi — a #[repr(C)] static library (libsamsung_sit_ffi.a) exposing samsung-sit to the ModemManager C plugin. The ABI is GLib-free (byte-buffer out-params, status codes); a thin C adapter re-wraps it into the GByteArray/GError shapes of the plugin's existing mm-sit-protocol.h, so the transport/orchestration C is left untouched.

Build

rustup target add aarch64-unknown-linux-musl   # once
cargo build --release                          # all crates -> static musl
cargo test                                     # wire-format tests