Forum Discussion
Altera_Forum
Honored Contributor
21 years ago --- Quote Start --- originally posted by xlking@Dec 16 2004, 04:18 AM i use cyclone board and the system detected cf card, but have error.
so i can't format cf card use command: fdisk /dev/hda
help me!
thanks a lot. --- Quote End --- Let's assume for a moment that it's a problem with uClinux rather than with your Nios project. If uClinux recognized the cf card and was able to tell you the brand name and size, then it is able to read the card. # hda: SanDisk SDCFB-8, CFA DISK drive ide0 at 0x80900800-0x80900807,0x80900838 on irq 8 hda: max request size: 128KiB hda: 15680 sectors (8 MB) w/1KiB Cache, CHS=245/2/32 hda: hda1 I had the same error: Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 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 Using anticipatory io scheduler uClinux may be trying to read the cf configuration before the card is ready. There is a note in the documentation somewhere saying not to boot with the cf installed. Try installing the cf after the system has initialized and you've logged in. I assume that you were able to mount the cf.# mount /dev/hda1 /mnt/ide0 -n It might get hosed if you don't unmount before removing it.# umount /dev/hda1 fdisk: fdisk makes all documents go away. If the cf filesystem gets messed up, you may want to reformat it in your computer instead. I use the soyo bayone xp internal 9 in 1 card reader (http://www.amazon.com/exec/obidos/asin/b00024paou/pendulumresource). Dazzle also makes several nice external USB card readers. There is a caveat in the documentation somewhere against writing to the cf. I was able to write to it, though. I hope that helps.