cuando le doy a make me sale el siguienre error:
PSPDevKit >make CONFIG_639=1
bin2c u235.prx u235_bin.c u235
"../tool/md5.py" u235.prx u235_md5.h hash235
Access is denied.
make: *** [release] Error 1
Porque me sale acces denied?????????????
Aqui Esta el main.c
#include <pspkernel.h>
#include <pspctrl.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "../cfw_modules.h"
PSP_MODULE_INFO("u235_module", 0x800 , 1, 0);
PSP_MAIN_THREAD_ATTR( PSP_THREAD_ATTR_VSH );
int PlutoniumGetModel();
int PlutoniumColdReset();
void reset()
{
sceKernelDelayThread(800*1000);
PlutoniumColdReset();
sceKernelSleepThread();
while(1){}
}
int WriteFile(char *filename, char *buffer, u32 size)
{
SceUID fd = sceIoOpen(filename, PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
if (fd < 0) return -1;
int written = sceIoWrite(fd, buffer, size);
if (sceIoClose(fd) < 0) return -1;
return written;
}
int main()
{
// int model = PlutoniumGetModel();
int i;
/*
Module *modules = NULL;
if(model == 0 )
modules = (Module *)modules_01g;
else
modules = (Module *)modules_02g;
*/
for(i = 0; i < COMMON_MODULES_COUNT; i++) {
WriteFile(common_modules[i].dst, common_modules[i].buffer, *common_modules[i].size);
}
reset();
return 0;
}
Aqui Esta el makefile
release: all
bin2c $(TARGET).prx $(TARGET)_bin.c $(TARGET)
"../tool/md5.py" $(TARGET).prx $(TARGET)_md5.h hash235
rm -f *.elf *.o
TARGET = u235
OBJS = main.o ../Plutonium_Driver/Plutonium.o
PSP_FW_VERSION = 150
BUILD_PRX = 1
INCDIR = ../../Common
CFLAGS = -Os -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS =
#EXTRA_TARGETS = EBOOT.PBP
#PSP_EBOOT_TITLE = recovery
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
Aqui esta el md5.py
#!/usr/bin/python
import sys, hashlib
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + sys.argv[0] + " infile outfile label")
def main():
if( len(sys.argv) != 4):
usage()
sys.exit()
fp = open( sys.argv[1] , "rb")
hash_str = hashlib.md5( fp.read() ).hexdigest()
fp.close()
out_str = "u8 " + sys.argv[3] + "[16] = { "
i=0
for str in hash_str:
if i % 2 == 0:
out_str += "0x" + str
else:
out_str += str
if i < 31:
out_str += ", "
i += 1
out_str += " };"
print out_str
write_file( sys.argv[2] , out_str )
if __name__ == "__main__":
main()