public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] PowerPC SMC serial port drivers.
@ 2002-02-27 14:42 Erik Reikes
  2002-03-02 12:16 ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: Erik Reikes @ 2002-02-27 14:42 UTC (permalink / raw)
  To: ecos-discuss

I've got a bit of confusion on the allocation of serial ports on the MPC860 
PowerPC processor.

A little background :
I am using an A&M Viper board to test out some software that is to run on 
Ecos.  I am using the Redboot that was supplied by A&M in flash.  It 
defaults to what they are calling serial port 2 but is really hooked up to 
SMC1.  It appears to me that the other serial port (what they are calling 
port 1) is hooked up to SCC port 1.

I found a couple of messages relating to a port of the SCC for use as a UART 
on the diag channel a while back.  Did this code ever get rolled into the 
CVS tree for Ecos?  If so, is there a configuration option I am missing that 
enables it?  If not was there a reason it didn't?

I have a need for the extra serial port, so I may just have to write/modify 
a driver to talk to it.

I suppose my other option is to get the ethernet debugging going and use 
SMC1 as my data port.  It seems my DHCP server doesn't respond to the bootp 
requests from redboot, but I haven't tried very hard to figure this one out 
yet.

Thanks in advance.

-Erik Reikes

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] PowerPC SMC serial port drivers.
  2002-02-27 14:42 [ECOS] PowerPC SMC serial port drivers Erik Reikes
@ 2002-03-02 12:16 ` Gary Thomas
  0 siblings, 0 replies; 8+ messages in thread
From: Gary Thomas @ 2002-03-02 12:16 UTC (permalink / raw)
  To: Erik Reikes; +Cc: eCos Discussion

On Wed, 2002-02-27 at 14:47, Erik Reikes wrote: 
> I've got a bit of confusion on the allocation of serial ports on the MPC860 
> PowerPC processor.
> 
> A little background :
> I am using an A&M Viper board to test out some software that is to run on 
> Ecos.  I am using the Redboot that was supplied by A&M in flash.  It 
> defaults to what they are calling serial port 2 but is really hooked up to 
> SMC1.  It appears to me that the other serial port (what they are calling 
> port 1) is hooked up to SCC port 1.
> 
> I found a couple of messages relating to a port of the SCC for use as a UART 
> on the diag channel a while back.  Did this code ever get rolled into the 
> CVS tree for Ecos?  If so, is there a configuration option I am missing that 
> enables it?  If not was there a reason it didn't?
> 

No, although there has been talk of supporting SCCx ports, we've never received
any contributions in this area.  At this time, SCCx is not supported, sorry.

> I have a need for the extra serial port, so I may just have to write/modify 
> a driver to talk to it.
> 

It shouldn't be too hard.

> I suppose my other option is to get the ethernet debugging going and use 
> SMC1 as my data port.  It seems my DHCP server doesn't respond to the bootp 
> requests from redboot, but I haven't tried very hard to figure this one out 
> yet.

The network should work fine (it does for me).  One thing you can do to avoid
messing with DHCP/BOOTP is to use 'fconfig' and set a static IP address.


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] PowerPC SMC serial port drivers.
  2002-03-02 12:42 ` Gary Thomas
@ 2002-03-04  0:30   ` Christoph Csebits
  0 siblings, 0 replies; 8+ messages in thread
From: Christoph Csebits @ 2002-03-04  0:30 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Erik Reikes, eCos Discussion

Hi all,

On Sat, Mar 02, 2002 at 01:29:25PM -0700, Gary Thomas wrote:
> On Sat, 2002-03-02 at 13:16, Erik Reikes wrote:
> > >On Wed, 2002-02-27 at 14:47, Erik Reikes wrote:

[snip]

> > >No, although there has been talk of supporting SCCx ports, we've never 
> > >received
> > >any contributions in this area.  At this time, SCCx is not supported, 
> > >sorry.
> > >
> > 
> > You might want to check out :
> > http://sources.redhat.com/ml/ecos-discuss/2001-07/msg00734.html
> > 
> > It sounds like he implemented it.  I emailed him asking permission to use 
> > that code, but haven't heard back from him yet.

Sorry, I received your mail on Fri, 01 Mar 2002 19:20:19.
Here in Austria its not normal to work at that time :-)

> Indeed, I recall asking him for a similar release with no response.  
> Don't forget that before we can include anything in the eCos repository,
> we have to receive a copyright release for the code.

My company is still working on our "Open Source Policy"
(currently its not the highest priority task ) and thats
the cause for the delay signing the copyright assignment.

But in the meantime as i told Erik its no problem for
my boss and me to use the code. It is not something
really new and anyway based on Red Hat code (SMC driver).

Surely its ok, and i am pleased if it could be useful
for someone else.

regards, Christoph
-- 

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] PowerPC SMC serial port drivers.
  2002-03-02 12:46 Erik Reikes
@ 2002-03-02 15:20 ` Gary Thomas
  0 siblings, 0 replies; 8+ messages in thread
