public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Slow serial transfer to redboot
@ 2001-08-17 11:41 Peter Blair
  2001-08-17 11:54 ` Trenton D. Adams
  2001-08-17 13:16 ` Gary Thomas
  0 siblings, 2 replies; 12+ messages in thread
From: Peter Blair @ 2001-08-17 11:41 UTC (permalink / raw)
  To: ecos-discuss

Regards All,

I've been experiencing extremely slow transfer rates when downloading my
srec applications to an i386 target from both NT4 & 2000 machines.

I've tested with multiple cables to numerous target hosts from multiple
source hosts with no change.  I've been using the pre-compiled redboot
.BIN image from the sources.redhat.com site, and was wondering if this
build of redboot has given anyone else any trouble.

The strange part is that the first burst is quite quick, and I am able
to transfer 2k with no trouble, but after that initial transfer, the
rate drops dramatically.  I left the download to run overnight, and
checked the next morning to see that it had taken 5 hours to transfer
the file (while running at 38400 baud.

Thanks for you time,
Peter Blair

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [ECOS] Slow serial transfer to redboot
  2001-08-17 11:41 [ECOS] Slow serial transfer to redboot Peter Blair
@ 2001-08-17 11:54 ` Trenton D. Adams
  2001-08-17 12:32   ` Jonathan Larmour
  2001-08-17 12:47   ` Trenton D. Adams
  2001-08-17 13:16 ` Gary Thomas
  1 sibling, 2 replies; 12+ messages in thread
From: Trenton D. Adams @ 2001-08-17 11:54 UTC (permalink / raw)
  To: 'Peter Blair', ecos-discuss

I had a similar problem when trying to download to an edb7111-2 board.
It wasn't quite that severe, but here was my problem.

The tool I was using had too much of a delay for the uspin () function
which was used for a delay in between each byte sent.  The function is
below.  I modified the 2000 to a much smaller value, and now I don't
have any problems.  If you have the source code for your download tool
you might be able to find a similar solution.

static void
uspin(int len)
{
    volatile int cnt;
    while (--len >= 0) {
        for (cnt = 1;  cnt < 2000;  cnt++) ;
    }
}

-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[ mailto:ecos-discuss-owner@sources.redhat.com ] On Behalf Of Peter Blair
Sent: Friday, August 17, 2001 12:40 PM
To: ecos-discuss@sourceware.cygnus.com
Subject: [ECOS] Slow serial transfer to redboot


Regards All,

I've been experiencing extremely slow transfer rates when downloading my
srec applications to an i386 target from both NT4 & 2000 machines.

I've tested with multiple cables to numerous target hosts from multiple
source hosts with no change.  I've been using the pre-compiled redboot
.BIN image from the sources.redhat.com site, and was wondering if this
build of redboot has given anyone else any trouble.

The strange part is that the first burst is quite quick, and I am able
to transfer 2k with no trouble, but after that initial transfer, the
rate drops dramatically.  I left the download to run overnight, and
checked the next morning to see that it had taken 5 hours to transfer
the file (while running at 38400 baud.

Thanks for you time,
Peter Blair

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [ECOS] Slow serial transfer to redboot
  2001-08-17 11:54 ` Trenton D. Adams
@ 2001-08-17 12:32   ` Jonathan Larmour
  2001-08-17 12:47   ` Trenton D. Adams
  1 sibling, 0 replies; 12+ messages in thread
From: Jonathan Larmour @ 2001-08-17 12:32 UTC (permalink / raw)
  To: Trenton D. Adams; +Cc: 'Peter Blair', ecos-discuss

"Trenton D. Adams" wrote:
> 
> I had a similar problem when trying to download to an edb7111-2 board.
> It wasn't quite that severe, but here was my problem.
> 
> The tool I was using had too much of a delay for the uspin () function
> which was used for a delay in between each byte sent.  The function is
> below.  I modified the 2000 to a much smaller value, and now I don't
> have any problems.  If you have the source code for your download tool
> you might be able to find a similar solution.

Yes we changed the code since then I believe, to not use the spinner when
loading over the net even with -v. In general, don't use -v when loading
over the net.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [ECOS] Slow serial transfer to redboot
  2001-08-17 11:54 ` Trenton D. Adams
  2001-08-17 12:32   ` Jonathan Larmour
@ 2001-08-17 12:47   ` Trenton D. Adams
  1 sibling, 0 replies; 12+ messages in thread
From: Trenton D. Adams @ 2001-08-17 12:47 UTC (permalink / raw)
  To: 'Trenton D. Adams', 'Peter Blair', ecos-discuss

Oh, you're probably using gdb!  In that case maybe there's something
wrong with redboot on your PC.  I can't even access redboot at all on my
PC.  very weird things happen.  Anyhow, that's another story.

-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[ mailto:ecos-discuss-owner@sources.redhat.com ] On Behalf Of Trenton D.
Adams
Sent: Friday, August 17, 2001 12:54 PM
To: 'Peter Blair'; ecos-discuss@sourceware.cygnus.com
Subject: RE: [ECOS] Slow serial transfer to redboot


I had a similar problem when trying to download to an edb7111-2 board.
It wasn't quite that severe, but here was my problem.

The tool I was using had too much of a delay for the uspin () function
which was used for a delay in between each byte sent.  The function is
below.  I modified the 2000 to a much smaller value, and now I don't
have any problems.  If you have the source code for your download tool
you might be able to find a similar solution.

static void
uspin(int len)
{
    volatile int cnt;
    while (--len >= 0) {
        for (cnt = 1;  cnt < 2000;  cnt++) ;
    }
}

-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[ mailto:ecos-discuss-owner@sources.redhat.com ] On Behalf Of Peter Blair
Sent: Friday, August 17, 2001 12:40 PM
To: ecos-discuss@sourceware.cygnus.com
Subject: [ECOS] Slow serial transfer to redboot


Regards All,

I've been experiencing extremely slow transfer rates when downloading my
srec applications to an i386 target from both NT4 & 2000 machines.

I've tested with multiple cables to numerous target hosts from multiple
source hosts with no change.  I've been using the pre-compiled redboot
.BIN image from the sources.redhat.com site, and was wondering if this
build of redboot has given anyone else any trouble.

The strange part is that the first burst is quite quick, and I am able
to transfer 2k with no trouble, but after that initial transfer, the
rate drops dramatically.  I left the download to run overnight, and
checked the next morning to see that it had taken 5 hours to transfer
the file (while running at 38400 baud.

Thanks for you time,
Peter Blair

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [ECOS] Slow serial transfer to redboot
  2001-08-17 11:41 [ECOS] Slow serial transfer to redboot Peter Blair
  2001-08-17 11:54 ` Trenton D. Adams
@ 2001-08-17 13:16 ` Gary Thomas
  2001-08-17 13:25   ` Jonathan Larmour
  1 sibling, 1 reply; 12+ messages in thread
From: Gary Thomas @ 2001-08-17 13:16 UTC (permalink / raw)
  To: Peter Blair; +Cc: ecos-discuss

On 17-Aug-2001 Peter Blair wrote:
> Regards All,
> 
> I've been experiencing extremely slow transfer rates when downloading my
> srec applications to an i386 target from both NT4 & 2000 machines.
> 
> I've tested with multiple cables to numerous target hosts from multiple
> source hosts with no change.  I've been using the pre-compiled redboot
> .BIN image from the sources.redhat.com site, and was wondering if this
> build of redboot has given anyone else any trouble.
> 
> The strange part is that the first burst is quite quick, and I am able
> to transfer 2k with no trouble, but after that initial transfer, the
> rate drops dramatically.  I left the download to run overnight, and
> checked the next morning to see that it had taken 5 hours to transfer
> the file (while running at 38400 baud.
>

This might be a problem with the serial FIFOs not being enabled.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [ECOS] Slow serial transfer to redboot
  2001-08-17 13:16 ` Gary Thomas
@ 2001-08-17 13:25   ` Jonathan Larmour
  0 siblings, 0 replies; 12+ messages in thread
From: Jonathan Larmour @ 2001-08-17 13:25 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Peter Blair, ecos-discuss

Gary Thomas wrote:
> 
> On 17-Aug-2001 Peter Blair wrote:
> > Regards All,
> >
> > I've been experiencing extremely slow transfer rates when downloading my
> > srec applications to an i386 target from both NT4 & 2000 machines.
> >
> > I've tested with multiple cables to numerous target hosts from multiple
> > source hosts with no change.  I've been using the pre-compiled redboot
> > .BIN image from the sources.redhat.com site, and was wondering if this
> > build of redboot has given anyone else any trouble.
> >
> > The strange part is that the first burst is quite quick, and I am able
> > to transfer 2k with no trouble, but after that initial transfer, the
> > rate drops dramatically.  I left the download to run overnight, and
> > checked the next morning to see that it had taken 5 hours to transfer
> > the file (while running at 38400 baud.
> >
> 
> This might be a problem with the serial FIFOs not being enabled.

If this is the problem it's easily fixed - just uncomment the line in
hal/i386/pcmb/current/src/pcmb_serial.c:cyg_hal_plf_serial_init_channel()

However it's difficult to do this all the time without being sure it works.
See the amount of (admittedly configurable) cruft I added to
devs/serial/generic/16x5x/current/src/ser_16x5x.c to do the detection.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [ECOS] Slow serial transfer to redboot
  2001-08-17 14:36     ` Jonathan Larmour
@ 2001-08-17 14:41       ` Trenton D. Adams
  0 siblings, 0 replies; 12+ messages in thread
From: Trenton D. Adams @ 2001-08-17 14:41 UTC (permalink / raw)
  To: 'Jonathan Larmour'; +Cc: 'Peter Blair', ecos-discuss

Yep, I found it.  Thanks anyhow!

I just haven't had time to read the Redboot docs because I'm working on
other things right now.  I just try a PC redboot build once in awhile.
Hopefully I can get it working with the NE2000 driver because that would
be extremely cool.

-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[ mailto:ecos-discuss-owner@sources.redhat.com ] On Behalf Of Jonathan
Larmour
Sent: Friday, August 17, 2001 3:37 PM
To: Trenton D. Adams
Cc: 'Peter Blair'; ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Slow serial transfer to redboot


"Trenton D. Adams" wrote:
> 
> redboot_FLOPPY.ecm?  I never even heard of this.  Maybe that's one of
my
> problems because my own builds of RedBoot for the PC don't work
either.

http://sources.redhat.com/ecos/docs-latest/redboot/x86pc.html#AEN2031

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223)
271062
Maybe this world is another planet's Hell -Aldous Huxley ||
Opinions==mine

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [ECOS] Slow serial transfer to redboot
@ 2001-08-17 14:38 Peter Blair
  0 siblings, 0 replies; 12+ messages in thread
From: Peter Blair @ 2001-08-17 14:38 UTC (permalink / raw)
  To: Trenton D. Adams, ecos-discuss

Jonathon: Thanks for the tip-- RedBoot has now successfully compiled,
now I'm just testing some sample executables.
 
Treton:
It's located at :
 
${ECOS_REPOSITORY}/hal/i386/pc/current/misc/redboot_FLOPPY.ecm
 

	-----Original Message----- 
	From: Trenton D. Adams 
	Sent: Fri 8/17/2001 4:43 PM 
	To: 'Jonathan Larmour'; Peter Blair 
	Cc: ecos-discuss@sourceware.cygnus.com 
	Subject: RE: [ECOS] Slow serial transfer to redboot
	
	

	redboot_FLOPPY.ecm?  I never even heard of this.  Maybe that's
one of my
	problems because my own builds of RedBoot for the PC don't work
either.
	

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [ECOS] Slow serial transfer to redboot
  2001-08-17 13:43   ` Trenton D. Adams
@ 2001-08-17 14:36     ` Jonathan Larmour
  2001-08-17 14:41       ` Trenton D. Adams
  0 siblings, 1 reply; 12+ messages in thread
From: Jonathan Larmour @ 2001-08-17 14:36 UTC (permalink / raw)
  To: Trenton D. Adams; +Cc: 'Peter Blair', ecos-discuss

"Trenton D. Adams" wrote:
> 
> redboot_FLOPPY.ecm?  I never even heard of this.  Maybe that's one of my
> problems because my own builds of RedBoot for the PC don't work either.

http://sources.redhat.com/ecos/docs-latest/redboot/x86pc.html#AEN2031

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [ECOS] Slow serial transfer to redboot
  2001-08-17 13:33 ` Jonathan Larmour
@ 2001-08-17 13:43   ` Trenton D. Adams
  2001-08-17 14:36     ` Jonathan Larmour
  0 siblings, 1 reply; 12+ messages in thread
From: Trenton D. Adams @ 2001-08-17 13:43 UTC (permalink / raw)
  To: 'Jonathan Larmour', 'Peter Blair'; +Cc: ecos-discuss

redboot_FLOPPY.ecm?  I never even heard of this.  Maybe that's one of my
problems because my own builds of RedBoot for the PC don't work either.

-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com
[ mailto:ecos-discuss-owner@sources.redhat.com ] On Behalf Of Jonathan
Larmour
Sent: Friday, August 17, 2001 2:33 PM
To: Peter Blair
Cc: Trenton D. Adams; ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Slow serial transfer to redboot


Peter Blair wrote:
> 
> Yes, I've been using GDB for the image transfer with no luck--  I've
> tried
> rebuilding redboot with the repositiory supplied with the 1.3.1
> configuration tools for Windows no avail-- the redboot template
doesn't
> seem
> to be available.
> 
> I CVS'd the repository on Monday, but haven't been able to get v1.3.1
of
> the
> Configuration utility to recognize the current repository.

You have to use the tools from
http://sources.redhat.com/ecos/anoncvs.html
or the v2 config tool.

> I'm
> currently
> experimenting with version 2 of the configuration tool with Monday's
> snapshot of the repository but am still running into difficulties...
> 
> I've successfully compiled both redboot.bin & redboot.elf files for
i386
> target, and dd'd them to a floppy, but upon bootup of the target the
> machine hangs with a blank screen.  I didn't change any of the default
> settings for the redboot template.

Did you remember to import the redboot_FLOPPY.ecm file? Without that, it
won't know how to boot!

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223)
271062
Maybe this world is another planet's Hell -Aldous Huxley ||
Opinions==mine

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [ECOS] Slow serial transfer to redboot
  2001-08-17 13:27 Peter Blair
@ 2001-08-17 13:33 ` Jonathan Larmour
  2001-08-17 13:43   ` Trenton D. Adams
  0 siblings, 1 reply; 12+ messages in thread
From: Jonathan Larmour @ 2001-08-17 13:33 UTC (permalink / raw)
  To: Peter Blair; +Cc: Trenton D. Adams, ecos-discuss

Peter Blair wrote:
> 
> Yes, I've been using GDB for the image transfer with no luck--  I've
> tried
> rebuilding redboot with the repositiory supplied with the 1.3.1
> configuration tools for Windows no avail-- the redboot template doesn't
> seem
> to be available.
> 
> I CVS'd the repository on Monday, but haven't been able to get v1.3.1 of
> the
> Configuration utility to recognize the current repository.

You have to use the tools from http://sources.redhat.com/ecos/anoncvs.html
or the v2 config tool.

> I'm
> currently
> experimenting with version 2 of the configuration tool with Monday's
> snapshot of the repository but am still running into difficulties...
> 
> I've successfully compiled both redboot.bin & redboot.elf files for i386
> target, and dd'd them to a floppy, but upon bootup of the target the
> machine hangs with a blank screen.  I didn't change any of the default
> settings for the redboot template.

Did you remember to import the redboot_FLOPPY.ecm file? Without that, it
won't know how to boot!

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [ECOS] Slow serial transfer to redboot
@ 2001-08-17 13:27 Peter Blair
  2001-08-17 13:33 ` Jonathan Larmour
  0 siblings, 1 reply; 12+ messages in thread
From: Peter Blair @ 2001-08-17 13:27 UTC (permalink / raw)
  To: Trenton D. Adams; +Cc: ecos-discuss

Yes, I've been using GDB for the image transfer with no luck--  I've
tried
rebuilding redboot with the repositiory supplied with the 1.3.1
configuration tools for Windows no avail-- the redboot template doesn't
seem
to be available.

I CVS'd the repository on Monday, but haven't been able to get v1.3.1 of
the
Configuration utility to recognize the current repository.  I'm
currently
experimenting with version 2 of the configuration tool with Monday's
snapshot of the repository but am still running into difficulties...
 
I've successfully compiled both redboot.bin & redboot.elf files for i386
target, and dd'd them to a floppy, but upon bootup of the target the
machine hangs with a blank screen.  I didn't change any of the default
settings for the redboot template.

	-----Original Message----- 
	From: Trenton D. Adams 
	Sent: Fri 8/17/2001 3:47 PM 
	To: 'Trenton D. Adams'; Peter Blair;
ecos-discuss@sourceware.cygnus.com 
	Cc: 
	Subject: RE: [ECOS] Slow serial transfer to redboot
	
	

	Oh, you're probably using gdb!  In that case maybe there's
something
	wrong with redboot on your PC.  I can't even access redboot at
all on my
	PC.  very weird things happen.  Anyhow, that's another story.
	

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-08-17 14:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-17 11:41 [ECOS] Slow serial transfer to redboot Peter Blair
2001-08-17 11:54 ` Trenton D. Adams
2001-08-17 12:32   ` Jonathan Larmour
2001-08-17 12:47   ` Trenton D. Adams
2001-08-17 13:16 ` Gary Thomas
2001-08-17 13:25   ` Jonathan Larmour
2001-08-17 13:27 Peter Blair
2001-08-17 13:33 ` Jonathan Larmour
2001-08-17 13:43   ` Trenton D. Adams
2001-08-17 14:36     ` Jonathan Larmour
2001-08-17 14:41       ` Trenton D. Adams
2001-08-17 14:38 Peter Blair

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).