LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 04-01-2013, 10:42 PM   #1
pottzie
Member
 
Registered: Aug 2009
Posts: 150

Rep: Reputation: 15
Getting sound to work on old Thinkpad


I'm installing Crunchbang Linux to an old a22 Thinkpad. No soundcards were recognized, turns out I have a Cirrus Logic cs461, and Debian doesn't include it in the kernel, so I'm following a guide from the Debian wiki.
http://wiki.debian.org/snd-cs46xx

I fail at the line that says, after downloading the patch, on the next line "gcc -o write_images write_images.c"

I get: "gcc; write_images.c: No such file or directory"

How can I get past this? Using kernel 2.6.32-5-686
 
Old 04-02-2013, 06:43 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, DragonFly BSD
Posts: 1,408

Rep: Reputation: Disabled
Either you did not follow the step where you are advised to download 'write_images.c' or you are not in the directory where it resides?
 
Old 04-02-2013, 09:08 AM   #3
pottzie
Member
 
Registered: Aug 2009
Posts: 150

Original Poster
Rep: Reputation: 15
I wondered about being in a certain directory, but from what I read, there's no directory specified at the point where I attempt to compile write-images.

I didn't see any errors when I entered: $ wget 'http://wiki.debian.org/snd-cs46xx?action=AttachFile&do=get&target=write_images.c' -O write_images.c

that's supposed to be the source code to write out the firmware.

I see that the firmware contains ' -O write_images' and the instructions for compiling show ' gcc -o write-images', then I get the error that 'no gcc; write_images.c No such file or directory" and there's also an error showing "gcc: no input files." Hadn't seen the last error before, not sure if that's any additional clue.
 
Old 04-02-2013, 09:51 AM   #4
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, DragonFly BSD
Posts: 1,408

Rep: Reputation: Disabled
It's not a step by step guide, it assumes the user knows the basics of file management, etc.
 
Old 04-04-2013, 07:23 AM   #5
pottzie
Member
 
Registered: Aug 2009
Posts: 150

Original Poster
Rep: Reputation: 15
So I guess there's a way to see where the guide assumes I know where to initiate the g compiler to install to. A few instructions later the guide uses mkdir to create a directory to install the compiled program to, but the compiling seems to be done in magicland.

From what internet searching I've done, I haven't found anything where someone successfully installed this, so it's not looking good. I do know that for a while, I had Mint LXDE working on it, but now for some reason (probably because I've only been able to pony up for 256m ram), all I can install are Crunchbang and Semplice, and both are Debian based, with the same kernel.
 
Old 04-05-2013, 08:37 AM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, DragonFly BSD
Posts: 1,408

Rep: Reputation: Disabled
Quote:
Originally Posted by pottzie View Post
I fail at the line that says, after downloading the patch, on the next line "gcc -o write_images write_images.c"

I get: "gcc; write_images.c: No such file or directory"

How can I get past this? Using kernel 2.6.32-5-686
gcc cannot find the file. You presumably downloaded the file using the earlier wget command?

So before trying to compile it:
Code:
$ ls write_images.c
If that returns nothing, then you're not in the correct directory. If you used the wget command in the guide it would have saved the "write_images.c" file in the current directory.
 
Old 04-06-2013, 09:59 AM   #7
linuxgeek82
LQ Newbie
 
Registered: Feb 2013
Distribution: Debian, Kali 1.0.3
Posts: 22

Rep: Reputation: Disabled
are you in the directory or the downloaded package?
cd to whereever the package is then try the gcc command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cannot get sound to work at all, SUSE 10.1, ThinkPad a31 type 2652-M3U asaturn Linux - Laptop and Netbook 8 11-20-2006 11:25 AM
Sound doesnt work on thinkpad 600 with fedora core 5 richeyc Linux - Hardware 1 04-30-2006 03:50 AM
getting sound modules to work on a Thinkpad T20 with a custom 2.6.10 kernel donkeygod Debian 2 03-23-2005 11:04 AM
ibm thinkpad 600, can't get sound to work salviadud Linux - Laptop and Netbook 0 02-10-2005 11:45 PM
IBM Thinkpad R40 - Sound tests fine during install but doesn't work after! sfunk1x Linux - Laptop and Netbook 2 01-26-2005 08:06 AM


All times are GMT -5. The time now is 12:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration