Advertising (This ad goes away for registered users. You can Login or Register)

[Suggestion] HBL as signed EBOOT

This is the development forum of the half-byte loader project. For general Half Byte Loader questions, visit the Half Byte Loader forum.
Forum rules
This forum is for HBL Development discussions ONLY. For User support or HBL general discussions, go to viewforum.php?f=3 . Messages that are not development related will be deleted.
JJS
Big Beholder
Posts: 1416
Joined: Mon Sep 27, 2010 2:18 pm
Contact:

Re: [Suggestion] HBL as signed EBOOT

Post by JJS » Thu Jan 20, 2011 2:17 pm

Alright, something like this should work. It is still pretty rough, things that could be optimized are
- the hbl load address could be higher
- the p5 stubs don't have to be parsed
- function hooks are mostly unnecessary, but have to be controlled by a different flag than g->syscalls_known (because setting it has sideeffects)
- the launcher has more imports than are needed because I just used prxtool to build import stubs from 3.x kernel modules and then removed those without a known name

There are no changes to the HBL files except for a new exploit directory and I removed the -Werror flag from the compiler because otherwise it complains because of the empty arrays in exploit_config.h.
Advertising
Attachments
signedhbl_patch.zip
(12.57 KiB) Downloaded 176 times

wololo
Site Admin
Posts: 3615
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: [Suggestion] HBL as signed EBOOT

Post by wololo » Thu Jan 20, 2011 10:58 pm

Will try that tonight.
I guess it's fine to add this to the SVN.

Regarding the Werror flag, how about not defining the arrays at all, and use a "#ifdef ..." around each "memory cleaning" function in memory.cpp?
Advertising
If you need US PSN Codes, this technique is what I recommend.

Looking for guest bloggers and news hunters here at wololo.net, PM me!

i_love_redsn0w
Banned
Posts: 29
Joined: Sat Jan 08, 2011 1:54 pm

Re: [Suggestion] HBL as signed EBOOT

Post by i_love_redsn0w » Fri Jan 21, 2011 12:23 pm

m0skit0 wrote:Maybe converting HBL into an EBOOT and signing him will allow for easier homebrew running from HBL, so you don't have to pass through a demo exploit to launch HBL. This would get rid for the need of any exploit, and also from all the cleaning since we already know what has to be cleaned :mrgreen:

But I'm thinking also that HBL won't have its "syscall information charge" to be able to resolve the homebrews, but HBL can include any number of imports to be resolved by the OFW kernel as well.
i think there would be no point for this because we can sign usermode homebrews

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: [Suggestion] HBL as signed EBOOT

Post by m0skit0 » Fri Jan 21, 2011 12:42 pm

Not all homebrews can be signed yet.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

Strangelove
Posts: 286
Joined: Thu Nov 25, 2010 6:32 pm

Re: [Suggestion] HBL as signed EBOOT

Post by Strangelove » Sat Jan 22, 2011 4:18 am

i_love_redsn0w wrote:
m0skit0 wrote:Not all homebrew can be signed yet.
if i was correctly informed all USERMODE homebrew can be signed
all usermode homebrew under 5 MB give or take. i don't know why there is a magic limit, my guess is rekeying.
"If you have specific questions ... don't hesitate to ask as the more generic the question is the more philosophic the answer will be" - PSPWizard

JJS
Big Beholder
Posts: 1416
Joined: Mon Sep 27, 2010 2:18 pm
Contact:

Re: [Suggestion] HBL as signed EBOOT

Post by JJS » Sat Jan 22, 2011 8:08 am

Discuss the signing somewhere else please. (Also what prevents most homebrews from being successfully signed is that they are compiled as static ELFs)

kidz axe
Posts: 353
Joined: Sun Oct 03, 2010 3:48 pm
Location: http://kidz-axe.co.cc/forum/
Contact:

Re: [Suggestion] HBL as signed EBOOT

Post by kidz axe » Sat Jan 22, 2011 1:33 pm

I dunno if i can say this but, 6.20 TN HEN is signed, and so is 6.35 or 6.31 HEN Pro are signed.
So im not sure people use HBL that much.
But the idea is awesome!
Also one the side note. i took out the wmenu from the normal hbl revs and ran it, but all that graphics stuff werent there, just a list of homebrews with a black background?
Can someone help me understand why?
:)

wololo
Site Admin
Posts: 3615
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: [Suggestion] HBL as signed EBOOT

Post by wololo » Sat Jan 22, 2011 1:52 pm

kidz axe wrote:I dunno if i can say this but, 6.20 TN HEN is signed, and so is 6.35 or 6.31 HEN Pro are signed.
So im not sure people use HBL that much.
This will be useful for people running on 6.37 who can't bother looking for a signed version of all their favorite homebrews. They can run unsigned homebrews from HBL, and signed homebrews from the XMB, without bothering signing them
Also one the side note. i took out the wmenu from the normal hbl revs and ran it, but all that graphics stuff werent there, just a list of homebrews with a black background?
Can someone help me understand why?
Are you sure you copied the Res folder completely? Anyways, wMenu by itself is not very useful...
If you need US PSN Codes, this technique is what I recommend.

Looking for guest bloggers and news hunters here at wololo.net, PM me!

wololo
Site Admin
Posts: 3615
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: [Suggestion] HBL as signed EBOOT

Post by wololo » Sun Jan 23, 2011 2:13 am

JJS wrote:Alright, something like this should work. It is still pretty rough, things that could be optimized are
- the hbl load address could be higher
- the p5 stubs don't have to be parsed
- function hooks are mostly unnecessary, but have to be controlled by a different flag than g->syscalls_known (because setting it has sideeffects)
- the launcher has more imports than are needed because I just used prxtool to build import stubs from 3.x kernel modules and then removed those without a known name

There are no changes to the HBL files except for a new exploit directory and I removed the -Werror flag from the compiler because otherwise it complains because of the empty arrays in exploit_config.h.
I couldn't get it to work on OFW 6.37.
I have to dig deeper, but the symptoms are the following:
The Sony gameboot starts, then black screen, no error message, no memstick activity.
Therefore this doesn't look like a problem on the HBL side, but more the signed Eboot itself.

It's very possible that I incorrectly signed the thing (I have so many versions of the various tools right now...), care to share your signed launcher EBOOT?

Edit: my bad, after adding some debugging, what's not working for me seems to be located in h.bin.
Even the first debug statement is not generated, so I'm assuming something very bad is happening at compile time.
If you need US PSN Codes, this technique is what I recommend.

Looking for guest bloggers and news hunters here at wololo.net, PM me!

bryan1001
Posts: 56
Joined: Tue Oct 12, 2010 3:09 am

Re: [Suggestion] HBL as signed EBOOT

Post by bryan1001 » Sun Jan 23, 2011 3:38 am

The Reason Menus for HBL wouldn't work is because the Menus don't load Homebrew, it just tells HBL to load that Homebrew, so If theres no loader, then when you click on an Homebrew, It will return to the XMB, since there is no Program to load the Actual Homebrew.

Post Reply

Return to “Half Byte Loader Development”