Tutorial: Compile your own USB Loader!

Discussion in 'Wii - Hacking' started by JussiPik, Apr 4, 2009.

  1. JussiPik
    OP

    JussiPik GBAtemp Regular

    Member
    264
    0
    Nov 3, 2008
    Finland
    Hi everyone! i have had so many requests of how to compile a source with devkitpro, so i decided to make a tutorial, so you all can make it your self [​IMG]


    1. First of all you need DevKitPro.install it. Download it here: DevKitPro
    2. You need the source of Waninkoko`s usb loader. Download it here:USB Loader 1.1 Source
    3. Extract the source files to c:\USBLoader
    4. Now we change the background. the background image of the USB Loader is located in c:\USBLoader\data and it`s named background (without file extension). If you edit the filename and add a file extension to it (example: background.png), you should be able to see the image. Now just replace that image with your own image and remove the file extension (.png).

    5. Open Programmers Notepad (it`s something you installed with devkitpro [​IMG] ), this is the program you use to compile the source.
    6. Click File---->Open, locate the makefile which is in c:\USBLoader and click Open.

    7.1 Let`s change the code abit:
    Locate this:
    DEVKITPRO = /opt/devkitPPC
    DEVKITPPC = /opt/devkitPPC

    Change it to:
    #DEVKITPRO = /opt/devkitPPC
    #DEVKITPPC = /opt/devkitPPC

    7.2 And now we change some more...:

    Locate this:
    $(OUTPUT).dol: $(OUTPUT).elf
    $(OUTPUT).elf: $(OFILES)

    Change it to:
    $(OUTPUT).dol: $(OUTPUT).dol
    $(OUTPUT).elf: $(OFILES)


    8. Now you are ready to compile! Yay! Click Tools---->Make and you`re done!

    now you should have an USBLoader.dol & USBLoader.elf in c:\

    test the .dol that it works with Sendelf or similar method.

    9. Enjoy your new custom USB Loader! [​IMG]

    P.S. If you want to make another USB Loader with different background do this:
    Overwrite the previous "background" file with the new one and then delete the "Build" folder inside the c:\USBLoader folder, then Tools -> Make (thx to u4wii)


    If you have something to add to this tutorial, just send a message.
     


  2. Anorhc

    Anorhc GBAtemp Regular

    Member
    287
    26
    Jan 20, 2008
    United States
    Now this is useful. The original image reeks of complete failure.
     
  3. lajd

    lajd GBAtemp Regular

    Member
    146
    0
    Apr 3, 2008
    United States
    Hi, thanks for the info, but I get this error:

    Code:
    > "make" 
    "make": *** No targets specified and no makefile found.ÂÂStop.
    
    > Process Exit Code: 2
    > Time Taken: 00:00
    Thanks
     
  4. shtonkalot

    shtonkalot Can't hold on much longer, But I'll never let go!

    Member
    955
    0
    May 28, 2006
    Gosford, Australia
    Great post!
    I'm not sure if I'll end up using this guide myself but I like the work done so far by others using their own (or others) new background pics. I think this will only lead to more so thanks!
     
  5. riddle43

    riddle43 GBAtemp Fan

    Member
    376
    0
    Nov 21, 2008
    United States
    Mich USA
    can we change the font with this in the box,the game list or are we stuck with it?? [​IMG] [​IMG]
     
  6. JussiPik
    OP

    JussiPik GBAtemp Regular

    Member
    264
    0
    Nov 3, 2008
    Finland

    Did you extract the files to c:\USBLoader?i mean the folder which was in the source package. (folder name can`t be USB-Loader_v1.1).
    so place the FILES to c:\USBLoader. not C:\USBLoader\USB-Loader_v1.1

    _____________________________________________
    @riddle43: there should be a tutorial to change a font of a program,but i don`t remember where [​IMG].
     
  7. lajd

    lajd GBAtemp Regular

    Member
    146
    0
    Apr 3, 2008
    United States

    You're right. I realized I had 2 USBloader folders, one inside the devkitpro and one in c:. The compiler seemed to default into the one in devkitpro. Once that was deleted, all worked well. Thanks, great info.
     
  8. gunslinger

    gunslinger Advanced Member

    Newcomer
    53
    0
    Apr 3, 2009
    United States
    Cool, thanks man!
     
  9. pika9323

    pika9323 GBAtemp Fan

    Member
    408
    0
    Nov 23, 2008
    Gambia, The
    Cool works for me! =)
     
  10. substring

    substring Member

    Newcomer
    13
    0
    Apr 2, 2009
    France
    Easily ? I don't think so. It displays on the standard output console, which has a default font. Any homebrew displaying to the console uses that same font so ...
     
  11. u4Wii

    u4Wii Advanced Member

    Newcomer
    56
    0
    Aug 15, 2007
    Thanks for this JussiPik. You might want to add an optional step 10 for when users want to change the background image again...

    10) Overwrite the previous "background" file with the new one and then delete the "Build" folder inside the c:\USBLoader folder, then Tools -> Make [​IMG]


    Without deleting the "Build" folder I found that it did not fully recompile and I ended up with my previous image.
     
  12. WiiMonkey

    WiiMonkey GBAtemp Fan

    Member
    408
    1
    Jan 16, 2009
    UK
    Hi, thanks for this tutorial, but I get this error:

    Code:
    > "make" 
    make[1]: *** No rule to make target `Thumbs.db.o', needed by `/c/USBLoader/USBLoader.elf'.ÂÂStop.
    "make": *** [build] Error 2
     
  13. pika9323

    pika9323 GBAtemp Fan

    Member
    408
    0
    Nov 23, 2008
    Gambia, The

    Delete the build folder.
    or maybe with the cmd "make clean"
     
  14. sparky28000

    sparky28000 GBAtemp Regular

    Member
    245
    16
    Sep 20, 2008
    Netherlands
    thnx for the tut its kinda usefull [​IMG]
     
  15. WiiMonkey

    WiiMonkey GBAtemp Fan

    Member
    408
    1
    Jan 16, 2009
    UK

    Did both mate and still the same error
     
  16. pika9323

    pika9323 GBAtemp Fan

    Member
    408
    0
    Nov 23, 2008
    Gambia, The
    Hmm try my makefile. Maybe you did an error.
    http://rapidshare.com/files/217285132/Makefile.zip
     
  17. kedest

    kedest GBAtemp Psycho!

    Member
    3,287
    110
    Feb 6, 2007
    Netherlands
    What should be changed in the source to make it read the background file from sd? So it's easier to change the skin.
     
  18. WiiMonkey

    WiiMonkey GBAtemp Fan

    Member
    408
    1
    Jan 16, 2009
    UK
  19. pika9323

    pika9323 GBAtemp Fan

    Member
    408
    0
    Nov 23, 2008
    Gambia, The
  20. WiiMonkey

    WiiMonkey GBAtemp Fan

    Member
    408
    1
    Jan 16, 2009
    UK
    Its upto date