All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem in loading Nouveau driver
@ 2014-12-20  5:30 Ali Aminian
  2014-12-20 10:07 ` Paul Bolle
  0 siblings, 1 reply; 6+ messages in thread
From: Ali Aminian @ 2014-12-20  5:30 UTC (permalink / raw)
  To: kernelnewbies

Hello
How should i enable Nouveau driver in a custom kernel. Here is how i
compiled my kernel:
1_make localmodconfig
2_make menuconfig and then went to: device drivers -->  Graphics
support --> Nouveau Support
3_make
4_make modules_install
5_make install

and after booting the kernel i tried loading Nouveau by following commands:

1_insmod drm.ko
2_insmod drm_kms_helper.ko
3_insmod ttm.ko
4_insmod nouveau.ko

but in the last step it gives me Unknown symbol in module

here is the result of "dmesg | tail" after i tried insmod nouvea.ko:

drm: module verification failed: signature and/or  required key
missing - tainting kernel
[  212.330197] [drm] Initialized drm 1.1.0 20060810
[  255.336591] nouveau: Unknown symbol i2c_bit_add_bus (err 0)
[  255.336610] nouveau: Unknown symbol mxm_wmi_call_mxds (err 0)
[  255.336625] nouveau: Unknown symbol mxm_wmi_supported (err 0)
[  255.336644] nouveau: Unknown symbol i2c_bit_algo (err 0)
[  255.336719] nouveau: Unknown symbol wmi_evaluate_method (err 0)
[  255.336777] nouveau: Unknown symbol wmi_has_guid (err 0)
[  255.336904] nouveau: Unknown symbol mxm_wmi_call_mxmx (err 0)

I don't know in what step i did wrong.

thank you.

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

* Problem in loading Nouveau driver
  2014-12-20  5:30 Problem in loading Nouveau driver Ali Aminian
@ 2014-12-20 10:07 ` Paul Bolle
  2014-12-20 13:39   ` Ali Aminian
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Bolle @ 2014-12-20 10:07 UTC (permalink / raw)
  To: kernelnewbies

On Sat, 2014-12-20 at 09:00 +0330, Ali Aminian wrote:
> and after booting the kernel i tried loading Nouveau by following commands:
> 
> 1_insmod drm.ko
> 2_insmod drm_kms_helper.ko
> 3_insmod ttm.ko
> 4_insmod nouveau.ko
> 
> but in the last step it gives me Unknown symbol in module

Why do it by hand when you can modprobe? I don't use nouveau myself, but
om my machine (running v3.18.1) modprobe tells me:
        $ modprobe --show-depends nouveau
        insmod [...]/drivers/gpu/drm/drm.ko 
        insmod [...]/drivers/gpu/drm/drm_kms_helper.ko 
        insmod [...]/drivers/gpu/drm/ttm/ttm.ko 
        insmod [...]/drivers/i2c/algos/i2c-algo-bit.ko 
        insmod [...]/drivers/acpi/video.ko 
        insmod [...]/drivers/platform/x86/wmi.ko 
        insmod [...]/drivers/platform/x86/mxm-wmi.ko 
        insmod [...]/drivers/gpu/drm/nouveau/nouveau.ko

> here is the result of "dmesg | tail" after i tried insmod nouvea.ko:
> 
> drm: module verification failed: signature and/or  required key
> missing - tainting kernel
> [  212.330197] [drm] Initialized drm 1.1.0 20060810
> [  255.336591] nouveau: Unknown symbol i2c_bit_add_bus (err 0)

$ git grep -nw i2c_bit_add_bus | grep EXPORT
drivers/i2c/algos/i2c-algo-bit.c:655:EXPORT_SYMBOL(i2c_bit_add_bus);

Ie, i2c-algo-bit.ko as seen above.

> [  255.336610] nouveau: Unknown symbol mxm_wmi_call_mxds (err 0)

$ git grep -nw mxm_wmi_call_mxds | grep EXPORT
drivers/platform/x86/mxm-wmi.c:66:EXPORT_SYMBOL_GPL(mxm_wmi_call_mxds);

Ie, mxm-wmi.ko as seen above.

> [  255.336625] nouveau: Unknown symbol mxm_wmi_supported (err 0)

Etc.

> [  255.336644] nouveau: Unknown symbol i2c_bit_algo (err 0)
> [  255.336719] nouveau: Unknown symbol wmi_evaluate_method (err 0)
> [  255.336777] nouveau: Unknown symbol wmi_has_guid (err 0)
> [  255.336904] nouveau: Unknown symbol mxm_wmi_call_mxmx (err 0)
> 
> I don't know in what step i did wrong.

Hope this helps,


Paul Bolle

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

* Problem in loading Nouveau driver
  2014-12-20 10:07 ` Paul Bolle
