MPC5200 - problem with CF card

4 messages, 2 authors, 2005-01-06 · open the first message on its own page

MPC5200 - problem with CF card

From: Jón Benediktsson <hidden>
Date: 2005-01-05 14:24:08

<br><font size=3D2 face=3D"sans-serif">Hi</font>
<br>
<br><font size=3D2 face=3D"sans-serif">I am working with a custom MPC5200 b=
oard
which uses the built-in ATA/IDE controller for a compact flash card.</font>
<br><font size=3D2 face=3D"sans-serif">The Linux kernel is Denx linux=5F2=
=5F4=5Fdevel.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">I have been using an old SanDisk 16MB
CF card which works fine. &nbsp;Here is the console output with this card
plugged in:</font>
<br>
<br><font size=3D2 face=3D"sans-serif">U-Boot 1.1.2 (Dec &nbsp;2 2004 - 16:=
01:06)</font>
<br>
<br><font size=3D2 face=3D"sans-serif">CPU: &nbsp; MPC5200 v1.2 at 396 MHz<=
/font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;Bus 132 M=
Hz,
IPB 66 MHz, PCI 33 MHz</font>
<br><font size=3D2 face=3D"sans-serif">Board: Marel NS4</font>
<br><font size=3D2 face=3D"sans-serif">I2C: &nbsp; 85 kHz, ready</font>
<br><font size=3D2 face=3D"sans-serif">DRAM: &nbsp;128 MB</font>
<br><font size=3D2 face=3D"sans-serif">FLASH: 16 MB</font>
<br><font size=3D2 face=3D"sans-serif">In: &nbsp; &nbsp;serial</font>
<br><font size=3D2 face=3D"sans-serif">Out: &nbsp; serial</font>
<br><font size=3D2 face=3D"sans-serif">Err: &nbsp; serial</font>
<br><font size=3D2 face=3D"sans-serif">Net: &nbsp; FEC ETHERNET</font>
<br><font size=3D2 face=3D"sans-serif">IDE: &nbsp; Bus 0: OK </font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; Device 0: Model: SanDisk SDCF=
B-16
Firm: vde 1.10 Ser#: 24349220714</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp;
Type: Removable Hard Disk</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp;
Capacity: 15.3 MB =3D 0.0 GB (31360 x 512)</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Type &quot;run flash=5Fnfs&quot; to =
mount
root filesystem over NFS</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Hit any key to stop autoboot: &nbsp;0
</font>
<br><font size=3D2 face=3D"sans-serif">Using FEC ETHERNET device</font>
<br><font size=3D2 face=3D"sans-serif">TFTP from server 10.100.1.30; our IP
address is 10.100.50.68</font>
<br><font size=3D2 face=3D"sans-serif">Filename 'mpc5200/uImage'.</font>
<br><font size=3D2 face=3D"sans-serif">Load address: 0x200000</font>
<br><font size=3D2 face=3D"sans-serif">Loading: ###########################=
######################################</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;##=
###############################################################</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;##=
###########################</font>
<br><font size=3D2 face=3D"sans-serif">done</font>
<br><font size=3D2 face=3D"sans-serif">Bytes transferred =3D 810417 (c5db1 =
hex)</font>
<br><font size=3D2 face=3D"sans-serif">## Booting image at 00200000 ...</fo=
nt>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Image Name: &nbsp; Linu=
x-2.4.25</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Created: &nbsp; &nbsp;
&nbsp;2004-12-03 &nbsp;11:35:18 UTC</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Image Type: &nbsp; Powe=
rPC
Linux Kernel Image (gzip compressed)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Data Size: &nbsp; &nbsp=
;810353
Bytes =3D 791.4 kB</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Load Address: 00000000<=
/font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Entry Point: &nbsp;0000=
0000</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Verifying Checksum ...
OK</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Uncompressing Kernel Im=
age
... OK</font>
<br><font size=3D2 face=3D"sans-serif">Memory BAT mapping: BAT2=3D128Mb, BA=
T3=3D0Mb,
residual: 0Mb</font>
<br><font size=3D2 face=3D"sans-serif">Linux version 2.4.25 (jonb@tux.marel=
.is)
(gcc version 3.2.2 20030217 (Yellow Dog</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp;Linux 3.0 3.2.2-2a=5F1)) #4 F=
=F6s
Des 3 11:34:35 UTC 2004</font>
<br><font size=3D2 face=3D"sans-serif">On node 0 totalpages: 32768</font>
<br><font size=3D2 face=3D"sans-serif">zone(0): 32768 pages.</font>
<br><font size=3D2 face=3D"sans-serif">zone(1): 0 pages.</font>
<br><font size=3D2 face=3D"sans-serif">zone(2): 0 pages.</font>
<br><font size=3D2 face=3D"sans-serif">Kernel command line: root=3D/dev/nfs=
 rw
