PCMCIA-CS 3.2.5 with JFFS2
G.Muruganandam
gmuruga at gdatech.com
Tue Jul 19 13:18:37 EDT 2005
Hello,
I have a board based on PowerPC 8541 with the following system details.
CPU : MPC8541
PCCardBus Controller : TI PCI PcCard bus controller 1410
U-boot version : 1.1.2
Linux Kernel : 2.4.20
PCMCIA-CS package : 3.2.5
File system : JFFS2
AMD Flash size : 32 MB ( 30 MB used for JFFS2)
A SanDisk compact flash of size 256MB is connected to the CPU through the
TI's PC card bus controller. I have enabled the JFFS2 in the kernel, the root
file system is in the bootflash ( AMD ).
Issue:
====
if I use the one of following options to stop the PCMCIA service and power
cycle
the board or reset the board, the compact flash is getting detected every time
when the system reboots next time.
1. cardctl eject
/etc/rc.d/rc.pcmcia stop
2. System reboot using reboot command under linux prompt
If I either reset or power cycle the system without running above commands,
the
compact flash is not getting detected during next linux booting process.
This is due
to the reason that memory_cs is getting loaded instead of ide_cs module.
In other words , compact flash is not getting detected when the system is not
gracefully shutdown.
Also, I am not seeing this behavior when I download the ramdisk in to the
main memory
and boot linux. In this case, the compact flash is getting detected every
single time.
The issue happens only when the root file system is in the AMD flash(JFFS2).
I have provided below the screen shots for both working and non-working cases.
Pl let me know if you need more information and do let me know your
suggestions to fix this issue.
Looking forward to hear from you.
Thanks
G.Muruganandam
Working Condition:
==============
** Running rc.modules
*** Running rc.serial
*** Attempting to start S91pcmcia
Starting PCMCIA services: Using
/lib/modules/2.4.20_mvl31-8560ads/pcmcia/pcmcia_core.o
Linux PCMCIA Card Services 3.2.5
kernel build: 2.4.20 #1 Tue Jul 12 12:54:49 PDT 2005
options: [pci]
Using /lib/modules/2.4.20_mvl31-8560ads/pcmcia/i82365.o
Intel ISA/PCI/CardBus PCIC probe:
TI 1410 rev 02 PCI-to-CardBus at slot 00:10, mem 0x9ffff000
host opts [0]: [serial pci & irq] [pci irq 100] [lat 128/176] [bus 1/1]
PCI card interrupts, polling interval = 1000 ms
Using /lib/modules/2.4.20_mvl31-8560ads/pcmcia/ds.o
cs: resetting socket 0 64 100
cardmgr[110]: watching 1 socket
done.
*** Running rc.local
cardmgr[111]: starting, version is 3.2.5
cs: memory probe 0x60000000-0x60ffffff:<7>cs:
CardServices(GetFirstTuple, 0xcff2f660, 0xcfb62cd0) excluding
0x60000000-0x60ffffff
cs: memory probe 0x90000000-0xa0ffffff:<7>cs:
CardServices(GetFirstTuple, 0xcff2f660, 0xcfb62f10)
excluding 0x9ff00000-0xa0ffffff
cardmgr[111]: socket 0: ATA/IDE Fixed Disk
cardmgr[111]: executing: 'insmod
/lib/modules/2.4.20_mvl31-8560ads/pcmcia/ide-cs.o'
cardmgr[111]: + Using /lib/modules/2.4.20_mvl31-8560ads/pcmcia/ide-cs.o
hda: SanDisk SDCFH-256, ATA DISK drive
ide0 at 0x100-0x107,0x10e on irq 100
hda: 501760 sectors (257 MB) w/1KiB Cache, CHS=980/16/32
Partition check:
hda: hda1
ide-cs: hda: Vcc = 3.3, Vpp = 0.0
cardmgr[111]: executing: './ide start hda'
Not Working Condition:
=================
Starting PCMCIA services: Using
/lib/modules/2.4.20_mvl31-8560ads/pcmcia/pcmcia_core.o
Linux PCMCIA Card Services 3.2.5
kernel build: 2.4.20 #1 Tue Jul 12 12:54:49 PDT 2005
options: [pci]
Using /lib/modules/2.4.20_mvl31-8560ads/pcmcia/i82365.o
Intel ISA/PCI/CardBus PCIC probe:
TI 1410 rev 02 PCI-to-CardBus at slot 00:10, mem 0x9ffff000
host opts [0]: [serial pci & irq] [pci irq 100] [lat 128/176] [bus 1/1]
PCI card interrupts, polling interval = 1000 ms
Using /lib/modules/2.4.20_mvl31-8560ads/pcmcia/ds.o
cs: resetting socket 0 64 100
cs: GDA unable to map card memory!
cs: GDA unable to map card memory!
cs: GDA unable to map card memory!
cs: GDA unable to map card memory!
cs: GDA unable to map card memory!
cs: GDA unable to map card memory!
cardmgr[136]: watching 1 socket
done.
More information about the linux-pcmcia
mailing list