je voulais pourvoir émuler un ou plusieurs lecteur cd/dvd, et j'ai trouver cd-emu-0.8 , mais quand je tente de l'installer, il y a une erreur qui se produit..
site de base contenant le lien
des sources
les sources fournisent la procédure d'installation :
#***************************************************************************
# INSTALL - description
# -------------------
# copyright : (C) 2003 by Robert Penz
# email : robert.penz@outertech.com
#***************************************************************************
#***************************************************************************
#* *
#* This program is free software; you can redistribute it and/or modify *
#* it under the terms of the GNU General Public License as published by *
#* the Free Software Foundation; either version 2 of the License, or *
#* (at your option) any later version. *
#* *
#***************************************************************************
The install is quite simple, so that currently there is no automatic install.
###*###*###
### 1 ###
extract the archive, what you apparently already did ;-)
###*###*###
### 2 ###
you need the source of your current running kernel.
/lib/modules/`uname -r`/build/include needs to point at it. if you're not
sure if it points to the righ kernel just type: ls -la /lib/modules/`uname -r`/build if its the correct kernel source all is ok. ;-)
###*###*###
### 3 ###
$ make
and as root
###*###*###
### 4 ###
# make install
###*###*###
### 5 ###
now we can load the kernel module just with typing
# modprobe cdemu
no message should be given by this command
for you Debian users (maybe others), you might have to run `update-modules`
first
###*###*###
### 6 ###
after the install you just need to call cdemu to get the help screen of the
userspace program
If you're using devfs, then nodes will show up in /dev/cdemu/ automagically.
If you're using udev, you might want to add this to /etc/udev/rules.d/99cdemu:
KERNEL="cdemu*", NAME="cdemu/%n", SYMLINK="%n"
and the following to /etc/udev/permissions.d/99cdemu:
cdemu/*:root:root:0664
otherwise you'll get a bunch of nodes showing up in /dev/ instead of
/dev/cdemu/
If you're using just a static /dev, then each time you load cdemu the major
number may change. See /proc/devices for the current major number. You can
also load cdemu with the 'cdemu_major' parameter to control the major used.
ps: Any bug reports, comments, feature requests wished.
1--> Décomprésion fait
2--> j'ai fait :
ls -la /lib/modules/`uname -r`/build
3-->j'ai fait :
[Renaud@localhost cdemu-0.8]$ make
make[1]: entrant dans le répertoire « /usr/src/kernels/2.6.22.9-91.fc7-i686 »
CC [M] /home/Renaud/Programme_file/cdemu-0.8/cdemu_mod.o
/home/Renaud/Programme_file/cdemu-0.8/cdemu_mod.c: In function 'cdemu_exit':
/home/Renaud/Programme_file/cdemu-0.8/cdemu_mod.c:198: erreur: too many arguments to function 'invalidate_bdev'
make[2]: *** [/home/Renaud/Programme_file/cdemu-0.8/cdemu_mod.o] Erreur 1
make[1]: *** [_module_/home/Renaud/Programme_file/cdemu-0.8] Erreur 2
make[1]: quittant le répertoire « /usr/src/kernels/2.6.22.9-91.fc7-i686 »
make: *** [default] Erreur 2
4-->j'ai fait :
[Renaud@localhost cdemu-0.8]$ make install
****
**** WARNING -- You might not be root.
**** If the below install fails, try it as root!
****
**** Installing files ****
install -D -m 644 cdemu.ko /lib/modules/2.6.22.9-91.fc7/misc/cdemu.ko
install: ne peut évaluer `cdemu.ko': Aucun fichier ou répertoire de ce type
make: *** [install] Erreur 1
Pour info
[Renaud@localhost cdemu-0.8]$ rpm -qa --qf "%{name}-%{version}-%{release} (%{arch})\n" kernel*
kernel-PAE-2.6.22.7-85.fc7 (i686)
kernel-PAE-2.6.22.9-91.fc7 (i686)
kernel-headers-2.6.22.9-91.fc7 (i386)
kernel-2.6.22.7-85.fc7 (i686)
kernel-2.6.22.9-91.fc7 (i686)
kernel-devel-2.6.22.9-91.fc7 (i686)
kernel-devel-2.6.22.7-85.fc7 (i686)
Donc il y a un problème à l'étape 3, avec invalidate_bdev.
J'ai essaye de trouvers avec google , mais il est resté muet dessus