Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Compact Flash

Altera_Forum
Honored Contributor II
1,344 Views

I'm using a 1GByte Compact Flash disk with the Altera 1c20 eval board. I can not write more than 500MBytes to it. Does anybody know how to solve this problem?

0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
618 Views

There should be no 512M limits. 

There is a limit of 2GB on FAT filesystem. 

 

Please try read/write to the CF drive, and bypass the FAT. 

 

dd if=/dev/hda of=/dev/null 

dd if=/dev/zero of=/dev/hda
0 Kudos
Altera_Forum
Honored Contributor II
618 Views

 

--- Quote Start ---  

originally posted by hippo@Oct 4 2006, 09:30 PM 

there should be no 512m limits. 

there is a limit of 2gb on fat filesystem. 

 

please try read/write to the cf drive, and bypass the fat. 

 

dd if=/dev/hda of=/dev/null 

dd if=/dev/zero of=/dev/hda 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18553) 

--- quote end ---  

 

--- Quote End ---  

 

 

I typed the dd if=/dev/hda of=/dev/null 

the output was: 

hda:hda1 

2001888+0 records in 

2001888+0 records out 

 

after I typed: dd if=/dev/zero of=/dev/hda 

hda: hda1 

/dev/hda: No space left on device 

2001889+0 records in 

2001888+0 records out 

 

 

 

I tried using the CompactFlash in FAT and ext2, I got the same results, can not write more than 500MB to the disk. 

 

Is it normal for the LEDs and the 7-segment displays to be counting? I did not write a routine to do that, and as soon as the system is up, it start counting. 

 

Thanks for the input
0 Kudos
Altera_Forum
Honored Contributor II
618 Views

it is possible to switch off the Leds and 7 Seg display when configuring the kernel. 

 

Processor type and features 

[] Enable leds, seven segment display
0 Kudos
Altera_Forum
Honored Contributor II
618 Views

 

--- Quote Start ---  

originally posted by nacide@Oct 6 2006, 05:39 AM 

it is possible to switch off the leds and 7 seg display when configuring the kernel. 

 

processor type and features 

[] enable leds, seven segment display 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18576) 

--- quote end ---  

 

--- Quote End ---  

 

After performing those commands, I had to reformat the disk. Now, I&#39;m able to write more than 512MB. It seems that I missed up the Disk, when I turned the card off before umounting the disk. Why is that? In my application, the power can go away while the board is running. Is there a way out of this?? 

 

There must be a task running in the background to blink the leds, and the seven segment displays. Is this standard with the uClinux-Nios port? 

 

Thanks
0 Kudos
Altera_Forum
Honored Contributor II
618 Views

You might try using a different filesystem. Since you&#39;re stating that power can go away, at any time, why not JFFS2 (or some other _journalling_ filesystem)? 

 

In any case, I don&#39;t see your issue as specific to Nios/uCLinux (at this point), so you might try asking the question in other forums, or doing some internet sleuthing on your own. 

 

[EDIT: Out of curiousity, I found this link (http://www.openpsion.org/howtos/series5mx_new/x176.htm). ] 

 

Good luck! 

 

- slacker
0 Kudos
Reply