nfsroot=3D10.100.1.30:/opt/eldk/ppc=5F82xx ip=3D</font>
<br><font size=3D2 face=3D"sans-serif">10.100.50.68:10.100.1.30:10.100.254.=
254:255.255.0.0:ns4b:eth0:off
panic=3D1</font>
<br><font size=3D2 face=3D"sans-serif">Calibrating delay loop... 263.78 Bog=
oMIPS</font>
<br><font size=3D2 face=3D"sans-serif">Memory: 127080k available (1396k ker=
nel
code, 464k data, 76k init, 0k highmem)</font>
<br><font size=3D2 face=3D"sans-serif">Dentry cache hash table entries: 163=
84
(order: 5, 131072 bytes)</font>
<br><font size=3D2 face=3D"sans-serif">Inode cache hash table entries: 8192
(order: 4, 65536 bytes)</font>
<br><font size=3D2 face=3D"sans-serif">Mount cache hash table entries: 512
(order: 0, 4096 bytes)</font>
<br><font size=3D2 face=3D"sans-serif">Buffer cache hash table entries: 8192
(order: 3, 32768 bytes)</font>
<br><font size=3D2 face=3D"sans-serif">Page-cache hash table entries: 32768
(order: 5, 131072 bytes)</font>
<br><font size=3D2 face=3D"sans-serif">POSIX conformance testing by UNIFIX<=
/font>
<br><font size=3D2 face=3D"sans-serif">PCI: Probing PCI hardware</font>
<br><font size=3D2 face=3D"sans-serif">Linux NET4.0 for Linux 2.4</font>
<br><font size=3D2 face=3D"sans-serif">Based upon Swansea University Comput=
er
Society NET3.039</font>
<br><font size=3D2 face=3D"sans-serif">Initializing RT netlink socket</font>
<br><font size=3D2 face=3D"sans-serif">Starting kswapd</font>
<br><font size=3D2 face=3D"sans-serif">Journalled Block Device driver loade=
d</font>
<br><font size=3D2 face=3D"sans-serif">JFFS2 version 2.2. (C) 2001-2003 Red
Hat, Inc.</font>
<br><font size=3D2 face=3D"sans-serif">i2c-core.o: i2c core module version
2.6.1 (20010830)</font>
<br><font size=3D2 face=3D"sans-serif">i2c-dev.o: i2c /dev entries driver m=
odule
version 2.6.1 (20010830)</font>
<br><font size=3D2 face=3D"sans-serif">pty: 256 Unix98 ptys configured</fon=
t>
<br><font size=3D2 face=3D"sans-serif">ttyS0 on PSC1</font>
<br><font size=3D2 face=3D"sans-serif">ttyS1 on PSC2</font>
<br><font size=3D2 face=3D"sans-serif">ttyS2 on PSC3</font>
<br><font size=3D2 face=3D"sans-serif">PCF8563 Real-Time Clock Driver $Revi=
sion:
1.3 $ wd@denx.de</font>
<br><font size=3D2 face=3D"sans-serif">RAMDISK driver initialized: 16 RAM d=
isks
of 4096K size 1024 blocksize</font>
<br><font size=3D2 face=3D"sans-serif">loop: loaded (max 8 devices)</font>
<br><font size=3D2 face=3D"sans-serif">Uniform Multi-Platform E-IDE driver
Revision: 7.00beta4-2.4</font>
<br><font size=3D2 face=3D"sans-serif">ide: Assuming 33MHz system bus speed
for PIO modes; override with idebus=3Dxx</font>
<br><font size=3D2 face=3D"sans-serif">Port Config is: 0x91050404</font>
<br><font size=3D2 face=3D"sans-serif">ipb=3D66MHz, set clock period to 15<=
/font>
<br><font size=3D2 face=3D"sans-serif">GPIO config: 91050404</font>
<br><font size=3D2 face=3D"sans-serif">ATA invalid: 00800000</font>
<br><font size=3D2 face=3D"sans-serif">ATA hostcnf: 03000000</font>
<br><font size=3D2 face=3D"sans-serif">ATA pio1 &nbsp; : 100a0a00</font>
<br><font size=3D2 face=3D"sans-serif">ATA pio2 &nbsp; : 02040600</font>
<br><font size=3D2 face=3D"sans-serif">XLB Arb cnf: 80002006</font>
<br><font size=3D2 face=3D"sans-serif">mpc5xxx=5Fide: Setting up IDE interf=
ace
ide0...</font>
<br><font size=3D2 face=3D"sans-serif">Probing IDE interface ide0...</font>
<br><font size=3D2 face=3D"sans-serif">hda: SanDisk SDCFB-16, CFA DISK driv=
e</font>
<br><font size=3D2 face=3D"sans-serif">ide0 at 0xf0003a60-0xf0003a67,0xf000=
3a5c
on irq 45</font>
<br><font size=3D2 face=3D"sans-serif">hda: attached ide-disk driver.</font>
<br><font size=3D2 face=3D"sans-serif">hda: 31360 sectors (16 MB) w/1KiB Ca=
che,
CHS=3D490/2/32</font>
<br><font size=3D2 face=3D"sans-serif">Partition check:</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp;hda: hda1</font>
<br><font size=3D2 face=3D"sans-serif">NS4 Bank 0: Found 1 x16 devices at 0=
x0
in 8-bit mode</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp;Amd/Fujitsu Extended Query Tab=
le
at 0x0040</font>
<br><font size=3D2 face=3D"sans-serif">NS4 Bank 0: CFI does not contain boot
bank location. Assuming top.</font>
<br><font size=3D2 face=3D"sans-serif">number of CFI chips: 1</font>
<br><font size=3D2 face=3D"sans-serif">cfi=5Fcmdset=5F0002: Disabling erase=
-suspend-program
due to code brokenness.</font>
<br><font size=3D2 face=3D"sans-serif">NS4 flash bank 0: Using static image
partition definition</font>
<br><font size=3D2 face=3D"sans-serif">Creating 5 MTD partitions on &quot;N=
S4
Bank 0&quot;:</font>
<br><font size=3D2 face=3D"sans-serif">0x00000000-0x00100000 : &quot;U-Boot=
&quot;</font>
<br><font size=3D2 face=3D"sans-serif">0x00100000-0x00200000 : &quot;kernel=
&quot;</font>
<br><font size=3D2 face=3D"sans-serif">0x00200000-0x00500000 : &quot;initrd=
&quot;</font>
<br><font size=3D2 face=3D"sans-serif">0x00500000-0x00b00000 : &quot;jffs2&=
quot;</font>
<br><font size=3D2 face=3D"sans-serif">0x00b00000-0x01000000 : &quot;Spare&=
quot;</font>
<br>
<br><font size=3D2 face=3D"sans-serif">--- cut out insignificant rest of co=
nsole
output &nbsp;---</font>
<br>
<br>
<br><font size=3D2 face=3D"sans-serif">Now I have a brand new SanDisk 1GB I=
ndustrial
Grade card that is giving me a problem. &nbsp;Here is what happens</font>
<br><font size=3D2 face=3D"sans-serif">with exactly the same u-boot and ker=
nel
versions, just this new CF card plugged in instead of the older one.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">U-Boot 1.1.2 (Dec &nbsp;2 2004 - 16:=
01:06)</font>
<br>
<br><font size=3D2 face=3D"sans-serif">CPU: &nbsp; MPC5200 v1.2 at 396 MHz<=
/font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;Bus 132 M=
Hz,
IPB 66 MHz, PCI 33 MHz</font>
<br><font size=3D2 face=3D"sans-serif">Board: Marel NS4</font>
<br><font size=3D2 face=3D"sans-serif">I2C: &nbsp; 85 kHz, ready</font>
<br><font size=3D2 face=3D"sans-serif">DRAM: &nbsp;128 MB</font>
<br><font size=3D2 face=3D"sans-serif">FLASH: 16 MB</font>
<br><font size=3D2 face=3D"sans-serif">In: &nbsp; &nbsp;serial</font>
<br><font size=3D2 face=3D"sans-serif">Out: &nbsp; serial</font>
<br><font size=3D2 face=3D"sans-serif">Err: &nbsp; serial</font>
<br><font size=3D2 face=3D"sans-serif">Net: &nbsp; FEC ETHERNET</font>
<br><font size=3D2 face=3D"sans-serif">IDE: &nbsp; Bus 0: OK </font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; Device 0: Model: SanDisk SDCF=
BI-1024
Firm: HDX 2.15 Ser#: 111515L1004P3254</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp;
Type: Hard Disk</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp;
Capacity: 977.4 MB =3D 0.9 GB (2001888 x 512)</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Type &quot;run flash=5Fnfs&quot; to =
mount
root filesystem over NFS</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Hit any key to stop autoboot: &nbsp;0
</font>
<br><font size=3D2 face=3D"sans-serif">Using FEC ETHERNET device</font>
<br><font size=3D2 face=3D"sans-serif">TFTP from server 10.100.1.30; our IP
address is 10.100.50.68</font>
<br><font size=3D2 face=3D"sans-serif">Filename 'mpc5200/uImage'.</font>
<br><font size=3D2 face=3D"sans-serif">Load address: 0x200000</font>
<br><font size=3D2 face=3D"sans-serif">Loading: ###########################=
######################################</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;##=
###############################################################</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;##=
###########################</font>
<br><font size=3D2 face=3D"sans-serif">done</font>
<br><font size=3D2 face=3D"sans-serif">Bytes transferred =3D 810417 (c5db1 =
hex)</font>
<br><font size=3D2 face=3D"sans-serif">## Booting image at 00200000 ...</fo=
nt>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Image Name: &nbsp; Linu=
x-2.4.25</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Created: &nbsp; &nbsp;
&nbsp;2004-12-03 &nbsp;11:35:18 UTC</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Image Type: &nbsp; Powe=
rPC
Linux Kernel Image (gzip compressed)</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Data Size: &nbsp; &nbsp=
;810353
Bytes =3D 791.4 kB</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Load Address: 00000000<=
/font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Entry Point: &nbsp;0000=
0000</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Verifying Checksum ...
OK</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp; &nbsp;Uncompressing Kernel Im=
age
... OK</font>
<br><font size=3D2 face=3D"sans-serif">Memory BAT mapping: BAT2=3D128Mb, BA=
T3=3D0Mb,
residual: 0Mb</font>
<br><font size=3D2 face=3D"sans-serif">Linux version 2.4.25 (jonb@tux.marel=
.is)
(gcc version 3.2.2 20030217 (Yellow Dog</font>
<br><font size=3D2 face=3D"sans-serif">&nbsp;Linux 3.0 3.2.2-2a=5F1)) #4 F=
=F6s
Des 3 11:34:35 UTC 2004</font>
<br><font size=3D2 face=3D"sans-serif">On node 0 totalpages: 32768</font>
<br><font size=3D2 face=3D"sans-serif">zone(0): 32768 pages.</font>
<br><font size=3D2 face=3D"sans-serif">zone(1): 0 pages.</font>
<br><font size=3D2 face=3D"sans-serif">zone(2): 0 pages.</font>
<br><font size=3D2 face=3D"sans-serif">Kernel command line: root=3D/dev/nfs=
 rw
