Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Unknown Symbol
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
thesequel
n00b
n00b


Joined: 20 Mar 2010
Posts: 12

PostPosted: Sat Dec 04, 2010 8:05 am    Post subject: [SOLVED] Unknown Symbol Reply with quote

I'm running 2.6.34 (r4 I think... Not at my computer right now) and I can not figure out how to enable a symbol. The symbol I'm trying to enable is something like ir_hauppauge_new_table. I don't know how to enable symbols, I just use menuconfig to enable things that will select what I want. I hope that made sense.

This is needed by cx18 (dmesg says there's and unknown symbol ir_whatever). I tried looking for something in the kernel about IR but I did t find anything. I know that this symbol is in drivers/media/IR if it helps. Any ideas?

EDIT: Some output...

Code:
$ uname -r
2.6.34-gentoo-r12

$ dmesg | grep cx18
[    4.181151] cx18: Unknown symbol ir_codes_hauppauge_new_table


Last edited by thesequel on Mon Dec 06, 2010 2:32 am; edited 2 times in total
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2007

PostPosted: Sat Dec 04, 2010 10:40 am    Post subject: You need to change your kernel config Reply with quote

IIUC, you've found the symbol in the kernel source, but the cx18 application can't see it in the executing kernel binary. That means your kernel configuration doesn't cause that bit of the source to be compiled, or if it's compiled into a module, you've not loaded said module, or it's one of the deprecated symbols that don't get compiled unless you select a particular kernel option (CONFIG_UNUSED_SYMBOLS).
_________________
Greybeard
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat Dec 04, 2010 11:39 am    Post subject: Reply with quote

thesequel,

Symbols provided by one part of the kernel are used by other parts of the kernel. Sometimes by external modules that link against the kernel.
If you have and Unknown Symbol error, you are trying to load or link a module against a kernel that does not provide one of more of the symbols the new module needs.

In short, you need to select something else in make.menuconfig and rebuild your kernel.

If you provide the exact text of the error, so we know the missing symbol name, we can tell which part of the kernel you need to enable.
Tell us what you are doing and what you want to achieve - the context of the error is important too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
thesequel
n00b
n00b


Joined: 20 Mar 2010
Posts: 12

PostPosted: Sat Dec 04, 2010 3:10 pm    Post subject: Reply with quote

Okay, I'm at my computer now.

Code:
$ uname -r
2.6.34-gentoo-r12

$ dmesg | grep cx18
[    4.181151] cx18: Unknown symbol ir_codes_hauppauge_new_table


I've also found more information about this symbol here: http://lxr.free-electrons.com/ident?v=2.6.34;i=ir_codes_hauppauge_new_table
I don't know if that's useful or not, but it couldn't hurt. And, how would I find out if this is deprecated and need to enable some option like Goverp suggested?

As for context, I'm trying to install an HVR-1600. I've had some other unkown symbol errors before this one but I was able to fix those. I have no idea on what I should select for this symbol though.

Thanks for the help everyone. :)
Back to top
View user's profile Send private message
Manko10
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2010
Posts: 105

PostPosted: Sat Dec 04, 2010 3:23 pm    Post subject: Reply with quote

Looks as if you were not the only one having this problem

I'm not familiar with cx18 but have you installed the firmware (media-tv/cx18-firmware)?
_________________
Refining Linux Advent calendar series 2010: “24 Short Linux Hints
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat Dec 04, 2010 3:25 pm    Post subject: Reply with quote

thesequel,

Code:
grep -Ri ir_codes_hauppauge_new_table /usr/src/linux
finds nothing, which implies that the symbol is not defined in the kernel.
That grep searches he entire kernel source and the binaries I have in my kernel tree.

Some context would be useful
Code:
dmesg | grep -A10 -B10 cx18

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat Dec 04, 2010 3:29 pm    Post subject: Reply with quote

thesequel, ,
Code:
ir_codes_hauppauge_new_table
Defined as a variable in:

    * drivers/media/IR/ir-keymaps.c, line 1844
is very useful.
Somewhere in /usr/src/linux/drivers/media/IR is the make menuconfig option that owns that symbol. You need to turn it on.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
thesequel
n00b
n00b


Joined: 20 Mar 2010
Posts: 12

PostPosted: Sat Dec 04, 2010 3:38 pm    Post subject: Reply with quote

@Manko10
The cx18 firmware is included in the kernel, I guess that package is an updated version. If I can't get this to work I'll try emerging that.

@NeddySeagoon
I'm not sure what you mean? I have to edit a file in that directory to enable it?

Code:
$ dmesg | grep -A10 -B10 cx18
[    2.631786] EXT4-fs (sda3): mounted filesystem with ordered data mode
[    2.632119] VFS: Mounted root (ext2 filesystem) readonly on device 8:3.
[    2.632390] Freeing unused kernel memory: 596k freed
[    2.632768] Write protecting the kernel read-only data: 10240k
[    2.633213] Freeing unused kernel memory: 1000k freed
[    2.633805] Freeing unused kernel memory: 1720k freed
[    3.016976] stty used greatest stack depth: 4952 bytes left
[    3.064094] grep used greatest stack depth: 4832 bytes left
[    3.790162] udev: starting version 151
[    3.979459] Linux video capture interface: v2.00
[    4.181151] cx18: Unknown symbol ir_codes_hauppauge_new_table
[    4.198016] uhci_hcd 0000:00:1a.1: reserve dev 2 ep81-INT, period 8, phase 4, 118 us
[    4.215415] uhci_hcd 0000:00:1a.1: release dev 2 ep81-INT, period 8, phase 4, 118 us
[    4.275356] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    4.275388] r8169 0000:04:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    4.275432] r8169 0000:04:00.0: setting latency timer to 64
[    4.275470]   alloc irq_desc for 31 on node -1
[    4.275472]   alloc kstat_irqs on node -1
[    4.275483] r8169 0000:04:00.0: irq 31 for MSI/MSI-X
[    4.275895] r8169 0000:04:00.0: eth0: RTL8168c/8111c at 0xffffc900051a4000, 00:24:1d:2b:7b:1e, XID 1c4000c0 IRQ 31
[    4.279189] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat Dec 04, 2010 4:01 pm    Post subject: Reply with quote

