From: Heilpern, M. <mar...@au...> - 2006-08-02 13:33:51
|
Below is my dmesg and lsmod right after a reboot. I started with a CF card in the socket, and I have the script shown here in my /etc/init.d directory to auto-mount the CF. Also I've shown my /etc/modules file. =20 The auto-mount script: =20 [root@gumstix-1 ~]# cat /etc/init.d/S95mount_cf #!/bin/sh # # mount the CF card (if possible) # =20 start() { echo "Mounting CF..." /sbin/modprobe ide-disk /sbin/modprobe pcmcia /bin/sleep 10 /bin/mount /dev/hda1 /mnt/cf } stop() { echo -n "unmounting CF..." /bin/umount /mnt/cf } restart() { stop start } =20 case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac =20 exit $? =20 =20 =20 =20 [root@gumstix-1 ~]# cat /etc/modules # MMC support -- comment out the next two lines to enable CF #mmc_block #pxamci =20 # Compact Flash support -- uncomment next line to enable #pcmcia vfat #ide-disk nls_iso8859-1 nls_cp437 =20 =20 =20 [root@gumstix-1 ~]# lsmod Module Size Used by ide_cs 8224 1 pxa2xx_cs 3076 3 pxa2xx_core 10208 1 pxa2xx_cs pcmcia 23656 1 ide_cs pcmcia_core 30384 3 ide_cs,pxa2xx_core,pcmcia firmware_class 7968 1 pcmcia ide_disk 13376 0 ide_core 80164 2 ide_cs,ide_disk smc91x 15844 0 mii 4768 1 smc91x gumstix_smc91x 2784 1 smc91x nls_cp437 5600 0 nls_iso8859_1 3936 0 vfat 10144 0 fat 46972 1 vfat nls_base 6624 4 nls_cp437,nls_iso8859_1,vfat,fat unix 22100 6 =20 =20 =20 =20 =20 [root@gumstix-1 ~]# mount /dev/root on / type jffs2 (rw) proc on /proc type proc (rw) /sys on /sys type sysfs (rw) udev on /dev type ramfs (rw) devpts on /dev/pts type devpts (rw) tmpfs on /tmp type tmpfs (rw) /dev/hda1 on /mnt/cf type vfat (rw,fmask=3D0022,dmask=3D0022,codepage=3Dcp437,iocharse t=3Diso8859-1) =20 =20 =20 =20 =20 [root@gumstix-1 ~]# dmesg Linux version 2.6.17gum (ro...@fr...) (gcc version 3.4.5) #6 Fri Jul 21 10:32:40 EDT 2006 CPU: XScale-PXA255 [69052d06] revision 6 (ARMv5TE) Machine: The Gumstix Platform Memory policy: ECC disabled, Data cache writeback On node 0 totalpages: 16384 DMA zone: 16384 pages, LIFO batch:3 Memory clock: 99.53MHz (*27) Run Mode clock: 398.13MHz (*4) Turbo Mode clock: 398.13MHz (*1.0, inactive) 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 Kernel command line: console=3DttyS0,115200n8 root=3D1f01 = rootfstype=3Djffs2 reboot=3Dco ld,hard video=3Dpxafb:mode:800x600-16,active PID hash table entries: 512 (order: 9, 2048 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 64MB =3D 64MB total Memory: 63280KB available (1268K code, 253K data, 60K init) Calibrating delay loop... 397.31 BogoMIPS (lpj=3D1986560) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 NET: Registered protocol family 2 IP route cache hash table entries: 512 (order: -1, 2048 bytes) TCP established hash table entries: 2048 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 2048 bind 1024) TCP reno registered JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. Initializing Cryptographic API io scheduler noop registered (default) pxa2xx-fb pxa2xx-fb: overriding resolution: 800x600 pxa2xx-fb pxa2xx-fb: overriding bit depth: 16 PXA: invalid hsync_len 0 PXA: invalid left_margin 0 PXA: invalid right_margin 0 PXA: invalid vsync_len 0 pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq =3D 15) is a FFUART pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq =3D 14) is a BTUART pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq =3D 13) is a STUART pxa2xx-uart.3: ttyS3 at MMIO 0x41600000 (irq =3D 0) is a HWUART Probing Gumstix Flash ROM at physical address 0x00000000 (16-bit bankwidth) Gumstix Flash ROM: Found 1 x16 devices at 0x0 in 16-bit bank Gumstix Flash ROM: Found an alias at 0x1000000 for the chip at 0x0 Gumstix Flash ROM: Found an alias at 0x2000000 for the chip at 0x0 Gumstix Flash ROM: Found an alias at 0x3000000 for the chip at 0x0 Intel/Sharp Extended Query Table at 0x0031 Using buffer write method cfi_cmdset_0001: Erase suspend on write enabled erase region 0: offset=3D0x0,size=3D0x20000,blocks=3D128 Using static partitions on Gumstix Flash ROM Creating 2 MTD partitions on "Gumstix Flash ROM": 0x00000000-0x00040000 : "Bootloader" 0x00040000-0x01000000 : "RootFS" TCP bic registered VFS: Mounted root (jffs2 filesystem). Freeing init memory: 60K NET: Registered protocol family 1 smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <ni...@ca...> eth0: SMC91C11xFD (rev 1) at c4851300 IRQ 59 DMA 8 [nowait] eth0: Ethernet addr: 72:13:0a:44:a3:11 eth0: PHY LAN83C183 (LAN91C111 Internal) eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=3Dxx CPLD responded with: 00 pccard: PCMCIA card inserted into slot 0 pcmcia: registering new device pcmcia0.0 Probing IDE interface ide0... hda: SanDisk SDCFB-32, CFA DISK drive ide0 at 0xc4860000-0xc4860007,0xc486000e on irq 49 hda: max request size: 128KiB hda: 62720 sectors (32 MB) w/1KiB Cache, CHS=3D490/4/32 hda: hda1 hda2 hda3 hda4 ide-cs: hda: Vpp =3D 0.0 ________________________________ From: gum...@li... [mailto:gum...@li...] On Behalf Of G Elliott Sent: Tuesday, August 01, 2006 9:27 PM To: General mailing list for gumstix users. Subject: Re: [Gumstix-users] kernel sees compact flash card but no blockdevice shown in /dev anyone that has a working compact flash card using cf stix:=20 can you paste to me output from the following: dmesg lsmod perhaps ide-disk is NOT the driver i should be using, but no one has mentioned it being a problem. the cf card is bound to ide-cs. is that all i need? greg On Aug 1, 2006, at 4:14 PM, G Elliott wrote: tried yet another (third) cf card, same issue. cards are ruled out, udev seems to be working properly. maybe a bad pin on the cf stix? On Jul 31, 2006, at 4:07 PM, G Elliott wrote: more info:=20 booted up with card inserted: #udevmonitor & # modprobe ide-disk UEVENT[222.277943] add@/module/ide_disk UEVENT[222.323538] add@/bus/ide/drivers/ide-disk hda: max request size: 128KiB hda: 503808 sectors (257 MB) w/1KiB Cache, CHS=3D984/16/32 hda:hda: status timeout: status=3D0xe0 { Busy } ide: failed opcode was: unknown hda: drive not ready for command ide0: reset: master: error (0x0a?) hda: status timeout: status=3D0xe0 { Busy } ide: failed opcode was: unknown hda: drive not ready for command ide0: reset: master: error (0x0a?) end_request: I/O error, dev hda, sector 0 Buffer I/O error on device hda, logical block 0 end_request: I/O error, dev hda, sector 0 Buffer I/O error on device hda, logical block 0 unable to read partition table UEVENT[232.546011] add@/block/hda On Jul 31, 2006, at 4:01 PM, G Elliott wrote: booted up with the card in and ran udevmonitor=20 # udevmonitor & # udevmonitor prints the received event from the kernel [UEVENT] and the event which udev sends out after rule processing [UDEV] (i removed the card here) # pccard: card ejected from slot 0 UEVENT[684.493759] remove@/devices/platform/pxa2xx-pcmcia/0.0/ide0/0.0 UEVENT[684.506917] remove@/devices/platform/pxa2xx-pcmcia/0.0 (i then reinserted it) pccard: PCMCIA card inserted into slot 0 no udev events on insert. =20 On Jul 31, 2006, at 3:43 PM, G Elliott wrote: seems to be runing.. udev does put hda in /dev if i do modprobe ide-disk hda (if the card was in during boot). # ls -a /dev=20 . kmem mtd0ro null shm ttyS2 .. kmsg mtd1 port snd ttyS3 .udev log mtd1ro ptmx tty urandom console mem mtdblock0 pts ttyS0 zero full mtd0 mtdblock1 random ttyS1 # ps ax |grep udev 92 root 260 S < /sbin/udevd --daemon=20 On Jul 31, 2006, at 3:34 PM, G Elliott wrote: maybe i should disable udev? On Jul 31, 2006, at 3:22 PM, G Elliott wrote: # modprobe pcmcia # udevmonitor & # udevmonitor prints the received event from the kernel [UEVENT] and the event which udev sends out after rule processing [UDEV] pccard: PCMCIA card inserted into slot 0 # =3D\ On Jul 31, 2006, at 3:18 PM, Craig Hughes wrote: Reboot the gumstix with no card inserted. Then: modprobe pcmcia udevmonitor & <insert card now> What does it say? On Jul 31, 2006, at 3:16 PM, G Elliott wrote: i have tried two compact flash cards (lexar and sandisk). =20 neither is readable/writeable by gumstix, but readable/writeable by everything else. if i boot without any card in, and do modprobe ide-cs modprobe ide-disk i get no errors. then i insert the cf card, i get # pccard: PCMCIA card inserted into slot 0 but nothing shows up in /dev pccardctl has no info on the card unless the card is in during boot. if i boot up with a cf card inserted, i can get ide-disk to throw some errors. if i just insert it after boot it's recognized by pcmcia but that's all that happens. maybe an issue with hot plugging? On Jul 31, 2006, at 2:44 PM, Craig Hughes wrote: Do other CF cards work with your gumstix/CFstix? Since the gumstix can read the CIS from the card, it seems likely that the =20 hardware is OK, but you never know... C On Jul 28, 2006, at 10:18 PM, G Elliott wrote: hopefully this is an easy question to answer.. i want to mount my cf card using the cf stix. i have tried formatting my card as FAT and ext2. the kernel recognizes the card, pccardctl sees it, but no device shows up in /dev by default. =20 if i modprobe ide-disk, i get a /dev/hda, but all sorts of errors show up. here's what i did and the messages i got: i edited /etc/modules, commented out the first two mmc lines, and then uncommented the pcmcia line. rebooted. no block device shows up in /dev. here's what comes up during boot: Initializing random number generator... pccard: PCMCIA card inserted into slot 0 pcmcia: registering new device pcmcia0.0 Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=3Dxx done. hda: SanDisk SDCFB-128, CFA DISK drive ide0 at 0xc4860000-0xc4860007,0xc486000e on irq 49 ide-cs: hda: Vpp =3D 0.0 pccardctl returns # pccardctl ident Socket 0: product info: "SunDisk", "SDP", "5/3 0.6", "" manfid: 0x0045, 0x0401 function: 4 (fixed disk) # pccardctl info PRODID_1=3D"SunDisk" PRODID_2=3D"SDP" PRODID_3=3D"5/3 0.6" PRODID_4=3D"" MANFID=3D0045,0401 FUNCID=3D4 # pccardctl status Socket 0: 5.0V 16-bit PC Card Subdevice 0 (function 0) bound to driver "ide-cs" then i looked here: # ls -la /sys/bus/pcmcia/devices/ drwxr-xr-x 2 root root 0 Dec 31 16:01 . drwxr-xr-x 4 root root 0 Dec 31 16:00 .. lrwxrwxrwx 1 root root 0 Dec 31 16:01 0.0 - =09 ../../../devices/platform/pxa2xx-pcmcia/0.0 # ls /dev audio kmem mtd0 mtdblock1 random ttyS1 console kmsg mtd0ro null shm ttyS2 dsp log mtd1 port snd ttyS3 full mem mtd1ro ptmx tty urandom mixer mtdblock0 pts ttyS0 zero now check this out: # modprobe ide-disk hda: max request size: 128KiB hda: 250880 sectors (128 MB) w/1KiB Cache, CHS=3D980/8/32 hda:hda: status timeout: status=3D0xe0 { Busy } ide: failed opcode was: unknown hda: drive not ready for command ide0: reset: master: error (0x0a?) hda: status timeout: status=3D0xe0 { Busy } ide: failed opcode was: unknown hda: drive not ready for command ide0: reset: master: error (0x0a?) end_request: I/O error, dev hda, sector 0 Buffer I/O error on device hda, logical block 0 end_request: I/O error, dev hda, sector 0 Buffer I/O error on device hda, logical block 0 unable to read partition table but if i ls /dev again, hda now shows up. # ls /dev audio kmem mtd0 mtdblock1 random ttyS1 console kmsg mtd0ro null shm ttyS2 dsp log mtd1 port snd ttyS3 full mem mtd1ro ptmx tty urandom hda mixer mtdblock0 pts ttyS0 zero =09 ------------------------------------------------------------------=20 - - - - --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php? page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV =09 _______________________________________________ gumstix-users mailing list gum...@li... =09 https://lists.sourceforge.net/lists/listinfo/gumstix-users =09 -------------------------------------------------------------------=20 - - - --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php? page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV =09 _______________________________________________ gumstix-users mailing list gum...@li... =09 https://lists.sourceforge.net/lists/listinfo/gumstix-users =09 --------------------------------------------------------------------=20 - - --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php? page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV =09 _______________________________________________ gumstix-users mailing list gum...@li... =09 https://lists.sourceforge.net/lists/listinfo/gumstix-users =09 ---------------------------------------------------------------------=20 - --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php? page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV =09 _______________________________________________ gumstix-users mailing list gum...@li... =09 https://lists.sourceforge.net/lists/listinfo/gumstix-users =09 ----------------------------------------------------------------------=20 --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to =20 share your opinions on IT & business topics through brief surveys -- and earn =20 cash http://www.techsay.com/default.php?=20 page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV =09 _______________________________________________ gumstix-users mailing list gum...@li... =09 https://lists.sourceforge.net/lists/listinfo/gumstix-users =09 ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash =09 http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V =09 _______________________________________________ gumstix-users mailing list gum...@li... =09 https://lists.sourceforge.net/lists/listinfo/gumstix-users =09 ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash =09 http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V_______________________________________________ gumstix-users mailing list gum...@li... =09 https://lists.sourceforge.net/lists/listinfo/gumstix-users =09 ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash =09 http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V_______________________________________________ gumstix-users mailing list gum...@li... =09 https://lists.sourceforge.net/lists/listinfo/gumstix-users =09 ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash =09 http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V_______________________________________________ gumstix-users mailing list gum...@li... =09 https://lists.sourceforge.net/lists/listinfo/gumstix-users =09 ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash =09 http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V_______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users _______________________________________________________ NOTE: The information in this message is intended for the personal and = confidential use of the designated recipient(s) named above. To the extent the = recipient(s) is/are bound by a non-disclosure agreement, or other agreement that contains an = obligation of confidentiality, with AuthenTec, then this message and/or any = attachments shall be considered confidential information and subject to the confidentiality = terms of that agreement. If the reader of this message is not the intended recipient = named above, you are notified that you have received this document in error, and any = review, dissemination, distribution or copying of this message is strictly prohibited. If you = have received this document in error, please delete the original message and notify the = sender immediately. Thank you. AuthenTec, Inc. http://www.authentec.com |