[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linrad] svgalib 1.9.19 revisited
I have found the email in which I explained how to make
svgalib_helper.ko module work under Debian sarge and 2.6 kernel:
I have cut and pasted it:
**********************************************
Hello friends.
I have just tried to install svgalib 1.9.19 in my Debian box. Compiling
and installing was ok but when ran "modprobe svgalib_helper", the error
was "-1 Invalid module format", as Kohjin said in a previous post.
The problem is that svgalib installs the file
/lib/modules/2.6.6/kernel/misc/svgalib_helper.o
instead of the right one for this kernel:
/lib/modules/2.6.6/kernel/misc/svgalib_helper.ko
The "quick dirty fix" to solve the problem is:
1- Compile svgalib as usual:
#make install
and optionally
#make demoprogs
to compile the demo test programs.
2- Copy the right kernel module to the right location. (I asume that
svgalib-1.9.19 is the compiling directory)
cp svgalib-1.9.19/kernel/svgalib_helper/svgalib_helper.ko
/lib/modules/2.6.6./kernel/misc/
3- update the module dependencies:
depmod -a
4- load the module:
modprobe svgalib_helper
5- run the test programs
./vgatest
And that is all!
I have to investigate it slowly. I do not know why even if svgalib
generates both *.o and *.ko modules, it installs the *.o instead the *.ko.
I watched the screen carefully at the latest stages of the "make
install" of svgalib installation. I saw this command:
install -m 0644 -c svgalib_helper.o /lib/modules/2.6.6/kernel/misc ||
install -m 0644 -c svgalib_helper.ko /lib/modules/2.6.6/kernel/misc
It seems that it does this two commands with a "or" operator
command1 || command2
It means that if command1 is successfull, command2 will never be executed.
An extract from the bash manual:
The control operators `&&' and `||' denote AND lists and OR lists,
respectively. An AND list has the form
COMMAND1 && COMMAND2
COMMAND2 is executed if, and only if, COMMAND1 returns an exit status
of zero.
An OR list has the form
COMMAND1 || COMMAND2
COMMAND2 is executed if, and only if, COMMAND1 returns a non-zero exit
status.
Hope this helps, and sorry for the quick dirty fix.
73 Ramiro.
#############################################################
This message is sent to you because you are subscribed to
the mailing list <linrad@xxxxxxxxxxxxxxxxxxxxx>.
To unsubscribe, E-mail to: <linrad-off@xxxxxxxxxxxxxxxxxxxxx>
To switch to the DIGEST mode, E-mail to <linrad-digest@xxxxxxxxxxxxxxxxxxxxx>
To switch to the INDEX mode, E-mail to <linrad-index@xxxxxxxxxxxxxxxxxxxxx>
Send administrative queries to <linrad-request@xxxxxxxxxxxxxxxxxxxxx>
LINRADDARNIL