linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* atm8260-1.0.1
@ 2003-09-15 15:03 shagitgy
  2003-09-16  6:23 ` atm8260-1.0.1 w.n. jacobs
  0 siblings, 1 reply; 5+ messages in thread
From: shagitgy @ 2003-09-15 15:03 UTC (permalink / raw)
  To: linuxppc-embedded


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

Any answer will be very helpful!!!
Thanks a lot,
Hagit Guy


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

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

* Re: atm8260-1.0.1
  2003-09-15 15:03 atm8260-1.0.1 shagitgy
@ 2003-09-16  6:23 ` w.n. jacobs
  0 siblings, 0 replies; 5+ messages in thread
From: w.n. jacobs @ 2003-09-16  6:23 UTC (permalink / raw)
  To: shagitgy; +Cc: linuxppc-embedded


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/

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

* RE: atm8260-1.0.1
@ 2003-09-16 12:04 Nishen Brijraj
  2003-09-16 13:08 ` atm8260-1.0.1 w.n. jacobs
  0 siblings, 1 reply; 5+ messages in thread
From: Nishen Brijraj @ 2003-09-16 12:04 UTC (permalink / raw)
  To: w.n. jacobs, shagitgy; +Cc: linuxppc-embedded


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/

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

* RE: atm8260-1.0.1
  2003-09-16 12:04 atm8260-1.0.1 Nishen Brijraj
@ 2003-09-16 13:08 ` w.n. jacobs
  0 siblings, 0 replies; 5+ messages in thread
From: w.n. jacobs @ 2003-09-16 13:08 UTC (permalink / raw)
  To: Nishen Brijraj; +Cc: w.n. jacobs, shagitgy, linuxppc-embedded


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/

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

* RE: atm8260-1.0.1
@ 2003-09-16 13:37 Nishen Brijraj
  0 siblings, 0 replies; 5+ messages in thread
From: Nishen Brijraj @ 2003-09-16 13:37 UTC (permalink / raw)
  To: w.n. jacobs; +Cc: shagitgy, linuxppc-embedded


Hello Willy.

Thanks for the prompt reply.

>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

Did that, and also what's below. One difference however, is that there
is no risctimer.c file to create an object file, only the risctimer.h
which is included in some files. I also added the suni.o object to the
list of objects below (the suni.c and suni.h files are included in the
dir). Is that correct?

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

I was getting reference errors referring to 'debug_print' but they were
originating from the unrelated uart.c file.

I did eventually get it to compile by not using that function and fixing
some other errors on my part.

At the moment, on boot up of the kernel, it says that:

utopia (itf 0): no signal

after a couple of read and write to the suni.

Still trying to debug this, but thanks for the help so far. I woiuld
appreciate any further advice on your part.

--
brij


** 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:[~2003-09-16 13:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-16 12:04 atm8260-1.0.1 Nishen Brijraj
2003-09-16 13:08 ` atm8260-1.0.1 w.n. jacobs
  -- strict thread matches above, loose matches on Subject: below --
2003-09-16 13:37 atm8260-1.0.1 Nishen Brijraj
2003-09-15 15:03 atm8260-1.0.1 shagitgy
2003-09-16  6:23 ` atm8260-1.0.1 w.n. jacobs

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