thesequel,

I guess you need to enable
Code:
Compile Remote Controller keymap modules
in your kernel.

Its help says
kernel help:
Prompt: Compile Remote Controller keymap modules
  Defined at drivers/media/IR/keymaps/Kconfig:1
  Depends on: MEDIA_SUPPORT [=m] && IR_CORE [=m]
  Location:
    -> Device Drivers
      -> Multimedia support (MEDIA_SUPPORT [=m])
        -> Infrared remote controller adapters (IR_CORE [=m])

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
thesequel
n00b
n00b


Joined: 20 Mar 2010
Posts: 12

PostPosted: Sun Dec 05, 2010 1:33 am    Post subject: Reply with quote

Okay I'm going to try that, but how did you figure it out?

Hmm.. I don't have an IR section in Multimedia Support...

Here's what I'm seeing:
http://i.imgur.com/D9rfY.png

I'm going to try updating to kernel 2.6.36 since an IR section is supposed to show up in that one...
Back to top
View user's profile Send private message
thesequel
n00b
n00b


Joined: 20 Mar 2010
Posts: 12

PostPosted: Sun Dec 05, 2010 7:08 am    Post subject: Reply with quote

Okay I've resolved the Unkown Symbol error but now I have a new problem :(

Quote:
$dmesg | grep cx18
[ 4.288286] cx18: Start initialization, version 1.4.0
[ 4.288318] cx18-0: Initializing card 0
[ 4.288320] cx18-0: Autodetected Hauppauge card
[ 4.288370] cx18 0000:06:01.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 4.288379] cx18-0: Unreasonably low latency timer, setting to 64 (was 32)
[ 4.294389] cx18-0: cx23418 revision 01010000 (B)
[ 4.500801] cx18-0: Autodetected Hauppauge HVR-1600
[ 4.500803] cx18-0: Simultaneous Digital and Analog TV capture supported
[ 5.312537] tuner 2-0043: chip found @ 0x86 (cx18 i2c driver #0-1)
[ 5.327420] tuner 2-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
[ 5.350561] cs5345 1-004c: chip found @ 0x98 (cx18 i2c driver #0-0)
[ 5.401528] cx18-0: Registered device video0 for encoder MPEG (64 x 32.00 kB)
[ 5.401532] DVB: registering new adapter (cx18)
[ 5.663863] cx18-0: DVB Frontend registered
[ 5.663865] cx18-0: Registered DVB adapter0 for TS (32 x 32.00 kB)
[ 5.663884] cx18-0: Registered device video32 for encoder YUV (20 x 101.25 kB)
[ 5.663900] cx18-0: Registered device vbi0 for encoder VBI (20 x 51984 bytes)
[ 5.663918] cx18-0: Registered device video24 for encoder PCM audio (256 x 4.00 kB)
[ 5.663935] cx18-0: Registered device radio0 for encoder radio
[ 5.663937] cx18-0: Initialized card: Hauppauge HVR-1600
[ 5.663955] cx18: End initialization
[ 5.773579] cx18-alsa: module loading...
[ 5.877546] cx18-0: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
[ 6.030967] cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)
[ 6.730059] cx18-0: Could not start the CPU
[ 6.730061] cx18-0: Retry loading firmware
[ 6.839625] cx18-0: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
[ 6.961479] cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)
[ 7.661059] cx18-0: Could not start the CPU
[ 7.661061] cx18-0: Failed to initialize on video32
[ 7.661068] cx18-0: Failed to initialize on video24
[ 7.661116] cx18-0: Failed to initialize on video0
[ 7.661276] cx18-0: Failed to initialize on radio0
[ 7.661471] cx18-0: Failed to initialize on vbi0
[ 24.084900] cx18-0: Failed to initialize on radio0
[ 24.085789] cx18-0: Failed to initialize on vbi0
[ 24.086907] cx18-0: Failed to initialize on video0
[ 24.087728] cx18-0: Failed to initialize on video24
[ 24.088599] cx18-0: Failed to initialize on video32


According to and old Hauppauge FAQ (http://www.hauppauge.com/pages/faq/support_faq_hvr1600.html) I should try editing cx18-firmware.c at line 350 and change '#if 0' to '#if 1'. I've uploaded my cx18-firmware.c here: http://pastebin.com/z6zPSUts Obviously, line 350 does not say '#if 0'.

Any suggestions on what I should try next? Should I open a new thread for this or keep it here?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Dec 05, 2010 10:06 am    Post subject: Reply with quote

if i were you: create a new thread with cx-18 name (well the card or chip i don't know its real name) in title to drow others cx-18 users attention to your thread.

Best way to win.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Dec 05, 2010 10:24 am    Post subject: Reply with quote

thesequel,

I figured out your missing symbol problem from your
thesequel wrote:
I've also found more information about this symbol here: http://lxr.free-electrons.com/ident?v=2.6.34;i=ir_codes_hauppauge_new_table
and using
Code:
make xconfig
on my 2.6.36 kernel. make xconfig can be set up to show all the hidden options and the page you likked to showed me approximately where to look in the kernel source, it mentions drivers/media/IR/ir-keymaps.c, line 1844, which is relative to /usr/src/linux/
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum