Tutorial: Compile your own USB Loader!

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

Apr 4, 2009
  1. JussiPik
    OP

    Member JussiPik GBAtemp Regular

    Joined:
    Nov 3, 2008
    Messages:
    264
    Country:
    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

    Member Anorhc GBAtemp Regular

    Joined:
    Jan 20, 2008
    Messages:
    284
    Country:
    United States
    Now this is useful. The original image reeks of complete failure.
     
  3. lajd

    Member lajd GBAtemp Regular

    Joined:
    Apr 3, 2008
    Messages:
    146
    Country:
    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

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

    Joined:
    May 28, 2006
    Messages:
    954
    Location:
    Gosford, Australia
    Country:
    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

    Member riddle43 GBAtemp Fan

    Joined:
    Nov 21, 2008
    Messages:
    374
    Location:
    Mich USA
    Country:
    United States
    can we change the font with this in the box,the game list or are we stuck with it?? [​IMG] [​IMG]
     
  6. JussiPik
    OP

    Member JussiPik GBAtemp Regular

    Joined:
    Nov 3, 2008
    Messages:
    264
    Country:
    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

    Member lajd GBAtemp Regular

    Joined:
    Apr 3, 2008
    Messages:
    146
    Country:
    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

    Newcomer gunslinger Advanced Member

    Joined:
    Apr 3, 2009
    Messages:
    53
    Country:
    United States
    Cool, thanks man!
     
  9. pika9323

    Member pika9323 GBAtemp Fan

    Joined:
    Nov 23, 2008
    Messages:
    408
    Country:
    Germany
    Cool works for me! =)
     
  10. substring

    Newcomer substring Member

    Joined:
    Apr 2, 2009
    Messages:
    13
    Country:
    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

    Newcomer u4Wii Advanced Member

    Joined:
    Aug 15, 2007
    Messages:
    56
    Country:
    United Kingdom
    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

    Member WiiMonkey GBAtemp Fan

    Joined:
    Jan 16, 2009
    Messages:
    408
    Location:
    UK
    Country:
    United Kingdom
    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

    Member pika9323 GBAtemp Fan

    Joined:
    Nov 23, 2008
    Messages:
    408
    Country:
    Germany

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

    Member sparky28000 GBAtemp Regular

    Joined:
    Sep 20, 2008
    Messages:
    241
    Country:
    Netherlands
    thnx for the tut its kinda usefull [​IMG]
     
  15. WiiMonkey

    Member WiiMonkey GBAtemp Fan

    Joined:
    Jan 16, 2009
    Messages:
    408
    Location:
    UK
    Country:
    United Kingdom

    Did both mate and still the same error
     
  16. pika9323

    Member pika9323 GBAtemp Fan

    Joined:
    Nov 23, 2008
    Messages:
    408
    Country:
    Germany
    Hmm try my makefile. Maybe you did an error.
    http://rapidshare.com/files/217285132/Makefile.zip
     
  17. kedest

    Member kedest GBAtemp Psycho!

    Joined:
    Feb 6, 2007
    Messages:
    3,283
    Country:
    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

    Member WiiMonkey GBAtemp Fan

    Joined:
    Jan 16, 2009
    Messages:
    408
    Location:
    UK
    Country:
    United Kingdom
  19. pika9323

    Member pika9323 GBAtemp Fan

    Joined:
    Nov 23, 2008
    Messages:
    408
    Country:
    Germany
  20. WiiMonkey

    Member WiiMonkey GBAtemp Fan

    Joined:
    Jan 16, 2009
    Messages:
    408
    Location:
    UK
    Country:
    United Kingdom
    Its upto date
     

Share This Page