nfsroot=3D10.100.1.30:/opt/eldk/ppc=5F82xx ip=3D</font>
<br><font size=3D2 face=3D"sans-serif">10.100.50.68:10.100.1.30:10.100.254.=
254:255.255.0.0:ns4b:eth0:off
panic=3D1</font>
<br><font size=3D2 face=3D"sans-serif">Calibrating delay loop... 263.78 Bog=
oMIPS</font>
<br><font size=3D2 face=3D"sans-serif">Memory: 127080k available (1396k ker=
nel
code, 464k data, 76k init, 0k highmem)</font>
<br><font size=3D2 face=3D"sans-serif">Dentry cache hash table entries: 163=
84
(order: 5, 131072 bytes)</font>
<br><font size=3D2 face=3D"sans-serif">Inode cache hash table entries: 8192
(order: 4, 65536 bytes)</font>
<br><font size=3D2 face=3D"sans-serif">Mount cache hash table entries: 512
(order: 0, 4096 bytes)</font>
<br><font size=3D2 face=3D"sans-serif">Buffer cache hash table entries: 8192
(order: 3, 32768 bytes)</font>
<br><font size=3D2 face=3D"sans-serif">Page-cache hash table entries: 32768
(order: 5, 131072 bytes)</font>
<br><font size=3D2 face=3D"sans-serif">POSIX conformance testing by UNIFIX<=
/font>
<br><font size=3D2 face=3D"sans-serif">PCI: Probing PCI hardware</font>
<br><font size=3D2 face=3D"sans-serif">Linux NET4.0 for Linux 2.4</font>
<br><font size=3D2 face=3D"sans-serif">Based upon Swansea University Comput=
er
Society NET3.039</font>
<br><font size=3D2 face=3D"sans-serif">Initializing RT netlink socket</font>
<br><font size=3D2 face=3D"sans-serif">Starting kswapd</font>
<br><font size=3D2 face=3D"sans-serif">Journalled Block Device driver loade=
d</font>
<br><font size=3D2 face=3D"sans-serif">JFFS2 version 2.2. (C) 2001-2003 Red
Hat, Inc.</font>
<br><font size=3D2 face=3D"sans-serif">i2c-core.o: i2c core module version
2.6.1 (20010830)</font>
<br><font size=3D2 face=3D"sans-serif">i2c-dev.o: i2c /dev entries driver m=
odule
version 2.6.1 (20010830)</font>
<br><font size=3D2 face=3D"sans-serif">pty: 256 Unix98 ptys configured</fon=
t>
<br><font size=3D2 face=3D"sans-serif">ttyS0 on PSC1</font>
<br><font size=3D2 face=3D"sans-serif">ttyS1 on PSC2</font>
<br><font size=3D2 face=3D"sans-serif">ttyS2 on PSC3</font>
<br><font size=3D2 face=3D"sans-serif">PCF8563 Real-Time Clock Driver $Revi=
sion:
1.3 $ wd@denx.de</font>
<br><font size=3D2 face=3D"sans-serif">RAMDISK driver initialized: 16 RAM d=
isks
of 4096K size 1024 blocksize</font>
<br><font size=3D2 face=3D"sans-serif">loop: loaded (max 8 devices)</font>
<br><font size=3D2 face=3D"sans-serif">Uniform Multi-Platform E-IDE driver
Revision: 7.00beta4-2.4</font>
<br><font size=3D2 face=3D"sans-serif">ide: Assuming 33MHz system bus speed
for PIO modes; override with idebus=3Dxx</font>
<br><font size=3D2 face=3D"sans-serif">Port Config is: 0x91050404</font>
<br><font size=3D2 face=3D"sans-serif">ipb=3D66MHz, set clock period to 15<=
/font>
<br><font size=3D2 face=3D"sans-serif">GPIO config: 91050404</font>
<br><font size=3D2 face=3D"sans-serif">ATA invalid: 00800000</font>
<br><font size=3D2 face=3D"sans-serif">ATA hostcnf: 03000000</font>
<br><font size=3D2 face=3D"sans-serif">ATA pio1 &nbsp; : 100a0a00</font>
<br><font size=3D2 face=3D"sans-serif">ATA pio2 &nbsp; : 02040600</font>
<br><font size=3D2 face=3D"sans-serif">XLB Arb cnf: 80002006</font>
<br><font size=3D2 face=3D"sans-serif">mpc5xxx=5Fide: Setting up IDE interf=
ace
ide0...</font>
<br><font size=3D2 face=3D"sans-serif">Probing IDE interface ide0...</font>
<br><font size=3D2 face=3D"sans-serif">hda: SanDisk SDCFBI-1024, ATA DISK d=
rive</font>
<br><font size=3D2 face=3D"sans-serif">hdb: probing with STATUS(0x00) inste=
ad
of ALTSTATUS(0x7f)</font>
<br><font size=3D2 face=3D"sans-serif">ide0: unexpected interrupt, status=
=3D0x00,
count=3D1</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Here the boot process fails and the
kernel hangs without further messages to the console.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Actually I did get one bootup with t=
his
1 GB SanDisk Industrial Grade card that succeeded &nbsp;without this happen=
ing,
where the card seemed to be</font>
<br><font size=3D2 face=3D"sans-serif">properly identiified, but I have not
been able to repeat that.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Does anyone have a clue what might be
causing this ?</font>
<br>
<br>
<br><font size=3D2 face=3D"sans-serif">Thanks,</font>
<br><font size=3D2 face=3D"sans-serif">Jon Benediktsson</font>
<br><font size=3D2 face=3D"sans-serif">Marel hf.</font>
<br>

