Click to See Complete Forum and Search --> : RH9 and Vortex2 (compiling drivers - cc not found)


geekyboi
07-08-2003, 05:33 AM
Hi-
Okay, I try to install the au88xx-1.1.2 drivers on my machine and heres what I come up with.

cc -D__KERNEL__ -DMODULE -DAU8830 -mpentium -O6 -fomit-frame-pointer -Wall -pipe -I/usr/src/linux/include -c -o au_audio.o au_audio.c
make: cc: Command not found
make: *** [au_audio.o] Error 127

I have no idea what to do whatsoever. Please advise. Thanks

mdwatts
07-08-2003, 08:38 AM
Likely you do not have the development packages installed such as gcc/cc.

You could try gcc instead of cc. Are you doing this as root?

su -
<root password>

gcc ...

or

cc ...

Try

which gcc
&
which cc

to see if they are installed.

One way to install is to restart the installation (boot from cd), select upgrade and then select the development package option.

Your distro may have specific instructions on their website on how to accomplish this.

geekyboi
07-08-2003, 12:58 PM
So install the development packages, once I do that, then what should I do,

mdwatts
07-08-2003, 01:07 PM
Have you established the fact that gcc/cc are not installed?

Then after installing the development packages, try the compiling again.

geekyboi
07-08-2003, 03:33 PM
Okay, I installed the cc/gcc and heres what I get...

