Search found 23 matches

by tjd
Sun Dec 05, 2004 7:03 am
Forum: PS2 Development
Topic: DHCP
Replies: 9
Views: 4553

DHCP DOES work with PS2IP

Folks; After reading these posts about DHCP I was greatly concerned. I've been revving our stack up to PS2IP and had worked my way down the the last item-- DHCP. However, all is fine. But you DO need to recompile ps2ip, ps2ip2, and smap, and your apps of course if they touch netif. This is because o...
by tjd
Tue Oct 05, 2004 5:20 am
Forum: PS2 Development
Topic: Race condition in ps2ip client & server?
Replies: 2
Views: 2201

Understood, I think you missed the point of having multiple IOP threads-- in effect multiple servers, one for each EE thread. A "simple lock" will defeat the usefulness of blocking recv*, accept and select calls thus forcing the application to do all the work to simulate multi-threading an...
by tjd
Tue Oct 05, 2004 3:09 am
Forum: PS2 Development
Topic: Race condition in ps2ip client & server?
Replies: 2
Views: 2201

Race condition in ps2ip client & server?

I suspect we have a race condition in the usage of the static rpc buffers. Imagine two threads, both calling send. The first gets all the way through the code into sif, sends the request and blocks on the semaphore waiting for the rpc reply. Because its blocks, the second charges through a similar c...
by tjd
Mon Oct 04, 2004 10:09 am
Forum: PS2 Development
Topic: Bug in iop/tcpip/tcpips?
Replies: 4
Views: 2626

perhaps, but the code in CVS says otherwise ;-) An excerp from ps2ips.c in send/sendto etc... ee_pos = pkt->ee_addr + pkt->malign; sendlen = MIN(BUFF_SIZE, pkt->length); r = SifRpcGetOtherData(&rdata, ee_pos, lwip_buffer + 16, sendlen - pkt->malign, 0); The SifRPC...
by tjd
Mon Oct 04, 2004 7:09 am
Forum: PS2 Development
Topic: Bug in iop/tcpip/tcpips?
Replies: 4
Views: 2626

Bug in iop/tcpip/tcpips?

Folks;

I believe that the src/imports.lst file needs to move the import entry of I_sceSifGetOtherData from sifman to sifcmd (where it lives). I have no idea how send/recv from the EE to the IOP ever worked without this...

tjd
by tjd
Wed Sep 22, 2004 5:03 am
Forum: PS2 Development
Topic: GCC optimisation issues.
Replies: 4
Views: 2563

On the IOP, with GCC3.2.2 I've encountered [recently-- like last week] a set of strangeness related to -O2. When I backed off to -O0, the code worked as expected. -O1 didn't work either. Basically, the address of variables seemed to get lost. I'm suspecting a register allocation problem (or perhaps ...
by tjd
Sat Sep 11, 2004 11:17 pm
Forum: PS2 Development
Topic: get rid of debug-info in ELF-file
Replies: 14
Views: 5883

Well, thanks. But objcopy to a raw file and zip/unzip works nicely too ;-)
by tjd
Sat Sep 11, 2004 1:14 am
Forum: PS2 Development
Topic: get rid of debug-info in ELF-file
Replies: 14
Views: 5883

yes, -S is what my fingers should have typed... It's been a long night. But we all digress. My point a while back is that an IRX produced from "gcc -s ..." and "strip ..." do not appear to create the same file. The results of the "strip" are garbage. (all this from gcc-...
by tjd
Fri Sep 10, 2004 9:48 pm
Forum: PS2 Development
Topic: get rid of debug-info in ELF-file
Replies: 14
Views: 5883