Re: MPC5200 - problem with CF card

From: Jón Benediktsson <hidden>
Date: 2005-01-05 14:49:56

Whoops, sorry for the HTML.  I forgot to change my e-mail options.
Here comes the plain text:
Hi=20
=20
I am working with a custom MPC5200 board which uses the built-in=20
ATA/IDE controller for a compact flash card.=20
The Linux kernel is Denx linux=5F2=5F4=5Fdevel.=20
=20
I have been using an old SanDisk 16MB CF card which works fine.=20
Here is the console output with this card plugged in:=20
=20
U-Boot 1.1.2 (Dec  2 2004 - 16:01:06)=20
=20
CPU:   MPC5200 v1.2 at 396 MHz=20
       Bus 132 MHz, IPB 66 MHz, PCI 33 MHz=20
Board: Marel NS4=20
I2C:   85 kHz, ready=20
DRAM:  128 MB=20
FLASH: 16 MB=20
In:    serial=20
Out:   serial=20
Err:   serial=20
Net:   FEC ETHERNET=20
IDE:   Bus 0: OK=20
  Device 0: Model: SanDisk SDCFB-16 Firm: vde 1.10 Ser#: 24349220714=20
            Type: Removable Hard Disk=20
            Capacity: 15.3 MB =3D 0.0 GB (31360 x 512)=20
