booting problem ML300 :eth0: Could not read PHY control register; err

Hi all,

I am loading linux onto the ML300. I have created a zImage.elf file for ppc with the drivers and bsps for the project created using the EDK.I am booting from NFS, the board is the client and my system is the server. while booting up i get the following error.

.................................. ................. eth0: using fifo mode. eth0: No PHY detected. Assuming a PHY at address 0. eth0: Xilinx EMAC #0 at 0x40C00000 mapped to 0xC9070000, irq=31 eth0: id 2.0h; block id 7, type 1 NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 1024 buckets, 8Kbytes TCP: Hash tables configured (established 8192 bind 16384) eth0: Could not read PHY control register; error 19 IP-Config: Complete: device=eth0, addr=192.168.1.10, mask=255.255.255.0, gw=192.168.1.1, host=192.168.1.10, domain=, nis-domain=(none), bootserver=192.168.1.5, rootserver=192.168.1.5, rootpath= NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. Looking up port of RPC 100003/2 on 192.168.1.5 Root-NFS: Unable to get nfsd port number from server, using default Looking up port of RPC 100005/1 on 192.168.1.5 Root-NFS: Unable to get mountd port number from server, using default eth0: Could not read PHY control register; err

Coould anyone please guide me, as to what i am doing wrong, and possible solution for this error.

with warm regards, chakra.

Reply to
chakra
Loading thread data ...

it looks like the PHY managment interface is broken (or the PHY chip worst case) the driver when starts is trying to access the internal registers of the PHY but it seems to fail (this interface is serial of type clk, and a bidirectional data pin MDIO)

here when is trying to mount the /root remotely it can't reach the port for NFS (NFS server running on 192.168.1.5) due to various reasons (network link, PHY chip etc.)

same like the first one.

Try to debug (hardware) the conetions between the FPGA and PHY, I mean the MDIO (PHY serial mangement interface) and try to det rid of the first error message (very likely will fix the second one) Make sure your *.ucf file matches the fpga pin locations, check against the schematics.

Have fun, Aurash

Reply to
Aurelian Lazarut

Can you successfully boot Linux from the MicroDrive shipping with the ML300 and then mount the NFS filesystem as root from the command prompt?

- Peter

chakra wrote:

Reply to
Peter Ryser

I forgot to add this. I have a root file system created by using the "klingauf" mkrootfs script. I placed the root file system on my linux host at /opt/ml300_rootfs. In the kernel .config file i made using make menuconfig, i included the following config cmd line in the "General Setup" section

CONFIG_CMDLINE="console=ttyS0,38400 root=/dev/nfs nfsaddrs= 192.168.1.10:192.168.1.5:192.168.1.1:255.255.255.0 rw nfsroot=/opt/ml300_rootfs "

I used the compact flash to boot the kernel . The kernel boots prperly. but then the error given above comes in.

Reply to
chakra

Hi Peter.

part1::: I tried to use my system.ace file to boot and load the linux root file system from the microdrive shipped with the ml300. The linux boots up but when loading the rootfile system from the micro drive it gives me an error saying that "cannot find /dev/xsysace/..part3 or

00.00. specify a correct root= option".

In my zImage.elf i had included the xsysace support and in the command line i used the same command as Xilinx uses "root=/dev/xsysace/disc0/part3".

----------------------------------------------------------------------------------------------------------- part 2::: I treid to use the linux sample the xilinx provided, it boots up well and i logged in as root. I setup the eth0 address of the board as 192.168.0.10, with default gateway as 192.168.0.1 and subnet mask as 255.255.255.0

On my computer i setup the second nic card (eth1) as 192.168.0.1, subnet mask as 255.255.255.0. the ifconfig looks like this

eth1 Link encap:Ethernet HWaddr 00:10:B5:F9:72:5B inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::210:b5ff:fef9:725b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:63 errors:0 dropped:0 overruns:0 frame:0 TX packets:27 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:24948 (24.3 Kb) TX bytes:2308 (2.2 Kb) Interrupt:10 Base address:0xb800

Now when i tried to mount a directory from my computer to the board using nfs using the following command on the board it gies the error

command"" mount -t nfs 192.168.0.1:/opt/ml300_rootfs /pub

note: /opt/ml300_rootfs is in computer and /pub directory is on board.

error" mount:RPC:Unable to receive;errno=connection refused

With warm regards, Chakra.

Reply to
chakra

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.