[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IBM floppy drives (fwd)
> Hi all! Just came upon some info. on the TP 750C & Linux! I'll try this
> out and let you all know about this asap!
>
> Later.
beware that this may not by itself fix the problem. My floppy driver
for linux had essentially the same changes described below. With those
patches, linux could read/write the floppy drive, but it wouldn't recognize
disk changes -- so when reading it would return cached data from the last
diskette!
Keith Moore
> >In case anyone wants to know, here is how we just managed to get linux
> >working with the floppy controller on the IBM ThinkPad 750C. The main
> >difference is that when you read from port 3f7 and look at bit 7 to see
> >whether the media has been changed, the controller reports 1 if not, and
> >0 if so (at least when the motor is on: when the motor is off, the
> >status of the bit never changes). This is exactly the reverse of the
> > usual situation.
> >To fix it, one must edit drivers/block/floppy.c so that the three
> >occurences of
> >
> > inb(FD_DIR) & 0x80
> >
> >are replaced by
> >
> > !(inb(FD_DIR) & 0x80)
> >
> >We don't know what kind of controller chip it uses, because IBM says that
> >information is PROPRIETARY! But we managed to figure it out anyway with a
> >great little msdos program called iospy which comes with the book "The
> >Undocumented PC" by Frank van Gilluwe (publ Addison-Wesley, isbn
> >0-201-62277-7). Iospy will display the contents of ports on the screen in
> >an out of the way place while you use debug to step through the BIOS or
> >whatever. Get it!