=20
Type "run flash=5Fnfs" to mount root filesystem over NFS=20
=20
Hit any key to stop autoboot:  0=20
Using FEC ETHERNET device=20
TFTP from server 10.100.1.30; our IP address is 10.100.50.68=20
Filename 'mpc5200/uImage'.=20
Load address: 0x200000=20
Loading:=20
#################################################################=20
#################################################################=20
         #############################=20
done=20
Bytes transferred =3D 810417 (c5db1 hex)=20
## Booting image at 00200000 ...=20
   Image Name:   Linux-2.4.25=20
   Created:      2004-12-03  11:35:18 UTC=20
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)=20
   Data Size:    810353 Bytes =3D 791.4 kB=20
   Load Address: 00000000=20
   Entry Point:  00000000=20
   Verifying Checksum ... OK=20
   Uncompressing Kernel Image ... OK=20
Memory BAT mapping: BAT2=3D128Mb, BAT3=3D0Mb, residual: 0Mb=20
Linux version 2.4.25 (jonb@tux.marel.is) (gcc version 3.2.2 20030217
(Yellow Dog=20
 Linux 3.0 3.2.2-2a=5F1)) #4 F=F6s Des 3 11:34:35 UTC 2004=20
On node 0 totalpages: 32768=20
zone(0): 32768 pages.=20
zone(1): 0 pages.=20
zone(2): 0 pages.=20
Kernel command line: root=3D/dev/nfs rw nfsroot=3D10.100.1.30:
/opt/eldk/ppc=5F82xx ip=3D=20
10.100.50.68:10.100.1.30:10.100.254.254:255.255.0.0:ns4b:eth0:off=20
panic=3D1=20
Calibrating delay loop... 263.78 BogoMIPS=20
Memory: 127080k available (1396k kernel code, 464k data, 76k init, 0k=20
highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)=20
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)=20
Mount cache hash table entries: 512 (order: 0, 4096 bytes)=20
Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)=20
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)=20
POSIX conformance testing by UNIFIX=20
PCI: Probing PCI hardware=20
Linux NET4.0 for Linux 2.4=20
Based upon Swansea University Computer Society NET3.039=20
Initializing RT netlink socket=20
Starting kswapd=20
Journalled Block Device driver loaded=20
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.=20
i2c-core.o: i2c core module version 2.6.1 (20010830)=20
i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830)=20
pty: 256 Unix98 ptys configured=20
ttyS0 on PSC1=20
ttyS1 on PSC2=20
ttyS2 on PSC3=20
PCF8563 Real-Time Clock Driver $Revision: 1.3 $ wd@denx.de=20
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize=20
loop: loaded (max 8 devices)=20
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4=20
ide: Assuming 33MHz system bus speed for PIO modes; override with=20
idebus=3Dxx=20
Port Config is: 0x91050404=20
ipb=3D66MHz, set clock period to 15=20
GPIO config: 91050404=20
ATA invalid: 00800000=20
ATA hostcnf: 03000000=20
ATA pio1   : 100a0a00=20
ATA pio2   : 02040600=20
XLB Arb cnf: 80002006=20
mpc5xxx=5Fide: Setting up IDE interface ide0...=20
Probing IDE interface ide0...=20
hda: SanDisk SDCFB-16, CFA DISK drive=20
ide0 at 0xf0003a60-0xf0003a67,0xf0003a5c on irq 45=20
hda: attached ide-disk driver.=20
hda: 31360 sectors (16 MB) w/1KiB Cache, CHS=3D490/2/32=20
Partition check:=20
 hda: hda1=20
