Re: [PATCH] Re: Old HD driver does not compile in 2.3.99pre9-2

From: Andrzej Krzysztofowicz (ankry@green.mif.pg.gda.pl)
Date: Sun May 21 2000 - 15:15:14 EST


> On Sun, 21 May 2000, Andries Brouwer wrote:
>
> > > hda: 0MB, CHS=1108/255/63
> > > ^^^^^
> > > Partition check:
> > > hda: hda1 hda2 hda3
> > > ...
> > >
> > > and kernel cannot mount root fs on hda3.
>
> Very odd - check the register_disk() call several lines below. It does
> exactly the same assignment and code between these points is not affected
> by your change. I would be _very_ surprised if simple substitution
> hd_info[drive].sect*...*.... in place of hd[drive<<6].nr_sects would have
> an effect different from your patch.

Yes. I've tested and found the guilties.

First: LBA geometry in BIOS; using hd= parameter is necessary, but it didn't
        work.
Second: in non-PCI case ide.c detection code probes also for ide0 ...

Fixed, and a patch sent to Andre.

BTW, is it possible to guess the original CHS geometry if BIOS/part.table use
LBA one ? Possible 15/16 heads problem ?
hd.c driver must use CHS.

Andrzej

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  tel.  (0-58) 347 14 61
Wydz.Fizyki Technicznej i Matematyki Stosowanej Politechniki Gdanskiej

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:20 EST