I have uploaded a set of SRPMs with kernel 2.5 support to
<http://supermount-ng.sourceforge.net/mdk-25/> (hopefully it is not
abuse :) The goal was to allow transparent use of both kernel 2.4 and
2.5 on the same system; with some exceptions (see below) it appears
to work. Summary of changes follows:

* moutils
  - clean up alternatives so it can coexist with module-init-tools

* module-init-tools
  - clean up alternatives
  - build static insmod on non-dietlibc architecture
  - install standard modprobe.default (generated from modutils
    defaults)
  - install modprobe.compat that contains aliases for (some) changed
    modules
  - generate modprobe.conf from modules.conf on install; it relies
    on modprobe.compat for changed modules
  - install moprobe.devfs for devfsd usage; it is mostly translated
    modules.devfs with minor corrections
  - remove devfsd hack that is no more needed

* devfsd
  - autodetect modutils/module-init-tools and use correct config
    file. modprobe hack from module-init-tools did not work reliably

* mkinitrd
  - support modprobe.conf; I finally ended up with much more limited
    and less foolproof parsing then initially; but it is just one
    line for that :)
  - minor correction in dependencies resolution
  - build insmod for kernel 2.5

* initscripts
  - replace all references to modules.conf by modprobe -c.
  - support modprobe.conf for module aliases resolution (the same
    as in mkinitrd)
  - mount sysfs if available; you have to create /sys
  - support (and prefer) usbfs in addition to usbdevfs
  - my patch for minilogd for SOCK_STREAM
  - feeble fix for i18n problem during startup. It works for me :)

* gkrellm
  - support sysfs interface for sensors
  - fix i18n problem - finally it speaks Russian again :) Of course,
    default fonts are less then suitable for that ...

Random comments

I have problems with ALSA - apparently 2.4 and 2.5 configuration are
different so restoring under 2.5 configuration saved under 2.4 mutes
all channels. WOuld be nice if someone with ALSA knowledge looked into it

modprobe.compat is neccessarily incomplete. People are urged to
augment it :)

current default modprobe.conf is an example only. Still, something
like modprobe.default is needed - it contains protocol, executable
formats etc etc without which it is likely many things will break.
modprobe itself does not have any defaults at all.

gkrellm was not the to priority but it was an occasion to get a
closer look into sysfs. Interesting :)

sysfs is mounted early because I hope it will be used for device
autodetection sometimes.

serial driver has been splitted into several modules; if you build
it as module add at least

alias serial 8250_pci 

to modprobe.conf to get current behaviour

modprobe.default needs clean up. I just realized it refers to module
printer that no more exists.

Enjoy. Hopefully someone else will make use of it ;)

-andrey

Reply via email to