LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Getting sound to work on old Thinkpad (https://www.linuxquestions.org/questions/debian-26/getting-sound-to-work-on-old-thinkpad-4175456454/)

pottzie 04-01-2013 09:42 PM

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

cynwulf 04-02-2013 05:43 AM

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?

pottzie 04-02-2013 08:08 AM

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.

cynwulf 04-02-2013 08:51 AM

It's not a step by step guide, it assumes the user knows the basics of file management, etc.

pottzie 04-04-2013 06:23 AM

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.

cynwulf 04-05-2013 07:37 AM

Quote:

Originally Posted by pottzie (Post 4923171)
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.

linuxgeek82 04-06-2013 08:59 AM

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


All times are GMT -5. The time now is 01:22 AM.