RE: atm8260-1.0.1

2 messages, 2 authors, 2003-09-16 · open the first message on its own page

RE: atm8260-1.0.1

From: Nishen Brijraj <hidden>
Date: 2003-09-16 12:04:56

Hello all.

I am using the mpc8260ads board running the 2.4.4 kernel and the phy is
also the pm5350.

In reference to the message below, why can't you use the code as a
loadable module?  I have tried it this way, and it does eventually
compile and insert, although it doesn't do much else at the moment.

I have also tried to compile the code into the kernel, but that is
proving to be more difficult than just doing what you stated below.
There are a whole lot of undefined reference errors.

By the way, the module_init() is in the file mpc8260sar_detect.c.

Please let me know why you say that it must be compiled into kernel, and
also any other steps or defines that I may need.

You also don't make any mention of the suni/phy code below. How should
that be compiled in or included?

Thank you.


-----Original Message-----
From: w.n. jacobs [mailto:willy.jacobs@nl.thalesgroup.com]
Sent: 16 September 2003 08:23 AM
To: shagitgy@techst02.technion.ac.il
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: atm8260-1.0.1


shagitgy@techst02.technion.ac.il writes:
 >
 > Hi
 > I have an mpc8260 board and Linux running on it (I uses Lineo's BSP
with kernel
 > 2.4.1). I want to run the atm8260-1.0.1 on my board. My phy is s/uni
pm 5350-
 > rc.
 > My question is:
 > Can I use the package from:
https://sourceforge.net/projects/atm8260/ as is?

You can use it. Just unpack the files in arch/ppc/ppc/8260_io.

Add this line to the Makefile in that directory:

obj-$(CONFIG_UTOPIA)	+= mpc8260sar.o mpc8260sar_detect.o intpool.o
mpool.o \
			   risctimer.o mm.o cpmtimer.o utopia.o debug.o
mpc8260iop.o

and this line to Config.in (same directory):

bool 'CPM FCC ATM/UTOPIA' CONFIG_UTOPIA

For the kernel config file you need to enable at least these options:
CONFIG_ATM=y
CONFIG_UTOPIA=y

PS. Check the #defines in the unpacked files if they are correct for
your
situation.

 > How can I use it? should I compile it with the kernel, or can I
insert it as a
 > loadable module (I didnt find the module_init() call).

You can't use it as a loadable module, just compile it directly in the
kernel.
--
willy


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

RE: atm8260-1.0.1

From: w.n. jacobs <hidden>
Date: 2003-09-16 13:08:43

Nishen Brijraj writes:
 > Hello all.
 >
 > I am using the mpc8260ads board running the 2.4.4 kernel and the phy is
 > also the pm5350.

You also need to set the kernel configuation variable:
CONFIG_ATM_VADS=y

and extend the Makefile with vads_phy.o:
obj-$(CONFIG_UTOPIA)	+= mpc8260sar.o mpc8260sar_detect.o intpool.o mpool.o \
			   risctimer.o mm.o cpmtimer.o utopia.o debug.o \
			   mpc8260iop.o vads_phy.o

 > In reference to the message below, why can't you use the code as a
 > loadable module?  I have tried it this way, and it does eventually
 > compile and insert, although it doesn't do much else at the moment.

Allocation and de-allocation of buffer descriptors and other buffers in
dual-port memory might give problems.

 > I have also tried to compile the code into the kernel, but that is
 > proving to be more difficult than just doing what you stated below.
 > There are a whole lot of undefined reference errors.

Such as? I compiled it without problems (but without vads_phy.o).

--
willy


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help