gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > rebootlib 1.1 not working on R4

#147823 - DSfriol - Fri Dec 28, 2007 5:06 pm

Hello.

I've tried the rebootlib test application (rebootlib_1.1r.nds) on my Nintendo DS Lite with R4 flashcart, and it doesn't seem to work. When I run the program, the screen becomes green and then, even pressing all the buttons, remains the same (the DS does *not* reboot).

Am I doing something wrong?
I even dldi'd the .nds file, but with the same result.

Thanks in advance.

#147833 - Lick - Fri Dec 28, 2007 9:16 pm

Rebootlib 1.1 does not work for R4. The procedure was flawed and never fixed by the lib's author, because the lack of hardware and interest. The lib's author currently doesn't maintain the lib and anyone who wants to take over will receive the support and rights to do so.

By the way, I do not own a DS anymore.
_________________
http://licklick.wordpress.com

#147846 - DSfriol - Sat Dec 29, 2007 1:15 am

Why did you give you DS away, man? 8-D

Anyway, I was just searching for a "simple" way to reboot a DS with R4.
Is there such a thing?

Many thanks.

#147850 - Lick - Sat Dec 29, 2007 2:32 am

Check out this file: http://www009.upp.so-net.ne.jp/rudolph/nds/Moonshl/reset_mse06b.zip

Perhaps you can improve Rebootlib. ;)
_________________
http://licklick.wordpress.com

#147868 - DSfriol - Sat Dec 29, 2007 10:48 am

The solution you provided worked.

I had to comment the flashcart identification function, indeed, because it was not working correctly. This was the function:

Code:

bool MSE_GetMSEINFO(TMSEINFO *pMSEINFO)
{
  u16 _VRAM_C_CR=VRAM_C_CR;
  u16 _VRAM_D_CR=VRAM_D_CR;
 
  VRAM_C_CR = VRAM_ENABLE | _VRAM_CD_MAIN_BG_0x6000000;
  VRAM_D_CR = VRAM_ENABLE | _VRAM_CD_MAIN_BG_0x6020000;
 
  u16 *psrc=(u16*)MSEINFO_ADDR;
  u16 *pdst=(u16*)pMSEINFO;
 
  for(u32 idx=0;idx<MSEINFO_SIZE/2;idx++){
    pdst[idx]=psrc[idx];
  }
 
  VRAM_C_CR=_VRAM_C_CR;
  VRAM_D_CR=_VRAM_D_CR;
 
  if(pMSEINFO->EID!=MSEINFO_EID) return(false);
 
  return(true);
}


it returned "false" (the last check was failing), dunno why (as said I have a DS Lite with R4).

Now I will look at putting this code in the R4 section of rebootlib...

#147910 - DSfriol - Sun Dec 30, 2007 11:40 am

I have put the version of rebootlib integrated with rudolph's code for R4 reset here:

http://dantonag.googlepages.com/rebootlib1.2alpha.zip

I hope I didn't broke the other reset code 8-D
Unfortunately, reboot+run .nds does not work with R4, still.

Thank you

#147914 - pas - Sun Dec 30, 2007 2:39 pm

Lick, did you have a reason to sell your DS ?

#147916 - Lick - Sun Dec 30, 2007 3:01 pm

I did not sell it, I lent it to someone and he lost it. :)
_________________
http://licklick.wordpress.com

#148452 - eadmaster - Sat Jan 05, 2008 11:10 pm

Can you add support for EZ5 too?
I will test and report to you if it works.

#148520 - DSfriol - Sun Jan 06, 2008 6:17 pm

If I have time... I don't have that hardware, so it would be better if *you* integrated the library with the EZ5 code, since you can test it...