Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 2.6.0-test9 partial success
@ 2003-10-27  5:00 Arkadiy Chapkis - Arc
  2003-10-27  7:36 ` Stefan Reinauer
  2003-10-27 10:39 ` Ivan Kokshaysky
  0 siblings, 2 replies; 10+ messages in thread
From: Arkadiy Chapkis - Arc @ 2003-10-27  5:00 UTC (permalink / raw)
  To: AXP-LIST

  Hello everyone,

  Well, I finally get 2.6.0 series booted on my machine, this time I didn't
user initrd image and included most important drivers in the kernel. Everything
looks OK (PWS500a aka Miata), except sound. None of alsa snd_sb* wants to load,
then I searched some more and thought I have ES18XX. While trying to load this
one, I got the following messages:

Oct 26 23:05:24 baltika kernel: module snd_page_alloc: Relocation overflow vs
section 20
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_dma_get_reserved
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_dma_free_reserved
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_dma_free_pages
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_malloc_pages
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_dma_set_reserved
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_dma_alloc_pages
Oct 26 23:05:24 baltika kernel: snd_pcm: Unknown symbol snd_free_pages
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol snd_pcm_new
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_format_unsigned
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_lib_preallocate_isa_pages_for_all
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_lib_malloc_pages
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol snd_pcm_lib_ioctl
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_lib_free_pages
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol snd_pcm_set_ops
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
_snd_pcm_hw_param_setempty
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_lib_preallocate_free_for_all
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_hw_constraint_ratnums
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol
snd_pcm_period_elapsed
Oct 26 23:05:24 baltika kernel: snd_es18xx: Unknown symbol snd_pcm_format_width

  My guess is that the first line is the culprit - because snd_page_alloc
doesn't load, everything else is not loading either.
  My question is: should I file kernel bug report, or is it something I do
wrong?



                                      Arc C.
                                      achapkis@dls.net



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: 2.6.0-test9 partial success
@ 2003-10-27 13:08 Arkadiy Chapkis - Arc
  0 siblings, 0 replies; 10+ messages in thread
From: Arkadiy Chapkis - Arc @ 2003-10-27 13:08 UTC (permalink / raw)
  To: axp-list

# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.3.1/specs
Configured with: ../gcc-3.3.1/configure --enable-shared --enable-threads
Thread model: posix
gcc version 3.3.1
# ld -version
GNU ld version 2.14.90 20030915


>>   Hello everyone,
>> 
>>   Well, I finally get 2.6.0 series booted on my machine, this time I didn't
>> user initrd image and included most important drivers in the kernel. Everything
>> looks OK (PWS500a aka Miata), except sound. None of alsa snd_sb* wants to load,
>> then I searched some more and thought I have ES18XX. While trying to load this
>> one, I got the following messages:
>
>[..] 
>
>>   My guess is that the first line is the culprit - because snd_page_alloc
>> doesn't load, everything else is not loading either.
>>   My question is: should I file kernel bug report, or is it something I do
>> wrong?
>
>Have you tried newer binutils? What gcc are you using?
>
>  Stefan
>
>
>-- 
>     Stefan Reinauer, SUSE LINUX AG
>Teamleader Architecture Development
>
>
>_______________________________________________
>axp-list mailing list
>axp-list@redhat.com
>https://www.redhat.com/mailman/listinfo/axp-list


                                      Arc C.
                                      achapkis@dls.net



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: 2.6.0-test9 partial success
@ 2003-10-27 19:58 Arkadiy Chapkis - Arc
  2003-10-27 20:56 ` Jay Estabrook
  0 siblings, 1 reply; 10+ messages in thread
From: Arkadiy Chapkis - Arc @ 2003-10-27 19:58 UTC (permalink / raw)
  To: axp-list

  Ivan,

  Thank you very much, it worked. I'm still out of sound, es18xx module 
didn't think I have this card, but I loaded it with isapnp disabled. Still,
when I try to send an .mp3 file to /dev/snd/pcmC0D0c I get 
cat: write error: Invalid argument
and it I try /dev/snd/pcmC0D0p I get
cat: write error: File descriptor in bad state

  Now I think I am doing something wrong.

>
>Exactly.
>
>>   My question is: should I file kernel bug report, or is it something I do
>> wrong?
>
>I think there is a problem with incorrect sign extension in calculation
>of GPRELHIGH value in alpha/kernel/module.c. The appended patch works
>for me, though I'm not sure it's right way to fix that - I've sent this
>to rth 3 or 4 times, but it wasn't applied...
>
>Ivan.
>
>--- 2.6/arch/alpha/kernel/module.c	Wed May 28 01:05:20 2003
>+++ linux/arch/alpha/kernel/module.c	Mon Aug 11 23:23:02 2003
>@@ -259,7 +259,7 @@ apply_relocate_add(Elf64_Shdr *sechdrs, 
> 			*(u64 *)location = value;
> 			break;
> 		case R_ALPHA_GPRELHIGH:
>-			value = (value - gp + 0x8000) >> 16;
>+			value = (long)(value - gp + 0x8000) >> 16;
> 			if ((short) value != value)
> 				goto reloc_overflow;
> 			*(u16 *)location = value;
>
>
>_______________________________________________
>axp-list mailing list
>axp-list@redhat.com
>https://www.redhat.com/mailman/listinfo/axp-list


                                      Arc C.
                                      achapkis@dls.net



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: 2.6.0-test9 partial success
@ 2003-10-27 20:36 Arkadiy Chapkis - Arc
  2003-10-27 22:17 ` Jay Estabrook
  0 siblings, 1 reply; 10+ messages in thread
