Add support for floppy and SCSI devices on OldWorld Powermacs.

Bug #44804 reported by Niels Kristian Bech Jensen
18
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Fix Released
Wishlist
Ben Collins

Bug Description

I cannot mount floppies in the built-in floppy drive on my beige Powermac G3 (OldWorld) running Dapper Beta. The problem is that the /dev/fd0 device file does not exist since CONFIG_MAC_FLOPPY is not set. Likewise I cannot use the built-in SCSI devices since the mesh module is not built.

This is a regression from Breezy.

Revision history for this message
sam tygier (samtygier) wrote :

/dev/fd0 should only be created by udev after you insert a floppy disk.

is there anything in dmesg after inserting the disk?

Revision history for this message
Niels Kristian Bech Jensen (nkbjensen) wrote :

sam tygier <email address hidden> wrote:
> /dev/fd0 should only be created by udev after you insert a
> floppy disk.
>
> is there anything in dmesg after inserting the disk?
>
There is no output in dmesg after inserting the disk. When I try to mount it, I get this in the console:

root@plutonium:~# mount -t vfat /dev/fd0 /media/floppy0
mount: special device /dev/fd0 does not exist

And still nothing in dmesg. When trying `modprobe floppy` I get:

root@plutonium:~# modprobe floppy
FATAL: Error inserting floppy (/lib/modules/2.6.15.6-ubuntu1/kernel/drivers/block/floppy.ko): No such device

And this in dmesg (the disk is a 720K DD floppy):

[ 406.223964] Floppy drive(s): fd0 is 2.88M
[ 406.239723] IN from bad port 3f4 at e5ac2484
[ 409.239713] floppy0: no floppy controllers found

Hope this helps.

Regards,
Niels Kristian

Revision history for this message
Niels Kristian Bech Jensen (nkbjensen) wrote :

I forgot to check the obvious. ;-) CONFIG_MAC_FLOPPY is not set in /boot/config-2.6.15-22-powerpc.

I'm currently building a new kernel to check if CONFIG_MAC_FLOPPY=m fix the bug.

Regards,
Niels Kristian

Revision history for this message
Niels Kristian Bech Jensen (nkbjensen) wrote : [FIXED]Re: Dapper powerpc: Device file /dev/fd0 does not exist.

The .config changes below fixes the bug. It also adds support for the commonly used SCSI interfaces in OldWorld Powermacs.

Regards,
Niels Kristian

--- /boot/config-2.6.15-22-powerpc 2006-05-07 17:44:13.000000000 +0200
+++ .config 2006-05-18 13:23:58.000000000 +0200
@@ -835,7 +835,7 @@
 # Block devices
 #
 CONFIG_BLK_DEV_FD=m
-# CONFIG_MAC_FLOPPY is not set
+CONFIG_MAC_FLOPPY=m
 CONFIG_PARIDE=m
 CONFIG_PARIDE_PARPORT=m

@@ -1084,8 +1084,10 @@
 CONFIG_SCSI_DC390T=m
 CONFIG_SCSI_NSP32=m
 CONFIG_SCSI_DEBUG=m
-# CONFIG_SCSI_MESH is not set
-# CONFIG_SCSI_MAC53C94 is not set
+CONFIG_SCSI_MESH=m
+CONFIG_SCSI_MESH_SYNC_RATE=5
+CONFIG_SCSI_MESH_RESET_DELAY_MS=4000
+CONFIG_SCSI_MAC53C94=m

 #
 # PCMCIA SCSI adapter support

Revision history for this message
Niels Kristian Bech Jensen (nkbjensen) wrote : Re: Dapper powerpc: Device file /dev/fd0 does not exist.

The fix also enables the SCSI interfaces on OldWorld Powermacs, which are needed for installation drives and cdrom drives on some models - they should be probed during the boot process.

Regards,
Niels Kristian

Revision history for this message
Didier Raboud (odyx) wrote :

Kernel is now 2.6.15-23, is the bug solved ?

Revision history for this message
Niels Kristian Bech Jensen (nkbjensen) wrote :

On Tue, 2006-05-23 at 15:20 +0000, Didier Raboud wrote:
> Kernel is now 2.6.15-23, is the bug solved ?
>
No, CONFIG_MAC_FLOPPY is still not set.

Revision history for this message
Adam Petaccia (mighmos) wrote :

Marking In Progress because of proposed solution.

Changed in linux-source-2.6.15:
status: Unconfirmed → In Progress
description: updated
Revision history for this message
Thomas (tjm-gmx) wrote :

I would appreciate to have a new PowerPC-Server-6.06 LTS installer CD that supports MESH and Floppy support for OldWorld Macs from the scratch.

Is this in progress?

Revision history for this message
Ben Collins (ben-collins) wrote :

debian/config/powerpc/config.powerpc:CONFIG_SCSI_MESH=m

It's very possible that you need to manually load this driver from the command line.

Revision history for this message
Ben Collins (ben-collins) wrote :

Opps, I was looking at the wrong kernel. MESH and MAC_FLOPPY are not set. I'll have them enabled in the first dapper update.

Changed in linux-source-2.6.15:
assignee: nobody → ben-collins
status: In Progress → Fix Committed
Changed in linux-source-2.6.15:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.