Honda Motorcycles - FireBlades.org banner

1 - 20 of 32 Posts

·
Registered
Joined
·
14,224 Posts
Discussion Starter #1
For some reason my board does not want to mount the compact flash at /mnt anymore. I have checked on another system and the card is fine (it was corrupted). Further for some reason the /dev/hda file is missing. If I go to /dev/ide and then down a few levels to disc the data is all there. Also if I force the boot to be from the CF card everything is fine \.

I think I can just do a mknod and replace the /dev/hda file but I am concerned with why it is gone :confused: Any ideas from the linux gurus?
 

·
Registered
Joined
·
902 Posts
A few questions to see how your system is configured, so I can answer:

Are you mounting this from the command line or from what window manager?
Is your compact flash driver using loadable kernel modules?
What kind of compact flash reader do you have?
What chipset? Is it through the USB interface (most likely)?
I haven't seen for myself a hardware IDE or PCI interface for a flash device yet.
Is this using scsi emulation?
Is the format vfat?

Lots of questions, but this will let me know exactly how your hardware bus is configured and how I can route the kernel drivers to your memory. From an engineering standpoint its simple, but its just finding out how your memory connects to the processor's bus.
 

·
Registered
Joined
·
14,224 Posts
Discussion Starter #4
SomeStrangeGuy said:
This link might be helpful:

http://www.windowsupdate.com/en/us/c......485kj.htm

If you're still having issues and no one here can help, there are some eggheads at my work I can ask.


http://www.nycwireless.net/pebble/pebble.README
Thanks but nope. I got a Linux installed on it (TS Linux with Busybox as most apps that is fairly bare bones) just for some reason my hda entries dissappeared and the drive doesn't mount correctly. I see no entry in the /etc/fstab to mount it either. However when I first fired it up everything was there fine. Sometimes it would not mount on "mount /dev/hda /mnt" though and now it doesn't 100% of the time. Just trying figure it out before I start hacking :O

PS but like I said if I force the boot over to the drive everything looks fine as far as operating from the CF card
 

·
Registered
Joined
·
2,057 Posts
There needs to be an entry in /etc/fstab in order for it to mount at boot time. I do not know why it would disapear all of the sudden. Edit your fstab file to add the link to the drive in /dev/hda to connect at boot time. How do you have the drive formatted?
 

·
Registered
Joined
·
1,549 Posts
More disturbing is that you can't even mount it manually with "mount /dev/hda1 /mnt" or something similar.

I am assuming that the mount point exists all the time, and it's not being created dynamically. When you can't mount the card manually, what is the error or information that comes back? If nothing is returned, try it with the -v flag to get verbose output.

