I Need help with making a mod of CFW Booter

Discussion in 'Wii U - Homebrew' started by Rubberduckycooly, Nov 22, 2016.

  1. Rubberduckycooly
    OP

    Rubberduckycooly Advanced Member

    Newcomer
    60
    26
    Nov 21, 2016
    i am trying to make a mod of CFW booter called RedNAND Booter and what it does is boots a file called RedNAND.img (this is so people like myself can use a seperate booter to boot redNAND while using the regular CFW booter to boot a patched sysNAND, with out swapping fw.img files)

    i have the source code and i need help finding the bit in the code where it loads the fw.img file so i can modify it

    (this is my first real wii U homebrew related project so any help is appreciated!)
    ;)
     
    Last edited by Rubberduckycooly, Nov 22, 2016
  2. x65943

    x65943 Resident Greekaboo, Amateur Dog Father

    Member
    2,465
    1,972
    Jun 23, 2014
    United States
    Indiana
    Last edited by x65943, Nov 22, 2016
  3. veraci_00

    veraci_00 GBAtemp Fan

    Member
    408
    33
    Mar 6, 2016
    United States
    your best option is to use haxchi. it will boot different fw.img depending upon what button u press (if any).
     
  4. Yardape8000

    Yardape8000 GBAtemp Regular

    Member
    289
    278
    Feb 26, 2011
    United States
    Um, no. It needs to be called fw.img.
    You can put them in separate paths.
    Haxchi 1.7 already has a config file for this.
     
  5. Leeful

    Leeful GBAtemp Regular

    Member
    123
    158
    Sep 4, 2015
    The rednand firmware still needs to be called fw.img (as mentioned before) but you can just put it in a folder called rednand.

    The bit of code to change is in arm_kernel/source/main.c lines 42 and 93.

    change line 42 to: static const char sd_path[] = "/vol/sdcard/rednand";
    change line 93 to: if (i < 21)

    As said before Haxchi 1.7 already can do this but if you just wanted a modified version of cfw booter this works.

    attached is a compiled elf that loads /rednand/fw.img
     

    Attached Files:

  6. raggaro5

    raggaro5 Newbie

    Newcomer
    2
    10
    Nov 22, 2016
    United States

    Loved Your edit thought i was the only one who wanted something like this so i added a quick icon image for the homebrew channel and just edited the xml a bit for cfw booter to make a nicer app. this is awesome
     

    Attached Files: