| View previous topic :: View next topic |
| Author |
Message |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Wed Apr 30, 2008 3:19 am Post subject: Open flash0 in write mode on the Slims, is possible? |
|
|
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 |
|
 |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Sat May 03, 2008 6:04 pm Post subject: |
|
|
Look in DAX's CF the proof of concept source code.
He's writing to flash there.
Cya |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Sat May 03, 2008 6:45 pm Post subject: |
|
|
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 |
|
 |
xpierrex
Joined: 03 May 2008 Posts: 1
|
Posted: Sat May 03, 2008 6:49 pm Post subject: |
|
|
| 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 |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Sun May 04, 2008 5:09 am Post subject: |
|
|
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 |
|
 |
nikocronaldo
Joined: 24 Feb 2008 Posts: 31
|
Posted: Sun May 04, 2008 5:15 am Post subject: |
|
|
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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Sun May 04, 2008 9:51 pm Post subject: |
|
|
| 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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Sun May 04, 2008 10:15 pm Post subject: |
|
|
I've error 80020148! _________________ Get Xplora! |
|
| Back to top |
|
 |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Sun May 04, 2008 10:46 pm Post subject: |
|
|
| Code: |
PSP_MODULE_INFO("MYPSPMENU_GUI", 0x800, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
|
|
|
| Back to top |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Sun May 04, 2008 11:07 pm Post subject: |
|
|
I've the same error! _________________ Get Xplora! |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Mon May 05, 2008 4:11 am Post subject: |
|
|
| Use BUILD_PRX = 1 in the makefile. An elf with that param will give error. |
|
| Back to top |
|
 |
nikocronaldo
Joined: 24 Feb 2008 Posts: 31
|
Posted: Mon May 05, 2008 6:15 am Post subject: |
|
|
| 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 |
|
 |
|