@ 2014-12-20 13:39   ` Ali Aminian
  2014-12-20 17:17     ` Ali Aminian
  0 siblings, 1 reply; 6+ messages in thread
From: Ali Aminian @ 2014-12-20 13:39 UTC (permalink / raw)
  To: kernelnewbies

Hello
when i use modprobe it gives me this:
modprobe: ERROR: ../libkmod/libkmod-module.c:809
kmod_module_insert_module() could not find module by name='off'
modprobe: ERROR: could not insert 'off': Function not implemented
modprobe: ERROR: ../libkmod/libkmod-module.c:809
kmod_module_insert_module() could not find module by name='off'

I guess at least i should once load the module manually and then try
using modprobe.

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

* Problem in loading Nouveau driver
  2014-12-20 13:39   ` Ali Aminian
@ 2014-12-20 17:17     ` Ali Aminian
  2014-12-20 19:57       ` Paul Bolle
  0 siblings, 1 reply; 6+ messages in thread
From: Ali Aminian @ 2014-12-20 17:17 UTC (permalink / raw)
  To: kernelnewbies

Hello Paul Bolle
it worked.
I just insmod modules you listed and it worked.
thank you

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

* Problem in loading Nouveau driver
  2014-12-20 17:17     ` Ali Aminian
@ 2014-12-20 19:57       ` Paul Bolle
  2014-12-21 18:38         ` Valdis.Kletnieks at vt.edu
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Bolle @ 2014-12-20 19:57 UTC (permalink / raw)
  To: kernelnewbies

On Sat, 2014-12-20 at 20:47 +0330, Ali Aminian wrote:
> it worked.

Good.

> I just insmod modules you listed and it worked.

It's odd that modprobe failed here. Perhaps you could look into that a
bit more. If you can reproduce this failure you might want to report it
to the maintainers of modprobe (either at your distribution or
upstream).

Thanks,


Paul Bolle

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

* Problem in loading Nouveau driver
  2014-12-20 19:57       ` Paul Bolle
@ 2014-12-21 18:38         ` Valdis.Kletnieks at vt.edu
  0 siblings, 0 replies; 6+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-12-21 18:38 UTC (permalink / raw)
  To: kernelnewbies

On Sat, 20 Dec 2014 20:57:40 +0100, Paul Bolle said:
> On Sat, 2014-12-20 at 20:47 +0330, Ali Aminian wrote:
> > it worked.
>
> Good.
>
> > I just insmod modules you listed and it worked.
>
> It's odd that modprobe failed here.

Not really.

Most likely cause - failure to run depmod after putting new modules in
/lib/modules.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141221/789a1d99/attachment.bin 

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

end of thread, other threads:[~2014-12-21 18:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-20  5:30 Problem in loading Nouveau driver Ali Aminian
2014-12-20 10:07 ` Paul Bolle
2014-12-20 13:39   ` Ali Aminian
2014-12-20 17:17     ` Ali Aminian
2014-12-20 19:57       ` Paul Bolle
2014-12-21 18:38         ` Valdis.Kletnieks at vt.edu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.