[Prism54-users] Prism 54 on Suse 9.0

Tim Chick chick@computergeek.freeserve.co.uk
Sun, 1 Feb 2004 15:17:49 +0000


Hi All,

Sorry if this has been discussed before, but I had a little trouble making 
Prism-54 work on Suse 9.0, upgraded to the 2.4.21-166 kernel.

To fix this, I made the following changes:

cvs server: Diffing .
cvs server: Diffing kdoc
cvs server: Diffing ksrc
Index: ksrc/islpci_dev.c
===================================================================
RCS file: /var/lib/cvs/prism54-ng/ksrc/islpci_dev.c,v
retrieving revision 1.58
diff -r1.58 islpci_dev.c
313c313,314
<                                   pci_name(priv->pdev),
---
> //                                pci_name_device(priv->pdev),
> priv->pdev->name,
792c793,794
<       free_netdev(ndev);
---
> //    free_netdev(ndev);
>       kfree(ndev);
Index: ksrc/islpci_hotplug.c
===================================================================
RCS file: /var/lib/cvs/prism54-ng/ksrc/islpci_hotplug.c,v
retrieving revision 1.52
diff -r1.52 islpci_hotplug.c
242c242,243
<       free_netdev(ndev);
---
> //    free_netdev(ndev);
>       kfree(ndev);
288c289,290
<       free_netdev(ndev);
---
> //    free_netdev(ndev);
>       kfree(ndev);

Does anyone with more knowlege of the linux kernel know if these are correct?

And made the following /etc/hotplug/firmware.agent
#!/bin/sh

# Simple hotplug script sample:
#
# Both $DEVPATH and $FIRMWARE are already provided in the environment.

HOTPLUG_FW_DIR=/usr/lib/hotplug/firmware/

echo 1 > /proc/$DEVPATH/loading
cat $HOTPLUG_FW_DIR/$FIRMWARE > /proc/$DEVPATH/data
echo 0 > /proc/$DEVPATH/loading

# To cancel the load in case of error:
#
#       echo -1 > /sysfs/$DEVPATH/loading
#

and the driver worked fine for me, once, without much testing! (tm)

The standard kernel appeard to have the firmware class module, but no hotplug 
script for it.

Hope this helps someone,
Tim