On 2007/05/10 13:51, Soren Kristensen wrote:
> Emilio Perea wrote:
> > I've been using a 4801-50 with a SanDisk 1GB Ultra II CF card for a
> > while now, using OpenBSD without any problems.  But I was looking for
> > bigger, and preferably faster disk, and bought a Sandisk 2GB Extreme
> > IV CF card.
> > 
> > This is almost four times faster in write speed according to my tests in
> > a laptop, which seemed great.  But in the 4801 I get disk errors.  I
> 
> The net4801 added support for DMA on the CompactFlash from PCB rev 3, 
> dated 040226. If you have an older board then you will need to tell the 
> ATA driver to disable DMA, as it will detect that the disk support DMA 
> but don't know it's not wired....

In OpenBSD, you do this with flags to the wd(4) driver.

You can edit a kernel which is already built using the -e option
to config(8);

$ config -e -o newkernel bsd
OpenBSD 4.1-current (GENERIC) #126: Mon May  7 12:43:41 MDT 2007
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
Enter 'help' for information
ukc> change wd
 42 wd* at wdc*|pciide* channel -1 flags 0x0
change [n] y
channel [-1] ? 
flags [0] ? 0x0ff0
 42 wd* changed
 42 wd* at wdc*|pciide* channel -1 flags 0xff0
ukc> quit

If you build your own custom kernel, you can change this in the
configuration file.

The flags value I show here, 0x0ff0, disables DMA and UltraDMA
and uses whichever PIO mode the device claims to support.

_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to