From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id AEC983FBC4 for ; Tue, 7 Jan 2003 18:23:48 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id h07NNmS23087 for axp-list@listman.redhat.com; Tue, 7 Jan 2003 18:23:48 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id h07NNma23083 for ; Tue, 7 Jan 2003 18:23:48 -0500 Received: from huygens.demon.co.uk (huygens.demon.co.uk [212.229.179.226]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id h07Mu0B31599 for ; Tue, 7 Jan 2003 17:56:01 -0500 Received: from localhost (richard@localhost) by huygens.demon.co.uk (8.11.2/8.11.2) with ESMTP id h07NR6n04273 for ; Tue, 7 Jan 2003 23:27:07 GMT X-Authentication-Warning: huygens.demon.co.uk: richard owned process doing -bs Date: Tue, 7 Jan 2003 23:27:06 +0000 (GMT) From: Richard Billingham To: Subject: Re: Porting siocons to Alpha In-Reply-To: <20030106110321.A22763@linux04.mro.cpqcorp.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Mon, 6 Jan 2003, Jay Estabrook wrote: > When you say "hangs", do you mean the "siocons" program itself, the > playstation, or both? hello Jay. the siocons program seems to hang during the transfer, the playstation indicates that the transfer is 'done'. both the address and size reported by the playstation are erroneous. > > >From a cursory look, the program appears to have two parts: the > file-reading part (ecoff.c), and the downloading part (the rest). > > Do you know if the file-reading part works correctly? What I mean is, > can you determine if the ecoff binary is read correctly by the code, and > set-up correctly to be downloaded. If it IS, then you know that the > problem is in the downloading... > > --Jay++ while having a poke around with some rudimentary reporting, to try to figure out if the size was being calculated wrongly i inserted a line in handshake_send from file.c : /* write */ if ((n = write(ps_fd, &dat, 1)) < 0) perror("write"); fprintf(stderr, "Writing: [%08x]", &dat); <-- inserted line return n; this seemed to affect the size the playstation was reporting. the first time i tried it the transfer worked and the game loaded correctly, however on subsequent tries the transfer aborted with a 'sync error'. i'm guessing i've stumbled on a time-critical portion of the code? redirecting the rest of the output to /dev/null got the transfers working again. i've tried the program with a few other transfers and they are hit and miss - sometimes they work, sometimes they don't. curiouser and curiouser! is there some difference in the timings between the intel/alpha platforms that would affect the transfer? Regards, Richard.