Jump to content
Форум по продукции MOXA

Furax

Пользователи
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Furax

  1. Доброго времени суток!

     

    Имеется две железки: da-683 и nport 6650; соответственно, на первую нужно пробросить порты второй в real com mode. Не получается собрать драйвер npreal2 1.18 на da-683 (debian 5.0): не могу разобраться, где взять заголовки ядра для компиляции драйвера. uname -a выдаёт:

    Linux Moxa 2.6.32 #1 SMP Thu Nov 18 13:13:04 CST 2010 i686 GNU/Linux

     

    Что делаю (возможно, неправильно): устанавливаю пакет linux-sources-2.6.32, распаковываю архив, копирую туда .config из /boot, делаю make modules_prepare (в процессе находит штук 10 NEW-параметров, хотя версии ядра совпадают, - соглашаюсь на значения по умолчанию), прописываю мягкую ссылку на них с пути /lib/modules/2.6.32/build и запускаю mxinst. Он выдаёт:

    Moxa:/tmp/moxa# ./mxinst
    
    ===============================================================================
    Copyright (C) 2002-2012 Moxa Inc.
    All Rights Reserved.
    
    MOXA NPort Server Real TTY Driver V1.18 Installation.
    System Imformation: Kernel 2.6.32; Machine i686.
    ===============================================================================
    
    
    Tar files, please wait ... OK!
    Building driver...
    
    If you want to use secure communication with target,
    you might choose [y] to enable the SSL function.
    Note: This function support RealCOM with secure mode only.
    Do you want to enable secure function? [y/N].
    n
    make -C /lib/modules/2.6.32/build SUBDIRS=/tmp/moxa modules
    make[1]: Entering directory `/usr/src/linux-2.6.32'
    
    WARNING: Symbol version dump /usr/src/linux-2.6.32/Module.symvers
    is missing; modules will have no dependencies and modversions.
    
    CC [M] /tmp/moxa/npreal2.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /tmp/moxa/npreal2.mod.o
    LD [M] /tmp/moxa/npreal2.ko
    make[1]: Leaving directory `/usr/src/linux-2.6.32'
    cp -p npreal2.ko /lib/modules/2.6.32/kernel/drivers/char/
    depmod -a
    Check Driver...
    Copying configurations files ... OK!
    Copying driver files ... OK!
    Load driver...
    FATAL: Error inserting npreal2 (/lib/modules/2.6.32/kernel/drivers/char/npreal2.ko): Invalid module format
    
    Failed!!! please contact the provider

    В логах оседает следующее:

    Jun 27 16:15:29 Moxa kernel: [ 7148.702564] npreal2: no symbol version for module_layout

     

    О версиях ядра и исходников говорит следующее:

     

    Moxa:/# dpkg -s linux-image-2.6.32
    Package: linux-image-2.6.32
    Status: install ok installed
    Priority: optional
    Section: admin
    Installed-Size: 82696
    Maintainer: Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>
    Architecture: i386
    Source: linux-source-2.6.32
    Version: 2.6.32-10.00.Custom
    Provides: linux-image, linux-image-2.6
    Depends: initramfs-tools (>= 0.53) | yaird (>= 0.0.11) | linux-initramfs-tool, coreutils (>= 5.96)
    Pre-Depends: debconf (>= 0.2.17) | debconf-2.0
    Suggests: lilo (>= 19.1) | grub, fdutils, linux-doc-2.6.32 | linux-source-2.6.32, ksymoops
    Description: Linux kernel binary image for version 2.6.32
    This package contains the Linux kernel image for version
    2.6.32.
    .
    It also contains the corresponding System.map file, and the modules
    built by the packager.  It also contains scripts that try to ensure
    that the system is not left in a unbootable state after an update.
    .
    Kernel image packages are generally produced using kernel-package,
    and it is suggested that you install that package if you wish to
    create a custom kernel from the sources. Please look at kernel-img.conf(5),
    and /usr/share/doc/kernel-package/README.gz  from the package kernel-package
    for details on how to tailor the  installation of this or any other kernel
    image package
    Moxa:/# dpkg -s linux-source-2.6.32
    Package: linux-source-2.6.32
    Status: install ok installed
    Priority: optional
    Section: kernel
    Installed-Size: 63780
    Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
    Architecture: all
    Source: linux-2.6
    Version: 2.6.32-35~bpo50+1
    Provides: linux-source, linux-source-2.6
    Depends: binutils, bzip2
    Recommends: libc6-dev | libc-dev, gcc, make
    Suggests: libncurses-dev | ncurses-dev, kernel-package, libqt3-mt-dev
    Description: Linux kernel source for version 2.6.32 with Debian patches
    This package provides source code for the Linux kernel version 2.6.32.
    This source closely tracks official Linux kernel releases.  Debian's
    modifications to that source consist of security fixes, bug fixes, and
    features that have already been (or are believed to be) accepted by the
    upstream maintainers.
    

    Подскажите, пожалуйста, как правильно собрать драйвер? Где взять файлы ядра? Спасибо.

×
×
  • Create New...