how to compile red nand fw.img?

Discussion in 'Wii U - Hacking & Backup Loaders' started by tunip3, Nov 14, 2016.

  1. tunip3
    OP

    tunip3 [debugger active]

    Member
    831
    149
    Oct 31, 2016
    United Kingdom
    does any body how to compile rednand as the make command continues to fail for me and does anybody know weather the wupserver fw.img has sig patches as i have come across a few that are non otp key based that allow for the use of wup server
     


  2. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,275
    Jan 28, 2016
    United States
    Wupserver has sig patches yes. To compile it:
    http://gbatemp.net/threads/building-iosuhax-on-windows.447023/
     
  3. tunip3
    OP

    tunip3 [debugger active]

    Member
    831
    149
    Oct 31, 2016
    United Kingdom
  4. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,275
    Jan 28, 2016
    United States
  5. tunip3
    OP

    tunip3 [debugger active]

    Member
    831
    149
    Oct 31, 2016
    United Kingdom
  6. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,275
    Jan 28, 2016
    United States
    I can't help you sadly.
     
  7. tunip3
    OP

    tunip3 [debugger active]

    Member
    831
    149
    Oct 31, 2016
    United Kingdom
    have you compiled your own rednand or fix 94 isou
     
  8. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,275
    Jan 28, 2016
    United States
    I had a friend compile mine for fix94.
     
  9. tunip3
    OP

    tunip3 [debugger active]

    Member
    831
    149
    Oct 31, 2016
    United Kingdom
    sorry i was gonna ask if you could compile mine as i have tried about 10 times to compile my own
     
  10. xtheman

    xtheman GBAtemp Guru

    Member
    5,847
    5,275
    Jan 28, 2016
    United States
    It is illegal to share.
     
  11. tunip3
    OP

    tunip3 [debugger active]

    Member
    831
    149
    Oct 31, 2016
    United Kingdom
    According to another forum member a rednand is universal as the otp keys only contain the comon and and ancast keys is this true
     
  12. kittensauce

    kittensauce Got a spare screen?

    Member
    199
    64
    Mar 22, 2016
    United States
    That's partially true; the OTP contains the universal Common and Starbuck Ancast keys, along with pretty much every other key. However, these keys are copyrighted, which means we can't tell you them (at least not legally). Making the fw.img uses the Common and Starbuck Ancast keys, and as such, it is illegal to share.
     
    Last edited by kittensauce, Nov 14, 2016
  13. tunip3
    OP

    tunip3 [debugger active]

    Member
    831
    149
    Oct 31, 2016
    United Kingdom
    Thank you
     
  14. kittensauce

    kittensauce Got a spare screen?

    Member
    199
    64
    Mar 22, 2016
    United States
    No problem :)
    By the way, if you're able to use VirtualBox, I believe I may be able to upload a Linux VM that contains all utilities to build IOSUHax, excluding the copyrighted keys. Since it's all freeware and open source, I'm sure it's permitted... but first, I'll check the rules, just to be sure :)
     
    Last edited by kittensauce, Nov 15, 2016
    tunip3 likes this.
  15. tunip3
    OP

    tunip3 [debugger active]

    Member
    831
    149
    Oct 31, 2016
    United Kingdom
    Thank you and yeah I can use virtual box
     
  16. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,272
    8,745
    Oct 27, 2002
    France
    Engine room, learning
    yes, you can share that linux VM. it may even help more users who don't have the proper setup.
    like you said, just exclude the keys and you are fine.
    Make it easy to access, or see at launch, with a nice tutorial or bash so users are guided and not lost again.


    Though, I'm wondering why you have a problem with fix94's guide.
    Maybe we could improve the guide as more users could have the same issue than you.
    what exactly happens? how does it fail?

    if it's command unknown, then it's a missing environment variable, maybe you need to reboot or be sure the environment variable has been added, else add it manually or even in the command line window before typing "make" to compile by typing : SET DEVKITPRO=/c/devkitPro/ (or any other path where you installed it), same with DEVKITARM=/c/devkitPro/devkitARM/, and then SET PATH=%PATH%;c:\devkitPro\msys\bin
    but you'd better add them directly to your global environment variable instead of typing it every time before compiling. (if you type them in a command line window, it's affecting only THAT window, no other command line windows)

    if it's an error while compiling, we can also help but you need to tell which error you get.

    (I didn't check if you already reported that issue in any other thread, maybe you already got help and it wasn't enough)
     
  17. tunip3
    OP

    tunip3 [debugger active]

    Member
    831
    149
    Oct 31, 2016
    United Kingdom
    upload_2016-11-15_16-26-25.png




    i get this error when installing devkit pro

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

    upload_2016-11-15_16-28-42.png



    but after i close the error it says this

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

    upload_2016-11-15_16-32-49.png


    and the variables are there
     
  18. kittensauce

    kittensauce Got a spare screen?

    Member
    199
    64
    Mar 22, 2016
    United States
    Great! I'll just make a simple script to clone and compile everything (as to not have FIX94's IOSUHax pre-included, just in case), and eventually copy the built files to the guest desktop. Afterwards I'll have the user run another script to set up Guest Additions, with it eventually telling the user how to copy the files to their host's desktop. I suppose making a script that isn't included in a VM would be a bit easier, but some people might not know how to install Linux... it's just a little harder than installing the VM through the OVA, though, but I'm trying to keep it at the absolute minimum :)

    By the way, do you know if it's possible to have the build script ask the user to input the keys from the script itself? Maybe through a Vi or Nano command... hm.
     
  19. tunip3
    OP

    tunip3 [debugger active]

    Member
    831
    149
    Oct 31, 2016
    United Kingdom
    What if you set it up so that you put the script and the otp.bin file in the same folder it uses the otp.bin and then places the fw.img in the folder with the otp.bin and the script
     
  20. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,272
    8,745
    Oct 27, 2002
    France
    Engine room, learning
    you are right, script to download latest ghithub is better instead of providing a fixed release and having to update the VM manually.

    I don't know linux, so I can't help you with the commands, but there are probably a way to ask input from the user.
    Another way is like tunip3 said. You could ask the user to dump its OTP (it will be useful in the future anyway, why not doing it?).

    So, step 1 : get your keys ! launch HBL OTP dumper, put otp.bin somewhere in your script's folder. a place where both Fix94 and Dimok branch (and maybe future branch) can use it at the same time.
    step 2 : retrieve git repository
    step 3 : when launching the compilation, copy the otp.bin from the "user's place" into the correct branch's folder so the user will not have to edit the .py file, right?
    it's easier to make your script copy the bin to the correct folder, so the user always keep its single file at the same place, outside the git sources.