From: Gary Thomas @ 2002-03-02 15:20 UTC (permalink / raw)
  To: Erik Reikes; +Cc: eCos Discussion

On Sat, 2002-03-02 at 13:42, Erik Reikes wrote:
> I connects but after a few packets it goes out to lunch and I have to reboot 
> the target to get it to do anything.  The same thing happens with pings.  
> When I ping the box it always replies to the first three packets but then 
> never responds to anything again.
> 
> I've attached the output of the packet debug from the serial console and 
> what I typed in.
> 
> It appears that the TCP implementation is overflowing or something and 
> crapping out after a few packets.  I may try rebuilding redboot, but I'm a 
> little nervous reflashing the thing as it would be a boat anchor if it 
> doesn't work.  Maybe I'll just run another redboot out of RAM....
> 

Give that a shot.  I just tried my Viper here (we've sadly not had much 
time nor call to work with it much in the past few months) and found 
that it runs much better from RAM than FLASH.

Can you get by with a RAM version [for now]?  Perhaps what we need here
is a ROMRAM version of RedBoot, but I may not be able to get to it soon.




-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] PowerPC SMC serial port drivers.
@ 2002-03-02 13:10 Erik Reikes
  0 siblings, 0 replies; 8+ messages in thread
From: Erik Reikes @ 2002-03-02 13:10 UTC (permalink / raw)
  To: gthomas; +Cc: ecos-discuss

Here's what happens when I ping it, FYI (BTW I changed the target's IP 
address to 192.168.0.69 for no particular reason at all...).  In this case 
after TCP/IP goes out to lunch the serial console is still alive. :

Erik Reikes@REIKES ~
$ ping 192.168.0.69

Pinging 192.168.0.69 with 32 bytes of data:

Reply from 192.168.0.69: bytes=32 time=380ms TTL=64
Reply from 192.168.0.69: bytes=32 time=210ms TTL=64
Request timed out.
Request timed out.

Ping statistics for 192.168.0.69:
    Packets: Sent = 4, Received = 2, Lost = 2 (50% loss),
Approximate round trip times in milli-seconds:
    Minimum = 210ms, Maximum =  380ms, Average =  147ms

Erik Reikes@REIKES ~
$ ping 192.168.0.69

Pinging 192.168.0.69 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.0.69:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum =  0ms, Average =  0ms

Erik Reikes@REIKES ~
$

Here is what happens on the target :

+FLASH: 0xfe000000 - 0xfe100000, 16 blocks of 0x00010000 bytes each.
IP: 192.168.0.69, Default server: 192.168.0.2

RedBoot(tm) bootstrap and debug environment - built 10:35:19, May  1 2001

Platform: A&M VIPER (PowerPC 860)
Copyright (C) 2000, 2001, Red Hat, Inc.

