CDemu est un démon qui permet de simuler la présence d'un lecteur optique (cd, dvd…) graçe auquel on peut monter des images disques (iso, bin, nrg…)
Dans certains cas, ça peut servir.
sudo apt-get installl cmake build-essential
sudo apt-get installl libao4 libao-dev libglib2.0-0 libglib2.0-dev intltool python2.7-minimal
wget http://blog.eihis.com/wp-content/uploads/2013/07/linux-headers-3611_3611-2_armhf.deb
# lien alternatif
# wget http://fichiers.arthus.net/raspbmc/linux-headers-3611_3611-2_armhf.deb
sudo dpkg -i linux-headers-3611_3611-2_armhf.deb
mkdir build && cd build
wget http://downloads.sourceforge.net/cdemu/vhba-module-20130607.tar.bz2
wget http://downloads.sourceforge.net/cdemu/libmirage-2.1.1.tar.bz2
wget http://downloads.sourceforge.net/cdemu/cdemu-daemon-2.1.1.tar.bz2
wget http://downloads.sourceforge.net/cdemu/cdemu-client-2.1.1.tar.bz2
for i in *.bz2;do tar xf $i;done
Librairie d'accès aux images CD virtuelles.
cd libmirage-2.1.1
mkdir build && cd build
cmake ..
make
sudo make install
Module noyau - driver pour une interface SCSI virtuelle
cd vhba-module-20130607
make
sudo make install
Service CDemu
cd cdemu-daemon-2.1.1
mkdir build && cd build
cmake ..
make
sudo make install
Client CDemu en ligne de commande
cd cdemu-client-2.1.1
mkdir build && cd build
cmake ..
make
sudo make install
$ cdemu --help
Usage:
cdemu [options] <command> <command parameters>
Commands:
load loads the device
unload unloads the device
status displays the devices' status
add-device creates another virtual device
remove-device removes the last virtual device
device-mapping displays the device mapping information
daemon-debug-mask displays/sets daemon debug mask
library-debug-mask displays/sets library debug mask
dpm-emulation displays/sets DPM emulation flag
tr-emulation displays/sets transfer rate emulation flag
bad-sector-emulation displays/sets bad sector emulation flag
device-id displays/sets device ID
enum-parsers enumerates supported parsers
enum-file-filters enumerates supported file filters
enum-daemon-debug-masks enumerates valid daemon debug masks
enum-library-debug-masks enumerates valid library debug masks
version displays version information
Options:
-h, --help displays help message
-v, --version displays program version
-b, --bus sets D-BUS bus type to use; valid values are 'session' and 'system'
Optional parser parameters (valid only for 'load' command):
--password=<string> password for encrypted images
--encoding=<string> encoding for text-based images
--dvd-report-css=<true/false> flag the DVD disc as CSS-encoded
Installation :
mkdir build && cd build
wget http://fichiers.arthus.net/raspbmc/cdemu_rpi_15032014.tar.bz2
tar xf cdemu_rpi_15032014.tar.bz2
./install.sh
#!/bin/bash
cd libmirage-2.1.1/build && sudo make install &&
cd ../../vhba-module-20130607 && sudo make install &&
cd ../cdemu-daemon-2.1.1/build && sudo make install &&
cd ../../cdemu-client-2.1.1/build && sudo make install &&
cd ../../
Build du 15/03/2014 :
http://fichiers.arthus.net/raspbmc/cdemu_rpi_15032014.tar.bz2
Infos :
vhba-module [20130607]
cdemu-daemon [2.1.1]
libmirage [2.1.1]
cdemu-client [2.1.1]