#exploit #cross-platform

tegra-rcm

A library to help exploit the bootROM exploit for the Tegra X1's RCM mode

6 releases (breaking)

0.6.0 Oct 11, 2023
0.5.0 Mar 5, 2023
0.4.0 Dec 25, 2022
0.3.0 Jul 31, 2022
0.1.0 May 4, 2022

#149 in Operating systems

Download history 13/week @ 2023-10-29 7/week @ 2023-11-05 13/week @ 2023-11-12 9/week @ 2023-11-19 12/week @ 2023-11-26 16/week @ 2023-12-03 9/week @ 2023-12-10 12/week @ 2023-12-17 16/week @ 2023-12-24 9/week @ 2023-12-31 7/week @ 2024-01-07 5/week @ 2024-01-14 7/week @ 2024-01-21 14/week @ 2024-01-28 5/week @ 2024-02-04 32/week @ 2024-02-11

58 downloads per month
Used in switcheroo-nx

GPL-2.0-or-later

190KB
846 lines

Tegra RCM

A library to help exploit the bootROM exploit for the Tegra X1's RCM mode.

Currently compatible with Linux and macOS.
Windows support is WIP.

Example

    use std::fs;
    use tegra_rcm::{Payload, Rcm};

    let payload_bytes = fs::read(&payload).unwrap();
    let payload = Payload::new(&payload_bytes).unwrap();
    let mut switch = Rcm::new(wait).unwrap();
    // Init the switch device (should only be done once)
    switch.init().unwrap();
    // We MUST to read the device id first
    let _ = switch.read_device_id().unwrap();
    switch.execute(&payload).unwrap();
    println!("Done!");


lib.rs:

Tegra RCM library

A library to help exploit the bootROM exploit for the Tegra X1's RCM mode Current support OS's are Linux, MacOS, and Windows

Dependencies

~0.4–2.9MB
~49K SLoC