OpenWrt Forum Archive

Topic: Lanready AP-1000 MII read failed

The content of this topic has been archived on 14 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I've flashed openwrt on this unit and I am getting the following:

eth0: MII PHY 1 on NPE-B
eth0: MII PHY 2 on NPE-B
eth0: MII read failed
eth0: MII read failed
eth0: MII read failed
eth0: MII read failed
eth0: MII PHY 3 on NPE-B
eth0: MII PHY 4 on NPE-B
eth0: MII read failed
eth0: MII read failed
eth0: MII read failed
eth0: MII read failed
eth1: MII PHY 5 on NPE-C
eth1: MII read failed
eth1: MII read failed

the kernel is:

Linux version 2.6.27.8 (alex@aifnis) (gcc version 4.2.4) #1 Wed Dec 10 10:45:48 EET 2008

mtd partitions:

cat /proc/mtd

dev:    size   erasesize  name
mtd0: 00040000 00020000 "RedBoot"
mtd1: 00100000 00020000 "kernel"
mtd2: 00e80000 00020000 "rootfs"
mtd3: 00001000 00020000 "RedBoot config"
mtd4: 00020000 00020000 "FIS directory"

the RedBoot is:

RedBoot(tm) bootstrap and debug environment [ROM]
Red Hat certified release, version 1.92 - built 21:10:32, Dec 16 2003

Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x10000000, 0x0001f880-0x0ffd1000 available
FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each.
RedBoot>

the only issue I see is the following:

RedBoot> set_npe_mac
NPE eth0 mac: 00:01:af:00:20:ec
NPE eth1 mac: 00:01:af:00:20:ec
RedBoot> set_npe_mac -p 0 00:01:af:00:20:ec
eeprom_write: Can't get start ACK
eeprom_write: Can't get start ACK
eeprom_write: Can't get start ACK
eeprom_write: Can't get start ACK
eeprom_write: Can't get start ACK
eeprom_write: Can't get start ACK

network works fine under RedBoot but not under openwrt. I believe the issue is on the RedBoot setup. any feedback on this will be much appreciated.

Edit: some resources for the Intel IXP400 platform can be found here

(Last edited by acoul on 10 Dec 2008, 19:49)

How many ethernet ports do you have?

Kaloz wrote:

How many ethernet ports do you have?

two. the platform is this one.

Then use the tw266 kernel image instead of the ap1000 smile There are two boards used in those units.

i tried both openwrt-tw2662-zImage & openwrt-ixdpg425-zImage but the unit will not boot.  the only kernel that boots is the openwrt-ap1000-zImage.  I am thinking that the problem is that the mac addressees of the two ethernet cards are missing from the redboot config section and eeprom perhaps?  looking at the wiki page I see the following:

RedBoot> fconfig -l -n
...
net_device: npe_eth1
npe_eth0_esa: 0x00:0x19:0x3B:0x00:0x03:0xD7
npe_eth1_esa: 0x00:0x19:0x3B:0x00:0x03:0xD8
device_type: LGO2AGN

my device though produces just the following:

net_device: npe_eth0

trying to enter the mac address by hand on the eeprom produces the following error:

et_npe_mac -p 0 00:01:af:00:20:ec
eeprom_write: Can't get start ACK
eeprom_write: Can't get start ACK
eeprom_write: Can't get start ACK
eeprom_write: Can't get start ACK
eeprom_write: Can't get start ACK
eeprom_write: Can't get start ACK

is this a flash unlocking issue? I have no clue which area should I try to unlock in order to write the factory MAC addresses printed on the board to the eeprom.  reading further the wiki pages I came upon this:

Configure MAC addresses: fconfig npe_eth0_esa 0x00:0x01:0x02:0x03:0x04:0x05. Use MAC address at the bottom of the unit!

trying to issue this command on the RedBoot prompt gives the following:

RedBoot> fconfig npe_eth0_esa 0x00:0x01:0x02:0x03:0x04:0x05
** entry 'npe_eth0_esa' not found

tried to load some other RedBoot RAM images but none recognizes the ethernet cards. downloaded the redboot source and the arm-elf toolchain from intel web site but this is getting away from my knowledge base  ... :-(

I will check this today/next week and will get back to you.

DId you ever find a solution to this problem?

The discussion might have continued from here.