You are root (or sudo'ed), correct?

Also, type "dmesg" and take a look at your kernel output to ensure that it sees the card reader and what device name it has been given. Remember that if you have other USB devices (like a thumb drive) plugged in, the device name may change to hdb or hdc, or even sd*. The device names on hotplug enabled devices such as USB are handed out dynamically at boot.
 

·
Registered
Joined
·
14,224 Posts
Discussion Starter #7
Yes you both are following why I am disturbed. There is no /dev/hda file. I could try to make one but when I download the OS in full from thier website it does not seem to have one either :confused: If it is created automajically I am not seeing how (and of course it is not happening now). I could use mknod to create /dev/hda but if there is an auto method I am afraid of further mucking things up (yes after creating it I would have to add it to fstab but again the OEM one seems to not have it)

dattaway said:
A few questions to see how your system is configured, so I can answer:

Are you mounting this from the command line or from what window manager?
Is your compact flash driver using loadable kernel modules?
What kind of compact flash reader do you have?
What chipset? Is it through the USB interface (most likely)?
I haven't seen for myself a hardware IDE or PCI interface for a flash device yet.
Is this using scsi emulation?
Is the format vfat?

Lots of questions, but this will let me know exactly how your hardware bus is configured and how I can route the kernel drivers to your memory. From an engineering standpoint its simple, but its just finding out how your memory connects to the processor's bus.
1 Command line this is an embedded card for the Wooly On Board computer project, there is no GUI at all rather a console connection
2 Not sure I believe it is though
3 The reader is an CF card reader on board.
4 ARM
5 Yes IDE emulation the format must be ext2 by their spec

Yes this is an off nominal and geeky system :O
 

·
Registered
Joined
·
803 Posts
Sheep,
Are you seeing a recognition of HDA in the dmesg? And I think I am confused. Is the Flash card HDA* or SDA*? In my travels, unless you are using a CF-IDE adapter, the CF cards show up under USB drivers as SD?.

Is it also possible that you need to rewrite the MBR if you are using your card as HDA? You did mention that it was corrupted.
Fig
 

·
Registered
Joined
·
902 Posts
Please forgive, I must have missed the original article. I need to get one of these boards. I'm looking at the 7260. Low power consumption, full operating system, and lots of ports!
 

·
Registered
Joined
·
14,224 Posts
Discussion Starter #10
Fig said:
Sheep,
Are you seeing a recognition of HDA in the dmesg? And I think I am confused. Is the Flash card HDA* or SDA*? In my travels, unless you are using a CF-IDE adapter, the CF cards show up under USB drivers as SD?.

Is it also possible that you need to rewrite the MBR if you are using your card as HDA? You did mention that it was corrupted.
Fig
You lost me on what dmesg is?

It is HDA this is a CF-IDE adapter that is on-board.

dattaway: yep and feel free to give constructive comments and input on the project :eyebrows: I am hoping to have something part way running by spring. This IDE trouble has slowed me down although I have been doing some circuit planning and assignment of pins. The 7260 is cool but was not available when I got mine. Although I like the idea of CF flash. If I get things up and running I am thinking of having the system run completely off CF flash (that way I can bring a cheap complete system backup when I travel)
 

·
Registered
Joined
·
803 Posts
Sheep, it's the Kernel output. NavyDevilDog mentioned it above. It's all the code that scrolls by as you boot.

So the Cf card is used as HDA. Did this ever boot off the CF card automatically? If not, I am thinking that you need to run LILO and have it create a MBR on HDA, the 'drive' and not hda1. Have you run fdisk on /dev/hda and checked that the drive is partitioned properly with the correct type (83)?
Fig
 

·
Registered
Joined
·
1,549 Posts
OK, here is what you need to do for dmesg. Be root, and type "dmesg | more" and hit return. (I am going helpdesk on your ass :p)

Look for something similar to this:

ide0: Found Apple UniNorth ATA-6 controller, bus ID 3, irq 39
Probing IDE interface ide0...
hda: ST940110A, ATA DISK drive
hdb: MATSHITACD-RW CW-8123, ATAPI CD/DVD-ROM drive
This was done on a MacMini running Debian, but the language will be pretty much the same if your compact flash adapter looks like an IDE interface.

You can see which devices were assigned hda and hdb. This is the first step in mounting the device.

If the card reader is connected via USB, they almost ALWAYS look like SCSI emulated drives, which would end up as sda or sdb or similar.

The trick is to look through the dmesg output and figure out what is going on.
 

·
Registered
Joined
·
14,224 Posts
Discussion Starter #14
Fig said:
Sheep, it's the Kernel output. NavyDevilDog mentioned it above. It's all the code that scrolls by as you boot.

So the Cf card is used as HDA. Did this ever boot off the CF card automatically? If not, I am thinking that you need to run LILO and have it create a MBR on HDA, the 'drive' and not hda1. Have you run fdisk on /dev/hda and checked that the drive is partitioned properly with the correct type (83)?
Fig
It never booted off the card directly. You have to control C during the boot which puts you in Redboot so you can manually load the OS from the CF card which is an IDE, otherwise it boots to the flash in 0.1 seconds. I can still boot either device by using the standard methods however when you boot to the flash (not CF a chip) you could mount the CF card at hda1 all per the manuals.

I think the pertinent part of the boot up is:
ide0 at 0x8d000000-0x8d000007,0x88400006 on irq 32
hda: attached ide-disk driver.
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 501760 sectors (257 MB) w/1KiB Cache, CHS=980/16/32
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1

However even though this looks like a failure you can still mount the card just not from dev/hda to /mnt as it used to as the drive is now at
/dev/ide/host0/bus0/target0/lun0/part1

If I go to SUSE Linux and mount the card everything is wonderful :huh: (can even umount and run e2fsck with no errors)
 

·
Registered
Joined
·
1,549 Posts
sheepofblue said:
It never booted off the card directly. You have to control C during the boot which puts you in Redboot so you can manually load the OS from the CF card which is an IDE, otherwise it boots to the flash in 0.1 seconds. I can still boot either device by using the standard methods however when you boot to the flash (not CF a chip) you could mount the CF card at hda1 all per the manuals.

I think the pertinent part of the boot up is:
ide0 at 0x8d000000-0x8d000007,0x88400006 on irq 32
hda: attached ide-disk driver.
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 501760 sectors (257 MB) w/1KiB Cache, CHS=980/16/32
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1

However even though this looks like a failure you can still mount the card just not from dev/hda to /mnt as it used to as the drive is now at
/dev/ide/host0/bus0/target0/lun0/part1

If I go to SUSE Linux and mount the card everything is wonderful :huh: (can even umount and run e2fsck with no errors)
Hmmm... looks like you have devfs going. So, if you type "mount /dev/ide/host0/bus0/target0/lun0/part1 /mnt" what happens? Does it mount?
 

·
Registered
Joined
·
1,549 Posts
Worse... I am having to create business plans for some IT projects we are running. I am mucking through phrases like:

Project alignment with the NSS should be considered part of the IDMP. This assessment occurs during Phase D and is completed by SDC with the approval of the EAG. The outcome is provided at the DDP for OC&D. If a project is not fully aligned with the NSS strategy, the project must identify the reasons why based on the categories listed below. EA Oversight will determine if sufficient reasons exist to approve the investment even though it is not fully NSS aligned.
 

·
Registered
Joined
·
14,224 Posts
Discussion Starter #19
navydevildoc said:
Hmmm... looks like you have devfs going. So, if you type "mount /dev/ide/host0/bus0/target0/lun0/part1 /mnt" what happens? Does it mount?
Yep just fine. that is why I think I can just create a new device. However how was it working before :huh: If I understood that I could fix things, I sent an email off to Technologic today, hopefully I will get a response that provides that bit of insight I am missing :O
 

·
Registered
Joined
·
14,224 Posts
Discussion Starter #20
navydevildoc said:
Worse... I am having to create business plans for some IT projects we are running. I am mucking through phrases like:

Project alignment with the NSS should be considered part of the IDMP. This assessment occurs during Phase D and is completed by SDC with the approval of the EAG. The outcome is provided at the DDP for OC&D. If a project is not fully aligned with the NSS strategy, the project must identify the reasons why based on the categories listed below. EA Oversight will determine if sufficient reasons exist to approve the investment even though it is not fully NSS aligned.
We have committed to synergistically create timely data in order to solve business problems

or

It is our mission to completely pursue emerging opportunities and enthusiastically maintain scalable services to stay competitive in tomorrow's world
 
1 - 20 of 32 Posts
Top