CompactFlash

Table of contents
No headers

The CF component is in the later Quartus SOPC builder. But the standard example designs do not include it.
You may look at Compact Flash support for Nios II 5.0 . And add it to the example designs.
Regenerate in SOPC and compile again.

The CF controller component should be named as "cf", otherwise you have to modify linux-2.6/arch/nios2/kernel/config.c .

Use the new sof and ptf, do vendor_hwselect and menuconfig for the kernel, select scsi disk and pata platform driver, and we want FAT support in this example,

SCSI device support  --->  
[*] SCSI disk support

[*] Serial ATA (prod) and Parallel ATA (experimental) drivers  -->
[ ]   SATA Port Multiplier support    <== unselect
[*]   ATA SFF support
[*]     Generic platform device PATA support

File systems --> 
DOS/FAT/NT Filesystems ---> 
[*] MSDOS fs support 
[*] VFAT (Windows-95) fs support 
(437) Default codepage for FAT 
(iso8859-1) Default iocharset for FAT
Native Language Support -->
(iso8859-1) Default NLS Option 
[*] Codepage 437 (United States, Canada) 
[*] NLS ISO 8859-1 (Latin 1; Western European Languages)

Rebuild the kernel image for initramfs, boot nios2 uClinux, and it should detected the cf drive. assume part1 on the CF, /dev/sda1, is preformated FAT,

scsi0 : pata_platform
ata1: PATA max PIO0 mmio cmd 0x1000000 ctl 0x1000038 irq 7
ata1.00: CFA: Flash Card, 2N3-0925, max PIO2
ata1.00: 503808 sectors, multi 0: LBA 
ata1.00: configured for PIO
ata1.00: configured for PIO
ata1: EH complete
scsi 0:0:0:0: Direct-Access     ATA      Flash Card       2N3- PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 503808 512-byte hardware sectors (258 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 503808 512-byte hardware sectors (258 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk


mount -t vfat /dev/sda1 /mnt

Or if the windows formats the CF without part,
mount -t vfat /dev/sda /mnt
after you finish the access, you must umount to flush the disk cache, or the data might lose.
umount /mnt

If you want to connect to IDE HDD or CD/DVDRW interface, fewer signals are required than CF. If you use Altera dev board, you may find some 40 pins headers which can be used to connect to IDE drives. You need to add CF component in SOPC builder, assign the pins, and regenerate sof.

  

      .addr_from_the_cf_0                  (da),
      .cs_n_from_the_cf_0                  (cs),
      .data_cf_to_and_from_the_cf_0        (dd),
      .detect_n_to_the_cf_0                (1'b0),
      .intrq_to_the_cf_0                   (intrq),
      .iord_n_from_the_cf_0                (dior),
      .iordy_to_the_cf_0                   (iordy),
      .iowr_n_from_the_cf_0                (diow),
      .reset_n_cf_from_the_cf_0            (reset)

  

Tag page

Files 3

FileSizeDateAttached by 
 std_2C35i.ptf
No description
159.36 kB02:15, 8 Dec 2008AdminActions
 std_2C35i.sof
No description
821.44 kB02:15, 8 Dec 2008AdminActions
 zImage_std_2C35i
No description
1755.63 kB02:15, 8 Dec 2008AdminActions
Viewing 1 of 1 comments: view all
Nice story about this.
Great Nice Pictures
causes back pain knee high shoes lizlange maternity fishing boats sale flu incubation period remedies sore throat cost breast implants muscle weight gain surgery breast reduction girls party ideas women laptop bags car brake parts continuing nursing education cost breast augmentation protein whey powder baby slings carriers bed bugs pictures bedding duvet covers phone pay as you go outdoor swing sets discount dinnerware sets coffee espresso machines salton yogurt maker hair color pictures pictures of haircuts asvab practice test herpes photos easy cooking recipes toy dog breeds herpes simplex 1 personalized dog tags stress fracture foot occupational therapy schools frontline plus cats fleas on humans physical therapy salary scabies pictures pictures of shingles what is blood pressure ibuprofen side effects pictures of ringworm gendongan bayi kain cukin ring sling pouch sling perlengkapan bayi selendang bayi nursing cover selendang baby perlengkapan bayi baru lahir bayi bayi lucu foto bayi parish vintage ebooks download tv series download manga free download make money online health information cell phone review disorders anxiety psat practice test blood preasure smart water filter filter pur water weight loss effects blood pressure side effects socks over knee socks dress Hot News Today Jual Beli Make Money Celebrity Gossip Kesehatan Alternatif Gosip Selebritis celebrity photos celebrity news hot celebrities celebrity blog kesehatan info kesehatan kesehatan kerja pelayanan kesehatan indonesia artis foto artis gambar artis selebriti iklan iklan gratis jual online handphone daily news breaking news local news online news food dehydrator tray massage chair ijoy homedics massage shiatsu evening gown dress evening wedding dress dry face skin gold toe sock window coverings blinds blinds for windows lip gloss cosmetics folding table chairs women high heels stockings high heels treatment of pain chlorine generation makeup lighted mirror pain management specialist lawn pest control garden pest control joint pain causes
Posted 16:09, 20 Jul 2010
Viewing 1 of 1 comments: view all
You must login to post a comment.
SourceForge.net