NS4 Bank 0: Found 1 x16 devices at 0x0 in 8-bit mode=20
 Amd/Fujitsu Extended Query Table at 0x0040=20
NS4 Bank 0: CFI does not contain boot bank location. Assuming top.=20
number of CFI chips: 1=20
cfi=5Fcmdset=5F0002: Disabling erase-suspend-program due to code brokenne=
ss.=20
quoted hunk
NS4 flash bank 0: Using static image partition definition=20
Creating 5 MTD partitions on "NS4 Bank 0":=20
0x00000000-0x00100000 : "U-Boot"=20
0x00100000-0x00200000 : "kernel"=20
0x00200000-0x00500000 : "initrd"=20
0x00500000-0x00b00000 : "jffs2"=20
0x00b00000-0x01000000 : "Spare"=20
=20
--- cut out insignificant rest of console output  ---=20
=20
=20
Now I have a brand new SanDisk 1GB Industrial Grade card that is=20
giving me a problem.  Here is what happens=20
with exactly the same u-boot and kernel versions, just this new CF=20
card plugged in instead of the older one.=20
=20
U-Boot 1.1.2 (Dec  2 2004 - 16:01:06)=20
=20
CPU:   MPC5200 v1.2 at 396 MHz=20
       Bus 132 MHz, IPB 66 MHz, PCI 33 MHz=20
