Opened 9 years ago

Closed 9 years ago

Last modified 2 years ago

#2278 closed defect (invalid)

npe microcode loaded, but "link down"

Reported by: J-Nox Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version:
Keywords: npe microcode Cc:


kamikaze7.07 in Z-Com 3121P (xscale be arm platform, 
ixp422 intel processor, 2 mini-pci slots)

RedBoot is 
RedBoot(tm) bootstrap and debug environment [ROM]
Red Hat certified release, version 1.92 - built 10:44:29, Apr  9 2004

for download NPE-B microcode to device - I patch by hand

kamikaze_7.07/build_armeb/linux/drivers/net/ixp4xx/npe_ucode.c line31
-static unsigned char *partition_name = NULL;
+static unsigned char *partition_name = "microcode";

then make image, flash to device:

fis init -f
load -r -b %{FREEMEMLO} openwrt-ixp4xx-2.6-zImage
fis create kernel
load -r -b %{FREEMEMLO} openwrt-ixp4xx-2.6-squashfs.img
fis create -r  0x0001fc00 -l 0x620000 rootfs
load -r -b %{FREEMEMLO} NPE-B
fis create -f 0x50780000 microcode
fis load -b 0x01600000 kernel
exec 0x01600000

Using base address 0x01600000 and length 0x000e2128
Uncompressing Linux............................................................... done, booting the kernel.
Linux version (mib@mib) (gcc version 4.1.2) #30 Mon Aug 27 16:23:20 EEST 2007
CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=000039ff
Machine: Intel IXDP425 Development Platform
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,9600 init=/etc/preinit
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 14224KB available (1744K code, 160K data, 72K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers enabled
dmabounce: registered device 0000:00:01.0 on pci bus
dmabounce: registered device 0000:00:02.0 on pci bus
Time: OSTS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
IXP4xx Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x7e0000
8 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 8 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00060000 : "RedBoot"
0x00060000-0x00160000 : "kernel"
0x00160000-0x00780000 : "rootfs"
0x00240000-0x00780000 : "rootfs_data"
0x00780000-0x007a0000 : "microcode"
0x007a0000-0x007c0000 : "unallocated"
0x007c0000-0x007c1000 : "RedBoot config"
0x007c1000-0x007c2000 : "Config backup"
mtd: partition "Config backup" doesn't start on an erase block boundary -- force read-only
0x007e0000-0x00800000 : "FIS directory"
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <>
IXP4XX Q Manager 0.2.1 initialized.
IXP4XX NPE driver Version 0.3.0 initialized
npe: searching for firmware...
npe: found at 0x0, IXP425/NPE-B func: 00, rev: 2.1, size: 11964, id: 01000201
Image loaded to NPE-B Func:0, Rel: 2:1, Status: 82400000
ixp4xx_crypto 0.0.1 registered successfully
i2c /dev entries driver
TCP westwood registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <>
All bugs added by David S. Miller <>
XScale DSP coprocessor detected.
ixp4xx_mac driver 0.3.1: eth0 on NPE-B with PHY[0] initialized
ixp4xx_mac driver 0.3.1: eth1 on NPE-C with PHY[1] initialized
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (squashfs filesystem) readonly.
Freeing init memory: 72K
Warning: unable to open an initial console.
- preinit -
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -
init started:  BusyBox v1.4.2 (2007-08-08 13:54:02 EEST) multi-call binary

Please press Enter to activate this console. 

BusyBox v1.4.2 (2007-08-08 13:54:02 EEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
eth0: PHY[0] unresponsive
eth0: link down
root@OpenWrt:/# ifconfig
eth0      Link encap:Ethernet  HWaddr 4E:50:72:D0:2F:00  
          inet addr:  Bcast:  Mask:
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@OpenWrt:/# ifconfig eth0 down
root@OpenWrt:/# ifconfig eth0 up  
eth0: link down

why link down ?

Attachments (0)

Change History (6)

comment:1 Changed 9 years ago by kaloz

  1. the board support code doesn't initilise the phy ids right
  2. although not realted for this problem, but you are missing the microcode for NPE-C

comment:2 Changed 9 years ago by anonymous

What files are a part of the "board support code" ?

comment:4 Changed 9 years ago by nlinux

I'm seeing this same problem on a Avila Gateworks GW2345, Does anyone have any idea what needs to be changed to make it work?

comment:5 Changed 9 years ago by kaloz

  • Resolution set to invalid
  • Status changed from new to closed

comment:6 Changed 2 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.