Subject: Re: problems with 1.6ZE
To: Jukka Marin <jmarin@kyyhky.embedtronics.fi>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 11/02/2003 14:17:29
On Fri, Oct 31, 2003 at 04:32:51PM +0200, Jukka Marin wrote:
> Hi,
> 
> I just tried a 1.6ZE kernel on my TP A31p.  I have three problems:
> 
> dd'ing a disk image onto a CF card does not work reliably.  I copy the
> image like this:
> 
> # dd if=foo.img of=/dev/rwd1d bs=1m progress=1
> 
> The command completes OK, but if I fsck the CF card, I get:
> 
> # fsck -f /dev/rwd1a
> ** /dev/rwd1a
> BAD SUPER BLOCK: VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE
> 
> LOOK FOR ALTERNATE SUPERBLOCKS? [yn] n
> 
> The same card and same image works OK on an HP laptop.  A different CF
> card works OK on the HP _and_ my laptop.  Both cards are Kingston 128 MB
> cards.  The ones that do now work are a bit newer:
> 
> wd1 at atabus2 drive 0: <SAMSUNG CF/ATA>
> wd1: drive supports 4-sector PIO transfers, LBA addressing
> wd1: 124 MB, 496 cyl, 16 head, 32 sec, 512 bytes/sect x 253952 sectors
> 
> The older cards look like this:
> 
> wd1 at atabus2 drive 0: <TOSHIBA THNCF128MMA>
> wd1: drive supports 1-sector PIO transfers, LBA addressing
> wd1: 122 MB, 978 cyl, 8 head, 32 sec, 512 bytes/sect x 250368 sectors
> 
> The problem existed with an older kernel (1.6W) as well.

Could you try to force it to 1-sector PIO transfer ?
Just force wd->sc_multi to 1 in wd.c:wdattach() line 326

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--