Board: Marel NS4=20
I2C:   85 kHz, ready=20
DRAM:  128 MB=20
FLASH: 16 MB=20
In:    serial=20
Out:   serial=20
Err:   serial=20
Net:   FEC ETHERNET=20
IDE:   Bus 0: OK=20
  Device 0: Model: SanDisk SDCFBI-1024 Firm: HDX 2.15 Ser#:=20
111515L1004P3254=20
            Type: Hard Disk=20
            Capacity: 977.4 MB =3D 0.9 GB (2001888 x 512)=20
=20
Type "run flash=5Fnfs" to mount root filesystem over NFS=20
=20
Hit any key to stop autoboot:  0=20
Using FEC ETHERNET device=20
TFTP from server 10.100.1.30; our IP address is 10.100.50.68=20
Filename 'mpc5200/uImage'.=20
Load address: 0x200000=20
Loading:=20
#################################################################=20
#################################################################=20
         #############################=20
done=20
Bytes transferred =3D 810417 (c5db1 hex)=20
## Booting image at 00200000 ...=20
   Image Name:   Linux-2.4.25=20
   Created:      2004-12-03  11:35:18 UTC=20
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)=20
   Data Size:    810353 Bytes =3D 791.4 kB=20
   Load Address: 00000000=20
   Entry Point:  00000000=20
   Verifying Checksum ... OK=20
   Uncompressing Kernel Image ... OK=20
Memory BAT mapping: BAT2=3D128Mb, BAT3=3D0Mb, residual: 0Mb=20
Linux version 2.4.25 (jonb@tux.marel.is) (gcc version 3.2.2 20030217
(Yellow Dog=20
 Linux 3.0 3.2.2-2a=5F1)) #4 F=F6s Des 3 11:34:35 UTC 2004=20