RAM: 0x00000000-0x00800000, 0x0001bb08-0x007e0000 available
RedBoot> Ethernet recv:
0x0000D34C: FFFF FFFF FFFF 0002  3F70 0977 0806        |........?p.w..  |
0x0000D35A: 0001 0800 0604 0001  0002 3F70 0977 C0A8   |..........?p.w..|
0x0000D36A: 0002 0000 0000 0000  C0A8 0045 2020 2020   |...........E    |
0x0000D37A: 2020 2020 2020 2020  2020 2020 2020 F0C8   |              ..|
0x0000D38A: 3353                                       |3S              |
Ethernet send:
0x00005264: 0002 3F70 0977 0800  3E28 7AB8 0806        |..?p.w..>(z...  |
0x0000C26C: 0001 0800 0604 0002  0800 3E28 7AB8 C0A8   |..........>(z...|
0x0000C27C: 0045 0002 3F70 0977  C0A8 0002             |.E..?p.w....    |
Ethernet recv:
0x0000D95C: 0800 3E28 7AB8 0002  3F70 0977 0800        |..>(z...?p.w..  |
0x0000D96A: 4500 003C 05AE 0000  8001 B37B C0A8 0002   |E..<.......{....|
0x0000D97A: C0A8 0045 0800 1B5C  0200 3000 6162 6364   |...E...\..0.abcd|
0x0000D98A: 6566 6768 696A 6B6C  6D6E 6F70 7172 7374   |efghijklmnopqrst|
0x0000D99A: 7576 7761 6263 6465  6667 6869 1F01 47A8   |uvwabcdefghi..G.|
Ethernet send:
0x00005224: 0002 3F70 0977 0800  3E28 7AB8 0800        |..?p.w..>(z...  |
0x0000C26C: 4500 003C 0000 0000  4001 F929 C0A8 0045   |E..<....@..)...E|
0x0000C27C: C0A8 0002 0000 235C  0200 3000 6162 6364   |......#\..0.abcd|
0x0000C28C: 6566 6768 696A 6B6C  6D6E 6F70 7172 7374   |efghijklmnopqrst|
0x0000C29C: 7576 7761 6263 6465  6667 6869             |uvwabcdefghi    |
Ethernet recv:
0x0000DF6C: 0800 3E28 7AB8 0002  3F70 0977 0800        |..>(z...?p.w..  |
0x0000DF7A: 4500 003C 05AF 0000  8001 B37A C0A8 0002   |E..<.......z....|
0x0000DF8A: C0A8 0045 0800 1A5C  0200 3100 6162 6364   |...E...\..1.abcd|
0x0000DF9A: 6566 6768 696A 6B6C  6D6E 6F70 7172 7374   |efghijklmnopqrst|
0x0000DFAA: 7576 7761 6263 6465  6667 6869 C831 16AC   |uvwabcdefghi.1..|
Ethernet send:
0x00005224: 0002 3F70 0977 0800  3E28 7AB8 0800        |..?p.w..>(z...  |
0x0000C26C: 4500 003C 0001 0000  4001 F928 C0A8 0045   |E..<....@..(...E|
0x0000C27C: C0A8 0002 0000 225C  0200 3100 6162 6364   |......"\..1.abcd|
0x0000C28C: 6566 6768 696A 6B6C  6D6E 6F70 7172 7374   |efghijklmnopqrst|
0x0000C29C: 7576 7761 6263 6465  6667 6869             |uvwabcdefghi    |

RedBoot>
RedBoot>



_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] PowerPC SMC serial port drivers.
@ 2002-03-02 12:46 Erik Reikes
  2002-03-02 15:20 ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: Erik Reikes @ 2002-03-02 12:46 UTC (permalink / raw)
  To: gthomas; +Cc: ecos-discuss

I connects but after a few packets it goes out to lunch and I have to reboot 
the target to get it to do anything.  The same thing happens with pings.  
When I ping the box it always replies to the first three packets but then 
never responds to anything again.

I've attached the output of the packet debug from the serial console and 
what I typed in.

It appears that the TCP implementation is overflowing or something and 
crapping out after a few packets.  I may try rebuilding redboot, but I'm a 
little nervous reflashing the thing as it would be a boat anchor if it 
doesn't work.  Maybe I'll just run another redboot out of RAM....




>
>Can you connect to it via the network without GDB?  Just use 'telnet':
>   % telnet 192.168.0.78 9000
>and you should get a RedBoot prompt.

Here's my telnet session.  The help never returns with anything.  After that 
the board is unresponsive to ethernet packets and is no longer alive at the 
serial console.  On reboot it again accepts a few packets.

$ telnet 192.168.0.69 9000
Trying 192.168.0.69...
Connected to 192.168.0.69.
Escape character is '^]'.
RedBoot> help


Here is what happens with packet debugging turned on at the target.  
Sometimes after the pings the serial portion will still be responsive even 
with the dead ehternet seems kind of random like a pointer has run amok 
somewhere... :


RedBoot>  +FLASH: 0xfe000000 - 0xfe100000, 16 blocks of 0x00010000 bytes 
each.
IP: 192.168.0.69, Default server: 192.168.0.2

RedBoot(tm) bootstrap and debug environment - built 10:35:19, May  1 2001

Platform: A&M VIPER (PowerPC 860)
Copyright (C) 2000, 2001, Red Hat, Inc.

RAM: 0x00000000-0x00800000, 0x0001bb08-0x007e0000 available
RedBoot> Ethernet recv:
0x0000D34C: 0800 3E28 7AB8 0002  3F70 0977 0800        |..>(z...?p.w..  |
0x0000D35A: 4500 0030 03A4 4000  8006 758C C0A8 0002   |E..0..@...u.....|
0x0000D36A: C0A8 0045 0464 2328  6936 709F 0000 0000   |...E.d#(i6p.....|
0x0000D37A: 7002 4000 C025 0000  0204 05B4 0101 0402   |p.@..%..........|
0x0000D38A: 9524 BEE0                                  |.$..            |
Ethernet send:
0x000051EC: 0002 3F70 0977 0800  3E28 7AB8 0800        |..?p.w..>(z...  |
0x0000CBB4: 4500 002C 0000 0000  4006 F934 C0A8 0045   |E..,....@..4...E|
0x0000CBC4: C0A8 0002 2328 0464  0000 0000 6936 70A0   |....#(.d....i6p.|
0x0000CBD4: 6012 05B4 0F68 0000  0204 05B4             |`....h......    |
Ethernet recv:
0x0000D95C: 0800 3E28 7AB8 0002  3F70 0977 0800        |..>(z...?p.w..  |
0x0000D96A: 4500 0028 03A5 4000  8006 7593 C0A8 0002   |E..(..@...u.....|
0x0000D97A: C0A8 0045 0464 2328  6936 70A0 0000 0001   |...E.d#(i6p.....|
0x0000D98A: 5010 4470 E868 0000  2020 2020 2020 AF83   |P.Dp.h..      ..|
0x0000D99A: 06D9                                       |..              |
Ethernet send:
0x00005234: 0002 3F70 0977 0800  3E28 7AB8 0800        |..?p.w..>(z...  |
0x0000CBB4: 4500 0031 0001 0000  4006 F92E C0A8 0045   |E..1....@......E|
0x0000CBC4: C0A8 0002 2328 0464  0000 0001 6936 70A0   |....#(.d....i6p.|
0x0000CBD4: 5018 05B4 6CBE 0000  5265 6442 6F6F 743E   |P...l...RedBoot>|
0x0000CBE4: 20                                         |                |
Ethernet recv:
0x0000DF6C: 0800 3E28 7AB8 0002  3F70 0977 0800        |..>(z...?p.w..  |
0x0000DF7A: 4500 0028 03AC 4000  8006 758C C0A8 0002   |E..(..@...u.....|
0x0000DF8A: C0A8 0045 0464 2328  6936 70A0 0000 000A   |...E.d#(i6p.....|
0x0000DF9A: 5010 4467 E868 0000  2020 2020 2020 4170   |P.Dg.h..      Ap|
0x0000DFAA: A6C3                                       |..              |



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] PowerPC SMC serial port drivers.
  2002-03-02 12:29 Erik Reikes
@ 2002-03-02 12:42 ` Gary Thomas
  2002-03-04  0:30   ` Christoph Csebits
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2002-03-02 12:42 UTC (permalink / raw)
  To: Erik Reikes; +Cc: eCos Discussion

On Sat, 2002-03-02 at 13:16, Erik Reikes wrote:
> >On Wed, 2002-02-27 at 14:47, Erik Reikes wrote:
> 
> <snip>
> 
> > > I found a couple of messages relating to a port of the SCC for use as a 
> >UART
> > > on the diag channel a while back.  Did this code ever get rolled into 
> >the
> > > CVS tree for Ecos?  If so, is there a configuration option I am missing 
> >that
> > > enables it?  If not was there a reason it didn't?
> > >
> >
> >No, although there has been talk of supporting SCCx ports, we've never 
> >received
> >any contributions in this area.  At this time, SCCx is not supported, 
> >sorry.
> >
> 
> You might want to check out :
> http://sources.redhat.com/ml/ecos-discuss/2001-07/msg00734.html
> 
> It sounds like he implemented it.  I emailed him asking permission to use 
> that code, but haven't heard back from him yet.
> 

Indeed, I recall asking him for a similar release with no response.  
Don't forget that before we can include anything in the eCos repository,
we have to receive a copyright release for the code.

> >The network should work fine (it does for me).  One thing you can do to 
> >avoid
> >messing with DHCP/BOOTP is to use 'fconfig' and set a static IP address.
> 
> Thanks for the pointer.  I am now able to ping it, but wheneveer I try to 
> connect to it I get this type of scenario from gdb:
> 

Can you connect to it via the network without GDB?  Just use 'telnet':
  % telnet 192.168.0.78 9000
and you should get a RedBoot prompt.

> On the target side it spews out a bunch of decoded ethernet packets.  I have 
> a feeling this could be somehow interfering with the tcp gdb support.  Is 
> there a way to turn these off?  Do I have to run a tftp server if gdb is 
> doing the connection?

No.

> 
> Thanks.
> 
> 
> (gdb) target remote 192.168.0.78:9000
> Couldn't establish connection to remote target
> Malformed response to offset query, timeout
> 
> Remote debugging using 192.168.0.78:9000
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> 
> (gdb) load
> Error: You can't do that when your target is `exec'
> 
> (gdb) target remote 192.168.0.78:9000
> Error: 192.168.0.78:9000: Attempt to connect timed out without establishing 
> a connection.
> 
> (gdb)
> 
> 
> 
> 
> 
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] PowerPC SMC serial port drivers.
@ 2002-03-02 12:29 Erik Reikes
  2002-03-02 12:42 ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: Erik Reikes @ 2002-03-02 12:29 UTC (permalink / raw)
  To: gthomas; +Cc: ecos-discuss

>On Wed, 2002-02-27 at 14:47, Erik Reikes wrote:

<snip>

> > I found a couple of messages relating to a port of the SCC for use as a 
>UART
> > on the diag channel a while back.  Did this code ever get rolled into 
>the
> > CVS tree for Ecos?  If so, is there a configuration option I am missing 
>that
> > enables it?  If not was there a reason it didn't?
> >
>
>No, although there has been talk of supporting SCCx ports, we've never 
>received
>any contributions in this area.  At this time, SCCx is not supported, 
>sorry.
>

You might want to check out :
http://sources.redhat.com/ml/ecos-discuss/2001-07/msg00734.html

It sounds like he implemented it.  I emailed him asking permission to use 
that code, but haven't heard back from him yet.

>The network should work fine (it does for me).  One thing you can do to 
>avoid
>messing with DHCP/BOOTP is to use 'fconfig' and set a static IP address.

Thanks for the pointer.  I am now able to ping it, but wheneveer I try to 
connect to it I get this type of scenario from gdb:

On the target side it spews out a bunch of decoded ethernet packets.  I have 
a feeling this could be somehow interfering with the tcp gdb support.  Is 
there a way to turn these off?  Do I have to run a tftp server if gdb is 
doing the connection?

Thanks.


(gdb) target remote 192.168.0.78:9000
Couldn't establish connection to remote target
Malformed response to offset query, timeout

Remote debugging using 192.168.0.78:9000
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...

(gdb) load
Error: You can't do that when your target is `exec'

(gdb) target remote 192.168.0.78:9000
Error: 192.168.0.78:9000: Attempt to connect timed out without establishing 
a connection.

(gdb)





_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

end of thread, other threads:[~2002-03-04  8:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-27 14:42 [ECOS] PowerPC SMC serial port drivers Erik Reikes
2002-03-02 12:16 ` Gary Thomas
2002-03-02 12:29 Erik Reikes
2002-03-02 12:42 ` Gary Thomas
2002-03-04  0:30   ` Christoph Csebits
2002-03-02 12:46 Erik Reikes
2002-03-02 15:20 ` Gary Thomas
2002-03-02 13:10 Erik Reikes

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).