Skip to content
This repository

Installing pscnv.ko module fails. #6

Closed
itziksh opened this Issue · 6 comments

3 participants

itziksh Mike Harsch cbergstrom
itziksh

Hi,
We are installing pscnv on ubuntu 12.04 64 bit.
We compiled kernel 3.3.0 according to the instructions at https://gist.github.com/3057893 and booted from it.
We installed envytools as well.
When trying to install pscnv we tried to follow the steps on the readme file but compilation failed on line 511 in nouveau_state.c.
So, we switched to an older commit (d0bdb2f) and compiled again, the compilation succeeded.
However when we try to execute sudo insmod pscnv.ko we get an error message:
insmod: error inserting 'pscnv.ko': -1 Unknown symbol in module

Please help us to resolve this issue.
Thank you.

Mike Harsch
Collaborator

The system log or output from 'dmesg' should contain more detail about the missing symbols. Could you provide that detail here?

Mike Harsch
Collaborator

My initial thought is that step 7a from the gist that you referenced (blacklisting nouveau) is keeping certain pscnv dependencies from getting loaded (probably drm). The instructions need to provide more detail about how to ensure the needed symbols are available at load time.

Mike Harsch
Collaborator

A quick test showed that the following modules must be loaded prior to attempting to load pscnv.ko:

drm
drm_kms_helper
i2c_algo_bit
video

run 'modprobe ' for each of these modules to get them loaded prior to running 'insmod pscnv.ko'. Confirm that they are loaded with 'lsmod' - should look like this:

$ lsmod
Module Size Used by
pscnv 689703 0
video 19097 1 pscnv
i2c_algo_bit 13413 1 pscnv
drm_kms_helper 46587 1 pscnv
drm 275406 2 pscnv,drm_kms_helper
...

Another workaround would be to boot w/nouveau (i.e. do not blacklist nouveau), then unload nouveau prior to loading pscnv using the unload procedure described here (but don't unload drm and drm_kms_helper):
http://nouveau.freedesktop.org/wiki/KernelModeSetting

Please confirm that you're able to load pscnv with one of these 2 workarounds.

itziksh

Thank you for the fast reply.
Indeed i2c_algo_bit was not loaded and loading it allowed us to remake and load pscnv.ko.
However, when trying to proceed with instructions to install Gdev (https://github.com/shinpei0208/gdev , step 4), the make succeeded with warnings, and we got an error when trying to load gdev.ko (insmod gdev.ko)-
insmod: error inserting 'gdev.ko': -1 Unknown symbol in module
all the modules you stated are loaded (including pscnv.ko).

When making gdev.ko we received the following output-

make -C /lib/modules/3.3.0-custom+/build M=/homes/uriv/gdev/mod/build modules
make[1]: Entering directory /homes/uriv/linux-2.6'
CC [M] /homes/uriv/gdev/mod/build/gdev_drv.o
CC [M] /homes/uriv/gdev/mod/build/gdev_drv_nvidia.o
CC [M] /homes/uriv/gdev/mod/build/gdev_fops.o
CC [M] /homes/uriv/gdev/mod/build/gdev_ioctl.o
CC [M] /homes/uriv/gdev/mod/build/gdev_proc.o
CC [M] /homes/uriv/gdev/mod/build/gdev_api.o
CC [M] /homes/uriv/gdev/mod/build/gdev_device.o
CC [M] /homes/uriv/gdev/mod/build/gdev_sched.o
CC [M] /homes/uriv/gdev/mod/build/gdev_nvidia.o
CC [M] /homes/uriv/gdev/mod/build/gdev_nvidia_compute.o
CC [M] /homes/uriv/gdev/mod/build/gdev_nvidia_mem.o
CC [M] /homes/uriv/gdev/mod/build/gdev_nvidia_shm.o
CC [M] /homes/uriv/gdev/mod/build/gdev_nvidia_nvc0.o
LD [M] /homes/uriv/gdev/mod/build/gdev.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: "gdev_drv_getdrm" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_bo_unmap" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_chan_alloc" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_write" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_vspace_free" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_bo_alloc" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_getdevice" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_vspace_alloc" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_getparam" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_bo_map" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_read" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_setnotify" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_read32" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_bo_bind" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_getaddr" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_unsetnotify" [q/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_bo_unbind" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_bo_free" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_write32" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
WARNING: "gdev_drv_chan_free" [/homes/uriv/gdev/mod/build/gdev.ko] undefined!
CC /homes/uriv/gdev/mod/build/gdev.mod.o
LD [M] /homes/uriv/gdev/mod/build/gdev.ko
make[1]: Leaving directory
/homes/uriv/linux-2.6'

Please help,
Thank you.

cbergstrom
Owner

Sorry, but if your bug report is for gdev please report it there. I'm closing this since your issue with pscnv seems to be solved

itziksh

Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.