template:xsr2

NOTE: This extraction method may not work on WSL. If you are having errors after trying all steps, try switching from WSL to a full Linux installation.

  1. Download fs-tools from Github
  2. In the XSR2 folder, run the following command
    sudo apt install gcc-arm-linux-gnueabi qemu qemu-user-static qemu-system-arm
  3. Then build with the following command
    arm-linux-gnueabi-gcc xsr_stl.ko main.c -o main
  4. Place onenand.bin and onenand.oob into the XSR2 folder and run the following command based on the type of part
    export QEMU_LD_PREFIX=/usr/arm-linux-gnueabi
    ./main onenand.bin onenand.oob B output.bin
    export QEMU_LD_PREFIX=/usr/arm-linux-gnueabi
    ./main onenand.bin onenand.oob A output.bin
    export QEMU_LD_PREFIX=/usr/arm-linux-gnueabi
    ./main onenand.bin onenand.oob 8 output.bin

After this, you must use TestDisk to acquire the data.

  • template/xsr2.txt
  • Last modified: 2025/03/30 06:28
  • by lnrc