Hacking Tutorial: Compile your own USB Loader!

JussiPik

Well-Known Member
OP
Member
Joined
Nov 3, 2008
Messages
264
Trophies
0
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.
 

lajd

Well-Known Member
Member
Joined
Apr 3, 2008
Messages
146
Trophies
0
XP
187
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
 

shtonkalot

Can't hold on much longer, But I'll never let go!
Member
Joined
May 28, 2006
Messages
969
Trophies
1
Location
Gosford, Australia
Website
Visit site
XP
389
Country
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!
 

JussiPik

Well-Known Member
OP
Member
Joined
Nov 3, 2008
Messages
264
Trophies
0
XP
108
Country
Finland
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
.
 

lajd

Well-Known Member
Member
Joined
Apr 3, 2008
Messages
146
Trophies
0
XP
187
Country
United States
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.
 

substring

Member
Newcomer
Joined
Apr 2, 2009
Messages
13
Trophies
0
XP
1
Country
France
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 ...
 

u4Wii

Well-Known Member
Newcomer
Joined
Aug 15, 2007
Messages
56
Trophies
0
XP
202
Country
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.
 

WiiMonkey

Well-Known Member
Member
Joined
Jan 16, 2009
Messages
408
Trophies
0
Age
45
Location
UK
Website
Visit site
XP
163
Country
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
 

pika9323

Well-Known Member
Member
Joined
Nov 23, 2008
Messages
409
Trophies
0
XP
112
Country
Gambia, The
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"
 

WiiMonkey

Well-Known Member
Member
Joined
Jan 16, 2009
Messages
408
Trophies
0
Age
45
Location
UK
Website
Visit site
XP
163
Country
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
 

pika9323

Well-Known Member
Member
Joined
Nov 23, 2008
Messages
409
Trophies
0
XP
112
Country
Gambia, The

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: So negative