LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-15-2007, 04:09 AM   #1
Q..
Member
 
Registered: Jul 2007
Posts: 54

Rep: Reputation: Disabled
Trying cdemu userspace


Appearently there is a new cdemu, I've compiled and installed all the needed things, then I get this error when trying to run cdemud (the daemon needed to use this whole thing)

Code:
Starting daemon locally; num_devices: 1; ctl_device: /dev/vhba_ctl; audio_backend: (null); audio_device: (null)
cdemud: cdemud_daemon_initialize: failed to open control device /dev/vhba_ctl!
Daemon initialization failed: Failed to open control device.
What's missing? Do I have to set something for the audio-device, audio-backend and so forth? If so what?

edit: ugh, nevermind, I forgot about the vhba-module package, but it's failing to compile for me:

Code:
/home/sou/vhba-module/vhba.c: In function ‘vhba_scan_devices’:
/home/sou/vhba-module/vhba.c:150: error: ‘i’ undeclared (first use in this function)
/home/sou/vhba-module/vhba.c:150: error: (Each undeclared identifier is reported only once
/home/sou/vhba-module/vhba.c:150: error: for each function it appears in.)
make[2]: *** [/home/sou/vhba-module/vhba.o] Error 1
make[1]: *** [_module_/home/sou/vhba-module] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22.1-rt2-hornet'
make: *** [vhba.o] Error 2
Any ideas?

Last edited by Q..; 07-15-2007 at 04:35 AM.
 
Old 07-16-2007, 01:33 PM   #2
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
Yes. Edit vhba.c and add a line "int i;" before line 150 near the beginning of the function.
 
Old 07-18-2007, 12:39 AM   #3
Q..
Member
 
Registered: Jul 2007
Posts: 54

Original Poster
Rep: Reputation: Disabled
Ok, it compiled and installed, but it doesn't want to work.
when trying to run cdemud:
Code:
Starting daemon locally; num_devices: 1; ctl_device: /dev/vhba_ctl; audio_backend: (null); audio_device: (null)
cdemud: cdemud_daemon_initialize: failed to get name on system bus!
Daemon initialization failed: Name request on D-BUS failed.

cdemu seems to be quite a mess, I guess I'll just have to wait, hopefully this will be easier to do later.
 
Old 11-27-2007, 05:42 PM   #4
danellisuk
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
Same problem

I get the same message. I cannot find any docs on how to start the daemon. Trying the following all fail:

Code:
:~$ cdemud
Daemon returned 1.
Code:
:~$ sudo cdemud
Daemon returned 0.
Code:
:~$ cdemud -n
Daemon initialization failed: Device initialization failed.
Code:
:~$ sudo cdemud -n
Daemon initialization failed: Name request on D-BUS failed.
You can see the module is loaded though:

Code:
:~$ lsmod | grep cdemu
cdemu                  33804  0 
cdrom                  37536  2 cdemu,ide_cd
I have run out of ideas now. I got this far, it seems a shame to give up. But hopefully someone else can shed some light.
 
Old 11-28-2007, 04:39 AM   #5
Q..
Member
 
Registered: Jul 2007
Posts: 54

Original Poster
Rep: Reputation: Disabled
I assume you're trying to install the userspace-cdemu not v0.80? If so, then it does work fine on the stable kernel up to the current one (2.6.23.x).

You must install libmirage, vhba, cdemud, and of course cdemu the client.

When everything is installed right, as root - 'modprobe vhba' and run 'cdemud -d' - cdemud needs vhba. Then the cdemu client should work.
 
Old 11-28-2007, 03:16 PM   #6
danellisuk
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
Hi Q and thanks for the quick response.

Yes, but i was using files from the experimental folder.

So I have now tried the vhba version. I tried the latest which is 2007-08-23.

I built all the components successfully in the following order (and performed 'sudo make install' on each).

libmirage-1.0.0
vhba-module
cdemu-daemon-1.0.0
cdemu-client-1.0.0
gcdemu-1.0.0

I got the vhba module to load by running:

Code:
sudo insmod vhba.ko
And now the module shows as loaded:

Code:
$ lsmod | grep vhba
vhba                   11904  0 
scsi_mod              147084  6 vhba,sbp2,sg,sd_mod,usb_storage,libata
So I think things are going well so far. But I still cant start cdemud:

Code:
$ sudo cdemud 
Starting daemon locally; num_devices: 1; ctl_device: /dev/vhba_ctl; audio_backend: (null); audio_device: (null)
cdemud: cdemud_daemon_initialize: failed to get name on system bus!
Daemon initialization failed: Name request on D-BUS failed.
I also tried running 'cdemud -d' as root like you suggested, but I don't think it is starting because 'ps -A | grep cdemu' doesnt return anything.

Code:
$ sudo cdemud -d
Daemon returned 0.
 
Old 11-30-2007, 02:37 PM   #7
danellisuk
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
Smile Success!

The problem was that I didn't read the documentation. Wow, it is much easier once that is found. If any one else is having trouble try the README file in the cdemu-daemon-1.0.0 folder!

In there it states that you must run configure with the following arguments:
Code:
$./configure --sysconfdir=/etc
That is what was causing the 'Name request on D-BUS failed' message.

The other thing was that in order for 'modprobe vhba' to work, I first had to run:
Code:
$sudo depmod -a
(which was also noted in the README file.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
framebuffer: how to use image_blit from userspace ??? qwijibow Programming 0 01-20-2007 06:35 AM
LXer: Day two at OLS: Why userspace sucks, and more LXer Syndicated Linux News 0 07-22-2006 09:54 AM
Mounting .BIN/.CUE with cdemu (error installing cdemu) bonniehandi Linux - Software 0 12-22-2005 02:40 AM
Userspace hosts file? ($HOSTFILE) tallest Linux - Software 2 02-01-2005 10:48 AM
Slackware AMD64 userspace joel112 Slackware 2 10-03-2004 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration