MathewWi / dop-iosmod

Automatically exported from code.google.com/p/dop-iosmod
0 stars 0 forks source link

TBR Broken with rev35/36 #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Select "Install IOS that accepts fakesigning"

The dialog comes up asking which IOS to use, select IOS 36 and press A

App skips immediately to the "If you have installed an IOS that accepts 
fakesigning.....Press A to return to your loader" prompt without doing 
anything.

It all happens instantly, but I believe it is failing at loading the selected 
IOS.

Original issue reported on code.google.com by old8oy%k...@gtempaccount.com on 28 Dec 2009 at 1:10

GoogleCodeExporter commented 9 years ago
Yes, that should all be taken care of now. For some reason, I accidentally 
erased
calling the main function inbetween the conclusionary text and the IOS loading 
function.

Original comment by castleva...@yahoo.com on 28 Dec 2009 at 2:23

GoogleCodeExporter commented 9 years ago
rev37 allows for IOS selection but fails on IOS15 downgrade install selecting 
either 
IOS36 or pressing B for "No IOS Reload".

Downloads and patches both revisions of IOS15 just fine but fails when it tries 
to 
install it.

Original comment by old8oy%k...@gtempaccount.com on 28 Dec 2009 at 3:02

GoogleCodeExporter commented 9 years ago
Does the actual trucha bug restorer application work for you? (
http://wiibrew.org/wiki/Trucha_Bug_Restorer )

This is literally a direct copy and paste of the full trucha bug restorer
application. Not a single line of code from it (aside from the title display) 
has
been omitted or changed or reordered.

Original comment by castleva...@yahoo.com on 28 Dec 2009 at 3:36

GoogleCodeExporter commented 9 years ago
Here are my test results for r37. 

SD Method
1. IOS36 to downgrade IOS15 
   i. Hitting A then Downgrade IOS 15 would bring me directly to the "returning to 
loader screen". 
   ii. Hitting B works as expected.
2. IOS15 to Patch IOS36
   i. Hitting A gives me the same results as above
   ii. Hitting B gives me the same results as above
3. When Restoring IOS 15 I had to hit B on IOS 36
   i. Hitting A gives me the same results as above
   ii. Hitting B gives me the same results as above

NUS Method
1. With or Without IOS Reload I cannot downgrade IOS 15 from IOS 36 so I am 
stuck 
here.

Original comment by jptra...@gmail.com on 28 Dec 2009 at 3:37

GoogleCodeExporter commented 9 years ago
Hey CastleVa.. To answer your other question above. Yes wiipower's application 
works. This is why I have been testing your version out because I would like to 
have 
all the patches in 1 application ;)

Original comment by jptra...@gmail.com on 28 Dec 2009 at 3:39

GoogleCodeExporter commented 9 years ago
So the actual SD method DOES work then?

I'm looking into seeing what could be causing NUS to not to work.

Original comment by castleva...@yahoo.com on 28 Dec 2009 at 3:42

GoogleCodeExporter commented 9 years ago
Yes. To confirm it worked I did the following.
After downgrading IOS 15 I went into IOS 249 and it showed v257 on IOS 15.
After Patching IOS 36 I loaded IOS 36 then patched IOS 70
After restoring IOS 15 I went back to IOS 36 and it showed v523.

But like I said before in order for it to work I had to ALWAYS hit B to make 
sure 
the IOS doesn't reload.

Original comment by jptra...@gmail.com on 28 Dec 2009 at 3:46

GoogleCodeExporter commented 9 years ago
Hey CV. I was thinking and looking over the code. It doesn't appear you ahve 
any 
sort of debug to logfile dump going. I think it may help you out if we could 
send 
you what the console is showing when an error occurs. IE I know that there is 
an 
error during the NUS method, however I cannot capture it in time as it flashes 
on 
the screen too fast. 

OR instead of exiting DOP-IOS, make it stop at the exception and force us to 
hit A 
or something so that we can see what error is coming up and send it to you. ;)

Original comment by jptra...@gmail.com on 28 Dec 2009 at 4:07

GoogleCodeExporter commented 9 years ago
I just tried NUS myself on my friends Wii and... It worked? We had to restart 
the app
once to complete the full process, but we did successfully install an IOS 36 
that
accepts fakesigning. We even installed a WAD with it, which we couldn't do 
before
with IOS 36.

Granted, your Wii may be a different model and/or on a different firmware then 
ours
which could be messing things up for you perhaps? I honestly don't know. 

I guess I'm trying to ask you to just try one or two more times make 100% 
certain
you're doing everything correctly. If it still fails, grab TBR and do whatever 
you're
doing on Dop-IOS MOD on TBR and see if works or fails on there.

Original comment by castleva...@yahoo.com on 28 Dec 2009 at 3:01

GoogleCodeExporter commented 9 years ago
Will do. Also I may try something different this time. I've been loading HBC 
from 
BootMii instead of the System Menu. I'm going to try it via System Menu and see 
if 
it makes a difference. In theory it shouldn't but you never know.

I know you said all you're doing is copying wiipower's code directly but it's 
just 
weird that wiipower's version always works for me.

