Re: openbsd with cf

2008-07-04 Thread secucatcher
like me with a sata to CF adapter

but it stop here:
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0(pciide0:0:0): timeout
type: ata
c_bcount: 512
c_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21

i try to change wd with boot_config with numerous flags.
try to do it with config -e.
maybe test with some other compact flash that has better dma support.



Re: openbsd with cf

2008-06-30 Thread Stuart Henderson
On 2008-06-30, sonjaya [EMAIL PROTECTED] wrote:
 I have  CF ( compact Flash ) Vgen 1G , and converter ide to cf . I try
 install openbsd 4.3 in cf and succesfully and try first boot i get
 error message like this bellow:
 how to solved  this ?

Your CF card supports DMA transfers, but the adapter doesn't
have the correct lines wired up.

http://marc.info/?l=soekris-techm=117879934817861w=2

 pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
 wd0: transfer error, downgrading to PIO mode 4
 wd0(pciide0:0:0): using PIO mode 4
 wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
 wd0: soft error (corrected)
 root on wd0a swap on wd0b dump on wd0b

Ah good, at least your card implements the RESET command so
the automatic downgrade to PIO works.



Re: openbsd with cf

2008-06-30 Thread sonjaya
wow great is working not show up the message ,

i found in manual link :

WD(4) OpenBSD Programmer's ManualWD(4)

NAME
 wd - WD100x compatible hard disk driver

SYNOPSIS
 wd* at wdc? flags 0x
 wd* at pciide? flags 0x

DESCRIPTION
 The wd driver supports hard disks which emulate the Western Digital
 WD100x.  This includes standard MFM, RLL, ESDI, IDE, and EIDE drives, as
 well as Serial ATA drives, and PCMCIA/CF storage media.

 The flags are used only with controllers that support DMA operations and
 mode settings (like some pciide(4) controllers).  The lowest order
 (rightmost) nibble of the flags define the PIO mode to use.  The next
 four bits indicate the DMA mode and the third nibble the UltraDMA mode.

 For each set of four bits, the 3 lower bits define the mode to use and
 the last bit must be set to 1 for this setting to be used.  For DMA and
 UltraDMA, 0xf () means ``disable''.  For example, a flags value of
 0x0fac ( 1010 1100) means ``use PIO mode 4, DMA mode 2, disable
 UltraDMA''.  The special setting 0x means ``use whatever the drive
 claims to support''.

But  PIO mode is more slowest than udma , how to chek perfomance  the
cf card in linux using hdparm how about in openbsd ( test  cf card ) .


On Mon, Jun 30, 2008 at 2:46 PM, Stuart Henderson [EMAIL PROTECTED] wrote:
 On 2008-06-30, sonjaya [EMAIL PROTECTED] wrote:
 I have  CF ( compact Flash ) Vgen 1G , and converter ide to cf . I try
 install openbsd 4.3 in cf and succesfully and try first boot i get
 error message like this bellow:
 how to solved  this ?

 Your CF card supports DMA transfers, but the adapter doesn't
 have the correct lines wired up.

 http://marc.info/?l=soekris-techm=117879934817861w=2

 pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21
 wd0: transfer error, downgrading to PIO mode 4
 wd0(pciide0:0:0): using PIO mode 4
 wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
 wd0: soft error (corrected)
 root on wd0a swap on wd0b dump on wd0b

 Ah good, at least your card implements the RESET command so
 the automatic downgrade to PIO works.





-- 
sonjaya
http://sicute.blogspot.com



Re: openbsd with cf

2008-06-30 Thread Stuart Henderson
On 2008-06-30, sonjaya [EMAIL PROTECTED] wrote:
 But  PIO mode is more slowest than udma

Well, your CF-IDE adapter does not support DMA - you must either
solder jumper wires for the pins which aren't connected, or change
the adapter. The Addonics adapters support it. Cheap ones vary,
but they usually tell you if they support it.

 how to chek perfomance  the cf card in linux using
 hdparm how about in openbsd ( test  cf card ) .

I normally dd bs=64k if=/dev/zero of=/mnt/somefile count=4k
or something. Not very scientific but it gives a rough idea.