linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 8260 FCC Ethernet driver
@ 2000-09-15  8:31 Rainer Kloud
  2000-09-15 15:43 ` Dan Malek
  0 siblings, 1 reply; 5+ messages in thread
From: Rainer Kloud @ 2000-09-15  8:31 UTC (permalink / raw)
  To: linuxppc-embedded


Hello,

I'm porting the embedded 2.4.0-test4 kernel to the
Motorola Scout Board. This board consists of a
MPC750 and MPC8260 which we use in 'Companion Mode',
that means that the core of the MPC8260 is switched
off and therefore the core of the MPC750 is mapped
into the MPC8260.

Up to now I had only to insert the Memory Map of my
Board and to perform some minor modifications (f.e to
enable the serial interface which resides on SCC1).

The next step of the porting process will be to enable
the Ethernet which resides on FCC2.
So my question is: Does anyone have a Ethernet Driver
for the FCC?

Thanx in advance.

Rainer

scout> load net 5f0000
scout> go 600000
Jump to Addr: 0x600000 ...
loaded at:     00600000 0060B274
relocated to:  00400000 0040B274
board data at: 0000002E 0000005A
relocated to:  00200100 0020012C
zimage at:     00606000 0067EEFC
avail ram:     0067F000 02000000

Linux/PPC load:
Uncompressing Linux...done.
Now booting the kernel
Total memory = 32MB; using 128kB for hash table (at c0160000)
Linux version 2.4.0-test4 (kloud@PCC141) (gcc version 2.95.2 19991024
(release)) #135 Thu Sep 14 17:32:46 CEST 2000
Boot arguments: root=/dev/nfs rw
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/nfs rw
Calibrating delay loop... 3434.09 BogoMIPS
Memory: 30736k available (912k kernel code, 380k data, 44k init)
[c0000000,c2000000]
Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 2048 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.3
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
Starting kswapd v1.6
CPM UART driver version 0.01
ttyS00 at 0x8000 is a SCC
pty: 256 Unix98 ptys configured
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: registered device at major 7
loop: enabling 8 loop devices
Serial driver version 5.01 (2000-05-29) with no serial options enabled
Testing ttyS0 (0x03f8, 0x0000)...


--
.........................................................
Rainer Kloud
Siemens AG Österreich, PSE EZE TR2
mailto:rainer.kloud@siemens.at      http://www.siemens.at


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: 8260 FCC Ethernet driver
  2000-09-15  8:31 8260 FCC Ethernet driver Rainer Kloud
@ 2000-09-15 15:43 ` Dan Malek
  2000-09-15 16:12   ` Dan Malek
  2000-09-20 14:11   ` 8260 FCC Ethernet driver, cpm_8260.h Rainer Kloud
  0 siblings, 2 replies; 5+ messages in thread
From: Dan Malek @ 2000-09-15 15:43 UTC (permalink / raw)
  To: Rainer Kloud; +Cc: linuxppc-embedded


Rainer Kloud wrote:

> So my question is: Does anyone have a Ethernet Driver
> for the FCC?


Ummmm.....arch/ppc/8260_io/fcc_enet.c should do the trick......

I am constantly making updates to the sources for 8260, and recently
updated the driver (there is another major update coming).  You should
probably get used to using the BitKeeper tree from FSM Labs...
	www.fsmlabs.com/linuxppcbk/html


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: 8260 FCC Ethernet driver
  2000-09-15 15:43 ` Dan Malek
@ 2000-09-15 16:12   ` Dan Malek
  2000-09-20 14:11   ` 8260 FCC Ethernet driver, cpm_8260.h Rainer Kloud
  1 sibling, 0 replies; 5+ messages in thread
From: Dan Malek @ 2000-09-15 16:12 UTC (permalink / raw)
  To: Rainer Kloud, linuxppc-embedded


Dan Malek wrote:

>         www.fsmlabs.com/linuxppcbk/html

Ooops...that is linuxppcbk.html.....The linuxppc.org web site will
send you there as well.


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: 8260 FCC Ethernet driver, cpm_8260.h
  2000-09-15 15:43 ` Dan Malek
  2000-09-15 16:12   ` Dan Malek
@ 2000-09-20 14:11   ` Rainer Kloud
  2000-09-20 16:26     ` Dan Malek
  1 sibling, 1 reply; 5+ messages in thread
From: Rainer Kloud @ 2000-09-20 14:11 UTC (permalink / raw)
  To: linuxppc-embedded


Dear Dan,

> Rainer Kloud wrote:
>
> > So my question is: Does anyone have a Ethernet Driver
> > for the FCC?
>
> Ummmm.....arch/ppc/8260_io/fcc_enet.c should do the trick......
>
> I am constantly making updates to the sources for 8260, and recently
> updated the driver (there is another major update coming).  You should
> probably get used to using the BitKeeper tree from FSM Labs...
>         www.fsmlabs.com/linuxppcbk/html

Thank you for your tip, the source file wasn't included in my
old distribution.

But one further question:
After compelation of your driver I was able to send some
data (bootp request), but I couldn't receive any. Further
I got no transmit interrupt. So I took a look to the FCC
mask register and I saw that the FCCM (and of course FCCE)
register is a 32 bit register where only the higher word is
used. But when useing the event constants (f.e. FCC_ENET_TXB)
from cpm_8260.h only the bits in the lower word are set.
So setting the desired events in the FCC mask register has
no effect!
After that I have changed the constants to manipulate the
high word and everything seems to work correct (I got my
transmit and receive interrupts).
I have seen, that the FCCM/FCCE are different from other
channels, f.e the SCC. There the mask register is only
defined as 16 bit register.

What do you think about this?

Bye,
Rainer


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: 8260 FCC Ethernet driver, cpm_8260.h
  2000-09-20 14:11   ` 8260 FCC Ethernet driver, cpm_8260.h Rainer Kloud
@ 2000-09-20 16:26     ` Dan Malek
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Malek @ 2000-09-20 16:26 UTC (permalink / raw)
  To: Rainer Kloud; +Cc: linuxppc-embedded


Rainer Kloud wrote:

> But one further question:
> After compelation of your driver I was able to send some
> data (bootp request), but I couldn't receive any.

Check to make sure you are using the same pins for clocks as
the driver has.  That is a common problem.

> So setting the desired events in the FCC mask register has
> no effect!

Well, you have to be a little careful here.  I don't have the
book handy to look up the details, but there are several places
where things are assigned 32-bit address alignments, but only
the upper 8 or 16 are valid.  In some cases, these also have
to be accessed as 16-bit operations on the 32-bit aligment.
One of the reasons is an attempt to use legacy microcode from
the 8xx, which is a 16/20/32-bit CPM architecture in a fully 32-bit
CPM of the 8260....

The code that is posted works on Rev. A parts on several platforms.
I am sure there are some mistakes, but look at it carefully....:-)

> What do you think about this?

I guess I better take a closer look.....

Thanks.


	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-09-20 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-15  8:31 8260 FCC Ethernet driver Rainer Kloud
2000-09-15 15:43 ` Dan Malek
2000-09-15 16:12   ` Dan Malek
2000-09-20 14:11   ` 8260 FCC Ethernet driver, cpm_8260.h Rainer Kloud
2000-09-20 16:26     ` Dan Malek

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 NNTP newsgroup(s).