Forum Discussion
Altera_Forum
Honored Contributor
21 years agoWrite/Read file to Compact Flash
Hello: I am a software newb trying to get my hands on a program that writes and reads a file to and from the compact flash on a Cyclone board using Nios II IDE. I have gotten the the hardware ...
Altera_Forum
Honored Contributor
20 years agoWith proper drivers configured, the kernel will detect the CF drive's partitions. You will use "mount" command to map the file system on the CF drive to a dir. Then you can access CF's data under that mount dir.
eg, you have FAT16 formatted the partition 1 of the CF drive, it will become /dev/hda1 . Then "mount -t vfat /dev/hda1 /mnt" will map the CF drive to dir /mnt . After you have finished the access, "umount /mnt" will unmap the CF drive.