Random Homebrew: TecnoballZ PSP Port
This is a full port of the exellent TecnoballZ game to the PSP.
Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita

[PSPgo] Start eboot from ef0 and load something in ms0

Forum rules
Any post not directly related to programming will be moderated.
Do not request people to code something for you.
Avoid posting messages that do not bring anything to the conversation. We want the threads in this subforum to stay focused.

[PSPgo] Start eboot from ef0 and load something in ms0

Postby fLaSh » Thu Apr 26, 2012 4:28 am

Sup all;

I'm trying to create an PRX loader to load another PRX but in different stored.. like the title says..
I alredy tried it.. but the PSP crash when trying to access to MS (eboot from ef0)..

I think the problem is related to something with the method on how to access .. because the "original PSP only" supports an stored..

This method can be good to running plugins like mp3play, since the PSP can not read\write the stored in simultaneously (can result in crash).
Sorry for my poor English..

Any help?

Thanks
fLaSh
 
Posts: 23
Joined: Mon Apr 16, 2012 3:30 am

Re: [PSPgo] Start eboot from ef0 and load something in ms0

Postby m0skit0 » Thu Apr 26, 2012 9:31 am

Post the relevant code.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4787
Joined: Mon Sep 27, 2010 6:01 pm

Re: [PSPgo] Start eboot from ef0 and load something in ms0

Postby West-Li » Thu Apr 26, 2012 6:40 pm

if you want to check if the load path is ms0:/ or ef0:/ use sceKernelGetModel();. If you dont use 0x1000 (kernel mode) you can use also kernel-user library (kuKernelGetModel();). Post here your source code. I dont understand what do you want.
West-Li
 
Posts: 23
Joined: Mon Jan 03, 2011 1:55 pm

Re: [PSPgo] Start eboot from ef0 and load something in ms0

Postby JJS » Fri Apr 27, 2012 5:54 am

I think the OP refers to the fact that you cannot access the "real" memory stick if your homebrew is started from the internal flash on a PSP Go. That is because "ms0" refers to the internal flash then (ms0 = ef0) for backward compatibility.

We had a discussion about this previously on here. Also I think PRO CFW patches this so that ef0 and ms0 always refer to the actual devices (a bit hazy on this though so I might be wrong).
JJS
Big Beholder
 
Posts: 1516
Joined: Mon Sep 27, 2010 2:18 pm

Re: [PSPgo] Start eboot from ef0 and load something in ms0

Postby fLaSh » Sat Apr 28, 2012 11:40 pm

Thanks for all replays!

@m0skit0
You can test it.. if you have a PSPgo and a M2 Card..
With the plugin mp3player_lite.prx.. in the mp3player.ini change the music dir to ms0:\MUSIC .. you can see, on xmb works in a game the PSP crash...

@JJS
Yeah, ill wait for news about it, thanks :)
fLaSh
 
Posts: 23
Joined: Mon Apr 16, 2012 3:30 am

Re: [PSPgo] Start eboot from ef0 and load something in ms0

Postby Coldbird » Wed May 02, 2012 9:17 am

This is normal...

And it's official Sony behaviour...

The state of ef0 outside of VSH / POPS runlevel is undefined! You should NEVER access ef0 unless your plugin runs in XMB or POPS.

VSH: ef0 = internal, ms0 = m2 micro
POPS: ef0 = internal, ms0 = m2 micro
GAME (ISO, UMD, EBOOT): ef0 = undefined (don't use it!), ms0 = start device or memory stick (if running a umd)

Summing up, you can only access one device in game mode.
Image
PSP N-1000 ✔ / 6.20 PRO NIGHTLY ✔ / PRO ONLINE ✔

READ THE TRUTH ABOUT THE VITA KERNEL EXPLOIT
User avatar
Coldbird
Guru
 
Posts: 460
Joined: Sun Nov 14, 2010 12:33 am

Re: [PSPgo] Start eboot from ef0 and load something in ms0

Postby Yoti » Wed May 02, 2012 2:02 pm

Coldbird wrote:VSH: ef0 = internal, ms0 = m2 micro

So, homebrew with 0x800 attrib may get access to ef0 & ms0?
User avatar
Yoti
VIP
 
Posts: 246
Joined: Sun Oct 17, 2010 4:49 am
Location: Russia

Re: [PSPgo] Start eboot from ef0 and load something in ms0

Postby fLaSh » Wed May 02, 2012 9:15 pm

@Coldbird
humm.. with pmplayer-advance you can choise the source to play on a PSPgo (ef or ms)..

See http://code.google.com/p/pmplayer-advance
directory.c
Code: Select all
int open_directory(const char* dir, char* sdir, int show_hidden, int show_unknown, file_type_ext_struct* file_type_ext_table, directory_item_struct** list) {
   int item_count;
   if ( strncmp(dir,"ms0:", 4) == 0 )
      item_count = open_ms_directory(dir, sdir, show_hidden, show_unknown, file_type_ext_table, list);
   else if ( strncmp(dir,"ef0:", 4) == 0 )
      item_count = open_usb_net_directory(dir, sdir, show_unknown, show_unknown, file_type_ext_table, list);
   else if ( strncmp(dir,"usbhost0:", 9) == 0 || strncmp(dir,"nethost0:", 9) == 0)
      item_count = open_usb_net_directory(dir, sdir, show_unknown, show_unknown, file_type_ext_table, list);
   else {

I tried to understand, but my skills are not very good .. i'm older programmer but not in C/C++ .. i'm learning :)

Thanks :)
fLaSh
 
Posts: 23
Joined: Mon Apr 16, 2012 3:30 am

Re: [PSPgo] Start eboot from ef0 and load something in ms0

Postby RNB_PSP » Thu May 03, 2012 7:55 pm

Image
Image
RNB_PSP
 
Posts: 140
Joined: Mon Jan 17, 2011 9:18 pm
Location: In your dreams.....


Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests