
Hi,
I compiled an r1000.ko module for my PXE bootenvironment and added it to the initrd image but I don't understand the discover tool yet, so I just added r1000 to the discovered result as dirty hack...
Is there a possibility to discover the hardware automagically?
/Markus

* Markus Wigge mwigge@marcant.net [20061214 11:15]:
I compiled an r1000.ko module for my PXE bootenvironment and added it to the initrd image but I don't understand the discover tool yet, so I just added r1000 to the discovered result as dirty hack...
Is there a possibility to discover the hardware automagically?
grml-terminalserver of grml 0.9 uses another approach. I rewrote the NIC handling stuff. So nowadays we don't use discover anymore but instead use automatic driver probing/loading.
See /usr/share/grml-terminalserver/linuxrc - online available at: http://hg.grml.org/grml-terminalserver/file/62a523889b2a/linuxrc
and /usr/sbin/grml-terminalserver-config - online available at: http://hg.grml.org/grml-terminalserver/file/62a523889b2a/grml-terminalserver... line 184ff.
So AFAICS all you would have to do is use grml 0.9 and create a symlink to the r1000 module:
# ln -s /lib/modules/2.6.18-grml/misc/r1000.ko /lib/modules/2.6.18-grml/kernel/drivers/net/r1000.k
and (re-)create the initrd image afterwards. Or incorporate the few lines of NIC handling code into your own image.
If you have any enhancements on the initrd/linuxrc/terminalserver you think might be useful for mainline grml please feel free to submit them.
JFTR: I built and uploaded grml-kerneladdons-2.6.18_0.5_i386.deb to the grml-repos (grml-testing) which includes the above symlink as well.
regards, -mika-
Teilnehmer (2)
-
Markus Wigge
-
Michael Prokop