insmod: error inserting './xeno_posix.ko': -1 Unknown symbol in module
Hi,
Thanks for all reactions Ulrich, Heikki and Gilles....
Ok i got it running. The loading of xeno_hal goes ok.
Lsmod gives the module correctly, I can also unload it and reload it. So no problems there.
Loading the other modules still give the error -1 Unknown symbol. The dmesg output is as described in the text output I attached earlier.
What module is used for what and when ? or where can I find that info ? Do all of the modules have to be loaded ? or just a few ? or only 1 ? Or depending on application ?
Is the order in which the modules are loaded defined or can they be loaded at random order ?
Best regards,
Martijn
Martijn Hazenberg (GOVA) kirjoitti:
Quoted 8 lines
Hi,
Thanks for all reactions Ulrich, Heikki and Gilles....
Ok i got it running. The loading of
xeno_halgoes ok.
Lsmod gives the module correctly, I can also unload it and reload it. So no problems there.
Quoted 6 lines
Loading the other modules still give the error -1 Unknown symbol. The dmesg output is as described in the text output I attached earlier.
What module is used for what and when ? or where can I find that info ? Do all of the modules have to be loaded ? or just a few ? or only 1 ? Or depending on application ?
xeno_hal provides the basic, most low-level services mostly coming from i-pipe/adeos. xeno_nucleus provides the RTOS services for the RTOS skins. xeno_native/posix/rtdm are skins that use nucleus' services to provide RTOS APIs - are driver APIs in case of rtdm.
Quoted 2 lines
Is the order in which the modules are loaded defined or can they be loaded at random order ?
Not random. First hal, then nucleus, then any of the skins. I have no experience with the 16550 serial module, though, and don't remember whether it was converted to use RTDM or not. If it wasn't, it'll probably come after hal, if you need it.
-- Heikki Lindholm
Quoted 9 lines · Heikki Lindholm
Quoted 4 lines
Is the order in which the modules are loaded defined or can they be loaded
at random order ?Not random. First hal, then nucleus, then any of the skins. I have no experience with the 16550 serial module, though, and don't remember whether it was converted to use RTDM or not. If it wasn't, it'll probably come after hal, if you need it.
xeno_16550A is built on top of RTDM, so you need xeno_rtdm loaded first. BTW, you can typically guess what module is missing by looking at the unresolved symbol warnings in the kernel log. In case of 16550A, you would get a bulk of unknown rtdm_xyz.
Jan
Ok...
Installing the modules in this order :
xeno_halxeno_nucleusxeno_native
lsmod gives all three loaded...
Running the normal latency with ./run
crashes the pc.
Restarting and running the switch test, also crashes the pc, leaving nothing else then just to restart....
Slowly but certain we're getting somewhere...
Best regards,
Martijn
Martijn Hazenberg (GOVA) kirjoitti:
Quoted 8 lines
Ok...
Installing the modules in this order :
xeno_halxeno_nucleusxeno_native
Quoted 7 lines
lsmod gives all three loaded...
Running the normal latency with ./run
crashes the pc.
Restarting and running the switch test, also crashes the pc, leaving nothing else then just to restart....
Yikes. I'm no x86 expert, so can't help much there. You could try if the
APICs are causing the trouble by disabling local APIC altogether from
kernel config.
-- hl
Quoted 8 lines · Martijn Hazenberg (GOVA)
Ok...
Installing the modules in this order :
xeno_halxeno_nucleusxeno_native
Quoted 7 lines
lsmod gives all three loaded...
Running the normal latency with ./run
crashes the pc.
Restarting and running the switch test, also crashes the pc, leaving nothing else then just to restart....
It is hard to know why your system crashes. This may be due to some kernel configuration options. According to your boot log, you enabled the "processor" option in ACPI (CONFIG_ACPI_PROCESSOR), you should disable it (you will have to disable thermal zone too). As mentioned by Heikki, you may try disabling APIC too.
If you get an error message on the console (you have run latency in text-mode for that), it will be of great help.
Signature · 1 line
Gilles Chanteperdrix.
RE: FW: [Xenomai-help] insmod: error inserting './xeno_posix.ko':-1 Unknown symbol in module
Hi,
I have deselected the ACPI which is the power management stuff..
When I startup, in dmesg I see :
Local APIC disabled by bios. You can enable it with lapic Mapped apic to ffffd000
This means that the APIC is turned off by bios... so far so good...
The only lines containing APIC in the .config of the kernel are :
CONFIG_X86_GOOD_APIC=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=y
I have no idea where these options are in the make menuconfig menu. When I manually change the y to a n, recompile the kernel and check again, the options are turned back to y.
Am I missing something here ?
Any help is much appreciated !
Best regards,
Martijn
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]
Sent: donderdag 8 december 2005 13:54
To: Martijn Hazenberg (GOVA)
Cc: 'Heikki Lindholm'; [email protected]
Subject: RE: FW: [Xenomai-help] insmod: error inserting './xeno_posix.ko':-1 Unknown symbol in module
It is hard to know why your system crashes. This may be due to some kernel configuration options. According to your boot log, you enabled the "processor" option in ACPI (CONFIG_ACPI_PROCESSOR), you should disable it (you will have to disable thermal zone too). As mentioned by Heikki, you may try disabling APIC too.
If you get an error message on the console (you have run latency in text-mode for that), it will be of great help.
Signature · 1 line
Gilles Chanteperdrix.
Re: FW: [Xenomai-help] insmod: error inserting './xeno_posix.ko':-1 Unknown symbol in module
Martijn Hazenberg (GOVA) kirjoitti:
Quoted 11 lines
Hi,
I have deselected the ACPI which is the power management stuff..
When I startup, in dmesg I see :
Local APIC disabled by bios. You can enable it with lapic Mapped apic to
ffffd000This means that the APIC is turned off by bios... so far so good...
Quoted 7 lines
The only lines containing APIC in the .config of the kernel are :
CONFIG_X86_GOOD_APIC=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yI have no idea where these options are in the make menuconfig menu. When I
(c'mon...)
Processor type and features --->
Local APIC support on uniprocessors
-- hl