Re: cant mount adapi cdrom with 1.3.24 anymore

root (root@snafu.adeptcom.com)
Thu, 7 Sep 1995 13:04:43 -0400 (EDT)


On Wed, 6 Sep 1995, Johann Friedrich Heinrichmeyer wrote:

> With 1.3.24 (and also 1.3.23) i cant mount my adapi cdrom although it is
> correclty recocgnized.
>
> When i boot 1.3.15, mount /cdrom and then reboot with 1.3.23, mounting
> is successful. Strange.
>
> --
> Fritz Heinrichmeyer FernUniversitaet Hagen
> FAX: +49 2371/566236 LG Elektronische Schaltungen
> EMAIL: fritz.heinrichmeyer@fernuni-hagen.de Frauenstuhlweg 31
> PHONE: +49 02371/566-243 58644 Iserlohn (Germany)
> WWW: http://ES-sun2.fernuni-hagen.de
>
>
Here is a patch for the ATAPI CDROM that *WILL* work with anything above
1.3.17:

You'll have to add it by hand, not TOO difficult :P
_____________________________________________________________________________
@@ -2289,18 +2292,20 @@
* Second drive should only exist if first drive was found,
* but a lot of cdrom drives seem to be configured as
slave-only */
- for (unit = 0; unit < 2; ++unit) /* note the hardcoded '2' */
- (void) probe_for_drive(&hwif->drives[unit]);
+ for (unit = 0; unit < 2; ++unit) { /* note the hardcoded '2' */
+ ide_drive_t *drive = &hwif->drives[unit];
+ (void) probe_for_drive (drive);
+#ifdef CONFIG_BLK_DEV_IDECD
+ if (drive->present && drive->media == cdrom)
+ ide_cdrom_setup(drive);
+#endif /* CONFIG_BLK_DEV_IDECD */
+ }
for (unit = 0; unit < MAX_DRIVES; ++unit) {
ide_drive_t *drive = &hwif->drives[unit];
if (drive->present) {
hwif->present = 1;
request_region(hwif->io_base, 8, hwif->name);
-#ifdef CONFIG_BLK_DEV_IDECD
- if (drive->media == cdrom)
- ide_cdrom_setup(drive);
-#endif /* CONFIG_BLK_DEV_IDECD */
break;
}
}
_____________________________________________________________________________
Of Course .... the '-' tell you to delete the line ... '+'s mean add the line

That should work, I've on 1.3.24(and it wasn't fixed in it either), after
I did the patch, it works like a charm :)

Gary
root@snafu.adeptcom.com or wicked@unix.adeptcom.com