Help on LXT971 eth initialization
KS Soumya-ask067
soumya.k.s at motorola.com
Sat Jan 7 19:32:31 EST 2006
Hi
Have you tried enabling
MPC8260 Communication options->FCC Ethernet option-->Ethernet on FCC1, Use MDIO for PHY-->LXT971 PHY support.
Hope this helps.
Best Regards,
Soumya
-----Original Message-----
From: linuxppc-embedded-bounces at ozlabs.org [mailto:linuxppc-embedded-bounces at ozlabs.org] On Behalf Of linuxppc-embedded-request at ozlabs.org
Sent: Friday, January 06, 2006 7:29 PM
To: linuxppc-embedded at ozlabs.org
Subject: Linuxppc-embedded Digest, Vol 17, Issue 11
Send Linuxppc-embedded mailing list submissions to
linuxppc-embedded at ozlabs.org
To subscribe or unsubscribe via the World Wide Web, visit
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
or, via email, send a message with subject or body 'help' to
linuxppc-embedded-request at ozlabs.org
You can reach the person managing the list at
linuxppc-embedded-owner at ozlabs.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of Linuxppc-embedded digest..."
Today's Topics:
1. How to compile freescale example programs using eldk?
(zengshuai at sogou.com)
2. Help need: Porting Linux to PQ2FADS_ZU board (zengshuai at sogou.com)
3. Re: [PM-SPAM] Help need: Porting Linux to PQ2FADS_ZU board
(KokHow Teh)
4. Re: How to compile freescale example programs using eldk?
(Wolfgang Denk)
5. Re: Help need: Porting Linux to PQ2FADS_ZU board (Wolfgang Denk)
6. Help on LXT971 eth initialization (batsayan.das at tcs.com)
7. Re: io.h question (Arnd Bergmann)
8. How to enable PHY (batsayan.das at tcs.com)
9. Re: How to enable PHY (Mark Chambers)
----------------------------------------------------------------------
Message: 1
Date: Fri, 6 Jan 2006 16:23:54 +0800 (CST)
From: <zengshuai at sogou.com>
Subject: How to compile freescale example programs using eldk?
To: "ppc" <linuxppc-embedded at ozlabs.org>
Message-ID: <6251452.1136535834574.JavaMail.postfix at mx3.mail.sohu.com>
Content-Type: text/plain; charset="GB2312"
I down some freescale example programs at
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPC8260&nodeId=02VS0lDFTQJk192977
Device Drivers
ID and Description Vendor ID Format Size K Rev # Availability
MPC8260API
PowerQUICC II API (Drivers and Examples)
Includes support for PCI, AAL2, AAL5, MSP, and more(10/03/2002) FREESCALE zip 15785 4.0.2
Them aren't linux drvier but for bareboard. How can I compile them using eldk?
------------------------------
ÎÒÏÖÔÚʹÓÃSogou.comµÄ2GÓÊÏäÁË£¬ÄãÒ²À´ÊÔÊÔ°É!
http://mail.sogou.com/recommend/sogoumail_invite_reg1.jsp?from=sogouinvitation&s_EMAIL=zengshuai%40sogou.com&username=linuxppc-embedded&FullName=linuxppc-embedded&Email=linuxppc-embedded%40ozlabs.org&verify=755eff4e640bdcfc57d93cbd8b0a9cb7
------------------------------
Message: 2
Date: Fri, 6 Jan 2006 16:49:50 +0800 (CST)
From: <zengshuai at sogou.com>
Subject: Help need: Porting Linux to PQ2FADS_ZU board
To: "ppc" <linuxppc-embedded at ozlabs.org>
Message-ID:
<23894955.1136537390660.JavaMail.postfix at mx3.mail.sohu.com>
Content-Type: text/plain; charset="GB2312"
I use ELDK3.1.1(2005-06-07).
There is a u-boot 1.1.3 and a linux 2.4.25 in the eldk.
I has compile u-boot successfully.And it works good.
I has compile kernel successfully too.(make ads8260_config) But it doesn't work.
Detail:
-------------------------------------------------------------------------
U-Boot 1.1.3 (Dec 27 2005 - 19:35:12)
MPC8260 Reset Status: Check Stop, External Soft, External Hard
MPC8260 Clock Configuration
- Bus-to-Core Mult 4.5x, VCO Div 2, 60x Bus Freq 22-65 , Core Freq 100-300
- dfbrg 1, corecnf 0x07, busdf 5, cpmdf 1, plldf 0, pllmf 5
- vco_out 600000000, scc_clk 150000000, brg_clk 37500000
- cpu_clk 450000000, cpm_clk 300000000, bus_clk 100000000
- pci_clk 50000000
CPU: MPC8260 (HiP7 Rev 13, Mask 0.1 1K49M) at 450 MHz
Board: Motorola PQ2FADS-ZU
DRAM: 32 MB
FLASH: 8 MB
In: serial
Out: serial
Err: serial
Net: FCC2 ETHERNET
Hit any key to stop autoboot: 0
=> printenv
bootdelay=5
baudrate=115200
ethact=FCC2 ETHERNET
ethaddr=0A:00:00:00:00:0A
gatewayip=172.17.248.1
netmask=255.255.255.0
ipaddr=172.17.248.244
serverip=172.17.248.253
bootcmd=tftp 100000 vmlinux.UBoot; bootm 100000 bootargs=root=/dev/nfs rw nfsroot=172.17.248.253:/opt/eldk3/ppc_6xx ip=172.17.24 8.244:172.17.248.253:172.17.248.253:255.255.255.0:pq2fads::off
stdin=serial
stdout=serial
stderr=serial
Environment size: 398/262140 bytes
=> boot
Using FCC2 ETHERNET device
TFTP from server 172.17.248.253; our IP address is 172.17.248.244 Filename 'vmlinux.UBoot'.
Load address: 0x100000
Loading: #################################################################
#########################################################
done
Bytes transferred = 623547 (983bb hex)
## Booting image at 00100000 ...
Image Name: Linux-2.4.25
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 623483 Bytes = 608.9 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
-----------------------------------------------------------------------------------
At here,it stoped.
Later,I debug the kernel using bdi2000.
I bi start_kernel(),and setp by setp.
But printk(".........) didn't work.
My board is PQ2FADS_ZU.Does the ELDK not support it?
------------------------------
ÎÒÏÖÔÚʹÓÃSogou.comµÄ2GÓÊÏäÁË£¬ÄãÒ²À´ÊÔÊÔ°É!
http://mail.sogou.com/recommend/sogoumail_invite_reg1.jsp?from=sogouinvitation&s_EMAIL=zengshuai%40sogou.com&username=linuxppc-embedded&FullName=linuxppc-embedded&Email=linuxppc-embedded%40ozlabs.org&verify=755eff4e640bdcfc57d93cbd8b0a9cb7
------------------------------
Message: 3
Date: Fri, 6 Jan 2006 17:09:35 +0800
From: "KokHow Teh" <KokHow.Teh at marconi.com>
Subject: Re: [PM-SPAM] Help need: Porting Linux to PQ2FADS_ZU board
To: linuxppc-embedded at ozlabs.org
Message-ID:
<OFF860A6FA.D61DCEB9-ON482570EE.0031F142 at uk.marconicomms.com>
Content-Type: text/plain; charset=us-ascii
>bootargs=root=/dev/nfs rw nfsroot=172.17.248.253:/opt/eldk3/ppc_6xx
ip=172.17.24
>8.244:172.17.248.253:172.17.248.253:255.255.255.0:pq2fads::off
add console=/dev/ttyS0,115200n8 and see if it works?
------------------------------
Message: 4
Date: Fri, 06 Jan 2006 11:08:44 +0100
From: Wolfgang Denk <wd at denx.de>
Subject: Re: How to compile freescale example programs using eldk?
To: zengshuai at sogou.com
Cc: ppc <linuxppc-embedded at ozlabs.org>
Message-ID: <20060106100844.A025D354113 at atlas.denx.de>
Content-Type: text/plain; charset=ISO-8859-1
In message <6251452.1136535834574.JavaMail.postfix at mx3.mail.sohu.com> you wrote:
>
> Them aren't linux drvier but for bareboard. How can I compile them using eldk?
You do it exactly the same way like you do it with any other compiler toolchain.
If the tools come with Makefiles and Linker scripts for GNU gcc and ld then you are set. If not, you will have to come up with your own build rules and linker commands.
You can check how U-Boot code (especially the standalone programs) gets linked, but be warned, this is not exactly trivial. You have to understand what you are doing, and how the linker works.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Just because your doctor has a name for your condition doesn't mean he knows what it is.
------------------------------
Message: 5
Date: Fri, 06 Jan 2006 11:13:25 +0100
From: Wolfgang Denk <wd at denx.de>
Subject: Re: Help need: Porting Linux to PQ2FADS_ZU board
To: zengshuai at sogou.com
Cc: ppc <linuxppc-embedded at ozlabs.org>
Message-ID: <20060106101325.B9FED354113 at atlas.denx.de>
Content-Type: text/plain; charset=ISO-8859-1
In message <23894955.1136537390660.JavaMail.postfix at mx3.mail.sohu.com> you wrote:
>
> My board is PQ2FADS_ZU.Does the ELDK not support it?
ELDK is, as the name suggests, a Development Toolkit, i. e. a
toolchain. As such, it is independent from the hardware and doesn not
support any specific board, or, if you like, it supports all boards,
even those that don't exist yet.
What you are asking for is board support in a specific kernel tree.
There is no specific support for the PQ2FADS_ZU board in our
linuxppc_2_4_devel tree (which is included with the ELDK
distribution). On the other hand this is a standard board which which
is probably working fine, but we never tested or varified it.
I guess that it is not configured for use with U-Boot.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Never give in. Never give in. Never. Never. Never."
- Winston Churchill
------------------------------
Message: 6
Date: Fri, 6 Jan 2006 16:13:42 +0530
From: batsayan.das at tcs.com
Subject: Help on LXT971 eth initialization
To: linuxppc-embedded at ozlabs.org
Message-ID:
<OFE75E4E98.D56217BF-ON652570EE.0039B69D-652570EE.003AEEB0 at tcs.com>
Content-Type: text/plain; charset="us-ascii"
Hi,
My MPC8260 customs board has LXT971 Ethernet chip on FCC1. I am able to
get the linux prompt, but I am unable to initialize ethernet. I have tried
different bootarg options (like setenv bootargs ip=dhcp etc) and
different kernel compilation options (like from make menuconfig, Network
Option->enable DHCP support etc), but none enables the ethernet interface.
Any help will be appreciated.
FYI, the ethernet is working from U-Boot.
Thanks,
Batsayan Das
Tata Consultancy Services Limited
Mailto: batsayan.das at tcs.com
Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060106/83e47b9d/attachment-0001.htm
------------------------------
Message: 7
Date: Fri, 6 Jan 2006 12:03:55 +0000
From: Arnd Bergmann <arnd at arndb.de>
Subject: Re: io.h question
To: linuxppc-embedded at ozlabs.org
Message-ID: <200601061203.55926.arnd at arndb.de>
Content-Type: text/plain; charset="iso-8859-1"
On Thursday 05 January 2006 21:00, mcnernbm at notes.udayton.edu wrote:
> I finally noticed out_8 and in_8 and what not are located in the
> ppc io.h file in the kernel development download. But when I
> tried to do a io.h with in my program I added #include <asm/io.h>
> and it seems to find it with not problems but it can not find the
> functions with in that file. Am i missing a define I need to set
> or something so I can see the right files with in io.h I am
> compiling for a ppc405 on a xilinx virtex 4 board.
The definitions in that file are only usable from inside the kernel,
you can not use them in a user space application.
The correct way to solve your problem (which you did not explain, so
I can only guess) would be to write a kernel device driver for
the peripherial you want to drive, at least if it does not exist yet.
For prototyping, you can play with mmap() on /dev/mem in a user
application, but that is often not very reliable.
Arnd <><
------------------------------
Message: 8
Date: Fri, 6 Jan 2006 18:43:08 +0530
From: batsayan.das at tcs.com
Subject: How to enable PHY
To: linuxppc-embedded at ozlabs.org
Message-ID:
<OF114C07C5.7CED9F64-ON652570EE.00481B82-652570EE.00489CCF at tcs.com>
Content-Type: text/plain; charset="us-ascii"
Hi,
I found that ADS8260 board enables PHY by the following lines of code
#ifndef CONFIG_ADS8260
/* Enable the PHY.
*/
*(volatile uint *)(BCSR_ADDR + 4) &= ~BCSR1_FETHIEN;
*(volatile uint *)(BCSR_ADDR + 4) |= BCSR1_FETH_RST;
#endif
Our board does not have BCSR. My question is how to enable PHY for MPC8260
based customs board without BCSR?
Thanks,
Batsayan Das
Tata Consultancy Services Limited
Mailto: batsayan.das at tcs.com
Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060106/8701df92/attachment-0001.htm
------------------------------
Message: 9
Date: Fri, 6 Jan 2006 08:41:41 -0500
From: "Mark Chambers" <markc at mail.com>
Subject: Re: How to enable PHY
To: <linuxppc-embedded at ozlabs.org>, <batsayan.das at tcs.com>
Message-ID: <004201c612c6$ee3ede80$6601a8c0 at chuck2>
Content-Type: text/plain; charset="iso-8859-1"
>I found that ADS8260 board enables PHY by the following lines of code
>
>#ifndef CONFIG_ADS8260
> /* Enable the PHY.
> */
> *(volatile uint *)(BCSR_ADDR + 4) &= ~BCSR1_FETHIEN;
> *(volatile uint *)(BCSR_ADDR + 4) |= BCSR1_FETH_RST;
>#endif
>
>Our board does not have BCSR. My question is how to enable PHY for MPC8260 based customs board without BCSR?
If your board does not have the BCSR you can just leave this code out. Usually, you only need to configure which MDII
interface your PHY is connected to and which IRQ it uses. But of course I don't know how your PHY is wired up on your
custom board.
Mark Chambers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060106/9228b002/attachment.htm
------------------------------
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded at ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
End of Linuxppc-embedded Digest, Vol 17, Issue 11
*************************************************
More information about the Linuxppc-embedded
mailing list