[U-Boot-Users] Flash not-readable??

brian.auld at adic.com brian.auld at adic.com
Thu Mar 20 21:50:57 CET 2003


All,

I have this weird problem, or at least it appears weird.

We have a handful of ebony/440GPs that we are using in the initial stages of our 440GP based project. 

I have a BDI2000 and have used that to program u-boot into flash on each of our boards. Some of them work ... some of them don't. The behavior of the ebonies that don't work are described below:

- u-boot appears to be successfully programmed into flash. A comparision of 
  of the initial menus of functional and non-functional ebonies are shown 
  below.
- When I reboot the machine, everything appears sane until I try to read a
  location from flash, as garbage is returned. I set up my boot parms and
  everything proceeds to the point where the kernel code tries to read the
  mac addr from the VPD area 0xfffffe00. Since garbage appears to be 
  returned whenever flash is read, the mac addr as a result is hosed and
  the boot process doesn't complete. On working boards, I typicallly program
  the mac addrs by hand into the VPD. I did this on the hosed boards, but I
  can't confirm success as whenever I read back the VPD area, it gives me 
  the same repetitive garble.

What puzzles me is if there is a problem reading from flash, how does u-boot run in the first place? 

Any ideas on what's happening with the uncooperative boards.

Logs below.

-- Brian

1. POST BOOT DISPLAY
====================
<-------- 1a Working board start ----------->
U-Boot 0.2.0 (Feb 20 2003 - 09:46:32)

IBM PowerPC 440 Rev. C
Board: IBM 440GP Evaluation Board (Ebony)
        VCO: 800 MHz
        CPU: 400 MHz
        PLB: 133 MHz
        OPB: 66 MHz
        EPB: 66 MHz
I2C:   ready
DRAM:  I2c read: failed 4
I2c read: failed 4
128 MB
FLASH:  4.5 MB
PCI:   Bus Dev VenId DevId Class Int
In:    serial
Out:   serial
Err:   serial
KGDB:  kgdb ready
ready
BEDBUG:ready
Hit any key to stop autoboot:  0
<-------- 1a Working board end ----------->

<-------- 1b Uncooperative board start ----------->
U-Boot 0.2.0 (Feb  4 2003 - 16:52:28)

IBM PowerPC 440 Rev. C
Board: IBM 440GP Evaluation Board (Ebony)
        VCO: 800 MHz
        CPU: 400 MHz
        PLB: 133 MHz
        OPB: 66 MHz
        EPB: 66 MHz
I2C:   ready
DRAM:  I2c read: failed 4
I2c read: failed 4
128 MB
FLASH: ## Unknown FLASH on Bank 2 - Size = 0x00000000 = 0 MB
 4 MB
PCI:   Bus Dev VenId DevId Class Int
        00  03  1077  2200  0100  00
        00  04  1077  2200  0100  ff
In:    serial
Out:   serial
Err:   serial
KGDB:  kgdb ready
ready
BEDBUG:ready
Hit any key to stop autoboot:  0
<-------- 1b Uncooperative board end   ----------->

2. Read from flash
====================
<-------- 2a Working board start ----------->
=> md 0xfff80000
fff80000: 27051956 552d426f 6f742030 2e322e30    '..VU-Boot 0.2.0
fff80010: 20284665 62203230 20323030 33202d20     (Feb 20 2003 -
fff80020: 30393a34 363a3332 29000000 00000000    09:46:32).......
fff80030: 00000000 00000000 00000000 00000000    ................
fff80040: 00000000 00000000 00000000 00000000    ................
fff80050: 00000000 00000000 00000000 00000000    ................
fff80060: 00000000 00000000 00000000 00000000    ................
fff80070: 00000000 00000000 00000000 00000000    ................
fff80080: 00000000 00000000 00000000 00000000    ................
fff80090: 00000000 00000000 00000000 00000000    ................
fff800a0: 00000000 00000000 00000000 00000000    ................
fff800b0: 00000000 00000000 00000000 00000000    ................
fff800c0: 00000000 00000000 00000000 00000000    ................
fff800d0: 00000000 00000000 00000000 00000000    ................
fff800e0: 00000000 00000000 00000000 00000000    ................
fff800f0: 00000000 00000000 00000000 00000000    ................
<-------- 2a Working board start ----------->

