mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [help] PHY driver : Unable to find a PHY (unknown ID?)
@ 2013-01-04  9:09 Mylene Josserand
  2013-01-04 10:18 ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Mylene Josserand @ 2013-01-04  9:09 UTC (permalink / raw)
  To: barebox mailist

Hi everyone !


I am new in compiling Barebox (with OE-core) and I need your help.

I am using the master branch (maybe I need to checkout a tag ?). The 
ethernet of my board is a SMSC LAN8700 and the microchip is iMX27.

I have configured the new source of barebox to use the Phylib and MII 
drivers. When my barebox starts, I have an error about the PHY driver :

"
Unable to find a PHY (unknown ID?)
dhcp failed: I/O error
dhcp: I/O error
"

My devinfo :

"
barebox:/ devinfo
devices:
`---- platform
    `---- imx_iim0
    `---- imx27-ccm0
    `---- imx1-gpt0
    `---- imx1-gpio0
    `---- imx1-gpio1
    `---- imx1-gpio2
    `---- imx1-gpio3
    `---- imx1-gpio4
    `---- imx1-gpio5
    `---- imx21-wdt0
    `---- imx27-esdctl0
    `---- imx21-uart0
       `---- cs0
    `---- mem0
       `---- 0x00000000-0x07ffffff: /dev/ram0
    `---- mem1
       `---- 0x00000000-0xfffffffe: /dev/mem
    `---- cfi_flash0
       `---- 0x00000000-0x01ffffff: /dev/nor0
       `---- 0x00000000-0x0003ffff: /dev/self0
       `---- 0x00040000-0x0005ffff: /dev/env0
       `---- 0x00000000-0x0003ffff: /dev/nor0.barebox
       `---- 0x00040000-0x0005ffff: /dev/nor0.bareboxenv
       `---- 0x00060000-0x002bffff: /dev/nor0.kernel
       `---- 0x002c0000-0x01ffffff: /dev/nor0.root
    `---- cfi_flash1
       `---- 0x00000000-0x01ffffff: /dev/nor1
    `---- imx_nand
       `---- nand0
       `---- 0x00000000-0x1fffffff: /dev/nand0
       `---- 0x00000000-0x00ffffff: /dev/nand_oob0
    `---- i2c-fsl0
       `---- i2c0
          `---- lp39720
             `---- 0x00000000-0x000000ff: /dev/lp3972
          `---- ds133x0
             `---- 0x00000000-0x000000ff: /dev/ds133x
          `---- pca95350
             `---- 0x00000000-0x000000ff: /dev/pca9535
    `---- i2c-fsl1
       `---- i2c1
    `---- imxfb
    `---- imx27-fec
       `---- miibus0
       `---- eth0
`---- mdio_bus
`---- i2c
`---- fb
    `---- fb0
       `---- 0x00000000-0x000bb7ff: /dev/fb0
`---- fs
    `---- ramfs0
    `---- devfs0
`---- net
`---- global

drivers:
imx27-ccm
imx_serial
imx-esdctl
ramfs
devfs
tftp
imx-gpt
imx-gpio
SMSC LAN83C185
SMSC LAN8187
SMSC LAN8700
SMSC LAN911x Internal PHY
SMSC LAN8710/LAN8720
fec_imx
Generic PHY
imx_nand
cfi_flash
i2c-gpio
i2c-fsl
fb
imxfb
lp3972
ds133x
pca9535
imx-watchdog
mem
"

The SMSC LAN8700 is here but I can not make it work !

I have added some prints on the phy.c and the problem is in the fonction 
"mdiobus_scan" :

if (!edev->phydev) {
	if (addr >= 0) {
		dev = mdiobus_scan(bus, addr);
		if (!dev) {                     << Failed here
			ret = -EIO;
			goto fail;
		}

Did I miss something ?
Did I have to specify something in the board info ?
Is it correct to use the master branch ? I tried the v2012.12.1 tag but 
I get some errors before starting barebox ("no stack data available" and 
other errors).


Thank you in advance for any help and happy new year !


-- 
Mylène JOSSERAND

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2013-01-07 13:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-04  9:09 [help] PHY driver : Unable to find a PHY (unknown ID?) Mylene Josserand
2013-01-04 10:18 ` Thomas Petazzoni
2013-01-04 11:03   ` Mylene Josserand
2013-01-04 11:23     ` Thomas Petazzoni
2013-01-04 12:46       ` Mylene Josserand
2013-01-04 13:28         ` Eric Bénard
2013-01-07 13:56           ` Mylene Josserand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox