Announcement

Collapse
No announcement yet.

error compiling latest omnibook module (from git repo) on maverick -

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    error compiling latest omnibook module (from git repo) on maverick -

    Hello Kubuntu community.

    I have a problem compiling the latest omnibook module on Maverick from git.
    It's for my Toshiba Satellite M40, that is the M40 model sold in Canada.... and of course it has a %?%$ phoenix bios. :-)

    Six months earlier here is what I did for Kubuntu Lucid when that distro came out and it worked like a charm and now
    when I do the same thing for Maverick there is some little problems.

    At this point I've done no modifications on the system except for the updates. No proprietary nvidia driver installed,
    no dkms, nothing.

    First I install all of this stuff to be sure I miss nothing that could be useful.

    Code:
    sudo apt-get install git build-essential linux-headers-2.6.35-22 linux-headers-2.6.35-22-generic linux-headers-generic linux-source linux-source-2.6.35
    That part goes well, no errors.

    Its probably a bit too much stuff but I'm not 100 percent sure what is needed. In Lucid 6 months ago, if I remember,
    I did not install linux-source and linux-source-*.*.* I'm pretty sure of that. But I've read not a long time ago that you need the
    entire linux kernel source to build the omnibook module... so I just don't know any more... and it's weird, because.... how I managed to install
    the omnibook module the last time in lucid with just the headers if that's so ? I dunno.

    After installing that big pile of source code I do this:

    Code:
    git clone git://omnibook.git.sourceforge.net/gitroot/omnibook/omnibook
    All is ok, still no errors.

    After that I cd into the omnibook directory (just appeared in Home) and I do this:

    Code:
    $ sudo su  (I've tried "make" with my ordinary user, with sudo myuser, always produce the same output below)
    
    # make   (I don't do "make install" because I use checkinstall instead)
    
    make -C /lib/modules/2.6.35-22-generic/build SUBDIRS=/home/zool/omnibook modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
     CC [M] /home/zool/omnibook/init.o
     CC [M] /home/zool/omnibook/lib.o
     CC [M] /home/zool/omnibook/ec.o
    /home/zool/omnibook/ec.c: In function ‘omnibook_ec_display’:
    /home/zool/omnibook/ec.c:172: warning: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’
     CC [M] /home/zool/omnibook/kbc.o
     CC [M] /home/zool/omnibook/pio.o
     CC [M] /home/zool/omnibook/compal.o
     CC [M] /home/zool/omnibook/acpi.o
    /home/zool/omnibook/acpi.c: In function ‘set_tsx205_wireless_status’:
    /home/zool/omnibook/acpi.c:764: warning: ISO C90 forbids mixed declarations and code
    /home/zool/omnibook/acpi.c: In function ‘omnibook_hci_set_hotkeys’:
    /home/zool/omnibook/acpi.c:1017: warning: ISO C90 forbids mixed declarations and code
     CC [M] /home/zool/omnibook/nbsmi.o
     CC [M] /home/zool/omnibook/ac.o
     CC [M] /home/zool/omnibook/battery.o
     CC [M] /home/zool/omnibook/blank.o
     CC [M] /home/zool/omnibook/bluetooth.o
     CC [M] /home/zool/omnibook/cooling.o
     CC [M] /home/zool/omnibook/display.o
     CC [M] /home/zool/omnibook/dock.o
     CC [M] /home/zool/omnibook/dump.o
     CC [M] /home/zool/omnibook/fan.o
     CC [M] /home/zool/omnibook/fan_policy.o
     CC [M] /home/zool/omnibook/hotkeys.o
     CC [M] /home/zool/omnibook/info.o
     CC [M] /home/zool/omnibook/lcd.o
     CC [M] /home/zool/omnibook/muteled.o
     CC [M] /home/zool/omnibook/polling.o
     CC [M] /home/zool/omnibook/temperature.o
     CC [M] /home/zool/omnibook/touchpad.o
     CC [M] /home/zool/omnibook/wireless.o
     CC [M] /home/zool/omnibook/throttling.o
     LD [M] /home/zool/omnibook/omnibook.o
     Building modules, stage 2.
     MODPOST 1 modules
    WARNING: modpost: Found 30 section mismatch(es).
    To see full details build your kernel with:
    'make CONFIG_DEBUG_SECTION_MISMATCH=y'
     CC   /home/zool/omnibook/omnibook.mod.o
     LD [M] /home/zool/omnibook/omnibook.ko
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
    so there are 4-5 warnings that pops up and at the end it says:

    WARNING: modpost: Found 30 section mismatch(es).
    To see full details build your kernel with:
    'make CONFIG_DEBUG_SECTION_MISMATCH=y'


    Hmmm, ... I don't' know much about programming but it don't seem good.


    Nevertheless lets try to still install this compiled code

    Code:
    # checkinstall
    
    Preparing package documentation...OK
    
    Please write a description for the package .......
    ....... ........ .............
    .
    .
    .
    
    ========================= Installation results ===========================
    # Removing module from locations used by previous versions
    rm -f /lib/modules/2.6.35-22-generic/kernel/drivers/char/omnibook.ko
    rm -f /lib/modules/2.6.35-22-generic/kernel/drivers/misc/omnibook.ko
    make INSTALL_MOD_PATH= INSTALL_MOD_DIR=extra -C /lib/modules/2.6.35-22-generic/build M=/home/zool/omnibook modules_install
    make[1]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
     INSTALL /home/zool/omnibook/omnibook.ko
     DEPMOD 2.6.35-22-generic
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
    
    ======================== Installation successful ==========================
    
    Copying documentation directory...
    ./
    ./doc/
    ./doc/README
    ./doc/BUGS
    ./doc/ChangeLog
    ./doc/CREDITS
    ./doc/COPYING
    ./doc/INSTALL
    
    Copying files to the temporary directory...OK
    
    Stripping ELF binaries and libraries...OK
    
    Compressing man pages...OK
    
    Building file list...OK
    
    Building Debian package...OK
    
    Installing Debian package...OK
    
    Erasing temporary files...OK
    
    Writing backup package...OK
    OK
    
    Deleting temp dir...OK
    
    
    **********************************************************************
    
     Done. The new package has been installed and saved to
    
     /home/****/omnibook/omnibook_20101012-1_i386.deb
    
     You can remove it from your system anytime using: 
    
       dpkg -r omnibook

    Check install doesn't complain, all seems ok.

    I exit being super user and I do

    - sudo depmod -a and
    - sudo modprobe omnibook and SURPRISE it says:
    killed

    hmm...

    Then I try this:
    echo 5 > /proc/omnibook/lcd (to change the brightness of my screen) and the result:
    bash: /proc/omnibook/lcd: No such file or directory

    doesn't work

    Here is the result of dmesg | grep "omnibook"

    Code:
    $ dmesg | grep "omnibook"
    [ 288.109777] omnibook: Driver version 2.20090707-trunk.
    [ 288.109887] omnibook: Toshiba Satellite M40 detected.
    [ 288.111856] IP: [<f85e906c>] omnibook_init+0x30/0x194 [omnibook]
    [ 288.111896] last sysfs file: /sys/devices/platform/omnibook/uevent
    [ 288.111903] Modules linked in: omnibook(+) michael_mic arc4 lib80211_crypt_tkip aes_i586 aes_generic
     lib80211_crypt_ccmp parport_pc ppdev joydev snd_intel8x0 nouveau snd_ac97_codec ac97_bus snd_pcm
    snd_seq_midi ttm pcmcia snd_rawmidi drm_kms_helper ipw2200 snd_seq_midi_event snd_seq libipw snd_timer
    snd_seq_device drm usbhid cfg80211 irda tifm_7xx1 hid intel_agp tifm_core yenta_socket pcmcia_rsrc video output
    pcmcia_core crc_ccitt snd psmouse lib80211 i2c_algo_bit serio_raw agpgart soundcore snd_page_alloc lp parport
    firewire_ohci sdhci_pci sdhci firewire_core sky2 crc_itu_t led_class usb_storage
    [ 288.112016] EIP is at omnibook_init+0x30/0x194 [omnibook]
    [ 288.112016] [<f85e9224>] ? omnibook_probe+0x54/0x132 [omnibook]
    [ 288.112016] [<f85e929c>] ? omnibook_probe+0xcc/0x132 [omnibook]
    [ 288.112016] [<f85e93e1>] ? omnibook_module_init+0xdf/0x100 [omnibook]
    [ 288.112016] [<f85e9302>] ? omnibook_module_init+0x0/0x100 [omnibook]
    [ 288.112016] EIP: [<f85e906c>] omnibook_init+0x30/0x194 [omnibook] SS:ESP 0068:f2f37e1c
    There seems to have some stuff about the omnibook module that is recognised and/or activated.
    But it is not alright, there's too much disparate lines of text and it does not look like it suppose to be,
    I use the omnibook module at least since jaunty and now that $ dmesg | grep "omnibook" command is not
    showing me the usual info I remember when it installed/compiled without a hitch.


    So here I am. It is not easy for me to understand what is happening. Is it me doing a noob mistake ? or is it more serious ?
    Does the omnibook team is late to update their git trunk against the kernel in maverick ?
    Is it Canonical who's done something breaking compatibility..... ? I don't know. Some help from experienced
    people in the great ubuntu - kubuntu community surely could solve this.

    Oh and when searching for answers I stumble on a post on a website (I didn't bookmarked it ) and that someone said
    something like using `linux-source` with the command `make` instead of the `linux-headers`.
    I don't know how to force the make command to use the full linux source to build stuff. I searched and found nothing.


    I can do the command "make CONFIG_DEBUG_SECTION_MISMATCH=y" and post the results if it can help.
    It produce a long list of detailed warnings



Working...
X