Building iosuhax on windows

Discussion in 'Wii U - Tutorials' started by FIX94, Nov 1, 2016.

  1. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,042
    8,562
    Oct 27, 2002
    France
    Engine room, learning
    I thought it will be added after I posted it, it seems it's still not reflecting it.
    I might add it, but I didn't want to change Fix94 work if he has other things planned for his guide.

    edit:
    Added at the bottom with an explanation.
     
    Pachee and RosaliinaDaHacker64 like this.


  2. GATWYAY3.2

    GATWYAY3.2 Advanced Member

    Newcomer
    89
    8
    Apr 28, 2015
    United States
    I keep getting this followed guide exactly
    Code:
    C:\Users\owner\Desktop\iosuhax\iosuhax-master>make
    make[1]: Entering directory `/c/Users/owner/Desktop/iosuhax/iosuhax-master'
    getfwimg.py:23: Warning: 'with' will become a reserved keyword in Python 2.6
      File "getfwimg.py", line 23
        with open(otpbinpath,'rb') as f:
                ^
    SyntaxError: invalid syntax
    make[1]: *** [bin/fw.img.full.bin] Error 1
    make[1]: Leaving directory `/c/Users/owner/Desktop/iosuhax/iosuhax-master'
    make: *** [redNAND] Error 2
    
    C:\Users\owner\Desktop\iosuhax\iosuhax-master>
     
  3. FIX94
    OP

    FIX94 Global Moderator

    Global Moderator
    7,018
    8,708
    Dec 3, 2009
    Germany
    ???
    yea, you need at least python 2.6 or newer, the error you get even tells you that you are still on python 2.5.
     
  4. GATWYAY3.2

    GATWYAY3.2 Advanced Member

    Newcomer
    89
    8
    Apr 28, 2015
    United States
    this is what i thought so i keep downloading 3.5 , your link and the installer says thank you for installing 3.5 32 bit but yet cmd keeps telling me it's 2.5 ,running windows 7 can i not have 3.5 ? whats going on not understanding

    trying 2.7 now update .. nope nothing working even unstalled everything still getting game error strange no idea ill just try on a different computer i guess
     
    Last edited by GATWYAY3.2, Dec 6, 2016
  5. GATWYAY3.2

    GATWYAY3.2 Advanced Member

    Newcomer
    89
    8
    Apr 28, 2015
    United States
    anyone know how to remove 2.5.2 from my system so i can use 3.5? i cant even locate its path
    Code:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\Users\owner>python
    Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on
    win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>>
     
  6. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,042
    8,562
    Oct 27, 2002
    France
    Engine room, learning
    start menu > control pannel > programs > python > uninstall?

    Another way is to install both, and replace/keep only the path to your python version you want to use in your environment variable.
     
    GATWYAY3.2 likes this.
  7. GATWYAY3.2

    GATWYAY3.2 Advanced Member

    Newcomer
    89
    8
    Apr 28, 2015
    United States
    so 2.5 was located in an HP file in my windows folder must have came with the pc anyways prompt now recognizes 3.5 but "make" now gives new error
    Code:
    C:\Users\owner\Desktop\my_folder\iosuhax>make
    make[1]: Entering directory `/c/Users/owner/Desktop/my_folder/iosuhax'
    Traceback (most recent call last):
      File "getfwimg.py", line 12, in <module>
        from Crypto.Cipher import AES
    ImportError: No module named 'Crypto'
    make[1]: *** [bin/fw.img.full.bin] Error 1
    make[1]: Leaving directory `/c/Users/owner/Desktop/my_folder/iosuhax'
    make: *** [redNAND] Error 2
    
    C:\Users\owner\Desktop\my_folder\iosuhax>
     
  8. FIX94
    OP

    FIX94 Global Moderator

    Global Moderator
    7,018
    8,708
    Dec 3, 2009
    Germany
    ???
    now that python 2.5 is gone you can just follow the guide from "installing pycrypto" and it will actually do so.
     
    GATWYAY3.2 likes this.
  9. GATWYAY3.2

    GATWYAY3.2 Advanced Member

    Newcomer
    89
    8
    Apr 28, 2015
    United States
    yep forgot to reinstall with cmd code line compiling . now have fw.img and fw.img.full bin

    — Posts automatically merged - Please don't double post! —

    Also if anyone else runs into this problem but with devkitPro i kept getting internet connection errors and read disabling AVG fixes this but it didn't work for me instead i just jammed the "Retry" button by hitting enter continuously
     
  10. GATWYAY3.2

    GATWYAY3.2 Advanced Member

    Newcomer
    89
    8
    Apr 28, 2015
    United States
    so the FW.img i ceated isn't working with cfw booter on wiiu Homebrew instead it brings me back to the main menu but when i grab someone elses fw,img file from a different tutorial cw booter worked. whats going on here?


    update* sigh ... so hax compiles 2 fw.img files one on the root of the hax folder and the second in bin folder which was the one not working
     
    Last edited by GATWYAY3.2, Dec 6, 2016
  11. wolf_

    wolf_ GBAtemp Regular

    Member
    247
    49
    Jan 22, 2012
    United States
    I'm getting error non hexadecimal digit found

    nvm I got it
     
    Last edited by wolf_, Dec 7, 2016
  12. Cylent1

    Cylent1 Community Smart Ass!

    Member
    396
    229
    Oct 5, 2015
    United States
    is there something i am missing?
    I compiled dimok's with "make cfw" and it works great but 1 issue...
    I hang with a black screen when exiting hbl channel. Is this normal?
     
  13. Reecey

    Reecey Mario 64 (favorite game of all time)

    Member
    4,270
    1,108
    Mar 7, 2010
    At Home :)
    I have noticed that Python got updated and the master folders by Fix or Dimok wont seem to compile anymore? has anyone else tried.
     
  14. Plasma816

    Plasma816 Advanced Member

    Newcomer
    68
    8
    Aug 9, 2016
    United States
    xzzzzzzzzz.PNG
    I get this when trying to install pycrypto in cmd...help?

    — Posts automatically merged - Please don't double post! —

    Never mind, fixed this soon after.
     
  15. legodestroyer77
    This message by legodestroyer77 has been removed from public view by Cyan, Apr 14, 2017, Reason: necrobumping?.
    Apr 13, 2017
  16. DarkGabbz
    This message by DarkGabbz has been removed from public view by Cyan, Apr 14, 2017, Reason: reply to deleted post - spamming to get post count increase.
    Apr 13, 2017
  17. legodestroyer77
    This message by legodestroyer77 has been removed from public view by Cyan, Apr 14, 2017, Reason: reply to deleted post - spamming to get post count increase.
    Apr 13, 2017
  18. legodestroyer77
    This message by legodestroyer77 has been removed from public view by Cyan, Apr 14, 2017, Reason: reply to deleted post - spamming to get post count increase.
    Apr 13, 2017
  19. Silails

    Silails Newbie

    Newcomer
    9
    3
    Jul 22, 2017
    France
    I got this error, please help me

    arm-none-eabi-objdump -EB -t -marm ios_fs.elf | grep 'g F .text' | grep -v '.hidden' | awk '{print $6 " equ 0x" $1}' > ios_fs.syms
    arm-none-eabi-objdump -EB -t -marm ios_fs.elf | grep -e 'g .text' -e '_bss_' | awk '{print $5 " equ 0x" $1}' >> ios_fs.syms
    arm-none-eabi-objcopy -j .text -j .rodata -O binary ios_fs.elf ios_fs.text.bin
    make[2]: Leaving directory `/c/Users/HP/Desktop/jeux/emulateur/WiiU/fwdimg/iosuhax_master/ios_fs'
    patches/0x10700000.s
    make[1]: execvp: armips: Bad file number
    make[1]: *** [patched_sections/0x10700000.bin] Error 127
    make[1]: Leaving directory `/c/Users/HP/Desktop/jeux/emulateur/WiiU/fwdimg/iosuhax_master'
    make: *** [redNAND] Error 2
     
  20. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,806
    4,992
    Mar 17, 2010
    Norway
    Alola
    You don't need to compile iosuhax anymore. You can just use Haxchi FW or Mocha.
     
    LaPingas likes this.
  21. ricktendo

    ricktendo Member

    Newcomer
    11
    0
    Jul 21, 2017
    Honduras
    Any instructions on how to compile using Linux?

    Now that there is Windows Subsystem for Linux this should be easier.

    Edit: never mind it was not too difficult to figure out.

    Prerequisites:
    ##### devkitARM #####
    curl -L https://raw.githubusercontent.com/devkitPro/installer/master/perl/devkitARMupdate.pl -o devkitARMupdate.pl
    chmod +x ./devkitARMupdate.pl
    ./devkitARMupdate.pl /opt/devkitpro
    echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
    echo "export DEVKITARM=/opt/devkitpro/devkitARM" >> ~/.bashrc
    source ~/.bashrc

    Notes: I am logged in as root so add "sudo" before your command if you get an error, you may need to install cmake and pycrypto as these are not installed by default (python should already be installed)

    ##### cmake #####
    apt install cmake

    ##### pycrypto #####
    pip install pycrypto

    ##### armips #####
    git clone --recursive https://github.com/Kingcom/armips.git
    cd armips
    mkdir build && cd build
    cmake -DCMAKE_BUILD_TYPE=Release ..
    make
    cp armips /bin/armips

    Notes: Once you have the prereqs you can compile your fw.img, here is an example command you use to CD to a folder on your HDD (in this example I will be using "C:\iosuhax-master" directory)

    ##### compile #####
    cd /mnt/c/iosuhax-master
    make cfw
     
    Last edited by ricktendo, Aug 20, 2017
  22. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,042
    8,562
    Oct 27, 2002
    France
    Engine room, learning
    why do you want to compile this old, unused anymore, firmware file ?
    if you have a reason and really want THAT old firmware, I would understand.

    if you just want to hack your console and you followed an old tutorial, just don't. there are new method to do it.
     
  23. ricktendo

    ricktendo Member

    Newcomer
    11
    0
    Jul 21, 2017
    Honduras
    I am relatively new to the scene so forgive me, I am trying to create my SD with mocha cfw and also cfwbooter (which is why I am looking to compile a fw.img of my own) to be able to play games with DLC.

    Can you maybe tell me what method you are referring to and also what fw.img source is the best to compile? (like I said not looking for anything fancy, I just want to play CFW only tittles)

    Edit: So what I gather so far, I have Haxchi installed which gives me 3 options: cfwbooter (requires fw.img,) mocha cfw and sysmenu (these last two require no fw.img)
     
    Last edited by ricktendo, Aug 20, 2017
  24. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,042
    8,562
    Oct 27, 2002
    France
    Engine room, learning
    no, you are mixing information a little.

    There are different options for you to get signature patches, in order to play DLC.

    1. IOSU Hax : OLD, DEPRECATED : firmware reloader. that's what you are trying to use. just don't.
    This one required you to dump/download the official firmware, patch it on computer with development tools, put it on SD card, and launch homebrew to reload that patched firmware.
    patched firmware image (fw.img) could be of two type : WUP server only (fix94 version) and Signature patch + NAND redirection option (Dimok version)

    2. Mocha : This one is a FULL independent homebrew. it's the updated version of "fw.img by Dimok" (the deprecated, old option just above). this one have a LOT more option than the fw.img method.
    Instead of patching the firmware yourself on computer with dev tools, the console is doing it on the fly!

    To run it, launch the homebrew launcher, and select Mocha homebrew.
    do not activate the NAND redirection, and your firmware will have the signature check patched to allow DLC, game from another region and games which are originating from eshop.

    This option is still NOT the one you should use.
    unless what you want is NAND redirection, for a real reason. if you just want to test it, just don't. you don't need it. you are not a developer, you have not a modder, you will never need NAND redirection on WiiU.

    3. signature patcher:
    There is a homebrew you can launch from the homebrew launcher which ONLY patch the signature check to allow pirated content and return to system menu.
    This is a "QUICK CFW" solution from Homebrew launcher, faster than Mocha.


    4. Haxchi : This one is the minimum you should use.
    it's a persistent hack, meaning it's installed on your console and you can use it to launch ANY homebrew without using the browser hack.
    ANY homebrew, like, for example, Mocha.
    but, DO NOT USE Haxchi to launch Mocha !!! that's unnecessary.

    Haxchi has its OWN CFW !
    Haxchi let you patch the firmware on the fly (the same way than Mocha), and it does it faster.
    Haxchi = faster Mocha.


    Haxchi has the option to either :
    - patch the system
    - launch any fw.img to patch the system (deprecated !!!! DON'T USE IT ! use the first option instead)
    - launch any homebrew

    To select the action, it allows you to press a button to detect what you want to do.
    by default, if you don't press any button, it launches the homebrew located here : sd:/wiiu/apps/homebrew_launcher/homebrew_launcher.elf
    (yes, by default, it launches the Homebrew launcher, which is itself a homebrew that Haxchi is launching)
    As you see, it's not booting mocha, it's booting the homebrew launcher, and you have to boot mocha yourself, but DON'T DO IT! DO NOT USE MOCHA!

    If you press B, and keep that B button pressed when launching haxchi, it will PATCH THE SYSTEM TO PLAY DLC !!! no need of Mocha, no need of fw.img, but need a gamepad with a working B button and a working hand so you can press it !

    But, it's a temporary patch, done on the fly by the console when you press B, and it stays up until you shutdown the console.
    you have to launch Haxchi + B again next time you want to play a game which require signature patch (any pirated content, DLC, eShop, other region, modded browser, etc.)

    If pressing B bother you, you can edit the button combo and set default (no button pressed) to patched system menu instead.


    5. CBHC : ColdBoot Haxchi
    This one is a modification of the console's system file, used to auto-boot Haxchi instead of the system menu.
    in this method, you don't need to launch haxchi yourself when you (re)boot the console ! the console is loading haxchi for you, and you don't need to press B button anymore.
    By default, CBHC is loading Haxchi in "firmware patch" mode.
    When you boot your console, you go to a Already-patched-firmware system menu.

    Boot the console -> play pirated DLC !





    So, your options are, in preference order (and, you'll notice, in "latest released" order) :
    5. Install CBHC
    OR
    4. install and launch Haxchi + B button (or edit the button layout to set the shortcut you want)
    OR
    3. browser exploit and launch Signature patcher if you don't have CBHC nor Haxchi installed
    OR
    2. Browser exploit and launch Mocha from homebrew launcher if you don't have CBHC nor Haxchi installed.

    Things you should not use:
    1. IOSU Hack


    What you should do :
    Just install CBHC, and stop worrying.
    it's a full custom firmware, like you get on other consoles (PS3, PSP, etc.)
     
    Last edited by Cyan, Aug 27, 2017