From: Arkadiy Chapkis - Arc @ 2003-10-27 20:36 UTC (permalink / raw)
  To: axp-list

  This was my first try, but none of snd_sb* work. I don't have *just* sb:
# modprobe -l|grep snd.*sb
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sbawe.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb8.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb8-dsp.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb16.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb16-dsp.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb16-csp.ko
/lib/modules/2.6.0-test9/kernel/sound/isa/sb/snd-sb-common.ko

  sbawe,sb8,sb16 all cannot see the sound card.

I add isapnp=0 only to es18xx. Should I try one of sb's with isapnp=0?

>>   Thank you very much, it worked. I'm still out of sound, es18xx module 
>> didn't think I have this card, but I loaded it with isapnp disabled. Still,
>> when I try to send an .mp3 file to /dev/snd/pcmC0D0c I get 
>> cat: write error: Invalid argument
>> and it I try /dev/snd/pcmC0D0p I get
>> cat: write error: File descriptor in bad state
>> 
>>   Now I think I am doing something wrong.
>
>On the MIATA with 2.6.0-test4 and ALSA, I had the best luck using the
>SB driver, as the ES18xx one I could not get to work.
>
>Did you try adding "isapnp=0" to the module arguments?
>
>BTW, the ES18xx driver *did* work on the XP1000; go figure... ;-}
>
> --Jay++
>
>-----------------------------------------------------------------------------
>Jay A Estabrook                            HPTC - LINUX support
>Hewlett-Packard Company - MRO1-2/K15       (508) 467-2080
>200 Forest Street, Marlboro MA 01752       Jay.Estabrook@hp.com
>-----------------------------------------------------------------------------
>
>
>_______________________________________________
>axp-list mailing list
>axp-list@redhat.com
>https://www.redhat.com/mailman/listinfo/axp-list


                                      Arc C.
                                      achapkis@dls.net



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: 2.6.0-test9 partial success
@ 2003-10-28  5:09 Arkadiy Chapkis - Arc
  2003-10-28 19:27 ` Jay Estabrook
  0 siblings, 1 reply; 10+ messages in thread
From: Arkadiy Chapkis - Arc @ 2003-10-28  5:09 UTC (permalink / raw)
  To: axp-list

  OK, I finally got sound to work. Unfortunately I had to go back to OSS
modules, as neither one of ALSA worked for me. Unfortunately, because it seems
that OSS will be going away and the best I could get with ALSA
snd_sb8 is some hissing sound while playing with aplay. Not to mention that
/dev/snd/pcmC0D0* weren't available (I made the with MAKDEV.snd, but couldn't
redirect a sound file to those). I tried every dma setting and had to use
alsamixer to upped the channels every time I loaded modules.

  I am still very gratefull to Ivan for his patch (who knows, maybe OSS
wouldn't load as well if not for this patch and I wouldn't be able to listen to
M. Magomaev right now). Also I'd like to thank Jay for his pointers (I may
still need them in future).

>
>I think there is a problem with incorrect sign extension in calculation
>of GPRELHIGH value in alpha/kernel/module.c. The appended patch works
>for me, though I'm not sure it's right way to fix that - I've sent this
>to rth 3 or 4 times, but it wasn't applied...
>
>Ivan.
>
>--- 2.6/arch/alpha/kernel/module.c	Wed May 28 01:05:20 2003
>+++ linux/arch/alpha/kernel/module.c	Mon Aug 11 23:23:02 2003
>@@ -259,7 +259,7 @@ apply_relocate_add(Elf64_Shdr *sechdrs, 
> 			*(u64 *)location = value;
> 			break;
> 		case R_ALPHA_GPRELHIGH:
>-			value = (value - gp + 0x8000) >> 16;
>+			value = (long)(value - gp + 0x8000) >> 16;
> 			if ((short) value != value)
> 				goto reloc_overflow;
> 			*(u16 *)location = value;
>
>


                                      Arc C.
                                      achapkis@dls.net



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-10-28 19:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-27  5:00 2.6.0-test9 partial success Arkadiy Chapkis - Arc
2003-10-27  7:36 ` Stefan Reinauer
2003-10-27 10:39 ` Ivan Kokshaysky
  -- strict thread matches above, loose matches on Subject: below --
2003-10-27 13:08 Arkadiy Chapkis - Arc
2003-10-27 19:58 Arkadiy Chapkis - Arc
2003-10-27 20:56 ` Jay Estabrook
2003-10-27 20:36 Arkadiy Chapkis - Arc
2003-10-27 22:17 ` Jay Estabrook
2003-10-28  5:09 Arkadiy Chapkis - Arc
2003-10-28 19:27 ` Jay Estabrook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox