Skip to contentSkip to conversation

adding device driver kernel module for xen/linux

DISCUSSION Fajar A. Nugraha 2 participants 2 messages Jan 17, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I wanted to add a kernel module (bcm5700, device driver for Broadcom network adapter) to linux 2.6, xen-3.0.0. Is it possible to use the kernel module (source) as-is, without modifications, or do I need to edit the module source code to be Xen-specific?

I noticed that the files tg3.c and tg3.h on linux-2.6.12-xen is the same as the one on pristine-linux-2.6.12, so presumably, no change is needed. However, using bcm5700 module on linux-2.6.12-xen kernel doesn't work, while using bcm5700 on native linux (on the same machine) works.

Regards,

Fajar

#1 lore raw
Quoted 6 lines · Fajar A. Nugraha

Hi,

I wanted to add a kernel module (bcm5700, device driver for Broadcom network adapter) to linux 2.6, xen-3.0.0. Is it possible to use the kernel module (source) as-is, without modifications, or do I need to edit the module source code to be Xen-specific?

It should be possible to compile the bcm5700 source in the Xen linux tree, but using a binary module isn't a good idea. Also, bcm5700 has been abandoned in favor of tg3, and the Broadcom developers working on bcm5700 have migrated most of their changes from this driver into tg3.

Thanks,
Jon

Quoted 15 lines

I noticed that the files tg3.c and tg3.h on linux-2.6.12-xen is the same as the one on pristine-linux-2.6.12, so presumably, no change is needed. However, using bcm5700 module on linux-2.6.12-xen kernel doesn't work, while using bcm5700 on native linux (on the same machine) works.

Regards,

Fajar

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel