Hi, all.
I use Stratic2 board of ALTERA nios2. I have a problem for compact flash. Kernel detected CF card slot, but I receive following open messages. I checked cause in this forum, and I got a relation remesseges for this cause. However I didn't find out a adequate answer. Could you please help me! --------Openning Message ------------------------------- uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: PID hash table entries: 256 (order: 8, 1024 bytes) Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory available: 29852k/32768k RAM, 0k/0k ROM (1422k kernel code, 1177k data) Mount-cache hash table entries: 512 NET: Registered protocol family 16 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 0, 4096 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered io scheduler noop registered io scheduler deadline registered (default) Serial: JTAG UART driver $Revision: 1.1 $ ttyJ0 at MMIO 0x812110d0 (irq = 4) is a jtag_uart RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org> eth0: SMC91C11xFD (rev 2) at 81200300 IRQ 5 [nowait] eth0: Ethernet addr: 00:07:ed:0d:b5:29 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 Unable to initialize compact flash card. Please re-insert TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 Freeing unused kernel memory: 1056k freed (0x2174000 - 0x227b000) Shell invoked to run file: /etc/rc -------until here-------------------------------------------------------------- Thanks a lot. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif链接已复制
3 回复数
Hi, guys.
This is a additional infomation. As I received a messege of re-insert, I tried to re-insert CF card. And, I typed following command. /> mount -t vfat /dev/hda1 /mnt/cf mount: Mounting /dev/hda1 on /mnt/cf failed: No such device or address Thank you. Best Regards.Hi, all.
I changed .sof file. So, Openning message changed like next. I have seen this messege in this forum, but there was not answer. Please help! CF: ctl=1 hda: no response (status = 0xff), resetting drive hda: no response (status = 0xff) hdb: no response (status = 0xff), resetting drive hdb: no response (status = 0xff) CF register fails hda: no response (status = 0xff), resetting drive hda: no response (status = 0xff) hdb: no response (status = 0xff), resetting drive hdb: no response (status = 0xff) Thank you.Hi, all.
I got successful for CF card. I connected detect_n to CD1_N by the SOPC Builder, reset_n_from_the_cf to PIN_U3 by the Pin Planner. And, I made a .sof file and .ptf file again, and I got a new kernel. The cause is as follows. CF: ctl=1 hda: SanDisk SDCFJ-32, CFA DISK drive ide0 at 0x81211100-0x81211107,0x81211138 on irq 7 hda: max request size: 128KiB hda: 62720 sectors (32 MB) w/1KiB Cache, CHS=490/4/32 hda: hda1 Command: mkdir /mnt/cf Command: mount -t vfat /dev/hda1 /mnt/cf Thanks.