justlinux.com
Mon, 12-May-2008 11:41:11 GMT
internet.com
Forum: Registered Users: 72228, Online: 481
nhfs Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home Home

Help File Library: Getting your SB Live! to Work


Written By: Morganth

Let me start by saying that getting the SBLive! to work under linux is probably easier than getting it to work under Windows, as long as you have some grasp of what you're doing. It basically involves you getting the emu10k1 driver (emu10k1 is the chip on the SBLive board) and configuring the module in one file and at the command line. So, let's get started, and finish up in a timely fashion.

Getting the Driver

I'm going to tell you how to do this from the command-line, so it's easy for you to follow the directions. First, I'd head over to your home directory, and make a directory for your project.

cd
mkdir sblive
cd sblive

Now, invoke the following in an xterminal or console:

mozilla http://sourceforge.net/projects/emu10k1

You are certainly welcome to use the name of your favorite text or graphical browser instead of mozilla, but strictly speaking, you will need to download the file your need from this Web site.

Click on the Download link of the emu10k1 package and instruct your browser to save the file to your new sblive directory.

Close your browser when finished.

Ok, now we have the driver downloaded!

Uncompressing and Compiling

The next step is relatively easy, just follow these commands:

gunzip emu10k1<tab>
tar -xvf emu10k1<tab>

That is, hit the [tab] key in order to auto-complete your line, to save you some keystrokes.

cd emu10k1

Which is usually the extract path, but it might not be. Now type

rm *dep*
make depend
make clean
make 

Superuser, Copy, Edit, Probe, Reboot, Viola!

The next few steps are relatively intuitive. First off, we gotta become root for a few minutes--we're modifying precious system files and copying to unpermissioned directories.

su
Password: [your root password]

Then, since you're still in your emu10k1 driver directory...

ls emu10k1.o

Is it there? Good! If not, go back to uncompressing/compiling. You did something wrong ;-) Now we have to copy it to our modules directory. The next few steps of installing the driver can sometimes be bypassed by running

make install

in the emu10k1 directory... however I found that under both RH 6.0 and 6.1, when I first got the driver, the make install would plop my emu10k1 driver in the wrong directory, that looked something like /usr/lib//misc (those two forward slashes aren't a typo). If it works for you though, it works for you...

Findingyour modules directory is tricky, since it's different with every single frickin' distro. But... here's what we can do.

cd /lib/modules

that part is always the same

ls

Now, check out those version numbers. You probably want the newest version number, sometimes there's an "mdk" tagged on the end of it. That's all right. Once you find what you think is the appropriate one, change directory [cd] into it.

Invoke an ls and you should see a bunch of directories naming device categories. There should be one called "misc." That's our guy. So let's change directory [cd misc] into there. And now, let's copy our file:

cp /home/[username]/sblive/emu10k1/emu10k1.o ./
depmod -a

Now let's edit conf.modules to reflect our new driver:

echo alias sound emu10k1
>> /etc/conf.modules

What that did, if you're wondering, is echo'ed alias sound emu10k1to the screen, and than sent that output to the end of the conf.modules file. Quick, one-line editing.

If, at the end of your install, the sound isn't working, it's probably due to the above step being incorrect. Some distros I recently found out have their conf.modules stored in other files. I'd recommend you check your respective distro's manual or help files to find out where its module configuration file is.

Anyway, now let's probe the card.

modprobe emu10k1

It may or may not say no dependency file found for emu10k1.o It doesn't matter. Sometimes this has happened to me (on some computers), other times it hasn't.

Now we're done with the setup.

Technically, your sound should work right now... however I've noticed that on Mandrake Linux even after probing the module, my sound still isn't initialized. However, a reboot seems to remedy that. Some users claim that by following these steps their sound works without a reboot, so hats off to them.

At this point your driver should work! Congrats... start playing your MP3s and CDs happily. Otherwise, maybe your fix is below...

The Fix to the Hated unresolved symbols Errors

The first emails I got from this Help File were positive praise, however after a day of the Help File's posting, a good 20 percent of my email messages were from people who got the same error. This unresolved symbols error happened to tons of users even when the SBLive! driver just came out. It occurs right after you try to modprobe the emu10k1 driver, and looks something like this:


/lib/modules/2.2.9-27mdk/misc/emu10k1.o: unresolved
symbol unregister_sound_mixer_R7afc9d8a
/lib/modules/2.2.9-27mdk/misc/emu10k1.o: unresolved symbol 
unregister_sound_dsp_Rcd083b10
/lib/modules/2.2.9-27mdk/misc/emu10k1.o: unresolved symbol 
unregister_sound_special_R99c95fa5
/lib/modules/2.2.9-27mdk/misc/emu10k1.o: unresolved symbol 
register_sound_dsp_R0f7ad10d
/lib/modules/2.2.9-27mdk/misc/emu10k1.o: unresolved symbol 
register_sound_midi_R4fe7b251
/lib/modules/2.2.9-27mdk/misc/emu10k1.o: unresolved symbol 
register_sound_mixer_R82b8ae63
/lib/modules/2.2.9-27mdk/misc/emu10k1.o: unresolved symbol 
unregister_sound_midi_Rfdab6de3
/lib/modules/2.2.9-27mdk/misc/emu10k1.o: unresolved symbol 
register_sound_special_R17814d41

However, I found a fix posted by MXR4LIFE on the JustLinux message board a while back, that worked for many users back then.

Before compiling (make) the module, we have to edit the Makefile in the emu10k1 directory where we untarred the tarball. Find the file named Makefile in that directory, and edit it so that the line:

MODVERSIONS = n

reads

MODVERSIONS = y

instead.

In addition, edit the line that has:

INCLUDEDIR=...

to read

INCLUDEDIR=/usr/src/linux/include 

[or the appropriate directory for your install]

If you haven't toyed with editors yet, pico probably comes standard on your distro, and by running pico Makefile you'll be able to easily edit the file, hit [CTRL]+O to save it, and [CTRL]+X to quit.

After you complete this step, run make again and follow the above directions as normal past the point of compilation. Your unresolved symbols problem should disappear forever! Enjoy!

PS: I'd like to give my thanks out to all the people who sent their feedback to this article when it first went up, for helping me add more to it. I'd also like to thank Manuël Beunder a.k.a. MBR with his wonderful tutorial whose link was emailed by one of this Help File's readers. His tutorial along with feedback and the LNO message board let me post up the fix to the unresolved symbols error. You can find his web site, which has some valuable information on SBLive! drivers, among other things, at the following URL:
http://www.euronet.nl/~mailme/

Thanks, and enjoy your MP3 playing, when it comes to you. ;-)

Addendums

Note: Added 1-05-2000
Contributor: Rob Pryor
If you are getting undefined symbols, make sure the 'soundcore' module is loaded before you load the emu10k1 module.

Note: Added 2-25-2000
If you are having problems with running your mp3s non-root.
try this:


chmod ugo+rwx /dev/dsp

Remember you have to be root to issue the command :)


internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
internet.commerce
Be a Commerce Partner
Promotional Gifts
Home Improvement
Compare Prices
Web Hosting Directory
Promotional Pens
Holiday Gift Ideas
Corporate Gifts
Web Design
Server Racks
Laptops




JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES