Comments on: 3.80 and Pandora http://my.malloc.us/silverspring/2007/12/380-and-pandora/ SilverSpring's bunch of random PSP stuff... Sat, 20 Feb 2010 00:43:45 +0000 hourly 1 http://wordpress.org/?v=3.0.1 By: silverspring http://my.malloc.us/silverspring/2007/12/380-and-pandora/comment-page-1/#comment-1665 silverspring Thu, 08 May 2008 08:01:25 +0000 http://my.malloc.us/silverspring/2007/12/19/380-and-pandora/#comment-1665 What do you mean might not notice? If read_eeprom returns a negative number (which it would if sceSysconCmdExec failed) it means it failed. Any other value would mean it succeeded (and would have the correct value for the eeprom read). Anyway, it was meant to be a direct replacement for the sceSysconBatteryReadNVM/sceSysconBatteryWriteNVM functions which were taken out of the firmware starting from 3.80. Refer to http://forums.ps2dev.org/viewtopic.php?p=57634#57634 where nem posted the prototypes (the function names werent known when that post was made so they're labelled sceSyscon_driver_68EF0BEF/sceSyscon_driver_1165C864). This code was meant for apps using the above functions to be able to work in 3.80+. Ie. pandora apps from cory1492, hellcat, et al. So I would have to make sure the prototypes stayed the same as the original functions and that the code functioned exactly the same as the originals. What do you mean might not notice? If read_eeprom returns a negative number (which it would if sceSysconCmdExec failed) it means it failed. Any other value would mean it succeeded (and would have the correct value for the eeprom read).

Anyway, it was meant to be a direct replacement for the sceSysconBatteryReadNVM/sceSysconBatteryWriteNVM functions which were taken out of the firmware starting from 3.80. Refer to http://forums.ps2dev.org/viewtopic.php?p=57634#57634 where nem posted the prototypes (the function names werent known when that post was made so they’re labelled sceSyscon_driver_68EF0BEF/sceSyscon_driver_1165C864).

This code was meant for apps using the above functions to be able to work in 3.80+. Ie. pandora apps from cory1492, hellcat, et al. So I would have to make sure the prototypes stayed the same as the original functions and that the code functioned exactly the same as the originals.

]]>
By: pspZorba http://my.malloc.us/silverspring/2007/12/380-and-pandora/comment-page-1/#comment-1664 pspZorba Thu, 08 May 2008 01:01:16 +0000 http://my.malloc.us/silverspring/2007/12/19/380-and-pandora/#comment-1664 Hi Silverspring, Nice job and thank you for sharing. I have notice in the code of read_eeprom, may be a strange behavior if sceSysconCmdExec returns an error, the caller may not notice. I would suggest to do something like: int read_eeprom(u8 addr, u16 * value) { int res; u8 param[0x60]; if (addr>0x7F) return(0x80000102); param[0x0C] = 0x74; // read battery eeprom command param[0x0D] = 3; // tx packet length // tx data param[0x0E] = addr; res = sceSysconCmdExec(param, 0); if (res Hi Silverspring,

Nice job and thank you for sharing.

I have notice in the code of read_eeprom, may be a strange behavior if sceSysconCmdExec returns an error, the caller may not notice. I would suggest to do something like:
int read_eeprom(u8 addr, u16 * value)
{
int res;
u8 param[0x60];

if (addr>0x7F) return(0×80000102);

param[0x0C] = 0×74; // read battery eeprom command
param[0x0D] = 3; // tx packet length

// tx data
param[0x0E] = addr;
res = sceSysconCmdExec(param, 0);

if (res

]]>
By: bagheera http://my.malloc.us/silverspring/2007/12/380-and-pandora/comment-page-1/#comment-35 bagheera Fri, 18 Jan 2008 12:16:38 +0000 http://my.malloc.us/silverspring/2007/12/19/380-and-pandora/#comment-35 On maxconsole i have posted a thread about i think something to do with: u32 sceSysconCmdExec(void* param, int unk); The tools from hellcat/cory1492 won't work with my newest psp. And they use your work in there tools? http://forums.maxconsole.net/showthread.php?t=97428 If you don't like this link posting to maxconsole on your blog. please remove. greetz from the netherlands bagheera On maxconsole i have posted a thread about i think something to do with:
u32 sceSysconCmdExec(void* param, int unk);

The tools from hellcat/cory1492 won’t work with my newest psp. And they use your work in there tools?

http://forums.maxconsole.net/showthread.php?t=97428

If you don’t like this link posting to maxconsole on your blog. please remove.
greetz from the netherlands
bagheera

]]>
By: Do0kz http://my.malloc.us/silverspring/2007/12/380-and-pandora/comment-page-1/#comment-34 Do0kz Wed, 16 Jan 2008 20:07:59 +0000 http://my.malloc.us/silverspring/2007/12/19/380-and-pandora/#comment-34 lol guys i wanna know how you work this out please help me... sorry for being a noob heheheh an a pain in the butt ^_^ sowwy Well hope i can get help lol guys i wanna know how you work this out please help me… sorry for being a noob heheheh an a pain in the butt ^_^ sowwy Well hope i can get help

]]>
By: cory1492 http://my.malloc.us/silverspring/2007/12/380-and-pandora/comment-page-1/#comment-32 cory1492 Mon, 14 Jan 2008 19:40:34 +0000 http://my.malloc.us/silverspring/2007/12/19/380-and-pandora/#comment-32 Thanks SilverSpring, got the chance to use the code today with the release of 3.80M33 and it works like a charm. - u32 sceSysconCmdExec(void* param, int unk); - Was all I needed to create to make 'im go. Thanks SilverSpring, got the chance to use the code today with the release of 3.80M33 and it works like a charm.
-
u32 sceSysconCmdExec(void* param, int unk);
-
Was all I needed to create to make ‘im go.

]]>
By: Hellcat http://my.malloc.us/silverspring/2007/12/380-and-pandora/comment-page-1/#comment-24 Hellcat Sat, 22 Dec 2007 05:26:52 +0000 http://my.malloc.us/silverspring/2007/12/19/380-and-pandora/#comment-24 Hi! :-) Might I ask for permission to use this code snippet in my "Pandora Installer for 3.xx Kernels"? I'd like to have that working on 3.80 as well ;-) Propper credits would be given, of course! Hi! :-)

Might I ask for permission to use this code snippet in my “Pandora Installer for 3.xx Kernels”?

I’d like to have that working on 3.80 as well ;-)

Propper credits would be given, of course!

]]>