yes gcc -s and gcc -Wl,-s are "supposed" to be different. Indeed, when you wsant to look at the assembler code, gcc -s foo.c is a good thing. But (isn't there always one?). 'Splain this: [broadq@mcv-1-1-1 poweroff]$ make ps2-gcc -o poweroff.irx -s -G0 -g -miop -nostdlib -no...
by tjd
Thu Sep 09, 2004 10:26 pm
Forum: PS2 Development
Topic: get rid of debug-info in ELF-file
Replies: 14
Views: 5883

strip -s -S

yeah, but it doesn't work with gcc-3.2.2 (loads of error messages and the resulting file is trash), but -s does work with gcc/g++/ld... Go figure.
by tjd
Thu Sep 09, 2004 10:21 pm
Forum: PS2 Development
Topic: IOP Exception handler ?
Replies: 8
Views: 4902

Exception handling on the EE and IOP

On the IOP, I found it easiest to install a new handler using excepman. If you don't have the library stub, I can post it. The call is: RegisterDefaultExceptionHandler(your-trap-handler); It's better to do this than install you own handler since the basic IOP has to keep running and I'd rather be ab...
by tjd
Mon Sep 06, 2004 10:07 pm
Forum: PS2 Development
Topic: get rid of debug-info in ELF-file
Replies: 14
Views: 5883

-s in a link strips all the symbols, not just the debug info. This may be what you want, but renders an "nm" quite useless and makes debugging harder. You might also ensure that you don't use -g. Failing that, if you run a "size -Ax" and see all those tasty "debug_*" se...
by tjd
Mon Sep 06, 2004 2:03 am
Forum: PS2 Development
Topic: Messed up symbol tables for IRX files...
Replies: 0
Views: 1663

Messed up symbol tables for IRX files...

Venerable Toolchain Gods: Environment: gcc-3.2.2 + binutils 2.14 Simple program on the IOP. After linking, the addresses in the symbol table for everything in the .data section are wrong (they appear to be off by a factor of two-- double relocations?). Needless to say, this makes debugging hard[er] ...
by tjd
Wed Jul 21, 2004 7:37 am
Forum: PS2 Development
Topic: SetVCommonHandler usage...
Replies: 3
Views: 3076

Hmm, not sure what you meant by TLB-protected. My recollection is that every exception on a Mips processor is routed through a single vector located at 0x80000080. I'm assuming that the low-low-low level code in the PS2 gets control and simply looks up to see if the "user" has set up a han...
by tjd
Wed Jul 21, 2004 5:22 am
Forum: PS2 Development
Topic: SetVCommonHandler usage...
Replies: 3
Views: 3076

SetVCommonHandler usage...

Does anyone have any idea why you can use SetVCommonHandler for things like breakpoints, but it doesn't seem to work for exceptions like bad addresses, FPE etc.? I looked at the code in ps2gdb and it's pretty similar to mine. If I execute a breakpoint, my handler gets called. If I reference a bad ad...
by tjd
Thu Jun 03, 2004 9:58 pm
Forum: PS2 Development
Topic: MC madness
Replies: 5
Views: 3762

Haven't used mcopen in this instance-- can't easily because of the nature of the code (higher layers don't know where the file may reside so they just issue an open...).

As for XMCMAN, where does one get one (the IRXs I mean).
by tjd
Thu Jun 03, 2004 4:38 am
Forum: PS2 Development
Topic: MC madness
Replies: 5
Views: 3762

MC madness

Is it just me, or do others get wierd results sometimes when reading (::read, ::fioRead etc.) from files on a MC. The opens always seem to work, but some files just return 0 bytes on a read (although the directory has the correct length).

I'm using MCMAN if that makes any difference...
by tjd
Sat May 29, 2004 3:32 am
Forum: PS2 Development
Topic: IOP calling convention differences in GCC3.2.2
Replies: 21
Views: 9986

It ain't all that broke...

Before you guys go too far and take the entire car and engine apart, scattering the parts all over the garage floor, all the time hoping you can build an old DeSoto out of it.... It ain't all that broke is it? I scribbled some assembler to fix my calling conventions problem, fixed some broken protot...
by tjd
Fri May 28, 2004 9:38 pm
Forum: PS2 Development
Topic: Misc problems in header files EE and IOP
Replies: 1
Views: 1924

Misc problems in header files EE and IOP

Folks; Any good reason for O_RDONLY being 1 in PS2LIB-2.1 and 0 in newlib(1.11.0)? This causes some confusion for us poor filoe system driver writers. And another thing, the prototype on the IOP side for lseek (api and driver call) is wrong. The offset is typed as an unsigned long. (huh, how do nega...
by tjd
Thu May 27, 2004 4:13 am
Forum: PS2 Development
Topic: IOP calling convention differences in GCC3.2.2
Replies: 21
Views: 9986

GCC 3.2.2 for IOP

Well, that's depressing... Is there a list of things that "don't work as intended"? At the moment, a fairly large piece of IOP code is running and I want to continue with 3.2.2 unless its hopeless. I can easily bridge around the function call problem by wriiting a bit of assembler, but if ...
by tjd
Thu May 27, 2004 2:13 am
Forum: PS2 Development
Topic: IOP calling convention differences in GCC3.2.2
Replies: 21
Views: 9986

IOP calling convention differences in GCC3.2.2

Folks; In updating our stuff from compiled with 2.9xxx to 3.2.2, I've noticed that the function calling conventions are different. This affects any functions taking more than 4 arguments (sprintf anyone?) or lots of the USB functions. Old compiler stuffed args into $4-$7 then on the stack. The new o...
by tjd
Thu May 27, 2004 2:02 am
Forum: PS2 Development
Topic: USB-flash-disk lib?
Replies: 16
Views: 11383

Re: usbd in ps2lib

All that you need is there in usbd.irx. Its fairly straightforward to add functionality to provide generic SCSI/SFF support. We've got memory sticks, cards, flash drives, Apple iPods, ordinary USB mass storage devices etc. all running in our media player product. [quote="ole"]Well I though...
by tjd
Thu May 27, 2004 2:01 am
Forum: PS2 Development
Topic: USB-flash-disk lib?
Replies: 16
Views: 11383

Re: usbd in ps2lib

All that you need is there in usbd.irx. Its fairly straightforward to add functionality to provide generic SCSI/SFF support. We've got memory sticks, cards, flash drives, Apple iPods, ordinary USB mass storage devices etc. all running in our media player product. [quote="ole"]Well I though...