forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open flash0 in write mode on the Slims, is possible?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Wed Apr 30, 2008 3:19 am    Post subject: Open flash0 in write mode on the Slims, is possible? Reply with quote

I've this function to load the flash0 in rw mode:
Code:

sceIoAssign("flash0", "lflash0:0,0", "flashfat0:", IOASSIGN_RDWR, NULL, 0);

But on the Slims is opened in read only mode, is possible to load this in write mode?
_________________
Get Xplora!
Back to top
View user's profile Send private message
Question_dev



Joined: 24 Aug 2007
Posts: 88

PostPosted: Sat May 03, 2008 6:04 pm    Post subject: Reply with quote

Look in DAX's CF the proof of concept source code.
He's writing to flash there.

Cya
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sat May 03, 2008 6:45 pm    Post subject: Reply with quote

That was back on 1.50, he's asking about the slim,
but it must be possible. It has custom firmware on it somehow.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
xpierrex



Joined: 03 May 2008
Posts: 1

PostPosted: Sat May 03, 2008 6:49 pm    Post subject: Reply with quote

i think you should check out at the source code of the "patch" who was released for flash access on 3.60+
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Sun May 04, 2008 5:09 am    Post subject: Reply with quote

Writing in the flash is same for 3.XX.

Just ensure you have 0x800 as module flags, and PSP_THREAD_ATTR_VSH for the main thread. And don't forget to unassign the flash before assigning it in write mode.
Back to top
View user's profile Send private message
nikocronaldo



Joined: 24 Feb 2008
Posts: 31

PostPosted: Sun May 04, 2008 5:15 am    Post subject: Reply with quote

It is possbile,put the src in this Kernel Mode:

Code:
PSP_MODULE_INFO("APP", 0x800, 1, 0);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_VSH);


I have it in my application Multi PSP and it works successfully ;)
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Sun May 04, 2008 9:51 pm    Post subject: Reply with quote

Code:


....

PSP_MODULE_INFO("APP", 0x800, 1, 0);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_VSH);

...

sceIoUnassign("flash0");
sceIoAssign("flash0", "lflash0:0,0", "flashfat0:", IOASSIGN_RDWR, NULL, 0);

...

moonlight, like this?
_________________
Get Xplora!
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Sun May 04, 2008 10:15 pm    Post subject: Reply with quote

I've error 80020148!
_________________
Get Xplora!
Back to top
View user's profile Send private message
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Sun May 04, 2008 10:46 pm    Post subject: Reply with quote

Code:

PSP_MODULE_INFO("MYPSPMENU_GUI", 0x800, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Sun May 04, 2008 11:07 pm    Post subject: Reply with quote

I've the same error!
_________________
Get Xplora!
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Mon May 05, 2008 4:11 am    Post subject: Reply with quote

Use BUILD_PRX = 1 in the makefile. An elf with that param will give error.
Back to top
View user's profile Send private message
nikocronaldo



Joined: 24 Feb 2008
Posts: 31

PostPosted: Mon May 05, 2008 6:15 am    Post subject: Reply with quote

moonlight wrote:
Use BUILD_PRX = 1 in the makefile. An elf with that param will give error.


Here the makefile to work:

Code:
TARGET = main
OBJS = main.o

INCDIR = ../include
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS) -c

LIBDIR = ../lib
LDFLAGS =
LIBS = -lpsppower
LDFLAGS = -lm

PSP_FW_VERSION = 371

BUILD_PRX = 1

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Access Flash Slim Sample
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group