ff82786c: e92d4010 stmdb sp!, {r4, lr}ff827870: e3a0000c mov r0, #12 ; 0xcff827874: eb00ebe0 bl ff8627fc <_binary_dump_bin_start+0x527fc +241544>ff827878: e59f0080 ldr r0, [pc, #128] ; ff827900: (ff862858) ff82787c: e3a01000 mov r1, #0 ; 0x0ff827880: ebffd154 bl ff81bdd8 <_binary_dump_bin_start+0xbdd8 -47784>ff827884: e59f0078 ldr r0, [pc, #120] ; ff827904: (ff862c50) ff827888: eb00ea6c bl ff862240 <_binary_dump_bin_start+0x52240 +240056>ff82788c: e59f0074 ldr r0, [pc, #116] ; ff827908: (ff862fcc) ff827890: e8bd4010 ldmia sp!, {r4, lr}ff827894: ea00ea6c b ff86224c <_binary_dump_bin_start+0x5224c +240056>
#define O_APPEND 0x8void save_crash(char* buf, int len) { int fd; fd = open("A/crash.log", O_WRONLY|O_CREAT|O_APPEND, 0777); write(fd, buf, len); close(fd); script_console_add_line(buf); script_console_draw();}void assert_hook() { save_crash("assert error\n" , 13);}void abort_hook() { save_crash("abort error\n" , 11);}void panic_hook() { save_crash("panic error\n" , 11);}
#OPERATION LOG#VERSION=0100#COMMENT=[OCCUR]PRODUCT_ID= 3184TIME= 2008:09:02 00:04:25[START]00000030,0x00000000,0,0x00038000,0x20000000,0x00000000[DATA]00000060,0x0000090A,0,0x00018000,0x20000000,0x0000000000002370,0x80000000,0,0x00018001,0x20000000,0x0000000000004640,0x80000001,0,0x00018003,0x20000000,0x0000000000005000,0x00000001,0,0x00018001,0x20000000,0x0000000000005080,0x00000000,0,0x00018000,0x20000000,0x00000000
Exception!! [data abort]Occured Time 2008:09:02 01:53:08Task ID: 1441797Task name: SpyTaskExc Registers:0x000000080x000000600x000000000x2000B0640x000EA7A00x000000020x000EA7A40x199802180x199802180x199802180x199802180x199802180x000000000x0027CF0C0x000C02980x000C46E8 << PC, correct, membrowser0x60000013StackDump:0xFF811F440x000000070x000EB4600x0000016D0x000C93D40x000EA5580x000C00C40x00272BB80x199802180x199802180xFF8160BC0x19980218
!!!WatchDog expired!!!
typedef int DEV_HDR;int (*_tyWriteOrig)(DEV_HDR *hdr, char *buf, int len);int hook_tyWriteOrig(DEV_HDR *hdr, char *buf, int len){ // Slow, but stable writes FILE *fd = fopen("A/stdout.txt", "a"); if (fd) { fwrite(buf, 1, len, fd); fclose(fd); } return _tyWriteOrig(hdr, buf, len);}void console_init(){ DEV_HDR *DRV_struct; DRV_struct = _iosDevFind("/tyCo/0", 0); _tyWriteOrig = (void*)DRV_struct[DEV_HDR_WRITE_OFFSET]; FILE *fd = fopen("A/chdklog.txt", "a"); if (fd) { // can't be used with "Fut" API //fprintf(fd, "DRV_struct: %x, _tyWriteOrig: %x\n", DRV_struct, _tyWriteOrig); char buf[256]; int buflen = sprintf(buf, "DRV_struct: %x, _tyWriteOrig: %x\n", DRV_struct, _tyWriteOrig); fwrite(buf, 1, buflen, fd); } FILE *fdout = fopen("A/stdout.txt", "r"); if (fdout) { DRV_struct[DEV_HDR_WRITE_OFFSET] = (int)hook_tyWriteOrig; fclose(fdout); // fprintf(fd, "tyWrite replaced, camera log enabled\n"); fwrite("tyWrite replaced, camera log enabled\n", 1, sizeof("tyWrite replaced, camera log enabled\n"), fd); } if (fd) { fclose(fd); }}
Log Write to ROM... Successful.
Started by mattkime « 1 2 3 4 » General Discussion and Assistance
Started by flarn2006 Feature Requests
Started by reyalp General Discussion and Assistance
Started by philmoz « 1 2 3 » General Discussion and Assistance
Started by waterwingz General Discussion and Assistance