Search found 1145 matches

by jimparis
Tue Oct 18, 2005 8:25 am
Forum: PSP Development
Topic: SDL setup question
Replies: 24
Views: 10114

b00st wrote:jimparis: My command is the same, except I put the whole path to psp-config.
No, it is not. You put a space before "/lib" and you used apostrophes instead of backquotes. Read and follow README.PSP.
by jimparis
Tue Oct 18, 2005 4:19 am
Forum: PSP Development
Topic: SDL setup question
Replies: 24
Views: 10114

I don't know where you got that command, but it's wrong. Use the one in README.PSP:

Code: Select all

LDFLAGS="-L`psp-config --pspsdk-path`/lib -lc -lpspuser -lpsputility" ./configure --host psp --prefix=`psp-config --psp-prefix`
by jimparis
Mon Oct 17, 2005 5:30 pm
Forum: PSP Development
Topic: SDL setup question
Replies: 24
Views: 10114

Read README.PSP
by jimparis
Sun Oct 16, 2005 5:19 pm
Forum: PSP Development
Topic: libc opendir freezes PSP
Replies: 7
Views: 4807

I still say that there's no possible difference between calloc() and malloc() because the only variable in the DIR structure gets overwritten immediately anyway. If you can provide a small compilable example I'll check it out, but I suspect your problem is hidden elsewhere and is just being triggere...
by jimparis
Sun Oct 16, 2005 11:40 am
Forum: PSP Development
Topic: Home button and backlight timeout in user mode
Replies: 1
Views: 965

You sometimes get a "home" button down event when the backlight turns off. I noticed this earlier (see log for rev 574 in psp svn repo). But you don't need to pay attention to the home button anyway, so just ignore it. Set a flag in your exit callback and check that instead.
by jimparis
Sun Oct 16, 2005 7:43 am
Forum: PSP Development
Topic: libc opendir freezes PSP
Replies: 7
Views: 4807

Re: libc opendir freezes PSP

It seems that memory that is allocated for DIR structure in opendir() should be initialized to zero, as current implementation causes PSP to freeze. Do you have an example? It's working fine here. The DIR structure only contains a single element anyway, which clearly gets set in the very next line,...
by jimparis
Sun Oct 16, 2005 4:29 am
Forum: PSP Development
Topic: errno & libc
Replies: 4
Views: 3116

Re: errno & libc

I'd rather see something without a lookup: static int psp_set_errno(int code) { if (code & 0x80010000) { errno = code & 0xFFFF; return -1; } return code; } and then modify our newlib errno.h to use errno codes that match up ...
by jimparis
Fri Oct 14, 2005 6:57 pm
Forum: PSP Development
Topic: Checking libz using standard configure
Replies: 2
Views: 1059

Add "-Wl,--start-group" to the beginning of your LDFLAGS.
by jimparis
Thu Oct 13, 2005 4:31 pm
Forum: PSP Development
Topic: PSP GDB
Replies: 19
Views: 13415

Nevermind, I fixed it in rev 1150.
by jimparis
Thu Oct 13, 2005 4:06 pm
Forum: PSP Development
Topic: PSP GDB
Replies: 19
Views: 13415

$at and $v1 appear to get clobbered while stepping with gdb. This is with the gdb sample: Remote debugging using /dev/ttyS0 main () at main.c:81 81 sceCtrlSetSamplingCycle(0); (gdb) info reg zero at v0 v1 a0 a1 a2 a3 R0 00000000 0008ff00 044ba1...
by jimparis
Thu Oct 13, 2005 8:26 am
Forum: PSP Development
Topic: PSP to PSP communication via serial connection
Replies: 3
Views: 1678

Ground (pin 2, blue) too. That's it.
by jimparis
Wed Oct 12, 2005 12:13 pm
Forum: PSP Development
Topic: PSP to PSP communication via serial connection
Replies: 3
Views: 1678

Yeah, just connect pin 3 (orange) on each PSP to pin 6 (grey) on the other (using the numbering here).
by jimparis
Wed Oct 12, 2005 12:10 pm
Forum: PSP Development
Topic: PSP cache HOWTO/FAQ
Replies: 10
Views: 3153

I haven't used the GE; obviously this wouldn't work if there's a case where you're changing the data as the GE reads it. Well, that would be inherently buggy code anyway. Concurrent memory access can surely work if you're careful (think Dekker's algorithm), and this might be useful for future work ...
by jimparis
Wed Oct 12, 2005 8:50 am
Forum: PSP Development
Topic: PSP cache HOWTO/FAQ
Replies: 10
Views: 3153

Rather than all the mess with uncached pointers and cache line sizes, can't you just do business as usual and force a writeback before telling the GE to use it? I haven't used the GE; obviously this wouldn't work if there's a case where you're changing the data as the GE reads it.
by jimparis
Wed Oct 12, 2005 4:03 am
Forum: PSP Development
Topic: Error Compiling SDL_Image
Replies: 2
Views: 1309

The toolchain at oopo's site is old and incompatible with current pspsdk. Checkout svn://svn.pspdev.org/psp/trunk/psptoolchain/ and run the toolchain.sh in there.
by jimparis
Sun Oct 09, 2005 5:28 am
Forum: PSP Development
Topic: GU library?
Replies: 12
Views: 2943

