#exploit #cross-platform

tegra-rcm

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

5 releases (breaking)

0.5.0 Mar 5, 2023
0.4.0 Dec 25, 2022
0.3.0 Jul 31, 2022
0.2.0 Jun 26, 2022
0.1.0 May 4, 2022

#160 in Operating systems

Download history 3/week @ 2022-11-29 8/week @ 2022-12-06 4/week @ 2022-12-13 27/week @ 2022-12-20 13/week @ 2022-12-27 6/week @ 2023-01-03 8/week @ 2023-01-10 6/week @ 2023-01-17 10/week @ 2023-01-24 9/week @ 2023-01-31 10/week @ 2023-02-07 23/week @ 2023-02-14 10/week @ 2023-02-21 24/week @ 2023-02-28 12/week @ 2023-03-07 5/week @ 2023-03-14

63 downloads per month
Used in switcheroo-nx

GPL-2.0-or-later

190KB
907 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:

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.7–2.5MB
~56K SLoC