driver devel: have to start over from scratch???

From: Dan Miller (dan_at_invalid.net)
Date: 06/23/05


Date: 23 Jun 2005 12:22:10 -0500

some two years ago, I worked extensively on a pseudo-ethernet (i.e., it
used network/ethernet api, but hardware underneath had nothing to do with
Ethernet) driver for kernel 2.2. Towards the end of my time there, I
converted the driver to kernel 2.4, but didn't give it alot of testing.
Suddenly now, I'm back on the same project again, but I need to port it to
kernel 2.6.

The interface seems to have *completely* changed now. I found some hints
on general k2.6 driver issues from an article at LinuxDevices.com, but much
is still missing. In the old days, I used Rubini as reference, but that
wasn't entirely useful for K2.4, and of course it has nothing about k2.6 at
all.

In particular, the pci-enumeration process seems to be completely
different; the pcibios_present/pcibios_find_device functions no longer
exist, and request_irq doesn't seem to exist either...

What do people use for reference now, if they want to create correct kernel
2.6 drivers (rather than hacking old drivers to sorta work)??? I'm willing
to take the time to do this right, but a tutorial or something would sure
reduce the pain. Any advice from anyone??

Dan Miller

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----



Relevant Pages

  • Re: 2.6.30-rc4 kernel
    ... I think there may be a problem with the 2.6.30 kernel that is ... # Generic Driver Options ... # PCI IDE chipsets support ... # Other IDE chipsets support ...
    (Linux-Kernel)
  • 2.6.30-rc4 kernel
    ... kernel panic - not syncing: ... # Generic Driver Options ... # PCI IDE chipsets support ... # Other IDE chipsets support ...
    (Linux-Kernel)
  • [PATCH 18-rc2] Fix typos in /Documentation : N-P
    ... Again, if you're not gonna do synchronization with disk drives (dang, ... -the kernel. ... There are two options specific to PSX driver portion. ... The driver uses the settings from the EEPROM set in the SCSI BIOS ...
    (Linux-Kernel)
  • two scary syslog kernel messages
    ... Sep 20 03:46:06 marvin kernel: kernel BUG at mm/rmap.c:482! ... ACPI: Local APIC address 0xfee00000 ... Allocating PCI resources starting at 80000000 ... ** driver failed to call pci_enable_device. ...
    (Debian-User)
  • Wheel group?
    ... AddScreen/ScreenInit failed for driver 0 ... Laptop ethernet won't work ... I remembered you told me not to put ther kernel version in the mailing ... modem driver for HCF modem on FC2 ...
    (Fedora)