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.
- Download fs-tools from Github
- In the XSR2 folder, run the following command
sudo apt install gcc-arm-linux-gnueabi qemu qemu-user-static qemu-system-arm
- Then build with the following command
arm-linux-gnueabi-gcc xsr_stl.ko main.c -o main
- 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.