Hacking Tutorial: Compile your own USB Loader!

  • Thread starter Thread starter JussiPik
  • Start date Start date
  • Views Views 21,073
  • Replies Replies 86

JussiPik

Well-Known Member
Member
Joined
Nov 3, 2008
Messages
264
Reaction score
0
Trophies
1
XP
108
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
wink.gif



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
wink.gif
), 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!
smile.gif


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.
 
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
 
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!
 
lajd said:
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


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
biggrin.gif
.
 
JussiPik said:
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
biggrin.gif
.


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.
 
riddle43 said:
can we change the font with this in the box,the game list or are we stuck with it??
moogle.gif
moogle.gif
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 ...
 
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
smile.gif



Without deleting the "Build" folder I found that it did not fully recompile and I ended up with my previous image.
 
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
 
WiiMonkey said:
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


Delete the build folder.
or maybe with the cmd "make clean"
 
pika9323 said:
WiiMonkey said:
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


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


Did both mate and still the same error
 
What should be changed in the source to make it read the background file from sd? So it's easier to change the skin.
 

Site & Scene News

Popular threads in this forum