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 part specified in the phone table at the top of the page. If no part is specified, try all of the commands listed below until one works.
    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 F 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.