On node 0 totalpages: 32768=20
zone(0): 32768 pages.=20
zone(1): 0 pages.=20
zone(2): 0 pages.=20
Kernel command line: root=3D/dev/nfs rw nfsroot=3D10.100.1.30:
/opt/eldk/ppc=5F82xx ip=3D=20
10.100.50.68:10.100.1.30:10.100.254.254:255.255.0.0:ns4b:eth0:off=20
panic=3D1=20
Calibrating delay loop... 263.78 BogoMIPS=20
Memory: 127080k available (1396k kernel code, 464k data, 76k init, 0k=20
highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)=20
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)=20
Mount cache hash table entries: 512 (order: 0, 4096 bytes)=20
Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)=20
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)=20
POSIX conformance testing by UNIFIX=20
PCI: Probing PCI hardware=20
Linux NET4.0 for Linux 2.4=20
Based upon Swansea University Computer Society NET3.039=20
Initializing RT netlink socket=20
Starting kswapd=20
Journalled Block Device driver loaded=20
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.=20
i2c-core.o: i2c core module version 2.6.1 (20010830)=20
i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830)=20
pty: 256 Unix98 ptys configured=20
ttyS0 on PSC1=20
ttyS1 on PSC2=20
ttyS2 on PSC3=20
PCF8563 Real-Time Clock Driver $Revision: 1.3 $ wd@denx.de=20
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize=20
loop: loaded (max 8 devices)=20
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4=20
ide: Assuming 33MHz system bus speed for PIO modes; override with=20
idebus=3Dxx=20
Port Config is: 0x91050404=20
ipb=3D66MHz, set clock period to 15=20
GPIO config: 91050404=20
ATA invalid: 00800000=20
ATA hostcnf: 03000000=20
ATA pio1   : 100a0a00=20
ATA pio2   : 02040600=20
XLB Arb cnf: 80002006=20
mpc5xxx=5Fide: Setting up IDE interface ide0...=20
Probing IDE interface ide0...=20
hda: SanDisk SDCFBI-1024, ATA DISK drive=20
hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x7f)=20
ide0: unexpected interrupt, status=3D0x00, count=3D1=20
=20
Here the boot process fails and the kernel hangs without further=20
messages to the console.=20
=20
Actually I did get one bootup with this 1 GB SanDisk Industrial=20
Grade card that succeeded  without this happening, where the card seemed =
to be
properly identiified, but I have not been able to repeat that.=20
=20
Does anyone have a clue what might be causing this ?=20
=20
=20
Thanks,=20
Jon Benediktsson=20
Marel hf.=20

Re: MPC5200 - problem with CF card

From: Eugene Surovegin <hidden>
Date: 2005-01-05 17:56:48

On Wed, Jan 05, 2005 at 02:49:42PM +0000, J?n Benediktsson wrote:
quoted
I am working with a custom MPC5200 board which uses the built-in 
ATA/IDE controller for a compact flash card. 
The Linux kernel is Denx linux_2_4_devel. 
[snip]
quoted
mpc5xxx_ide: Setting up IDE interface ide0... 
Probing IDE interface ide0... 
hda: SanDisk SDCFBI-1024, ATA DISK drive 
hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x7f) 
ide0: unexpected interrupt, status=0x00, count=1 
I had similar problem with some CF cards (while other like in your 
case worked fine).

Try disabling probing of the slave ide0 interface (hdb). I'm not 
familiar with MPC5xxx, but most likely you can modify mpc5xxx_ide or 
whatever code sets up access to your CF card.

Find where an instance of ide_hwif_t is initialized for ide0 and add 
something like:

	/* Don't probe second drive */
        hwif->drives[1].noprobe = 1;

--
Eugene

Re: MPC5200 - problem with CF card

From: Jón Benediktsson <hidden>
Date: 2005-01-06 11:37:55

Eugene Surovegin [off-list ref] wrote on 05.01.2005 17:56:46:
On Wed, Jan 05, 2005 at 02:49:42PM +0000, J?n Benediktsson wrote:
quoted
quoted
I am working with a custom MPC5200 board which uses the built-in=20
ATA/IDE controller for a compact flash card.=20
The Linux kernel is Denx linux=5F2=5F4=5Fdevel.=20
=20
[snip]
=20
quoted
quoted
mpc5xxx=5Fide: Setting up IDE interface ide0...=20
Probing IDE interface ide0...=20
hda: SanDisk SDCFBI-1024, ATA DISK drive=20
hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x7f)=20
ide0: unexpected interrupt, status=3D0x00, count=3D1=20
=20
I had similar problem with some CF cards (while other like in your=20
case worked fine).
=20
Try disabling probing of the slave ide0 interface (hdb). I'm not=20
familiar with MPC5xxx, but most likely you can modify mpc5xxx=5Fide or=20
whatever code sets up access to your CF card.
=20
Find where an instance of ide=5Fhwif=5Ft is initialized for ide0 and add =
something like:
=20
   /* Don't probe second drive */
        hwif->drives[1].noprobe =3D 1;
=20
Thank you.  It was indeed the probing for the second drive that was=20
causing the problem.
Adding hdb=3Dnoprobe to the kernel command line (bootargs) fixes the proble=
m=20
without kernel modifications.

Thanks again,
Jon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help