I have no idea what your code or build process looks like, but it appears you're not linking against the right libraries. You need -lpsuser and -lpsputility at least. See the build.mak in pspsdk.

Or just start with samples that actually work:

Code: Select all

cd /usr/local/pspdev/psp/sdk/samples/gu/cube/
make
by jimparis
Sun Oct 09, 2005 5:00 am
Forum: PSP Development
Topic: GU library?
Replies: 12
Views: 2943

When you install the toolchain, it automatically checks out the latest pspsdk from subversion and builds it, so you probably didn't even need to rebuild it, but it should install to /usr/local/pspdev by default. I found GU_PSM_8888 and used "svn blame" to see when it was added. In general,...
by jimparis
Sun Oct 09, 2005 4:32 am
Forum: PSP Development
Topic: GU library?
Replies: 12
Views: 2943

Yes. Looks like those defines you were looking for were changed in revision 661.
by jimparis
Sun Oct 09, 2005 3:59 am
Forum: PSP Development
Topic: GU library?
Replies: 12
Views: 2943

You probably checked out the wrong branch from SVN. Use the versions in trunk/.
by jimparis
Sun Oct 09, 2005 1:55 am
Forum: PSP Development
Topic: A subversion directory organization question
Replies: 1
Views: 1023

by jimparis
Sat Oct 08, 2005 5:30 pm
Forum: PSP Development
Topic: ld crashes while linking libcairo
Replies: 7
Views: 4878

It does for me. After following his instructions and having the build fail, you can reproduce it with just main.o and libcairo: neurosis:~/tmp/cairo/sample$ gdb `which psp-ld` GNU gdb 6.3-debian (gdb) set args -L../src main.o -lcairo (gdb) r Starting program&a...
by jimparis
Fri Oct 07, 2005 6:55 pm
Forum: PSP Development
Topic: SDL Install Tip.. (error fix tip)
Replies: 3
Views: 1478

Re: SDL Install Tip.. (error fix tip)

careful) 1) -lpsplibc <-- this is added by AmesianX..(hoho..) why? when you compile SDL library, occur errors because psplibc.. No, this is wrong. -lpsplibc and -lc never go together. The instructions in README.PSP are correct; I just tested them again. Your problem is probably because you need to ...
by jimparis
Fri Oct 07, 2005 6:33 am
Forum: PSP Development
Topic: Problem: installing Toolchain under Linux
Replies: 6
Views: 5324

Make sure you're using a recent autoconf and automake. For Debian, something like

Code: Select all

apt-get install automake1.9
update-alternatives --set automake /usr/bin/automake-1.9
Probably similar for Ubuntu.
by jimparis
Thu Oct 06, 2005 7:45 pm
Forum: PSP Development
Topic: newlib open(...) fix.
Replies: 15
Views: 6472

Looks good and works great; I've applied it to rev 1124. Thanks again for your help.
by jimparis
Thu Oct 06, 2005 8:31 am
Forum: PSP Development
Topic: Need help with textures
Replies: 8
Views: 2644

CPUs have a small cache of fast on-board memory that is used to avoid accessing slower main memory when possible. The CPU takes care of writing that cache back to main memory at some unknown later time. The GU doesn't know about this cache and accesses the main memory directly, so anytime you want t...
by jimparis
Thu Oct 06, 2005 7:57 am
Forum: PSP Development
Topic: newlib open(...) fix.
Replies: 15
Views: 6472

I suggest we just get rid of the sce_fd and sceKernelStdin(), sceKernelStdout(), and sceKernelStderr() stuff completely. Those functions just return 0, 1, and 2 anyway, even if something like pspDebugInstallStderrHandler() has been called. You should get access.. every one of your patches has looked...
by jimparis
Thu Oct 06, 2005 7:33 am
Forum: PSP Development
Topic: Need help with textures
Replies: 8
Views: 2644

I also saw the black lines. I added sceKernelDcacheWritebackAll() at line 143 (before "for(;;)") and they went away.
by jimparis
Thu Oct 06, 2005 6:59 am
Forum: PSP Development
Topic: Need help with textures
Replies: 8
Views: 2644

Paste your full code at rafb.net/paste
by jimparis
Thu Oct 06, 2005 6:30 am
Forum: PSP Development
Topic: Need help with textures
Replies: 8
Views: 2644

Re: Need help with textures

bumper wrote:1) Any idea about my corrupted texture (black lines) ?
Flush the data cache. sceKernelDcacheWritebackAll()
2) Another question not related to the previous one, can I use malloc and free with the PSPSDK ?
Yes.
by jimparis
Thu Oct 06, 2005 6:08 am
Forum: PSP Development
Topic: newlib open(...) fix.
Replies: 15
Views: 6472

What to do with fd < 3 should probably be clarified and cleaned up a bit. Why does _close() treat them differently? That code will behave pretty badly if you can close(0) and then have open() return 0 for some other file. And if they do still refer to the "real" stdin/stdout/stderr, _fstat...