Anywho let me test this route out and I'll let you know my results in a little 
while.

Original comment by jptra...@gmail.com on 28 Dec 2009 at 4:22

GoogleCodeExporter commented 9 years ago
Naw System menu route didn't work either. Out of Curiosity. What version of 
DevKitPPC are you compiling with. I'm using R19 so I'm wondering if maybe there 
is a 
difference in the APIs.

Original comment by jptra...@gmail.com on 28 Dec 2009 at 4:55

GoogleCodeExporter commented 9 years ago
Hey CV. I added a sleep statement on my side so that I could catch the error 
message. The error I get back when trying to downgrade IOS 15 from NUS is.

"ES_AddContentData for Content #0 cid 0 returned: -4353"

Original comment by jptra...@gmail.com on 28 Dec 2009 at 5:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hey CV another thing. Are you using the standard libogc? I was looking at 
wiipower's 
source and apparently he is using a modified version of it.

"
Trucha Bug Restorer 1.11 is compiled with devKitPPC r19 and a patched libogc.
To rebuild the used libogc, get libogc r3821 from svn
(https://devkitpro.svn.sourceforge.net/svnroot/devkitpro/trunk/libogc)
and replace s32 __IOS_LaunchNewIOS(int version) with the one from libogc 1.7.1:
"

Original comment by jptra...@gmail.com on 28 Dec 2009 at 6:12

GoogleCodeExporter commented 9 years ago
I use a standard r19 libogc. WiiPowers patch simply fixes a crash that occurs 
when
you call IOS_ReloadIOS() too many times.

I'll see if I can get giantpune to take a look at things. I've done all I can 
unless
I come across some glaring error.

Original comment by castleva...@yahoo.com on 28 Dec 2009 at 6:34

GoogleCodeExporter commented 9 years ago
Understood. I'm still getting familiar with the Wii code so you'll be better 
than me 
on troubleshooting. ;) I'll keep digging thought to see if something jumps out 
at 
me, unless you find it sooner of course.

Original comment by jptra...@gmail.com on 28 Dec 2009 at 6:49

GoogleCodeExporter commented 9 years ago
Found Something!!!!. Replaced http.c and http.h with wiipower's version now NUS 
is 
working. There is something between your version and his version preventing it. 
About to diff them and see if I can figure out what may be the issue.

Original comment by jptra...@gmail.com on 28 Dec 2009 at 7:01

GoogleCodeExporter commented 9 years ago
OK Below are the following changes I made and it is now working for NUS. I 
think the 
main culprit is that you were using signed integers and wiipower is using 
unsigned 
integers. However I just replaced what was obviously different except for 
printf 
statements and it works.

In http.c

Line 56
OLD: char * tcp_readln (const s32 s, const u16 max_length, const s64 start_time,
 const u16 timeout)
NEW: char * tcp_readln (const s32 s, const u16 max_length, const u64 
start_time, 
const u16 timeout)

Line 134
OLD: buf = (char *) malloc (max_length);
NEW: buf = (char *) memalign (32, max_length);

Line 315
OLD: char *request = (char *) malloc (1024);
NEW: char *request = (char *) memalign (32, 1024);

Line 330:
OLD: char *line = tcp_readln (s, 0xff, gettime(), HTTP_TIMEOUT);
NEW: char *line = tcp_readln (s, 0xff, gettime(), (u16)HTTP_TIMEOUT);

Line 363:
OLD: http_data = (u8 *) malloc (content_length);
NEW: http_data = (u8 *) memalign (32, content_length);

In http.h
OLD: char * tcp_readln (const s32 s, const u16 max_length, const s64 start_time,
 const u16 timeout)
NEW: char * tcp_readln (const s32 s, const u16 max_length, const u64 
start_time, 
const u16 timeout)

Original comment by jptra...@gmail.com on 28 Dec 2009 at 7:17

GoogleCodeExporter commented 9 years ago
You... are... a... GOD!!!

Thank you very, very, very, much!!!

Thanks to you, there will now be a new release of Dop-IOS MOD shortly after the 
next
commit with your changes.

Original comment by castleva...@yahoo.com on 28 Dec 2009 at 8:37

GoogleCodeExporter commented 9 years ago
In the r38 commit I ended up just replacing http.c and http.h with WiiPower's
version. Thanks for providing the line by line difference though :-)

Also, if you're interested, I'm willing to add you as a committer to the 
project.

Original comment by castleva...@yahoo.com on 28 Dec 2009 at 8:42

GoogleCodeExporter commented 9 years ago
Lol Not a problem. I have a feeling this has been your problem with NUS all 
along.

If you want to add me as a commiter add lunatik.cn@gmail.com. I rather not have 
my 
normal email as a commiter ;)

Original comment by jptra...@gmail.com on 28 Dec 2009 at 9:15

GoogleCodeExporter commented 9 years ago
Kewl.

I've added you as a committer now. Thanks to you, I can now close this and a 
bunch of
other issues :-)

Original comment by castleva...@yahoo.com on 28 Dec 2009 at 10:12