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++
12605 Discussions

How do mount CF card in uClinux1.3

Altera_Forum
Honored Contributor II
929 Views

who can kindly tell me , how can mount CF card? I can deceter CF card , but always can't mount.......... 

 

regard  

elliott 

 

//------------------------------------------------------------------------------------------------------------------- 

Linux version 2.6.9-uc0 (user@elliottnb) (gcc version 3.4.1 (Altera Nios II 1.1 

b137))# 2 Tue Jun 14 15:14:32 2005 

 

 

uClinux/Nios II 

Altera Nios II support © 2004 Microtronix Datacom Ltd. 

Built 1 zonelists 

Kernel command line: root=/dev/mtdblock0 ro 

PID hash table entries: 128 (order: 7, 2048 bytes) 

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) 

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) 

Memory available: 14220k/16384k RAM, 0k/0k ROM (1631k kernel code, 338k data) 

Mount-cache hash table entries: 512 (order: 0, 4096 bytes) 

NET: Registered protocol family 16 

Serial: JTAG UART driver $Revision: 1.3 $ 

ttyJ0 at MMIO 0x80920820 (irq = 1) is a jtag_uart 

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize 

smc_probe: 75000 Khz Nios 

SMSC LAN91C111 Driver (v2.1), (Linux Kernel 2.6) 

eth0: SMC91C11xFD(rev:1) at 0x80910300 IRQ:6 MEMSIZE:8192b NOWAIT:0 ADDR: 00:07: 

ed:0a:05:24 

smc_probe: 75000 Khz Nios 

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 

hda: SanDisk SDCFB-512, CFA DISK drive 

Using anticipatory io scheduler 

ide0 at 0x80920900-0x80920907,0x80920938 on irq 5 

hda: max request size: 128KiB 

hda: 1000944 sectors (512 MB) w/1KiB Cache, CHS=993/16/63 

hda: hda1 

Altera NDK flash (AMD): Found 1 x8 devices at 0x0 in 8-bit bank 

Amd/Fujitsu Extended Query Table at 0x0040 

Altera NDK flash (AMD): CFI does not contain boot bank location. Assuming top. 

number of CFI chips: 1 

cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. 

cmdlinepart partition parsing not available 

RedBoot partition parsing not available 

Using Altera NDK partition definition 

Creating 4 MTD partitions on "Altera NDK flash (AMD)": 

0x00200000-0x00600000 : "romfs/jffs2" 

0x00000000-0x00200000 : "loader/kernel" 

0x00600000-0x00700000 : "User configuration" 

0x00700000-0x00800000 : "safe configuration" 

NET: Registered protocol family 2 

IP: routing cache hash table of 512 buckets, 4Kbytes 

TCP: Hash tables configured (established 1024 bind 2048) 

NET: Registered protocol family 1 

NET: Registered protocol family 17 

VFS: Mounted root (romfs filesystem) readonly. 

Freeing unused kernel memory: 52k freed (0x11cc000 - 0x11d8000) 

expand: from=/ramfs.img to=/dev/ram0 

expand: from=/ramfs.img to=/dev/ram1 

 

/etc/issue www.microtronix.com July 2004 

 

 

Welcome to Linux on the Nios II 

 

Nios2 login: nios 

Password: 

# mount -t vfat /dev/hda1 /mnt/ide0 -n 

hda: hda1 

FAT: codepage cp437 not found 

hda: hda1 

mount: wrong fs type, bad option, bad superblock on /dev/hda1, 

or too many mounted file systems#
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
257 Views

You will need to add Codepage cp437 support to your kernel to mount that particular vfat partition. It can be found in the kernel configuration under... 

 

File systems ---> 

Native Language Support ---> 

< > Codepage 437 (United States, Canada) 

 

 

Dennis Scott 

Microtronix Datacom
0 Kudos
Reply