cc -D__KERNEL__ -DMODULE -DAU8830 -mpentium -O6 -fomit-frame-pointer -Wall -pipe -I/usr/src/linux/include -c -o au_audio.o au_audio.c
`-mpentium' is deprecated. Use `-march=pentium' or `-mcpu=pentium' instead.
In file included from au_vortex.h:50,
from au_audio.c:49:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from au_vortex.h:61,
from au_audio.c:49:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
from au_vortex.h:63,
from au_audio.c:49:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from au_vortex.h:63,
from au_audio.c:49:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from au_vortex.h:63,
from au_audio.c:49:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from au_vortex.h:63,
from au_audio.c:49:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type
In file included from au_vortex.h:64,
from au_audio.c:49:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from au_vortex.h:66,
from au_audio.c:49:
/usr/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h
In file included from au_audio.c:49:
au_vortex.h:71:25: asm/uaccess.h: No such file or directory
In file included from au_audio.c:49:
au_vortex.h: At top level:
au_vortex.h:147: parse error before "wait_queue_head_t"
au_vortex.h:147: warning: no semicolon at end of struct or union
au_vortex.h:164: parse error before ':' token
au_vortex.h:165: parse error before ':' token
au_vortex.h:166: parse error before ':' token
au_vortex.h:167: parse error before ':' token
au_vortex.h:168: warning: type defaults to `int' in declaration of `wave_stream_t'
au_vortex.h:168: warning: data definition has no type or storage class
au_vortex.h:178: parse error before "wave_stream_t"
au_vortex.h:178: warning: no semicolon at end of struct or union
au_vortex.h:179: warning: type defaults to `int' in declaration of `record_stream'
au_vortex.h:179: warning: data definition has no type or storage class
au_vortex.h:180: warning: type defaults to `int' in declaration of `wave_device_t'
au_vortex.h:180: warning: data definition has no type or storage class
au_vortex.h:198: parse error before "wait_queue_head_t"
au_vortex.h:198: warning: no semicolon at end of struct or union
au_vortex.h:199: warning: type defaults to `int' in declaration of `owait'
au_vortex.h:199: warning: data definition has no type or storage class
au_vortex.h:206: parse error before '}' token
au_vortex.h:206: warning: type defaults to `int' in declaration of `midi_device_t'
au_vortex.h:206: warning: data definition has no type or storage class
au_vortex.h:225: parse error before "spinlock_t"
au_vortex.h:225: warning: no semicolon at end of struct or union
au_vortex.h:226: warning: type defaults to `int' in declaration of `wave_head'
au_vortex.h:226: warning: data definition has no type or storage class
au_vortex.h:227: parse error before '*' token
au_vortex.h:227: warning: type defaults to `int' in declaration of `wave_tail'
au_vortex.h:227: warning: data definition has no type or storage class
au_vortex.h:228: parse error before "midi"
au_vortex.h:228: warning: type defaults to `int' in declaration of `midi'
au_vortex.h:228: warning: data definition has no type or storage class
au_vortex.h:229: parse error before ':' token
au_vortex.h:230: parse error before ':' token
au_vortex.h:231: parse error before ':' token
au_vortex.h:232: warning: type defaults to `int' in declaration of `au_device_t'
au_vortex.h:232: warning: data definition has no type or storage class
au_vortex.h:253: parse error before '*' token
au_vortex.h:254: parse error before '*' token
au_vortex.h:255: parse error before '*' token
au_vortex.h:256: parse error before '*' token
au_vortex.h:257: parse error before '*' token
au_vortex.h:261: parse error before '*' token
au_vortex.h:262: parse error before '*' token
au_vortex.h:263: parse error before '*' token
au_vortex.h:267: parse error before '*' token
au_vortex.h:268: parse error before '*' token
au_vortex.h:269: warning: `struct inode' declared inside parameter list
au_vortex.h:273: parse error before '*' token
au_vortex.h:274: parse error before '*' token
au_vortex.h:278: parse error before '*' token
au_vortex.h:278: warning: type defaults to `int' in declaration of `dev_head'
au_vortex.h:278: warning: data definition has no type or storage class
au_vortex.h:279: parse error before '*' token
au_vortex.h:279: warning: type defaults to `int' in declaration of `dev_tail'
au_vortex.h:279: warning: data definition has no type or storage class
au_vortex.h:282: parse error before '*' token
au_vortex.h:282: warning: type defaults to `int' in declaration of `find_device'
au_vortex.h:282: warning: data definition has no type or storage class
au_vortex.h:283: parse error before '*' token
au_vortex.h:283: warning: type defaults to `int' in declaration of `find_device_by_pcidev'
au_vortex.h:283: warning: data definition has no type or storage class
au_vortex.h:284: parse error before '*' token
au_vortex.h:285: parse error before '*' token
au_vortex.h:392: parse error before "au_device_t"
au_audio.c:55: warning: `struct inode' declared inside parameter list
au_audio.c:56: warning: `struct vm_area_struct' declared inside parameter list
au_audio.c:57: warning: `struct inode' declared inside parameter list
au_audio.c:58: warning: `struct inode' declared inside parameter list
au_audio.c:63: variable `audio_fops' has initializer but incomplete type
au_audio.c:65: unknown field `owner' specified in initializer
au_audio.c:65: warning: excess elements in struct initializer
au_audio.c:65: warning: (near initialization for `audio_fops')
au_audio.c:66: unknown field `llseek' specified in initializer
au_audio.c:66: warning: excess elements in struct initializer
au_audio.c:66: warning: (near initialization for `audio_fops')
au_audio.c:67: unknown field `read' specified in initializer
au_audio.c:67: warning: excess elements in struct initializer
au_audio.c:67: warning: (near initialization for `audio_fops')
au_audio.c:68: unknown field `write' specified in initializer
au_audio.c:68: warning: excess elements in struct initializer
au_audio.c:68: warning: (near initialization for `audio_fops')
au_audio.c:69: unknown field `poll' specified in initializer
au_audio.c:69: warning: excess elements in struct initializer
au_audio.c:69: warning: (near initialization for `audio_fops')
au_audio.c:70: unknown field `ioctl' specified in initializer
au_audio.c:70: warning: excess elements in struct initializer
au_audio.c:70: warning: (near initialization for `audio_fops')
au_audio.c:71: unknown field `mmap' specified in initializer
au_audio.c:71: warning: excess elements in struct initializer
au_audio.c:71: warning: (near initialization for `audio_fops')
au_audio.c:72: unknown field `open' specified in initializer
au_audio.c:72: warning: excess elements in struct initializer
au_audio.c:72: warning: (near initialization for `audio_fops')
au_audio.c:73: unknown field `release' specified in initializer
au_audio.c:73: warning: excess elements in struct initializer
au_audio.c:73: warning: (near initialization for `audio_fops')
au_audio.c:95: parse error before '*' token
au_audio.c:96: parse error before '*' token
au_audio.c:97: parse error before '*' token
au_audio.c:98: parse error before '*' token
au_audio.c:98: parse error before '*' token
au_audio.c:98: warning: type defaults to `int' in declaration of `find_wave_device'
au_audio.c:98: warning: data definition has no type or storage class

geekyboi
07-08-2003, 03:34 PM
au_audio.c:99: parse error before '*' token
au_audio.c:100: parse error before '*' token
au_audio.c:101: parse error before '*' token
au_audio.c:102: parse error before '*' token
au_audio.c:103: parse error before '*' token
au_audio.c:104: parse error before '*' token
au_audio.c:105: parse error before '*' token
au_audio.c:112: parse error before '*' token
au_audio.c: In function `au_dsp_register':
au_audio.c:118: `dev' undeclared (first use in this function)
au_audio.c:118: (Each undeclared identifier is reported only once
au_audio.c:118: for each function it appears in.)
au_audio.c:118: warning: passing arg 1 of `register_sound_dsp' from incompatible pointer type
au_audio.c: At top level:
au_audio.c:122: parse error before '*' token
au_audio.c: In function `au_dsp_unregister':
au_audio.c:125: `dev' undeclared (first use in this function)
au_audio.c: At top level:
au_audio.c:129: parse error before '*' token
au_audio.c: In function `au_audio_register':
au_audio.c:135: `dev' undeclared (first use in this function)
au_audio.c:135: warning: passing arg 1 of `register_sound_special' from incompatible pointer type
au_audio.c: At top level:
au_audio.c:139: parse error before '*' token
au_audio.c: In function `au_audio_unregister':
au_audio.c:141: `dev' undeclared (first use in this function)
au_audio.c: In function `au_audio_read':
au_audio.c:147: `dev' undeclared (first use in this function)
au_audio.c:147: dereferencing pointer to incomplete type
au_audio.c:148: `wdev' undeclared (first use in this function)
au_audio.c:149: `stream' undeclared (first use in this function)
au_audio.c:157: warning: implicit declaration of function `printk'
au_audio.c:157: `KERN_WARNING' undeclared (first use in this function)
au_audio.c:157: parse error before string constant
au_audio.c:158: `ENXIO' undeclared (first use in this function)
au_audio.c:162: dereferencing pointer to incomplete type
au_audio.c:163: `ESPIPE' undeclared (first use in this function)
au_audio.c:166: warning: implicit declaration of function `access_ok'
au_audio.c:166: `VERIFY_WRITE' undeclared (first use in this function)
au_audio.c:167: `EFAULT' undeclared (first use in this function)
au_audio.c:180: warning: implicit declaration of function `spin_lock_irqsave'
au_audio.c:187: dereferencing pointer to incomplete type
au_audio.c:187: `O_NONBLOCK' undeclared (first use in this function)
au_audio.c:188: `EAGAIN' undeclared (first use in this function)
au_audio.c:189: warning: implicit declaration of function `interruptible_sleep_on'
au_audio.c:190: warning: implicit declaration of function `signal_pending'
au_audio.c:190: `current' undeclared (first use in this function)
au_audio.c:191: `ERESTARTSYS' undeclared (first use in this function)
au_audio.c: In function `au_audio_write':
au_audio.c:199: `dev' undeclared (first use in this function)
au_audio.c:199: dereferencing pointer to incomplete type
au_audio.c:200: `wdev' undeclared (first use in this function)
au_audio.c:201: `stream' undeclared (first use in this function)
au_audio.c:208: `KERN_WARNING' undeclared (first use in this function)
au_audio.c:208: parse error before string constant
au_audio.c:209: `ENXIO' undeclared (first use in this function)
au_audio.c:214: dereferencing pointer to incomplete type
au_audio.c:215: `ESPIPE' undeclared (first use in this function)
au_audio.c:219: `VERIFY_READ' undeclared (first use in this function)
au_audio.c:220: `EFAULT' undeclared (first use in this function)
au_audio.c:244: `EAGAIN' undeclared (first use in this function)
au_audio.c:253: dereferencing pointer to incomplete type
au_audio.c:253: `O_NONBLOCK' undeclared (first use in this function)
au_audio.c:258: `current' undeclared (first use in this function)
au_audio.c:261: `ERESTARTSYS' undeclared (first use in this function)
au_audio.c:273: warning: implicit declaration of function `spin_unlock_irqrestore'
au_audio.c: In function `au_audio_poll':
au_audio.c:292: `dev' undeclared (first use in this function)
au_audio.c:292: dereferencing pointer to incomplete type
au_audio.c:293: `wdev' undeclared (first use in this function)
au_audio.c:301: `KERN_WARNING' undeclared (first use in this function)
au_audio.c:301: parse error before string constant
au_audio.c:302: `ENXIO' undeclared (first use in this function)
au_audio.c:305: dereferencing pointer to incomplete type
au_audio.c:306: warning: implicit declaration of function `poll_wait'
au_audio.c:307: dereferencing pointer to incomplete type
au_audio.c:311: dereferencing pointer to incomplete type
au_audio.c:320: dereferencing pointer to incomplete type
au_audio.c: At top level:
au_audio.c:333: warning: `struct inode' declared inside parameter list
au_audio.c:334: conflicting types for `au_audio_ioctl'
au_audio.c:55: previous declaration of `au_audio_ioctl'
au_audio.c: In function `au_audio_ioctl':
au_audio.c:335: `dev' undeclared (first use in this function)
au_audio.c:335: dereferencing pointer to incomplete type
au_audio.c:336: `wdev' undeclared (first use in this function)
au_audio.c:337: `stream' undeclared (first use in this function)
au_audio.c:346: `KERN_WARNING' undeclared (first use in this function)
au_audio.c:346: parse error before string constant
au_audio.c:347: `ENXIO' undeclared (first use in this function)
au_audio.c:352: warning: implicit declaration of function `put_user'
au_audio.c:356: `EINVAL' undeclared (first use in this function)
au_audio.c:358: dereferencing pointer to incomplete type
au_audio.c:358: `O_NONBLOCK' undeclared (first use in this function)
au_audio.c:365: dereferencing pointer to incomplete type
au_audio.c:388: warning: implicit declaration of function `get_user_ret'
au_audio.c:388: `EFAULT' undeclared (first use in this function)
au_audio.c:429: dereferencing pointer to incomplete type
au_audio.c:454: dereferencing pointer to incomplete type
au_audio.c:503: warning: implicit declaration of function `copy_to_user'
au_audio.c:525: dereferencing pointer to incomplete type
au_audio.c:576: warning: passing arg 1 of `au_mixer_ioctl' from incompatible pointer type
au_audio.c: At top level:
au_audio.c:579: warning: `struct vm_area_struct' declared inside parameter list
au_audio.c:580: conflicting types for `au_audio_mmap'
au_audio.c:56: previous declaration of `au_audio_mmap'
au_audio.c: In function `au_audio_mmap':
au_audio.c:581: `dev' undeclared (first use in this function)
au_audio.c:581: dereferencing pointer to incomplete type
au_audio.c:582: `wdev' undeclared (first use in this function)
au_audio.c:589: `KERN_WARNING' undeclared (first use in this function)
au_audio.c:589: parse error before string constant
au_audio.c:590: `ENODEV' undeclared (first use in this function)
au_audio.c:594: dereferencing pointer to incomplete type
au_audio.c:598: `EINVAL' undeclared (first use in this function)
au_audio.c:599: dereferencing pointer to incomplete type
au_audio.c:599: dereferencing pointer to incomplete type
au_audio.c:601: dereferencing pointer to incomplete type
au_audio.c:601: `VM_WRITE' undeclared (first use in this function)
au_audio.c:602: `stream' undeclared (first use in this function)
au_audio.c:607: warning: implicit declaration of function `remap_page_range'
au_audio.c:607: dereferencing pointer to incomplete type
au_audio.c:607: warning: implicit declaration of function `virt_to_phys'
au_audio.c:607: dereferencing pointer to incomplete type
au_audio.c:608: `EAGAIN' undeclared (first use in this function)
au_audio.c:611: dereferencing pointer to incomplete type
au_audio.c:611: `VM_READ' undeclared (first use in this function)
au_audio.c:617: dereferencing pointer to incomplete type
au_audio.c:617: dereferencing pointer to incomplete type
au_audio.c: At top level:
au_audio.c:634: warning: `struct inode' declared inside parameter list
au_audio.c:635: conflicting types for `au_audio_open'
au_audio.c:57: previous declaration of `au_audio_open'
au_audio.c: In function `au_audio_open':
au_audio.c:636: `dev' undeclared (first use in this function)
au_audio.c:637: dereferencing pointer to incomplete type
au_audio.c:643: `KERN_WARNING' undeclared (first use in this function)
au_audio.c:643: parse error before string constant
au_audio.c:644: `ENODEV' undeclared (first use in this function)
au_audio.c:649: parse error before string constant
au_audio.c:652: dereferencing pointer to incomplete type
au_audio.c: At top level:
au_audio.c:659: warning: `struct inode' declared inside parameter list
au_audio.c:660: conflicting types for `au_audio_release'
au_audio.c:58: previous declaration of `au_audio_release'
au_audio.c: In function `au_audio_release':
au_audio.c:661: `dev' undeclared (first use in this function)
au_audio.c:661: dereferencing pointer to incomplete type
au_audio.c:662: `wdev' undeclared (first use in this function)

geekyboi
07-08-2003, 03:35 PM
au_audio.c:666: `KERN_WARNING' undeclared (first use in this function)
au_audio.c:666: parse error before string constant
au_audio.c:667: `ENODEV' undeclared (first use in this function)
au_audio.c:670: dereferencing pointer to incomplete type
au_audio.c:670: `O_NONBLOCK' undeclared (first use in this function)
au_audio.c: At top level:
au_audio.c:683: parse error before '*' token
au_audio.c: In function `drain_playback':
au_audio.c:686: `wdev' undeclared (first use in this function)
au_audio.c:696: `dev' undeclared (first use in this function)
au_audio.c:709: `nonblock' undeclared (first use in this function)
au_audio.c:712: `current' undeclared (first use in this function)
au_audio.c: At top level:
au_audio.c:720: parse error before '*' token
au_audio.c: In function `add_wave_device':
au_audio.c:722: `wdev' undeclared (first use in this function)
au_audio.c:725: `file' undeclared (first use in this function)
au_audio.c:730: `dev' undeclared (first use in this function)
au_audio.c:731: `EBUSY' undeclared (first use in this function)
au_audio.c:732: parse error before ')' token
au_audio.c:734: `ENOMEM' undeclared (first use in this function)
au_audio.c:741: `dev_type' undeclared (first use in this function)
au_audio.c:755: warning: implicit declaration of function `init_waitqueue_head'
au_audio.c:770: `KERN_WARNING' undeclared (first use in this function)
au_audio.c:770: parse error before string constant
au_audio.c:776: parse error before string constant
au_audio.c:783: parse error before string constant
au_audio.c:789: parse error before string constant
au_audio.c: At top level:
au_audio.c:808: parse error before '*' token
au_audio.c: In function `get_frags':
au_audio.c:819: `stream' undeclared (first use in this function)
au_audio.c:819: warning: implicit declaration of function `__get_free_pages'
au_audio.c:819: `GFP_KERNEL' undeclared (first use in this function)
au_audio.c:821: `ENOMEM' undeclared (first use in this function)
au_audio.c:826: warning: implicit declaration of function `virt_to_page'
au_audio.c:826: warning: assignment makes pointer from integer without a cast
au_audio.c:827: warning: assignment makes pointer from integer without a cast
au_audio.c:827: increment of pointer to unknown structure
au_audio.c:827: arithmetic on pointer to an incomplete type
au_audio.c:828: `PG_reserved' undeclared (first use in this function)
au_audio.c:828: dereferencing pointer to incomplete type
au_audio.c:835: `count' undeclared (first use in this function)
au_audio.c: At top level:
au_audio.c:843: parse error before '*' token
au_audio.c: In function `free_wave_device':
au_audio.c:852: `wdev' undeclared (first use in this function)
au_audio.c:855: warning: assignment makes pointer from integer without a cast
au_audio.c:856: warning: assignment makes pointer from integer without a cast
au_audio.c:856: increment of pointer to unknown structure
au_audio.c:856: arithmetic on pointer to an incomplete type
au_audio.c:857: `PG_reserved' undeclared (first use in this function)
au_audio.c:857: dereferencing pointer to incomplete type
au_audio.c:863: warning: implicit declaration of function `free_pages'
au_audio.c:867: warning: assignment makes pointer from integer without a cast
au_audio.c:868: warning: assignment makes pointer from integer without a cast
au_audio.c:868: increment of pointer to unknown structure
au_audio.c:868: arithmetic on pointer to an incomplete type
au_audio.c:869: dereferencing pointer to incomplete type
au_audio.c:878: `dev' undeclared (first use in this function)
au_audio.c:887: warning: implicit declaration of function `kfree'
au_audio.c: At top level:
au_audio.c:890: parse error before '*' token
au_audio.c:890: parse error before '*' token
au_audio.c:891: warning: return type defaults to `int'
au_audio.c: In function `find_wave_device':
au_audio.c:893: `wdev' undeclared (first use in this function)
au_audio.c:896: `dev' undeclared (first use in this function)
au_audio.c:900: `file' undeclared (first use in this function)
au_audio.c: At top level:
au_audio.c:909: parse error before '*' token
au_audio.c: In function `remove_wave_device':
au_audio.c:912: `dev' undeclared (first use in this function)
au_audio.c:914: `wdev' undeclared (first use in this function)
au_audio.c: At top level:
au_audio.c:932: parse error before '*' token
au_audio.c: In function `set_data_format':
au_audio.c:934: `val' undeclared (first use in this function)
au_audio.c:939: `stream' undeclared (first use in this function)
au_audio.c:948: `KERN_WARNING' undeclared (first use in this function)
au_audio.c:948: parse error before string constant
au_audio.c: At top level:
au_audio.c:952: parse error before '*' token
au_audio.c: In function `set_asp_format':
au_audio.c:956: `stream' undeclared (first use in this function)
au_audio.c: At top level:
au_audio.c:981: parse error before '*' token
au_audio.c: In function `stop_wave':
au_audio.c:986: `stream' undeclared (first use in this function)
au_audio.c:987: `dev' undeclared (first use in this function)
au_audio.c: At top level:
au_audio.c:1000: parse error before '*' token
au_audio.c: In function `receive_mem':
au_audio.c:1010: `stream' undeclared (first use in this function)
au_audio.c:1011: `dev' undeclared (first use in this function)
au_audio.c:1021: `max_size' undeclared (first use in this function)
au_audio.c:1023: `mem' undeclared (first use in this function)
au_audio.c: At top level:
au_audio.c:1043: parse error before '*' token
au_audio.c: In function `send_mem':
au_audio.c:1048: `stream' undeclared (first use in this function)
au_audio.c:1054: `size' undeclared (first use in this function)
au_audio.c:1057: warning: implicit declaration of function `copy_from_user'
au_audio.c:1057: `mem' undeclared (first use in this function)
au_audio.c:1070: `dev' undeclared (first use in this function)
au_audio.c: At top level:
au_audio.c:1092: parse error before '*' token
au_audio.c: In function `au_handle_timer':
au_audio.c:1094: `wdev' undeclared (first use in this function)
au_audio.c:1094: `dev' undeclared (first use in this function)
au_audio.c:1095: `stream' undeclared (first use in this function)
au_audio.c:1108: warning: implicit declaration of function `wake_up_interruptible'
au_audio.c: At top level:
au_audio.c:63: storage size of `audio_fops' isn't known
make: *** [au_audio.o] Error 1


and thats about the whole damn thing...finally

mdwatts
07-08-2003, 03:39 PM
Thanks for that. :)

Do you have the kernel source installed for your current running kernel?

uname -r (tells the kernel version)

Look in

/usr/src

for

linux-#.#.# (where #.#.# is the results of `uname -r`)

and for

linux

which is a symlink from

linux-#.#.#

/usr/src/linux-#.#.#

/usr/src/linux

bascule
07-08-2003, 03:42 PM
did you

./configure

in the directory that contains the source, cause that's a lot of messages

mdwatts
07-08-2003, 04:01 PM
Originally posted by bascule
did you

./configure

in the directory that contains the source, cause that's a lot of messages

geekyboi is manually compiling a driver/module.

< searching keywords >

aureal au8830

kevinalm
07-08-2003, 06:46 PM
Sorry, I try to catch these aureal vortex threads sooner. Save yourself a lot of grief and delete the aureal 1.1.2 source from your system. It went broken pre kernel 2.x.x and was a pos anyway. Excuse my language but 1.1.2 was aureal's first and only attempt at a linux driver before they went belly up. 1.1.2 never really worked.

The good news is that there is a ongoing effort to support these cards at sourceforge, and a reverse engineering from scratch driver program on savannah.

To get your card working, go to the aureal sourceforge project and use cvs access to pull in the currently maintained driver source. To be clear, to the best of my knowlege, there is no tar.gz type download available on the web that will work. This page explains how to get the sources you need:

http://sourceforge.net/cvs/?group_id=8109

If you have trouble, post back. Good luck. ;)

geekyboi
07-08-2003, 11:02 PM
Ah, I am totally confused here. I downloaded several versions of this aureal driver. I got 1.0.5; 1.1.1; 1.1.2; 1.1.3; and the alsa 0.9.4 driver. Which one should I use? I have no idea about most of these things which you are speaking of, I just installed Linux 3 days ago. Do I need to log in as root, or can I just stay on my handle? What does ./configure do ? Thanks so much for the help!!

geekyboi
07-08-2003, 11:07 PM
Originally posted by mdwatts
Thanks for that. :)

Do you have the kernel source installed for your current running kernel?

uname -r (tells the kernel version)

Look in

/usr/src

for

linux-#.#.# (where #.#.# is the results of `uname -r`)

and for

linux

which is a symlink from

linux-#.#.#

/usr/src/linux-#.#.#

/usr/src/linux

I found linux-2.4 and linux-2.4.20-8 under /usr/src. What does uname -r do? For the second thing, I dont know what you are talking about. Please explain. Thanks a ton!

kevinalm
07-08-2003, 11:57 PM
Ok, don't panic. :D

Here's the deal. The only group that has been producing a driver compatable with modern (say the last two years) version of linux doesn't bother with creating tarballs (tar.gz , .bz2 type downloads) They're all into developement, and they use the cvs system. It's basically a way of copying a directory tree from a server directly to your hd. Type:

man cvs

at a bash prompt to see if the cvs program is installed. It probably is.

What you need to do is connect to the internet (under linux). Then open a terminal. xterm, gnome-terminal, whatever. Then type:

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aureal login

You'll be prompted for a password. Just hit enter.
Type:

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/aureal co aureal

A source directory named aureal will be created in the current directory.


Note: The sourceforge cvs server tends to be a little overloaded, watch for error messages, particularly end of file. Sometimes you have to try several times before you get a password prompt, and then several more times to get the download to start. Occasionally, you have to come back later.

I like to copy the downloaded aureal diretory and put it somewhere else to compile. That way you always have a "clean" orginal to start over with if you ever have to recompile. Anyway, just go into the aureal directory, read the current README and INSTALL files (I believe there have been some minor changes in the instructions) and compile your driver.

There are a couple of little tricks you may need to use to load the driver once it's compiled. I can help you with that. I'll keep an eye on this thread.

;)

>> edit Nuts, the forum display reformats the lines. Each cvs command is all on one line. The first line ends:

.../aureal login

The second cvs line:

.../aureal co aureal

<<

kevinalm
07-09-2003, 10:34 AM
Did a little checking on the driver versions you said you have downloaded. Versions <= 1.1.2 I know won't work. The alsa driver is a product of the savannah vortex project. Support for vortex 2 chip is very preliminary (experimental), and I would avoid it for now. I'm not familiar with 1.1.3, where did you find it? I suspect it won't work, but I can't be sure. Your best bet to get your sound working without a lot of trouble is the sourceforge cvs.

geekyboi
07-09-2003, 10:13 PM
I tried to login to CVS as said above but it keeps telling me that there is no such host or filename. What am I doing wrong? Am I supposed to be in root or something? When I typed man cvs all I got is this big manual thing I think. Is that whats supposed to happen?

geekyboi
07-09-2003, 10:33 PM
Oh yeah, I forgot to ask before- what does it mean to compile a driver? Is that mean to edit the makefile? Or is it just puting it to use...like make install? Thanks

geekyboi
07-09-2003, 11:04 PM
I downloaded the CVS and tried to use make install-all, and heres what I got:

gcc -M -I/lib/modules/2.4.20-8/build/include au_vortex.c > au_vortex.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_vortex.c | sed s/\\.o/.dep/ >> au_vortex.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_utils.c > au_utils.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_utils.c | sed s/\\.o/.dep/ >> au_utils.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_sndstat.c > au_sndstat.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_sndstat.c | sed s/\\.o/.dep/ >> au_sndstat.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_mixer.c > au_mixer.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_mixer.c | sed s/\\.o/.dep/ >> au_mixer.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_midi.c > au_midi.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_midi.c | sed s/\\.o/.dep/ >> au_midi.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_core.c > au_core.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_core.c | sed s/\\.o/.dep/ >> au_core.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_audio.c > au_audio.dep
gcc -M -I/lib/modules/2.4.20-8/build/include au_audio.c | sed s/\\.o/.dep/ >> au_audio.dep
gcc -D__KERNEL__ -DMODULE -DAU8830 -mpentiumpro -O6 -fomit-frame-pointer -Wall -pipe -I/lib/modules/2.4.20-8/build/include -c -o au_audio.o au_audio.c
`-mpentiumpro' is deprecated. Use `-march=pentiumpro' or `-mcpu=pentiumpro' instead.
au_audio.c: In function `au_audio_mmap':
au_audio.c:626: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
au_audio.c:626: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
au_audio.c:626: too few arguments to function `remap_page_range_R2baf18f2'
au_audio.c:648: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer from integer without a cast
au_audio.c:648: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
au_audio.c:648: too few arguments to function `remap_page_range_R2baf18f2'
make: *** [au_audio.o] Error 1

kevinalm
07-09-2003, 11:16 PM
Are you sure your connection was running? Can you broswe the net and send/receive email? Also possible is a typo in the command you were typing. It has to be precise. By the way, do you know about the command line history? At a prompt, you can hit the up and down arrows to scroll through previous commands. Up arrow and enter reexecutes the command you just entered.

Most anytime you install software, the install process installs what is called a man page. Short for manual page. The man command displays the man page for the named command or program. Although it's a little difficult to read, it can be very helpful if you aren't sure how to use a particular command or program. The first thing to do when in doubt, man <commandhere> . It also is a quick way to see if something is installed on your system. Hence, man cvs.

Compiling means to convert from higher level programming language to machine language. Source code drivers are higher level (written in the C language) and we compile them into executable form. It's generally automatic if you follow the instructions in the README and INSTALL files. Usually but not always:

./configure
make
make install

Always read the docs (README and INSTALL) and anything else that looks like it might be informative.

kevinalm
07-09-2003, 11:36 PM
I'll have to do some research to see if I can find anything about your compiler error. I might just pull in the cvs myself and recompile to see what happens. I have an aureal 8830 myself.

There is a big push now to do a comprehensive new alsa compatable driver on the savannah website. One of the developers has basically figured how to directly talk to the chip. (Very good thing. :D )Possibly some updates have been done to the sourceforge cvs that introduced a bug or two. It's also possible that since you were have trouble using cvs that a file got corrupted. You might try deleting the cvs created aureal directory and try to download again.

kevinalm
07-10-2003, 12:03 AM
Hmm...

Sourceforge is running on their backup server and it seems to be messed up. Accepts an empty password for anonymous access like it's supposed to but then aborts checkout because you entered an empty password like you're supposed to. :confused:

To err is human but to really **** things up requires a computer.:p

I suspect your cvs download got corrupted. I'll do a bit more searching for errors like yours though.

>> edit I found out that there is a bonafide bug involving your kernel version and the driver. From what I gather some features of the new 2.5 series kernel are included in your kernel and this causes a problem. There is apparently a fix but I'll have to look for it, may take a day or two before I get back to you. Hang in there, we'll get it working. At least when linux messes up you have a good chance to fix it, unlike that other os we won't mention. :D

geekyboi
07-10-2003, 02:39 AM
I redownloaded the cvs files at least 5 times and tried recompiling each time, always resulting in the same error. Im extremely sure that I did type the exact right thing in so that is a very low chance that that is the cause. I did notice that this is the first time that the compiling ever resulted in something going through gcc. and the least errors....maybe I am getting closer. Well, thank you so much for your help-again. ^.^

kevinalm
07-10-2003, 11:35 PM
Hi, I think I have a fix for you. (At least I hope so. Keep your fingers crossed.) ;)

Here's what's going on. The linux kernel has a function

remap_page_range()

In the 2.4 series kernes, it has four arguements, in 2.5 it has one additional arguement for a total of five. During the compile, tests are made on the kernel version and the correct form of the function is selected. Except that rh choose to include the newer five arguement version in some of their later 2.4 kernels. Basically, the kernel lies to the driver. I'm attaching a modified au_audio.txt file that forces the correct choice. Download and save it to your hd. Rename it au_audio.c and replace the au_audio.c file in the working copy of your cvs source. Let me know if it works.

geekyboi
07-11-2003, 01:10 AM
Heres what I got:

gcc -M -I/lib/modules/2.4.20-8/build/include au_vortex.c > au_vortex.dep
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from au_vortex.h:58,
from au_vortex.c:81:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from au_vortex.h:60,
from au_vortex.c:81:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from au_vortex.c:81:
au_vortex.h:67:25: asm/uaccess.h: No such file or directory
make: *** [au_vortex.dep] Error 1

geekyboi
07-11-2003, 01:19 AM
I tried it again with the unmodified au_audio.c

gcc -M -I/lib/modules/2.4.20-8/build/include au_vortex.c > au_vortex.dep
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from au_vortex.h:58,
from au_vortex.c:81:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from au_vortex.h:60,
from au_vortex.c:81:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from au_vortex.c:81:
au_vortex.h:67:25: asm/uaccess.h: No such file or directory
make: *** [au_vortex.dep] Error 1

kevinalm
07-11-2003, 01:21 AM
Try the following:

make clean
make install-all

kevinalm
07-11-2003, 01:38 AM
Ok, I think I know what's wrong. There is a symlink at /lib/modules/2.4.20-8/build that is supposed to point to /usr/src/linux-2.4.20-8 .

Have you used nautilus? Right click on /lib/modules/2.4.20-8/build and select properties. What does it say about the "target"?

geekyboi
07-11-2003, 03:36 PM
I installed all the packages on the CD and tried to reinstall
heres what I got...

ld -m elf_i386 -r au_audio.o au_core.o au_midi.o au_mixer.o au_sndstat.o au_utils.o au_vortex.o asp30.o -o au8830.o
mkdir -p /lib/modules/2.4.20-8/drivers/sound
cp -f au88*.o /lib/modules/2.4.20-8/drivers/sound
/sbin/depmod -a
mv -f /etc/modules.conf /etc/modules.conf.old
awk -f mod_conf /etc/modules.conf.old > /etc/modules.conf
echo "alias char-major-14 sound" >> /etc/modules.conf
echo "alias sound-slot-0 sound" >> /etc/modules.conf
echo "alias sound au8830" >> /etc/modules.conf
echo "alias midi au8830" >> /etc/modules.conf


before that it did all this install good stuff as before. No errors this time. What happened this time was when I tried to do soundcard detection it detected, but it couldnt bring up the driver. I tried rebooting and something configured the card. But the thing still didnt get the driver (soundcard detection)

Please Advise, and no, I havent used nautilus before

mdwatts
07-11-2003, 03:47 PM
Does

lsmod (list loaded modules)

now show any of the soundcard modules as being loaded?

kevinalm
07-11-2003, 06:10 PM
Excellent, the module compiled. The rest is eazy. You'll need to edit /etc/rc.d/rc.local and add the following two lines:

/sbin/modprobe soundcore
/sbin/insmod -f au8830

Then shutdown and boot back up.

The reason is that the normal method of loading kernel modules won't work with this driver. It has at it's core an old precompiled binary that dates back to gcc 2.xx. The developers had to use a few dirty tricks to get it to work and you need to give the kernel a "swat with a rolled up newspaper" so to speak with the -f option on insmod. ;)

geekyboi
07-11-2003, 10:40 PM
It keeps telling me access denied to rc.local Grrrr...I am logged in as root I think...but its still not letting me save over it, delete it, or stuff like that...ghey.

kevinalm
07-11-2003, 10:59 PM
Most everything in /etc and it's subdirectories is own by root (with very good reason, you don't want just anyone alterring the system configuration which mostly resides in /etc.).

Try opening a terimal and:

su
<yourrootpassword>

gedit

That should lauch gedit with root authority.

geekyboi
07-11-2003, 11:01 PM
This is what my rc.local file looks like:

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

/sbin/modprobe soundcore

/sbin/insmod -f au8830


Is that correct? It still says that the driver cannot be loaded. Whats wrong with the damn thing?

kevinalm
07-11-2003, 11:06 PM
Have you shutdown the computer and rebooted?

geekyboi
07-11-2003, 11:11 PM
I will reboot again and lets see what happens, I remember 2 times ago there was a program that popped up while booting that configured my soundcard...

kevinalm
07-11-2003, 11:38 PM
The only difference between your rc.local and mine is that I have the modprobe and insmod lines before the touch /var/lock......

I don't think it should matter but I'm not sure.

When your booted back up, do

/sbin/lsmod

and look for soundcore and au8830. (that's a small L, list modules)

geekyboi
07-12-2003, 02:53 AM
I didnt find either of the files under /sbin/lsmod. What should I do?

kevinalm
07-12-2003, 09:39 AM
Open a terminal and type in

/sbin/modprobe soundcore
/sbin/insmod -f au8830

and post the results.

Also post the contents of the file /etc/modules.conf

mdwatts
07-12-2003, 09:45 AM
Originally posted by geekyboi
I didnt find either of the files under /sbin/lsmod. What should I do?

Did you type the command

/sbin/lsmod
or
lsmod

OR

look in the /sbin directory for those modules?

'lsmod' is a command you type at the commandline.

lsmod (list loaded modules)

kevinalm
07-12-2003, 10:48 AM
One other thing, do you know if your motherboard uses the Via mvp3 (aka ETEQ) chipset? This is a "super socket seven" chipset. There is an easily fixed bug for au88x0 chips and this chipset.

geekyboi
07-12-2003, 03:12 PM
I have no idea, but would it be alright to give it a try anyways?

geekyboi
07-12-2003, 03:14 PM
Oh yea, heres my modules.conf:

char-major-81 bttv
alias usb-controller usb-uhci
alias eth0 Pegasus/Pegasus
alias char-major-14 sound
alias sound-slot-0 au8830
alias synth0 au8830
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :

geekyboi
07-12-2003, 03:22 PM
I just looked on the Red Hat website and it says that both the aureal vortex and the montego turtle bay are not supported, does that mean I just cant use it, or that they just dont provide support for it? If I cant use it, Im pretty sure that it is compatible with Mandrake 9.1, I also have that. How is mandrake?

kevinalm
07-12-2003, 03:47 PM
Basically, not supported means that the distro doesn't automatically setup or provide a driver, it's up to you. To the best of my knowlege, no distribution supports the au88x0 chips. So we don't have any choice but to compile a driver ourselves.

The modules.conf file looks right. At least I don't see any problems. Did you execute the commands:

/sbin/insmod -f au8830

/sbin/lsmod

in a terminal? It would help to figure out what is wrong. This driver really should work.

>> re: The via mvp3 bug, it shouldn't prevent the sound module from loading. Mostly, it causes occasional lockups and generally poor sound. The mvp3 chipset is for pentium class mb's, any cpu classed as a 686 or later would rule it out.

>> One more thing, in a terminal enter the command:

locate au8830.o

Try to post the results of this too.

Another test your might try is to open your gui program menu and look for soundcard detection under system settings. Launch it, enter root password when requested, and see what it says. Try clicking the test button.

kevinalm
07-12-2003, 09:05 PM
This might solve the problem:

edit /etc/modules.conf

remove the line

alias synth0 au8830

and replace it with

alias midi au8830

Then reboot and see if you have sound.

Not sure that this is it but worth a try.

geekyboi
07-13-2003, 02:57 AM
I tried the soundcard detection and it said that it could not load the driver.

geekyboi
07-13-2003, 06:00 AM
Okay, I reinstalled RedHat 9.0 and heres what I just figured out. When I tried recompiling the driver, I noticed that I wasnt able to copy au8830.o into some directory while I was logged in as my normal user, yet when I logged in as root, I was able to make it go through, wtf? Does this mean I will only get to hear sound as root? Also, is there a way to log on as root without going through the Console and typing su?

mdwatts
07-13-2003, 06:36 AM
Originally posted by geekyboi
Okay, I reinstalled RedHat 9.0 and heres what I just figured out. When I tried recompiling the driver, I noticed that I wasnt able to copy au8830.o into some directory while I was logged in as my normal user, yet when I logged in as root, I was able to make it go through, wtf? Does this mean I will only get to hear sound as root? Also, is there a way to log on as root without going through the Console and typing su?

What directory are you attempting to copy the au8830.o driver to?

Any compiled driver/module should be copied to the correct directory within /lib/modules/<kernel version> directory and then

depmod -ae

run (both as root).

geekyboi
07-13-2003, 06:47 AM
I got it to install to:

/lib/modules.2.4.20-8/drivers/sound/au8830.o

Is that okay?

geekyboi
07-13-2003, 06:52 AM
Also, I was toying around and I came up with this:

Warning: The module you are trying to load (/lib/modules/2.4.20-8/drivers/sound/au8830.o) is compiled with a gcc
version 2 compiler, while the kernel you are running is compiled with
a gcc version 3 compiler. This is known to not work.
Warning: loading /lib/modules/2.4.20-8/drivers/sound/au8830.o will taint the kernel: no license
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Warning: loading /lib/modules/2.4.20-8/drivers/sound/au8830.o will taint the kernel: forced load
/lib/modules/2.4.20-8/drivers/sound/au8830.o: create_module: Operation not permitted


I remember reading something about this somewhere. I got this message after typing /sbin/modprobe soundcore and /sbin/insmod -f au8830.

mdwatts
07-13-2003, 08:51 AM
Originally posted by geekyboi
I got it to install to:

/lib/modules.2.4.20-8/drivers/sound/au8830.o

Is that okay?

That is correct.

We have had a few posts on that "compiled with a gcc
version 2 compiler, while the kernel you are running is compiled with a gcc version 3 compiler" error though I don't remember what the solution is.

You could try a JL forum search for 'gcc version kernel running' or something similiar.

<edit>

Did you upgrade gcc or the kernel since the original installation?

kevinalm
07-13-2003, 11:47 AM
Ok, now we should be in buisiness.

Ordinarily, the gcc version warnings would be a problem, but not in this particular case. This driver is actually a mixed source and binary. The binary was compiled with pre gcc 3.x and we're stuck with it for now. The source you compiled "around" it with gcc 3.x has been written in such a way as to make it work. Kind of like sugar coating it, so to speak. It still throws a warning because the kernel can read a compiler version stamp in the binary (asp30.o for the vortex2). That's why you have to use the -f option on insmod.

You need to add those two lines th rc.local. Then reboot and it will probably work.

>> edit If your wondering why manually typing /sbin/modprobe soundcore and /sbin/insmod -f au8830 didn't work, I suspect you were a normal user and not root at the time. If you were root then we may have a problem. (rc.local stuf is done as root)

PS. For future reference, during the install phase of compiling or installing software, you usually have to be root.

geekyboi
07-13-2003, 03:39 PM
After I reboot the comp what should I do? Configure the card? I dont think I upgraded the kernel, because Im still using 2.4.20-8 or something like that. Umm...I did do a fresh install of the OS altogether and installed all the packages so I dont think the gcc was any different than last time.

kevinalm
07-13-2003, 03:48 PM
Have you tried the sound? Also, try /sbin/lsmod at the command line to see if the module loaded.

geekyboi
07-13-2003, 04:01 PM
I got this in one of the logs I looked up right after rebooting:

insmod: /lib/modules/2.4.20-8/drivers/sound/au8830.o: The module you are trying to load (/lib/modules/2.4.20-8/drivers/sound/au8830.o) is compiled with a gcc version 2 compiler, while the kernel you are running is compiled with a gcc version 3 compiler. This is known to not work.
Jul 13 12:53:54 dhcp-664-274 insmod: /lib/modules/2.4.20-8/drivers/sound/au8830.o: insmod char-major-14 failed

Also, in /sbin/lsmod, I dont see either soundcore or au8830. What do I do?

mdwatts
07-13-2003, 04:26 PM
You are using

/sbin/modprobe soundcore

and

/sbin/insmod -f au8830

as suggested by kevinalm?

Try adding -k to modprobe

/sbin/modprobe -k soundcore

or have a look through the insmod and modprobe manpages for other load options to try.

man insmod

man modprobe

kevinalm
07-13-2003, 04:27 PM
Post the current contents of the file /etc/modules.conf. I'll have to think on this. This driver generally doesn't give this much trouble. I'll try to post back with some things to try later this afternoon or evening. Have you run the compile as root? ie.

su
<yourrootpassword>

make install-all

(in the source directory, of course)

I'm thinking that the installation phase didn't go as it should. Something in the modules.conf you posted earlier makes me suspicious.

geekyboi
07-13-2003, 04:37 PM
I got this message after bootup:

Sound server fatal error:
AudioSubSystem::handleIO: write failed
len = -1, can_write = 4096, errno = 11 (Resource temporarily unavailable)
This might be a sound hardware/driver specific problem (see aRts FAQ)

geekyboi
07-13-2003, 04:39 PM
Heres modules.conf as asked:

alias char-major-81 bttv
alias usb-controller usb-uhci
alias eth0 Pegasus/Pegasus II USB Ethernet v0.4.29 (2002/12/31)
alias char-major-14 sound
alias sound au8830
alias midi au8830
alias sound-slot-0 au8830
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :

geekyboi
07-13-2003, 04:44 PM
Originally posted by mdwatts
You are using

/sbin/modprobe soundcore

and

/sbin/insmod -f au8830

as suggested by kevinalm?

Try adding -k to modprobe

/sbin/modprobe -k soundcore

or have a look through the insmod and modprobe manpages for other load options to try.

man insmod

man modprobe

After I added -k to modprobe I overwrote rc.local. Just for the heck of it I did /sbin/lsmod and heres what I came up with:

Module Size Used by Tainted: PF
ide-cd 35708 0 (autoclean)
au8830 195232 0
soundcore 6404 5 [au8830]
parport_pc 19076 1 (autoclean)
lp 8996 0 (autoclean)
parport 37056 1 (autoclean) [parport_pc lp]
autofs 13268 0 (autoclean) (unused)
ipt_REJECT 3928 6 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 15096 2 [ipt_REJECT iptable_filter]
microcode 4668 0 (autoclean)
sg 36524 0 (autoclean)
sr_mod 18136 2 (autoclean)
cdrom 33728 0 (autoclean) [ide-cd sr_mod]
pegasus 18168 1
usb-storage 69332 1
scsi_mod 107160 3 [sg sr_mod usb-storage]
keybdev 2944 0 (unused)
mousedev 5492 1
hid 22148 0 (unused)
input 5856 0 [keybdev mousedev hid]
usb-uhci 26348 0 (unused)
usbcore 78784 1 [pegasus usb-storage hid usb-uhci]
ext3 70784 2
jbd 51892 2 [ext3]


This didnt happen before, au8830 and soundcore are there now, did the adding of the -k have anything to do with that or what? Also, I tried the soundcard detection and it does detect the card, but it says:

The au8830 driver could not be loaded. This soundcard may not be compatible with Red Hat Linux

kevinalm
07-13-2003, 04:55 PM
Reboot the system (again) and try the sound now.

bwkaz
07-13-2003, 05:07 PM
If you got the module to load, then don't reboot -- every time you reboot, you have to reload all modules. It probably won't be an issue, if your rc.local file is set up like kevinalm said, but ... meh, whatever. Never mind, it hopefully won't even matter.

I'd just try playing a sound once you get the module to load up. Forget about RedHat's audio configuration programs, though -- you've done all the work that they do for you already, if the kernel module is loaded. :)

What sound are you trying to play? RedHat doesn't come with support for decoding MP3s anymore, due to patent issues, but you can find (probably illegal, but there anyway) some versions of xmms that don't have that problem (if that's what you're using). You could also check through the rest of the forums; links have been posted a few different times for how to get MP3 support back. Or, you can try to play a .wav file.

Or, you can do as RedHat suggests and replace your MP3's with Ogg Vorbis files. You get better quality and better compression, and the Ogg Vorbis compression algorithm is completely patent-free. But, whatever.

kevinalm
07-13-2003, 05:12 PM
The reason I keep saying to reboot is that this driver is known to have problems if it hasn't been loaded before x starts. (actually, before the x sound sever) ;)

geekyboi
07-13-2003, 05:16 PM
Yo, I put in a CD and it plays just fine. Does Linux have any sounds like windows or anything like that? Also, how do I get to volume control, when I try to access it heres what I get: Volume control is unable to run correctly.

Press the details button for more details on the reasons for failure.

Press Quit to quit Volume control

and heres what I get under details:

Volume control is unable to run correctly.

Unable to open audio device '/dev/mixer'.
Please check that you have permissions to open '/dev/mixer'
and that you have sound support in your kernel.

Press Quit to exit Volume control

kevinalm
07-13-2003, 05:41 PM
Playing a musid cd doesn't actually use the soundcard driver. Do

/sbin/lsmod
again to see if soundcore and au8830 are still being loaded. I'll try to do some more checking on possible fixes. I believe there may be more changes necessary than just the changed au_audio.c . I haven't gotten replies from a couple of emails I sent about it.

There is a new alsa compatable driver in the works, but it's not really ready to release yet. I haven't tried it so I can't recommend it. But it is a possibility.

geekyboi
07-13-2003, 05:44 PM
they are not loaded anymore...wtf?!?!? They were there a lil while ago...thats really f***ed up. Whats alsa anyways? And what exactly does make clean do? So what do you think I did wrong?!?

mdwatts
07-13-2003, 05:48 PM
Originally posted by geekyboi

Unable to open audio device '/dev/mixer'.
Please check that you have permissions to open '/dev/mixer'
and that you have sound support in your kernel.

Press Quit to exit Volume control

Either add the user to the audio group (preferable) or change the permissions of mixer.

chmod 660 /dev/mixer

Either as root.

kevinalm
07-13-2003, 06:32 PM
alsa Advanced Linux Sound Architecture

There is a project on Savannah, the gnu development site, called OpenVortex. Their goal is to create an all new driver in the alsa format. Available on their cvs. I haven't tried it yet. I did manage to get it to compile, but I am not that familiar with alsa, so I haven't tried to install.

What is currently in your rc.local file? This Houdini act with soundcore and au8830 is weird.

>> edit

make clean

commonly used when compiling a source to clean up before trying a new attempt at compiling. Nor always available, depends on whether the programmer put the option into the source. If it isn't supported, you'll get a "no rule to make clean" or some such. Has to be given from within the source directory, where you issued make install-all in your case.

geekyboi
07-13-2003, 06:47 PM
My rc.local has exactly what I told you before, only with the two lines you gave me before that touch/....... I put a line between each line. Where can I try this ALSA driver?


<edit>

Another thing...I tried the make clean thing and at the bottom it said rm -f au88*.o Wasnt that supposed to be au8830.o?!?!

mdwatts
07-13-2003, 06:53 PM
Originally posted by geekyboi

Another thing...I tried the make clean thing and at the bottom it said rm -f au88*.o Wasnt that supposed to be au8830.o?!?!

It is the same.

Anything starting with au88 and ending with .o

kevinalm
07-13-2003, 06:56 PM
cvs -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/openvortex login

(enter at the password prompt)

cvs -z3 -d:pserver:anoncvs@subversions.gnu.org:/cvsroot/openvortex co alsa

Hopefully I don't have any typos in that. Don't use the instructions you'll find in the download. Use:

./configure --with-cards=au8830
make

then I think as root

make install

but I have to check on that.

Oh, the au88*.o thing. rm old au8810.o au8820.o and au8830.o

geekyboi
07-13-2003, 06:56 PM
By the way, congrats on 30k posts...

Also, what does -f do and where can I get the ALSA drivers?

geekyboi
07-13-2003, 07:04 PM
This is off subject but, where can I get a good video/ multimedia player, where can I get MSN Messenger or something of that sort, and where can I download icons for program shortcuts, such as AIM. Thanks

kevinalm
07-13-2003, 07:05 PM
-f generally means force. Do it and don't ask if I really want to for sure.

geekyboi
07-13-2003, 07:19 PM
It says that the ALSA drivers compiled successfully, now what do I do? Im gonna go out for a lil bit, Ill reply back a lil later, but if you could please post some directions, it would be much appreciated.

kevinalm
07-13-2003, 07:59 PM
First, I would remove the soundcard lines from modules.conf:

alias char-major-14 sound
alias sound au8830
alias midi au8830
alias sound-slot-0 au8830
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :

Also remove /sbin/modprobe soundcore and /sbin/insmod-f au8830 from rc.local.

Next su to root and

make install.

Beyond that we're in unexplored territory. I haven't gone beyond

./configure --with-cards=au8830
make

Probably the soundcard detection or a reboot.

geekyboi
07-13-2003, 10:19 PM
Are there any other known vortex II drivers out there that may have a chance of working? Also, I get an error in ALSA after doing make install (as root). Heres what I get:

rm -rf /lib/modules/2.4.20-8/kernel/sound
make[1]: Entering directory `/home/geekyboi/alsa/support'
make -C pnp modules_install
make[2]: Entering directory `/home/geekyboi/alsa/support/pnp'
mkdir -p /lib/modules/2.4.20-8/kernel/sound/support/pnp
cp snd-pnp.o /lib/modules/2.4.20-8/kernel/sound/support/pnp
make[2]: Leaving directory `/home/geekyboi/alsa/support/pnp'
make[1]: Leaving directory `/home/geekyboi/alsa/support'
make[1]: Entering directory `/home/geekyboi/alsa/acore'
mkdir -p /lib/modules/2.4.20-8/kernel/sound/acore
cp snd-page-alloc.o snd-pcm.o snd-rawmidi.o snd-timer.o snd.o /lib/modules/2.4.20-8/kernel/sound/acore
make -C oss modules_install
make[2]: Entering directory `/home/geekyboi/alsa/acore/oss'
mkdir -p /lib/modules/2.4.20-8/kernel/sound/acore/oss
cp snd-mixer-oss.o snd-pcm-oss.o /lib/modules/2.4.20-8/kernel/sound/acore/oss
make[2]: Leaving directory `/home/geekyboi/alsa/acore/oss'
make -C seq modules_install
make[2]: Entering directory `/home/geekyboi/alsa/acore/seq'
mkdir -p /lib/modules/2.4.20-8/kernel/sound/acore/seq
cp snd-seq-device.o snd-seq-dummy.o snd-seq-instr.o snd-seq-midi-event.o snd-seq-midi.o snd-seq.o /lib/modules/2.4.20-8/kernel/sound/acore/seq
make -C instr modules_install
make[3]: Entering directory `/home/geekyboi/alsa/acore/seq/instr'
make[3]: Nothing to be done for `modules_install'.
make[3]: Leaving directory `/home/geekyboi/alsa/acore/seq/instr'
make -C oss modules_install
make[3]: Entering directory `/home/geekyboi/alsa/acore/seq/oss'
mkdir -p /lib/modules/2.4.20-8/kernel/sound/acore/seq/oss
cp snd-seq-oss.o /lib/modules/2.4.20-8/kernel/sound/acore/seq/oss
make[3]: Leaving directory `/home/geekyboi/alsa/acore/seq/oss'
make[2]: Leaving directory `/home/geekyboi/alsa/acore/seq'
make[1]: Leaving directory `/home/geekyboi/alsa/acore'
make[1]: Entering directory `/home/geekyboi/alsa/i2c'
make -C other modules_install
make[2]: Entering directory `/home/geekyboi/alsa/i2c/other'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/i2c/other'
make[1]: Leaving directory `/home/geekyboi/alsa/i2c'
make[1]: Entering directory `/home/geekyboi/alsa/drivers'
make -C mpu401 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/drivers/mpu401'
mkdir -p /lib/modules/2.4.20-8/kernel/sound/drivers/mpu401
cp snd-mpu401-uart.o /lib/modules/2.4.20-8/kernel/sound/drivers/mpu401
make[2]: Leaving directory `/home/geekyboi/alsa/drivers/mpu401'
make -C opl3 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/drivers/opl3'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/drivers/opl3'
make -C opl4 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/drivers/opl4'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/drivers/opl4'
make -C vx modules_install
make[2]: Entering directory `/home/geekyboi/alsa/drivers/vx'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/drivers/vx'
make[1]: Leaving directory `/home/geekyboi/alsa/drivers'
make[1]: Entering directory `/home/geekyboi/alsa/isa'
make -C ad1816a modules_install
make[2]: Entering directory `/home/geekyboi/alsa/isa/ad1816a'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/isa/ad1816a'
make -C ad1848 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/isa/ad1848'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/isa/ad1848'
make -C cs423x modules_install
make[2]: Entering directory `/home/geekyboi/alsa/isa/cs423x'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/isa/cs423x'
make -C es1688 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/isa/es1688'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/isa/es1688'
make -C gus modules_install
make[2]: Entering directory `/home/geekyboi/alsa/isa/gus'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/isa/gus'
make -C msnd modules_install
make[2]: Entering directory `/home/geekyboi/alsa/isa/msnd'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/isa/msnd'
make -C opti9xx modules_install
make[2]: Entering directory `/home/geekyboi/alsa/isa/opti9xx'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/isa/opti9xx'
make -C sb modules_install
make[2]: Entering directory `/home/geekyboi/alsa/isa/sb'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/isa/sb'
make -C wavefront modules_install
make[2]: Entering directory `/home/geekyboi/alsa/isa/wavefront'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/isa/wavefront'
make[1]: Leaving directory `/home/geekyboi/alsa/isa'
make[1]: Entering directory `/home/geekyboi/alsa/synth'
make -C emux modules_install
make[2]: Entering directory `/home/geekyboi/alsa/synth/emux'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/synth/emux'
make[1]: Leaving directory `/home/geekyboi/alsa/synth'
make[1]: Entering directory `/home/geekyboi/alsa/pci'
make -C ac97 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/ac97'
mkdir -p /lib/modules/2.4.20-8/kernel/sound/pci/ac97
cp snd-ac97-codec.o /lib/modules/2.4.20-8/kernel/sound/pci/ac97
make[2]: Leaving directory `/home/geekyboi/alsa/pci/ac97'
make -C ali5451 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/ali5451'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/ali5451'
make -C au88x0 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/au88x0'
mkdir -p /lib/modules/2.4.20-8/kernel/sound/pci/au88x0
cp snd-au8830.o snd-au88x0-synth.o /lib/modules/2.4.20-8/kernel/sound/pci/au88x0
make[2]: Leaving directory `/home/geekyboi/alsa/pci/au88x0'
make -C cs46xx modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/cs46xx'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/cs46xx'
make -C emu10k1 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/emu10k1'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/emu10k1'
make -C ice1712 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/ice1712'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/ice1712'
make -C korg1212 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/korg1212'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/korg1212'
make -C nm256 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/nm256'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/nm256'
make -C pdplus modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/pdplus'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/pdplus'
make -C rme9652 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/rme9652'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/rme9652'
make -C trident modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/trident'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/trident'
make -C vx222 modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/vx222'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/vx222'
make -C ymfpci modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pci/ymfpci'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pci/ymfpci'
make[1]: Leaving directory `/home/geekyboi/alsa/pci'
make[1]: Entering directory `/home/geekyboi/alsa/usb'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/home/geekyboi/alsa/usb'
make[1]: Entering directory `/home/geekyboi/alsa/pcmcia'
make -C vx modules_install
make[2]: Entering directory `/home/geekyboi/alsa/pcmcia/vx'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/home/geekyboi/alsa/pcmcia/vx'
make[1]: Leaving directory `/home/geekyboi/alsa/pcmcia'
/sbin/depmod -a 2.4.20-8
if [ -L /usr/include/sound ]; then \
rm -f /usr/include/sound; \
ln -sf /home/geekyboi/alsa/include/sound /usr/include/sound; \
else \
rm -rf /usr/include/sound; \
install -d -m 755 -g root -o root /usr/include/sound; \
for f in include/sound/*.h; do \
install -m 644 -g root -o root $f /usr/include/sound; \
done \
fi
if [ -d /sbin/init.d ]; then \
install -m 755 -g -o utils/alsasound /sbin/init.d/alsasound; \
elif [ -d /etc/rc.d/init.d ]; then \
install -m 755 -g -o utils/alsasound /etc/rc.d/init.d/alsasound; \
elif [ -d /etc/init.d ]; then \
install -m 755 -g -o utils/alsasound /etc/init.d/alsasound; \
fi
install: invalid group `-o'
make: *** [install-scripts] Error 1

kevinalm
07-13-2003, 10:43 PM
To the best of my knowlege, the only drivers that stand any chance of working and the sourceforge aureal cvs and the savannah openvortex cvs. I know for a fact that all the tarballs <= ver 1.1.2 won't work. I think you mentioned a version 1.1.3 at one point. I have never seen that but I'm guessing someone grabbed the sourceforge cvs and tarred it for convenience. If you want to post a link I'll take a look.

I tried make install and got the same error you did. I'm going to tinker with it over the next few days and see what I can figure out. If I figure anything out I'll let you know. One thing I did notice is that the actuall driver modules did compile and install to the right directory. Also, I beleive that depmod worked so it's just a matter of getting the right thing in modules.conf. Of course, there coud be some fatal flaw in the driver itself. Won't know until we try to load them.

geekyboi
07-13-2003, 11:01 PM
thanx a lot man...

Also I was curious...how old are you and what do you do?

kevinalm
07-13-2003, 11:52 PM
Well, I'm a fortysomething Electronics Tech. Been dabbling with linux for a couple of years now. Always been interested in how things worked. I'm attracted to linux because you can get inside and actually work with it. That other so called os... well, the only thing you can really do with it is reinstall. :D

geekyboi
07-14-2003, 02:07 AM
Wow, thats neat. Im almost 15 and Just started with Linux because I knew that you had a better chance of fixing things with it and it had more versitility as an OS compared to lets say Windows. Ive worked with computers for like 5 years now, and am starting to learn a little bit of programming here and there from my uncles- mostly Java and C++

Did you find anything out yet for the ALSA drivers?

geekyboi
07-14-2003, 02:49 AM
What does this mean?

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/geekyboi/alsatar/alsa-driver-0.9.5
checking cross compile...
checking for directory with kernel source... /lib/modules/2.4.20-8/build
checking for kernel version... The file /lib/modules/2.4.20-8/build/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).


I ran up2date and got everything up to date, Im still running kernel, 2.4.20-8. Should I try running the newer kernel? (2.4.20-18.9)

mdwatts
07-14-2003, 08:59 AM
Originally posted by geekyboi

checking for directory with kernel source... /lib/modules/2.4.20-8/build
checking for kernel version... The file /lib/modules/2.4.20-8/build/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).


I ran up2date and got everything up to date, Im still running kernel, 2.4.20-8. Should I try running the newer kernel? (2.4.20-18.9)

Do you have 2.4.20-8 the kernel source installed that was used to build your current running kernel?

It should be in

/usr/src/linux-2.4.20-8

with a symlink pointing to

/usr/src/linux

kevinalm
07-14-2003, 01:50 PM
It's probably the simlink /lib/modules/2.4.20-8/build whose target should be /usr/src/linux-2.4.20-8. It has a bad habit of being broken on updates.

/usr/src/linux is deprecated in rh. They replaced it with /usr/src/linux-2.4 , although it will do no harm to have /usr/src/linux as well for backward compatability.

Promising developments on the alsa openvortex driver. I've got it working on my system. I want to tweak it a little, then I'll get back to you later today.

In the mean time, try entering

ln -s /usr/src/linux-2.4.20-8 /lib/modules/2.4.20-8

as root on the command line.

geekyboi
07-14-2003, 02:26 PM
every time I boot up I noticed that I cannot access /dev/dsp (no such device found)and that that has something to do with the sound. wtf?

mdwatts
07-14-2003, 02:30 PM
Originally posted by geekyboi
every time I boot up I noticed that I cannot access /dev/dsp (no such device found)and that that has something to do with the sound. wtf?

One of our most popular (and pain in the rear) questions posted here at JL. ;)

JL forum search results for 'dsp permission' (http://justlinux.com/forum/search.php?s=&action=showresults&searchid=674187&sortby=lastpost&sortorder=descending).

kevinalm
07-14-2003, 05:24 PM
Thought I'd give you what I've found so far with the alsa driver. I'm not completely satisfied yet but you might get some sound, and the /dev/dsp error might go away.

Look in .../alsa/utils (.../alsa being where you did ./configure --with-cards=au8830 make make install)

As root:
Copy the file alsaconf to /sbin/alsaconf

Also as root,

/sbin/alsaconf

Follow the onscreen instructions, everything pretty obvious. Must use arrow keys and enter key in this program. Be sure to say yes to modifying modules.conf.

There is also a man page for alsaconf in .../alsa/ulils (alsaconf.8) , post the result of doing

manpath

on the command line as a normal user so I can verify where to copy it to. Probably /usr/share/man/man8/alsaconf.8 Not entirely happy yet, max volume is a little low and the mixer settings are lost on reboot, and you have to set the volume everytime, but the sound seems to work fine otherwise. Give you something to play with anyway.
;)

geekyboi
07-14-2003, 06:17 PM
Okay, first of all, how do I fix this? Its what I get after doing ./configure --with -cards=au8830...

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/geekyboi/alsa
checking cross compile...
checking for directory with kernel source... /lib/modules/2.4.20-8/build
checking for kernel version... The file /lib/modules/2.4.20-8/build/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).

mdwatts
07-14-2003, 06:21 PM
Originally posted by geekyboi
Okay, first of all, how do I fix this? Its what I get after doing ./configure --with -cards=au8830...

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/geekyboi/alsa
checking cross compile...
checking for directory with kernel source... /lib/modules/2.4.20-8/build
checking for kernel version... The file /lib/modules/2.4.20-8/build/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).

:rolleyes:

I already explained that further up.

Do you have 2.4.20-8 the kernel source installed that was used to build your current running kernel?

It should be in

/usr/src/linux-2.4.20-8

with a symlink pointing to

/usr/src/linux

geekyboi
07-14-2003, 06:56 PM
No, its not there anymore, but 2.4.20-18.9 is there...after I did up2date... After awhile on running 2.4.20-18.9 from bootup, the system will lock up and flash the Caps Lock and the Scroll Lock lights on the keyboard. Why does that happen?

kevinalm
07-14-2003, 07:07 PM
You'll need to install kernel-source-<version>.i386.rpm and possibly kernel-<version>.src.rpm where version matches the version number of the kernel your trying to run. About 70 mbytes of download, with dialup I don't update kernels very often.

DO NOT use the gui package manager to install any .src.rpm . In rh 8 it trashes the package manager. I beleive they blocked it in rh 9 so that it just refuses to do it. I prefer rpm on the command line anyway.

mdwatts
07-14-2003, 07:07 PM
One of the recent threads (http://justlinux.com/forum/showthread.php?s=&threadid=106584&highlight=lock+lights) on the keyboard flashing led problem.

What kernel are you booted to as the ./configure step would only use the /lib/modules/<kernel version> directory for the CURRENT running kernel?

uname -r (tells you)

You need the kernel-source for the kernel version you are booted to and compiling those drivers for.

geekyboi
07-14-2003, 07:38 PM
Im booted up as 2.4.20-8 but the /usr/src has 2.4 and 2.4.20-18.9

kevinalm
07-14-2003, 10:33 PM
There isn't a /usr/src/linux-2.4.20-8 ? I hate up2date. It does really stupid things. How you fix this depends on which kernel you want to run.

mdwatts
07-15-2003, 07:32 AM
Originally posted by geekyboi
Im booted up as 2.4.20-8 but the /usr/src has 2.4 and 2.4.20-18.9

If you are booted to 2.4.20-8 and that is the running kernel version when you attempt to compile those drivers, then you will need to remove the 2.4.20-18-9 kernel source and install the kernel source for 2.4.20-8.

That or boot to the 2.4.20-18-9 kernel if it is setup and configured properly.

If you want to delete the 2.4.20-18-9 kernel source, first see what is installed with

rpm -qa | grep kernel-source

and if kernel-source-2.4.20-18-9.i386.rpm, remove with

rpm -e kernel-source

and then find the kernel-source package for 2.4.20-8 and install with

rpm -Uvh kernel-source-2.4.20-8.i386.rpm

Either that or boot to the other kernel (2.4.20-18-9) and then compile those drivers.

geekyboi
07-15-2003, 07:32 PM
I got my sound to work and I finally hear something in the soundcard detection. I followed something that was posted a lil bit ago. Thanks a lot for the help. Um, whats the mixer for the alsa drivers? Why do I hear a high pitch noise? And how can I get better sound? Also, does linux have sounds like windows or what?

geekyboi
07-15-2003, 07:45 PM
Another thing, I reboot my computer and did the soundcard detection and it worked fine. I did the test and the sound was perfect, but then I tried the test again and it was all crackly and wispy and wierd. Why? And also, why does my volume change by itself?

bwkaz
07-15-2003, 10:20 PM
Does alsamixer help?

Not sure on the different sounds on each try thing, though...

geekyboi
07-15-2003, 10:24 PM
is it possible to access a windows-occupied harddrive to listen to mp3s?

kevinalm
07-15-2003, 10:33 PM
Are you using the openvortex alsa drivers? As I posted earlier they are still under developement. One of the things that needs more work is the driver for the au8830 chip mixer. It's a mite flaky. ;)

I think the lost volume settings is related to the mixer front end used in rh 8 and 9. If you can find an rpm for aumix it might help. Haven't had a chance to try that yet.

Also, there is the problem of not having a complete set of alsa utils. The vortex driver isn't completely integrated into the alsa system yet, they're still working on getting the basic drivers working. Assuming you've solved you kernel version problem, you might try a complete compile and install as I've outlined previously if you haven't already.

geekyboi
07-16-2003, 01:45 AM
Ive done that. How about the non-cvs versions of the driver? Arent those stable also?

mdwatts
07-16-2003, 06:11 AM
Originally posted by geekyboi
is it possible to access a windows-occupied harddrive to listen to mp3s?

Mounting the windows partition should work.

If you need help with that, search the JL forums for 'mount vfat fstab' for plenty of previous threads on the subject.

kevinalm
07-16-2003, 09:57 AM
The problem with the non cvs drivers is that they are very old. Kernel modules (drivers) have to be written in such a way as to be compatable with the kernel your running. The non cvs drivers were written for at newest 2.0.x kernels. We're using 2.4.x now. Even if you could get them to compile they won't load. If by some chance they would load they wouldn't work right.

elite_syntax
09-01-2003, 10:31 PM
Are you downloading the new kernel for that driver or did you find driver for the sound card on the web?


I have the same sound card with my dell pc.I just want to know so i can get it to work:)

kevinalm
09-02-2003, 12:36 AM
You've exsumed a rather old thread, but because of the unique difficulties of getting a vortex chip to work with linux I'll try to answer. There are a number of tar.gz format drivers on the web up to and including ver 1.1.2 . Unfortunately, none of these will work with a current distro due to the fact they were stabilized for kernels < 2.4.x . There is the cvs archive at sourceforge which should work with most 2.4.x kernels with the exception of some later rh 2.4 kernels (possibly other distros?). You will know if you have this problem if the compiler throws a "remap page range" error. It is supposed to be possible to use the sourcforge cvs with these kernels if you alter the makefile, but I can't verify that. If you download the stable kernel source from kernel.org and compile a new kernel then the sourceforge cvs should work as is.

There is also the savannah openvortex project cvs. They have been making remarkable progress reverse engineering an alsa driver for the vortex chips. I have had that working functionally, but it is still in development and a bit of a challenge.

It can certainly be done. I've had my MX300 (vortex2) card working through several versions and distros of linux, with both the sourceforge and savannah cvs's. How difficult depends on the distro and kernel version your using.

elite_syntax
09-02-2003, 08:56 AM
What the web site for the drivers??:confused: Datagram Sockets

kevinalm
09-02-2003, 03:21 PM
The savannah site is:
http://savannah.nongnu.org/cvs/?group=openvortex


The sourceforge site seems to be down at the moment. I'll post a link to it when it comes back up.

>>edit They're back up.

http://sourceforge.net/cvs/?group_id=8109


The pages I'm linking to have instructions on using the command line utility cvs to download the driver source. Basically you start your internet connection, pop open a terminal, and enter the commands. Oh, I should mention the print formatting on the sourceforge cvs instruction page is a little confusing. A cvs command is a single line. The way they show it done on the savannah site. For the savannah site the <modulename> is alsa, for sourceforge it's aureal. If you have trouble post back. Anonymous cvs access isn't difficult, but it is a little different than your probably used to. ;)