Forum Discussion
Altera_Forum
Honored Contributor
21 years ago --- Quote Start --- originally posted by reju_r@Nov 4 2004, 01:34 AM i am using a stratix evaluation board.
i wanted to create a fat filesystems on the compact flash onboard.
can i do this using the present uclinux port .
if so what are the steps.
tell me the procedure as i am a beginner.
even a fat systems without any os wouls do. --- Quote End --- I tried this both on the Altera Stratix board and the Altera Cyclone board with the Quartus project from archive qp.zip. I believe that archive is from Microtronix. It supports pretty much all the hardware on the board. Assuming that that you built your NIOS with compact flash support: In the NIOS II IDE you add support for the CF filesystem at compile time. It's an item in "Configure Kernal" - check the box for VFAT support. Then build the Kernal and upload it to flash ROM. So after you log into uClinux, plug in the CF card. You should get a message similar to this: # 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 uClinux thinks the CF is a disk drive named hda1. Mount it as a VFAT filesystem. I put in under /var: mkdir /var/cfdir mount -t VFAT /dev/hda1 /var/ -n In theory you could put these commands in your /etc/rc file before you compile the file system to mount an installed CF card at boot. After that you can cd /var/cfdir and read or write files. Be sure to unmount the CF before removing it from the board. umount /dev/hda1 Somewhere in the documentation there is a caveat against booting with the CF installed and another against writing to the CF at all. It might be prudent to test with a blank CF card.