<-------- 2b Uncooperative board start ----------->
=> md 0xfff80000
fff80000: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff80010: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff80020: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff80030: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff80040: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff80050: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff80060: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff80070: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff80080: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff80090: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff800a0: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff800b0: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff800c0: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff800d0: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff800e0: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
fff800f0: 20e20018 20e20018 20e20018 20e20018     ... ... ... ...
<-------- 2b Uncooperative board end   ----------->

3. Boot failure on uncooperative board
======================================
=> printenv
baudrate=9600
loads_echo=1
ethaddr=00:04:ac:e3:1a:51
serial#=EBONY1-172-16-77-154
serverip=172.16.77.52
rootpath=/home/bauld/ppc_4xx
ipaddr=172.16.77.154
gatewayip=172.16.77.1
netmask=255.255.255.0
hostname=EBONY-1
bootfile=/tftpboot/vmlinux.bauld
bootcmd=tftpboot 0x100000 $(bootfile); setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off; bootm
bootdelay=5
stdin=serial
stdout=serial
stderr=serial

Environment size: 478/4092 bytes
=> run bootcmd
ENET Speed is 100 Mbps - HALF duplex connection
ARP broadcast 1
TFTP from server 172.16.77.52; our IP address is 172.16.77.154
Filename '/tftpboot/vmlinux.bauld'.
Load address: 0x100000
Loading: #################################################################
         #####################################################
done
Bytes transferred = 603311 (934af hex)
## Booting image at 00100000 ...
   Image Name:   Linux-2.4.20
   Created:      2003-03-20  15:37:06 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    603247 Bytes = 589.1 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Linux version 2.4.20 (bauld at pluto1) (gcc version 2.95.4 20010319 (prerelease/fra
nzo/20011204)) #1 Thu Mar 20 10:33:42 EST 2003
IBM Ebony port (C) 2002 MontaVista Software, Inc. (source at mvista.com)
On node 0 totalpages: 32768
zone(0): 4096 pages.
zone(1): 28672 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/nfs rw nfsroot=172.16.77.52:/home/bauld/ppc_4xx i
p=172.16.77.154:172.16.77.52:172.16.77.1:255.255.255.0:EBONY-1::off
rtsched version <20011203.1609.50>
Calibrating delay loop... 599.65 BogoMIPS
Memory: 127656k available (1036k kernel code, 352k data, 212k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
PCI: moved device 00:03.0 resource 0 (101) to 1000
PCI: Error while updating region 00:04.0/0 (00001401 != ffffffff)
PCI: moved device 00:04.0 resource 0 (101) to 1400
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0xfdfe9200 (irq = 0) is a 16550A
ttyS01 at 0xfdfe8300 (irq = 1) is a 16550A
Zmii bridge in RMII mode
eth0: Phy @ 0x8, type Am79c875A (0x00225541)
Reset ethernet interfaces
Zmii bridge in RMII mode
eth1: Phy @ 0x9, type Am79c875A (0x00225541)
Reset ethernet interfaces
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
eth0: IBM EMAC: link up, 100 Mbps Half Duplex, auto-negotiation complete.
eth0: IBM EMAC: MAC 20:e2:00:18:20:e2.
eth0: IBM EMAC: open completed

eth1: IBM EMAC: link up, 10 Mbps Half Duplex.
eth1: IBM EMAC: MAC 20:e2:00:18:20:e2.
eth1: IBM EMAC: open completed

Sending BOOTP requests ...... timed out!
Trying to free free IRQ61
Trying to free free IRQ32
Trying to free free IRQ33
Trying to free free IRQ34
Trying to free free IRQ10
Trying to free free IRQ11
IP-Config: Retrying forever (NFS root)...
eth0: IBM EMAC: link up, 100 Mbps Half Duplex, auto-negotiation complete.
eth0: IBM EMAC: MAC 20:e2:00:18:20:e2.
eth0: IBM EMAC: open completed




More information about the U-Boot mailing list