Altera_Forum
Honored Contributor
20 years agoCF Issues
Hey all,
I'm now running into some problems with integrating the compact flash. I've read through all the forum posts regarding this area that I could find here, and they've helped get me get to this point. Again, using the Stratix II DSP Dev Board with v1.4 uClinux here. concern 1 - At boot-up, I get the following response:ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
CF: ctl=1
Unable to initialize compact flash card. Please re-insert
Altera NDK flash (AMD): Found 1 x16 devices at 0x0 in 8-bit bank First off, from some earlier posts it's mentioned that the ctl=1 means the CF controller is not being powered. However, I'm sending the nios sopc cf_power line to what the Altera documentation declares to be the right pin for this board, AB11. Am I incorrect here, or could there be another reason? concern 2 - Upon loging in and re-insertion of this card I get this following response: # hda: SanDisk SDCFB-512, CFA DISK drive
/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/arch/nios2nommu/kernel/irq.c(48): default irq handler vec=5
ide0 at 0x80030880-0x80030887,0x800308b8 on irq 5
hda: max request size: 128KiB
hda: 1000944 sectors (512 MB) w/1KiB Cache, CHS=993/16/63
hda: hda1 That's all fine, but I'd rather see that at boot-up. Another earlier post made reference to the fact that there are issues regarding instertion of the card pre-boot. If this is true, is there a fix for this problem? Otherwise, what else could be going wrong here? I'd like to have this card in before starting the system. concern 3 - I've formatted my card with a pc to FAT and FAT32 on seperate trial runs, without a label. When trying to mount the CF I get the following error: # /bin/mount -t vfat /dev/hda1 /mnt/ide0 -n
hda: hda1
FAT: codepage cp437 not found
hda: hda1
mount: wrong fs type, bad option, bad superblock on /dev/hda1, or too many mounted file systems I don't know enough about codepages to speculate, but I did check the card back when formatting on the pc. Under MSDOS, I entered the drive and ran the command chcp to retrieve the active codepage of 437. If it's there according to the pc, why wouldn't the mount command recognize it also? Maybe this is all related to one common error, but each concern worries me at this time. Thanks again for your attention, Matt