LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2012, 09:30 AM   #1
AllenKll
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Rep: Reputation: Disabled
Can't mount CF card on Primary IDE Master


Hello,
I am working on a Vortex86DX PC104 board that has a built on CF card reader.

I built a CF card using XLinux on a windows machine, and the system boots fine.

After login, however, I am unable to mount /dev/hda1 I get the error: "no such device or address"

I verified that /dev/hda1 does exist. I'm not really sure how to continue debugging from here. I have also tried deleting and readding /dev/hda1 using mknod, with no success.

I have looked at dmesg, and there is no mention of hda or sda devices.

Xlinux uses busy box. And I do not have udev. I have booted the system from a CD rom using DSL and was able to mount the CF card without issue, so I do not think this is a hardware problem.

Please, I could really use some direction on this.

thanks,
-Allen
 
Old 03-02-2012, 06:16 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,398

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
On a 2.6 kernel shouldn't the drive be a /dev/sda1?

If you can log on, what are you logging into exactly?

Last edited by jefro; 03-03-2012 at 01:08 PM.
 
Old 03-03-2012, 10:33 AM   #3
AllenKll
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Thanks for your reply.

Quote:
On a 2.6 kernel shouldn't the drive be a /dev/sda1?
You may be right, I've tried that also with no success.


Quote:
If you can log on, what are logging into exactly?
I am logging into a Busybox prompt running in memory.

my mount looks like this:
Code:
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,errors=continue)
proc on /proc type proc (rw)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /tmp type tmpfs (rw)
tmpfs on /var type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=600)
sys on /sys type sysfs (rw)
My Kernel command line indicates: root=/dev/ram0


Some more information for those trying to help:
I see in dmesg these interesting lines:
Code:
Uniform Multi-Platform E-IDE driver
ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports
ide-gd driver 1.18
Driver 'sd' needs updating - please use bus_type methods
Are they telling me what I need? if so can someone please explain it?
I don't know how to use the prob_mask module parameter. Should this be entered at the kernel command line? or is there a config file that this should go in? Is it just a red herring?

thanks,
-Allen
 
Old 03-03-2012, 11:21 AM   #4
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Rep: Reputation: 68
Are shunts on the IDE adapter for your CF card? (for setting primary/secondary).
This is what I made (from remembering) when I attached my CF card to my PC via IDE and moved it from primary/secondary: after a certain move, it did not run anymore and I had to move the IDE shunts. (Or perhaps moved back the IDE+CF to the place where it was recognized).
 
Old 03-03-2012, 11:42 AM   #5
AllenKll
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by floppy_stuttgart View Post
Are shunts on the IDE adapter for your CF card? (for setting primary/secondary).
Floppy,
There are no shunts (jumpers). Also there is no IDE adapter. The CF card has a slot on the board, and it is set (via bios) to Primary, Master. The BIOS recognizes the CF card, and boots off of it. I just can't get it to mount after linux has booted.

-Allen
 
Old 03-03-2012, 01:15 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,398

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
I am still confused. Does this thing have an embedded OS besides the cf?

There are a few thousand configurations of this type of board. Some have an embedded flash onboard that you may be booting too. Where did you get this from?
 
Old 03-03-2012, 01:30 PM   #7
AllenKll
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Does this thing have an embedded OS besides the cf?
No there is no embedded os.
This is the VDX-104 from Tri-M.

It is definitely booting from the CF card.
 
Old 03-04-2012, 02:37 PM   #8
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 710
Blog Entries: 2

Rep: Reputation: 68
I dont fully understand: you have XLinux on a CF card, it boots from there (extlinux? grub?) but dont recognize the CF card when booted?
Please post the results of
- your command line of grub/extlinux of your XLinux
- dmesg
- lsusb
- lspci
- lshw
Can you perhaps install TinyCoreLinux to that CF? (modern variant of damnsmalllinux). Perhaps a distro issue not seeing fully the hardware.
 
Old 03-04-2012, 06:23 PM   #9
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
If the OS boots, but doesn't recognize the CF drive, it seems likely that the bootloader (unspecified) has some kind of built-in driver for the hardware, but the kernel which it loads does not. There may or may not be a loadable driver for the hardware associated with your Xlinux kernel.
Since you have a working system that does see the CF device, why don't you run that OS, and see if you can tell what driver is loaded (or, it might also be a built-in). Run dmesg, and see if you can tell what driver knows about the CF hardware. The see if you can load that driver on your XLinux OS.

--- rod.
 
Old 03-05-2012, 02:46 PM   #10
AllenKll
LQ Newbie
 
Registered: Mar 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
@floppy:
The answer to you question is yes. It boots from the CF card, but doesn't recognize it after boot. Using loadlin.
The dmesg file would take a while to type out, I'll pass on posting that, but if you want to see a speceific entry I can look for it. lsusb, lshw, and lspci do not exist on the system.

@theNbomr:
Gave that a try with TinyCore. I saw a number of DMA issues, but it still accessed fine.

All:
I don't know what the issue is/was, but I'm dropping it.

The only reason I was using Xlinux was that it was the only distro that had support for the Ethernet chip that the board has. After some digging I found that support for the chip is in the current Linux kernel, and I need a distro with a recent kernel. Looking at TinyCore 4.4RC2, it boots the system and recognizes the Ethernet (uses kernel 3.0.21). It did however show errors with lib ata using DMA.

Long story short. I disabled libata.dma=0 on the Linux command line, and saw no errors accessing the CF card. Even though I did not see these errors on the XLinux system, I tried the the same on X-Linux but it did not fix the issue.

All in all TinyCore does everything I need, and am moving forward with that.

Thank you all for your help,

-Allen
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I install 2 hdd 1 primary master and 1 secondary master? tribeone Linux - Hardware 4 01-13-2007 08:58 PM
Running Fedora 4 on primary master and cant acsess my xp files on primary slave roxberry1 Linux - Newbie 5 01-29-2006 12:37 PM
How can I connect my SATA HD physically so that it is the First IDE Primary Master? Basel Linux - Hardware 8 10-27-2005 12:33 PM
HELP! pc can't find primary master kpachopoulos General 6 02-01-2005 10:41 PM
boot loader, MBR, redhat9 on primary slave, winxp on primary master samik Linux - Hardware 4 10-15-2003 09:55 PM


All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration