Hacking wfsdump - PC util for dumping WFS devices (WiiU File System)

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
Problem with linux cmake:
zlib-1.2.12.tar.gz is no longer available. cmake process aborted.

Current release: zlib 1.2.13

October 13, 2022

/zlib-1.2.13.tar.gz
 

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
Error: Failed to download from mirror set:
SPAMPROTECTIONMAKESMECRAZYzlib.net/zlib-1.2.12.tar.gz: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
 

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
there is no zlib in home/username/

I should change the url in the cmake-files to the current version, because the zlib 1.2.12 is no longer available on zlibdotnet
Post automatically merged:

/wfs-tools/vcpkg/ports/zlib/portfile.cmake contains 1.2.12 . changed to 1.2.13
 
Last edited by Rabrec,

EyeKey

Well-Known Member
OP
Member
Joined
Feb 10, 2017
Messages
280
Trophies
0
XP
1,099
Country
Israel
Problem with linux cmake:
zlib-1.2.12.tar.gz is no longer available. cmake process aborted.

Current release: zlib 1.2.13

October 13, 2022

/zlib-1.2.13.tar.gz
Try to update the vcpkg submodule (go to that directory and git checkout master && git pull)
 

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
Thx, that helped to solve the zlib problem. but now: (cmake --preset default)

-- Found Boost: /home/ralf/wfs-tools/build/default/vcpkg_installed/x64-linux/include (found suitable version "1.80.0", minimum required is "1.64.0")
CMake Warning at /usr/share/cmake-3.24/Modules/FindBoost.cmake:1384 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake-3.24/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.24/Modules/FindBoost.cmake:2118 (_Boost_MISSING_DEPENDENCIES)
build/default/vcpkg_installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
vcpkg/scripts/buildsystems/vcpkg.cmake:783 (include)
wfs-extract/CMakeLists.txt:16 (find_package)


and then: (cmake --build --preset release)

[1/19] Building CXX object wfslib/CMak...wfslib.dir/Release/src/directory.cpp.o
FAILED: wfslib/CMakeFiles/wfslib.dir/Release/src/directory.cpp.o
/usr/bin/c++ -DCMAKE_INTDIR=\"Release\" -I/home/ralf/wfs-tools/wfslib/include -I/home/ralf/wfs-tools/wfslib/src -I/home/ralf/wfs-tools/wfslib/include/wfslib -isystem /home/ralf/wfs-tools/build/default/vcpkg_installed/x64-linux/include -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Werror -std=gnu++2a -MD -MT wfslib/CMakeFiles/wfslib.dir/Release/src/directory.cpp.o -MF wfslib/CMakeFiles/wfslib.dir/Release/src/directory.cpp.o.d -o wfslib/CMakeFiles/wfslib.dir/Release/src/directory.cpp.o -c /home/ralf/wfs-tools/wfslib/src/directory.cpp
In file included from /home/ralf/wfs-tools/wfslib/src/area.h:14,
from /home/ralf/wfs-tools/wfslib/src/directory.cpp:10:
/home/ralf/wfs-tools/wfslib/src/block.h:11:10: fatal error: span: Datei oder Verzeichnis nicht gefunden
11 | #include <span>
| ^~~~~~
compilation terminated.
 

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
that was great.

i updated gcc-9.4 to gcc-11


then another exit:

cmake --build --preset release
[17/19] Linking CXX executable wfs-file-injector/Release/wfs-file-injector
FAILED: wfs-file-injector/Release/wfs-file-injector
: && /usr/bin/c++ -O3 -DNDEBUG wfs-file-injector/CMakeFiles/wfs-file-injector.dir/Release/src/main.cpp.o -o wfs-file-injector/Release/wfs-file-injector wfslib/Release/libwfslib.a vcpkg_installed/x64-linux/debug/lib/libboost_program_options.a -static-libstdc++ -static-libgcc -s -lcryptopp-static && :
/usr/bin/ld: -lcryptopp-static kann nicht gefunden werden
collect2: error: ld returned 1 exit status
[18/19] Building CXX object wfs-extract/CMakeFiles/wfs-extract.dir/Release/src/main.cpp.o
ninja: build stopped: subcommand failed.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
try cmake --version in the terminal. you may have to update it. you can update an existing version of cmake with cmake, but I might start over, because sometimes that doesn't work properly.
 

EyeKey

Well-Known Member
OP
Member
Joined
Feb 10, 2017
Messages
280
Trophies
0
XP
1,099
Country
Israel
that was great.

i updated gcc-9.4 to gcc-11


then another exit:

cmake --build --preset release
[17/19] Linking CXX executable wfs-file-injector/Release/wfs-file-injector
FAILED: wfs-file-injector/Release/wfs-file-injector
: && /usr/bin/c++ -O3 -DNDEBUG wfs-file-injector/CMakeFiles/wfs-file-injector.dir/Release/src/main.cpp.o -o wfs-file-injector/Release/wfs-file-injector wfslib/Release/libwfslib.a vcpkg_installed/x64-linux/debug/lib/libboost_program_options.a -static-libstdc++ -static-libgcc -s -lcryptopp-static && :
/usr/bin/ld: -lcryptopp-static kann nicht gefunden werden
collect2: error: ld returned 1 exit status
[18/19] Building CXX object wfs-extract/CMakeFiles/wfs-extract.dir/Release/src/main.cpp.o
ninja: build stopped: subcommand failed.
I had to update the cmake file because of a change in the vcpkg package.
Anyway, I have updated the branches (wfs-tools & wfslib), pull from master and it should work now.
 
  • Like
Reactions: ber71 and godreborn

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
thanks for updating.
cmake runs without errors, but i can't find wfs-fuse. there are libraries (application/x-sharedlib) in the release folders but no application.

sudo wfs-fuse /dev/sdh /mnt --otp otp.bin --seeprom seeprom.bin -o default_permissions,allow_other

sudo: wfs-fuse: unknown command.

I feel lost. Need some further help...
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
@EyeKey , I'm trying to compile this, but I ran into this error with the last step:

FAILED: CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o
/usr/bin/c++ -DCRYPTOPP_INCLUDE_PREFIX=cryptopp -DCMAKE_INTDIR=\"Release\" -I/home/godreborn/wfs-tools/wfslib/include -I/home/godreborn/wfs-tools/wfslib/src -I/home/godreborn/wfs-tools/wfslib/include/wfslib -isystem /home/godreborn/wfs-tools/wfslib/build/default/vcpkg_installed/x64-linux/include -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Werror -std=gnu++2a -MD -MT CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o -MF CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o.d -o CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o -c /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.cpp
In file included from /home/godreborn/wfs-tools/wfslib/src/metadata_block.h:11,
from /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.h:11,
from /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.cpp:8:
/home/godreborn/wfs-tools/wfslib/src/block.h:11:10: fatal error: span: No such file or directory
 

EyeKey

Well-Known Member
OP
Member
Joined
Feb 10, 2017
Messages
280
Trophies
0
XP
1,099
Country
Israel
thanks for updating.
cmake runs without errors, but i can't find wfs-fuse. there are libraries (application/x-sharedlib) in the release folders but no application.

sudo wfs-fuse /dev/sdh /mnt --otp otp.bin --seeprom seeprom.bin -o default_permissions,allow_other

sudo: wfs-fuse: unknown command.

I feel lost. Need some further help...
wfs-fuse was disabled in the new build system, as I had to fix few things there.
Anyway I just did it, update wfs-tools and it should work now.
@EyeKey , I'm trying to compile this, but I ran into this error with the last step:

FAILED: CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o
/usr/bin/c++ -DCRYPTOPP_INCLUDE_PREFIX=cryptopp -DCMAKE_INTDIR=\"Release\" -I/home/godreborn/wfs-tools/wfslib/include -I/home/godreborn/wfs-tools/wfslib/src -I/home/godreborn/wfs-tools/wfslib/include/wfslib -isystem /home/godreborn/wfs-tools/wfslib/build/default/vcpkg_installed/x64-linux/include -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Werror -std=gnu++2a -MD -MT CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o -MF CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o.d -o CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o -c /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.cpp
In file included from /home/godreborn/wfs-tools/wfslib/src/metadata_block.h:11,
from /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.h:11,
from /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.cpp:8:
/home/godreborn/wfs-tools/wfslib/src/block.h:11:10: fatal error: span: No such file or directory
it is the same error that @Rabrec had. you are probably using an old compiler. The current requirements are gcc 11+ or clang 14+.
 
  • Like
Reactions: godreborn

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
I got it all setup, had to update cmake and gcc+ on ubuntu 22.04.

1668988694266.png

Post automatically merged:

@EyeKey , tried building the windows version, and this is what happened:

1668991193680.png

Post automatically merged:

Nm, the problem was that the recursive folders didn't download
 
Last edited by godreborn,

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
thx for your support. After updating the compiler I could create the wfs-fuse.

Without the specific otp.bin and seeprom.bin of the console that formatted the drive I can't access it nevertheless. Right?
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
thx for your support. After updating the compiler I could create the wfs-fuse.

Without the specific otp.bin and seeprom.bin of the console that formatted the drive I can't access it nevertheless. Right?
Yeah, the otp and seeprom are needed to read a wiiu formatted drive.
 

CrazySquid

Well-Known Member
Member
Joined
May 27, 2017
Messages
225
Trophies
0
XP
848
Country
Hi, is it possible to write to a WFS HDD using wfs-fuse? or is it read-only? I found interesting that NUSSpli is capable of installing titles by reading them in USB:/install , so my idea would be to connect my Wii U HDD to the PC and put the contents I want to install there, using WFS utilities. The reason for this is because my Wii U is picky with SD Cards once I eject them... and it's a pain to make them work again.

Thanks!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @K3Nv2, prove it