WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Regarding compact flash  (Read 6918 times)

Offline jmhill

  • Newbie
  • *
  • Posts: 18
Regarding compact flash
« on: January 07, 2011, 05:35:53 PM »
I have a PC/104 card with a Geode GX1 processor as well as a socket for compact flash.  So far I'm booting TinyCore off a CD-ROM and using a USB memory stick to provide persistent storage, but I'd prefer to work entirely off compact flash (CF).

I have a new 4GByte SanDisk brand CF .  With the CF plugged in and the system boots slowly off CD-ROM and once booted I cannot find any reference to the CF.   But at this point I'm not sure of what I should be seeing.

I've seen several notes that CF works with TinyCore, but not too many details.

I've read that some CF devices report being "removable media" but can be reconfigured to report being "fixed media" but I'm not sure if that is necessary. 

I've read that CF mounts like an IDE device.  Does TinyCore need to be configured in some way to be able to use CF?  Perhaps a special driver is needed?

Jonathan

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11022
Re: Regarding compact flash
« Reply #1 on: January 07, 2011, 05:41:05 PM »
The answer to most of your questions is "it depends". You'll need to find out how your card reader is connected.
Through an usb adapter it looks like an usb stick, through an ide one like a hard disk. And so on.

Please also post (pastebin) your dmesg, maybe it has some info.
The only barriers that can stop you are the ones you create yourself.

Offline jmhill

  • Newbie
  • *
  • Posts: 18
Re: Regarding compact flash
« Reply #2 on: January 07, 2011, 09:15:37 PM »
The PC/104 card model is a Gene-4310.  The  install guide only acknowledges that there is a CF socket.  I'm digging for better documentation, but  in booting, the BIOS detects the CF on the IDE secondary master and reports a SanDisk SDCFH-004G.  Okay, it appears to be attached as an IDE disk device.

I searched the dmesg file for 'IDE' and found the following:

Uniform Multi-Platform E-IDE driver
cs5530 0000:00:12.0: IDE controller (0x1078:0x0102 rev 0x00)
[snip]
Probing IDE interface ide1...
ide1: Wait for ready failed before probe !
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 (serialized)
ide1 at 0x170-0x177,0x376 on irq 15 (serialized)
ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISE IDE ports

I also replaced the CF with a SanDisk Ultra II 256MByte device, it did not get nearly as far.  In attempting to boot the system stopped and reported:

hdc: dma timeout error: status=0x58 {DriveReady SeekComplete DataRequest}
hdc: possibly failed opcode 0xc8

I recall seeing a note that some CF devices have trouble with DMA.  In any case, I'm going to get a CF-USB adapter and use a PC to get a better look at these CF devices.

'Best;
Jonathan

Offline jmhill

  • Newbie
  • *
  • Posts: 18
Re: Regarding compact flash
« Reply #3 on: January 07, 2011, 09:21:50 PM »
Ummm... Please, how would I "pastebin"?

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Regarding compact flash
« Reply #4 on: January 07, 2011, 09:38:12 PM »
Ummm... Please, how would I "pastebin"?

I'd say that means using http://pastebin.com to "publish" a file (as an alternative to attaching a file here).

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: Regarding compact flash
« Reply #5 on: January 07, 2011, 10:06:18 PM »
Quote
ide_generic: please use "probe_mask=0x3f" module parameter ...

Did you try this?

Offline jmhill

  • Newbie
  • *
  • Posts: 18
Re: Regarding compact flash
« Reply #6 on: January 07, 2011, 10:09:42 PM »
Regarding the module parameter, I haven't tried it yet as I'm not sure how.
I'll try booting with it, let's see if it works.

Let's see if this works for dmesg.
Jonathan

http://pastebin.com/avv1nLX1


Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Regarding compact flash
« Reply #7 on: January 07, 2011, 10:11:27 PM »
also try boot parameter 'ide-core.nodma=1.0' (either in combination with the other boot param, or each alone)
« Last Edit: January 07, 2011, 10:25:58 PM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jmhill

  • Newbie
  • *
  • Posts: 18
Re: Regarding compact flash
« Reply #8 on: January 07, 2011, 11:21:10 PM »
The system boots with 256MByte CF inserted and using the nodma boot paramter.  The CF appears in the mount directory as hdc1.  The system boot with or without the probe_mask boot parameter.

In booting with the 4GByte CF, the dmesg file still contains the same note:
ide1: Wait for ready failed before probe !

Thank you so far, I'd like to be able to use the 4Bbyte CF.

Jonathan
« Last Edit: January 08, 2011, 12:07:19 AM by jmhill »

Offline jmhill

  • Newbie
  • *
  • Posts: 18
Re: Regarding compact flash
« Reply #9 on: January 12, 2011, 05:54:52 PM »
Please, does anyone know what the largest size compact flash is that can be used with TinyCore?  Is there a reason why a 4GByte compact flash might not work?

Jonathan

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Regarding compact flash
« Reply #10 on: January 12, 2011, 06:33:01 PM »
Highly doubtable that size would be the reason.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11022
Re: Regarding compact flash
« Reply #11 on: January 13, 2011, 09:32:30 AM »
Yes, CF size is no issue. It's either the card or your reader giving fits.
The only barriers that can stop you are the ones you create yourself.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11502
Re: Regarding compact flash
« Reply #12 on: January 14, 2011, 02:09:14 AM »
Hi John
I noticed in your dmesg listing that there is a hdb but no hda. This would suggest that you are
running your cd as a slave. Most drive manufacturers recommend that you jumper a drive as a
master if it is the only drive on an ide channel. Running it as a slave may be causing something
funny to happen. Also, make sure that the cable for the CF adapter is as short as possible, the
adapters are usually passive devices and do not contain electronics to drive a long cable. One
other thing to try is using the bootcode ide0=serialize or ide1=serialize or both. This should slow
down the probing of the ide channels should this be a timing problem. Remember to check the
output of dmesg to check if there any changes when you try these suggestions.

Offline jmhill

  • Newbie
  • *
  • Posts: 18
Re: Regarding compact flash
« Reply #13 on: January 15, 2011, 11:39:02 PM »
Thanks for your note Rich;

I moved the jumper on the CD-ROM drive and now the BIOS sees the drive as the primary master.   Also, the CF adapter is actually on the board itself so there is no issue with cable length.

I find that any time I boot with the 4G CF the before booting, the BIOS responds very slowly, even if BIOS is configured to boot off the CD-ROM first.  Any ideas why so slow?

I noted that the 256MByte CF is formatted as FAT, presumably as FAT16, and the 4G CF is formatted as FAT32.  I'm not sure what might happen if I attempted to format the CF as FAT16.

I also see other folks concerned about CF that is configured as "removable media" rather than "fixed media" and that in accessing "removable media" things are similar but not the same.  I've also verified that the CF is configured as "removable media."  The folks at SanDisk appear to make a point that their CF if configured that way.  There is a DOS tool for configuring CF as fixed media but no luck yet.

Here is the dmesg.  Ignore the comment about the Ethernet not being configured, as firmware.tcz isn't getting loaded first.

http://pastebin.com/46JJc5sf

Jonathan


Offline jmhill

  • Newbie
  • *
  • Posts: 18
Re: Regarding compact flash
« Reply #14 on: January 15, 2011, 11:41:23 PM »
Oh, didn't mention the startup parameters

$ tinycore ide-core.nodma=1.0 ide0=serialize ide1=serialize probe_mask=0x3f

Jonathan