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
  • Psionic Roshambo @ Psionic Roshambo:
    "pine unf apple" doesn't count! Lol
  • Psionic Roshambo @ Psionic Roshambo:
    Employee code of conduct videos are awesome!!! Did you know eating the other employees is bad? I didn't know... Lol
    +1
  • AncientBoi @ AncientBoi:
    Anymore males there? :blush:
  • Psionic Roshambo @ Psionic Roshambo:
    All of us lol
  • Psionic Roshambo @ Psionic Roshambo:
    I got free every channel so that's awesome lol
    +1
  • AncientBoi @ AncientBoi:
    Give me ALL the gay pron channels, since you won't be watching them :blush::D
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Lol they exist?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Hmmm so Mario Does Luigi's plumbing is a bad movie? Lol
  • Psionic Roshambo @ Psionic Roshambo:
    These videos are soooo dry
  • Psionic Roshambo @ Psionic Roshambo:
    Please click all suspicious links sent your email
    +1
  • BigOnYa @ BigOnYa:
    What to do today? Cut grass for 3-4 hours, or just get drunk and play video games... Hmm
    +1
  • BigOnYa @ BigOnYa:
    I need a remote controlled mower, so I can sit on the couch and do both.
  • BigOnYa @ BigOnYa:
    Sounds good to me, video games and booze it is then.
    +1
  • denpafan @ denpafan:
    Good choice
    +1
  • BigOnYa @ BigOnYa:
    Now what to play, Starfield or Fallout4. And what to drink, beer or Whiskey and Coke. Such tough decisions.
  • BigOnYa @ BigOnYa:
    Looks like its whiskey & coke, only 4 beers left. And think ill start with Falllout. :grog:
  • rqkaiju2 @ rqkaiju2:
    THIS IMAGE IS SO SCARY WTF. THAT SURE AS HELL IS NOT A CAT THATS LIKE A FUCKING DEMON

    Untitled2.png
  • Psionic Roshambo @ Psionic Roshambo:
    Bonus points for running things over with the lawn mower?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Monster truck Lawn Mower extreme
    +1
  • BakerMan @ BakerMan:
    she was an apple appstore girl
    he was an uptodown boy
  • Psionic Roshambo @ Psionic Roshambo:
    He was an android boy
    Psionic Roshambo @ Psionic Roshambo: He was an android boy