- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am currently trying to get the compact flash component to work with my 1C20 dev board from altera. I am using the linux_time_limited.sof core, and I have successfully compiled the kernel with vfat, IDE, and CF support. When I insert the card, the message pops up ID'ing the card (actually I usually have to insert the card twice to get the message). Can anyone help me trace down my problem. Below I have included the output of a console session that I hope illustrates the problem in better detail.
Linux version 2.6.9-uc0 (jonv@jonv) (gcc version 3.4.1 (Altera Nios II 1.1 b137)
)# 10 Thu Mar 10 17:35:20 EST 2005
uClinux/Nios II
Altera Nios II support (C) 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: 14336k/16384k RAM, 0k/0k ROM (1520k kernel code, 337k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
NET: Registered protocol family 16
NIOS serial driver version 0.0
ttyS0 (irq = 4) is a builtin NIOS UART
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: 50000 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:0b:58:ae
smc_probe: 50000 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=2
Using anticipatory io scheduler
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"
mice: PS/2 mouse device common for all mice
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: 56k freed (0x11b0000 - 0x11bd000)
expand: from=/ramfs.img to=/dev/ram0
expand: from=/ramfs.img to=/dev/ram1
eth0:PHY 100BaseT
eth0:PHY Full Duplex
/etc/issue www.microtronix.com July 2004
Welcome to Linux on the Nios II
Nios2 login: nios
Password:
# # hda: SanDisk SDCFB-32, ATA DISK drive
ide0 at 0x80900800-0x80900807,0x80900838 on irq 8
# mount -t vfat /dev/hda1 /mnt/ide0 -n
mount: /dev/hda1 is not a valid block device# fdisk /dev/hda
Unable to open /dev/hda
Thanks alot! Jon
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
what is the output of
ls -l /dev/hd*- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi jonv,
can you tell us your kernel configuration for ATA/ATAI/MFM/RLL support? You need enable the following: <div class='quotetop'>QUOTE </div> --- Quote Start --- Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support Include IDE/ATA-2 DISK support Use multi-mode by default generic/default IDE chipset support Other IDE chipset support Altera CF (IDE mode) interface (Avalon bus) support[/b] --- Quote End --- wentao microtronix- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks! I was hoping that it would be a problem in my kernel configuration. I only had EIDE support, and the Altera CF support checked. Is there some documentation that I missed that would have given me this information?
Thanks again Wentao, you da man!- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page