Skip to contentSkip to conversation

Build tests: analogy, blackfin, rtcan and nios2.

Xenomai-core Gilles Chanteperdrix 6 participants 20 messages Dec 22, 2009 – Dec 27, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

So, Alex, could you:
- fix that error, if this combination is supposed to make sense
- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

* blackfin: I finally compiled blackfin! had to build a toolchain for that as the binary-only toolchain from analog.com uses glibc 2.8 and mine is 2.7. However, blackfin does not compile very well, as can be seen by the log:
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.30-bfin-uclinux-gcc-4.1.2/log.html#1
It may happen that my toolchain is buggy or outdated though.

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

* nios2: I am lacking some important file needed to even start to compile.

Thanks in advance for your efforts.
Regards.

Signature · 1 line
					    Gilles.
#1 lore raw
Quoted 14 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

Quoted 8 lines

So, Alex, could you:
- fix that error, if this combination is supposed to make sense
- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

* blackfin: I finally compiled blackfin!

Good. So now you can try fixing the climate.

Quoted 6 lines

had to build a toolchain for
that as the binary-only toolchain from analog.com uses glibc 2.8 and mine is 2.7. However, blackfin does not compile very well, as can be seen by the log:
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.30-bfin-uclinux-gcc-4.1.2/log.html#1
It may happen that my toolchain is buggy or outdated though.

4.1.2 might still have the mcount prologue issue, so no tracer, but aside of this, it seems ok here.

I've just pushed fixes for the NMI braindamage for blackfin.

Quoted 11 lines

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

* nios2: I am lacking some important file needed to even start to compile.

I'm on this.

Quoted 3 lines

Thanks in advance for your efforts.
Regards.

Signature · 1 line
Philippe.
#2 lore raw
In reply to Gilles Chanteperdrix
Quoted 7 lines · Gilles Chanteperdrix

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

CAN_ERR_MASK is part of the Socket-CAN interface (include/linux/can.h), it must not be called differently. Blackfin is obviously doing namespace pollution which should be fixed upstream and meanwhile worked around in Xenomai (e.g. via #undef CAN_ERR_MASK).

Jan

#3 lore raw
Quoted 9 lines · Jan Kiszka
Quoted 7 lines · Gilles Chanteperdrix

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

Quoted 4 lines

CAN_ERR_MASK is part of the Socket-CAN interface (include/linux/can.h), it must not be called differently. Blackfin is obviously doing namespace pollution which should be fixed upstream and meanwhile worked around in Xenomai (e.g. via #undef CAN_ERR_MASK).

Ok. But according to the build logs, it is redefined in rtdm/rtcan.h. The error seems to have been fixed upstream, since we get this warning with 2.6.30 and not with 2.6.31.

Signature · 1 line
					    Gilles.
#4 lore raw
Quoted 9 lines · Gilles Chanteperdrix
Quoted 8 lines · Jan Kiszka
Quoted 7 lines · Gilles Chanteperdrix

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

Quoted 9 lines
Quoted 4 lines

CAN_ERR_MASK is part of the Socket-CAN interface (include/linux/can.h), it must not be called differently. Blackfin is obviously doing namespace pollution which should be fixed upstream and meanwhile worked around in Xenomai (e.g. via #undef CAN_ERR_MASK).

Ok. But according to the build logs, it is redefined in rtdm/rtcan.h. The error seems to have been fixed upstream, since we get this warning with 2.6.30 and not with 2.6.31.

The RT-SocketCAN API is compatible with the SocketCAN API and therefore we should not use different names. And there are much more common defines and names. It is simply stupid to include that header file in a central place. I tend to fix this be adding "#ifndef" to rtnet.h. I will have a closer look later.

Wolfgang.

#5 lore raw
In reply to Gilles Chanteperdrix
Quoted 9 lines · Gilles Chanteperdrix
Quoted 8 lines · Jan Kiszka
Quoted 7 lines · Gilles Chanteperdrix

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

Quoted 8 lines
Quoted 4 lines

CAN_ERR_MASK is part of the Socket-CAN interface (include/linux/can.h), it must not be called differently. Blackfin is obviously doing namespace pollution which should be fixed upstream and meanwhile worked around in Xenomai (e.g. via #undef CAN_ERR_MASK).

Ok. But according to the build logs, it is redefined in rtdm/rtcan.h. The error seems to have been fixed upstream, since we get this warning with 2.6.30 and not with 2.6.31.

Right, the error comes from:

http://lxr.linux.no/#linux+v2.6.32/arch/blackfin/mach-bf537/include/mach/bf537.h#L20

and is in conflict with "include/linux/can/can.h" anyhow.

Wolfgang.

#6 lore raw
Quoted 18 lines · Wolfgang Grandegger
Quoted 9 lines · Gilles Chanteperdrix
Quoted 8 lines · Jan Kiszka
Quoted 7 lines · Gilles Chanteperdrix

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

Quoted 7 lines
Quoted 4 lines

CAN_ERR_MASK is part of the Socket-CAN interface (include/linux/can.h), it must not be called differently. Blackfin is obviously doing namespace pollution which should be fixed upstream and meanwhile worked around in Xenomai (e.g. via #undef CAN_ERR_MASK).

Ok. But according to the build logs, it is redefined in rtdm/rtcan.h. The error seems to have been fixed upstream, since we get this warning with 2.6.30 and not with 2.6.31.

Quoted 5 lines

Right, the error comes from:

http://lxr.linux.no/#linux+v2.6.32/arch/blackfin/mach-bf537/include/mach/bf537.h#L20

and is in conflict with "include/linux/can/can.h" anyhow.

Ok, ok. My question was about rtdm/rtcan.h redefining what is already defined in linux/can.h. Would not it make sense to include linux/can.h instead? Of course, this is not something that needs fixing right now, but would be better on the long run.

Signature · 1 line
					    Gilles.
#7 lore raw
Quoted 20 lines · Gilles Chanteperdrix
Quoted 19 lines · Wolfgang Grandegger
Quoted 9 lines · Gilles Chanteperdrix
Quoted 8 lines · Jan Kiszka
Quoted 7 lines · Gilles Chanteperdrix

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

Quoted 7 lines
Quoted 4 lines

CAN_ERR_MASK is part of the Socket-CAN interface (include/linux/can.h), it must not be called differently. Blackfin is obviously doing namespace pollution which should be fixed upstream and meanwhile worked around in Xenomai (e.g. via #undef CAN_ERR_MASK).

Ok. But according to the build logs, it is redefined in rtdm/rtcan.h. The error seems to have been fixed upstream, since we get this warning with 2.6.30 and not with 2.6.31.

Right, the error comes from:

Quoted 8 lines
Quoted 3 lines

http://lxr.linux.no/#linux+v2.6.32/arch/blackfin/mach-bf537/include/mach/bf537.h#L20

and is in conflict with "include/linux/can/can.h" anyhow.

Ok, ok. My question was about rtdm/rtcan.h redefining what is already defined in linux/can.h. Would not it make sense to include linux/can.h instead? Of course, this is not something that needs fixing right now, but would be better on the long run.

Right. We just need to take care for pre-CAN kernels.

Jan

#8 lore raw
Quoted 23 lines · Jan Kiszka
Quoted 22 lines · Gilles Chanteperdrix
Quoted 21 lines · Wolfgang Grandegger
Quoted 9 lines · Gilles Chanteperdrix
Quoted 8 lines · Jan Kiszka
Quoted 7 lines · Gilles Chanteperdrix

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

Quoted 7 lines
Quoted 4 lines

CAN_ERR_MASK is part of the Socket-CAN interface (include/linux/can.h), it must not be called differently. Blackfin is obviously doing namespace pollution which should be fixed upstream and meanwhile worked around in Xenomai (e.g. via #undef CAN_ERR_MASK).

Ok. But according to the build logs, it is redefined in rtdm/rtcan.h. The error seems to have been fixed upstream, since we get this warning with 2.6.30 and not with 2.6.31.

Right, the error comes from:

http://lxr.linux.no/#linux+v2.6.32/arch/blackfin/mach-bf537/include/mach/bf537.h#L20

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

and is in conflict with "include/linux/can/can.h" anyhow.

Ok, ok. My question was about rtdm/rtcan.h redefining what is already defined in linux/can.h. Would not it make sense to include linux/can.h instead? Of course, this is not something that needs fixing right now, but would be better on the long run.

Right. We just need to take care for pre-CAN kernels.

In wrappers.h, as we do for every other variation of the kernel interface.

Signature · 1 line
					    Gilles.
#10 lore raw
In reply to Gilles Chanteperdrix

Hi Gilles,

Quoted 36 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

So, Alex, could you:
- fix that error, if this combination is supposed to make sense
- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

* blackfin: I finally compiled blackfin! had to build a toolchain for that as the binary-only toolchain from analog.com uses glibc 2.8 and mine is 2.7. However, blackfin does not compile very well, as can be seen by the log:
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.30-bfin-uclinux-gcc-4.1.2/log.html#1
It may happen that my toolchain is buggy or outdated though.

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

Quoted 3 lines

* nios2: I am lacking some important file needed to even start to compile.

You may use this tutorial on how to use Xenomai on NIOS 2 softcore processor: http://uuu.enseirb.fr/~kadionik/nios-xenomai/Xenomai%20on%20NIOS%20II%20Softcore%20Processor.%20A%20step%20by%20step%20Guide.pdf

Regards,

Pat.

Quoted 4 lines

Thanks in advance for your efforts.
Regards.

Signature · 13 lines
Patrice Kadionik. F6KQH / F4CUQ
-----------

+----------------------------------------------------------------------+
+"Tout doit etre aussi simple que possible, pas seulement plus simple" +
+----------------------------------------------------------------------+
+ Patrice Kadionik             http://www.enseirb.fr/~kadionik         +
+ IMS Laboratory               http://www.ims-bordeaux.fr/             +
+ ENSEIRB                      http://www.enseirb.fr                   +
+ PO BOX 99                    fax   : +33 5.56.37.20.23               +
+ 33402 TALENCE Cedex          voice : +33 5.56.84.23.47               +
+ FRANCE                       mailto:[email protected] +
+----------------------------------------------------------------------+
#9 lore raw
In reply to Gilles Chanteperdrix
Quoted 24 lines · Gilles Chanteperdrix
Quoted 23 lines · Jan Kiszka
Quoted 22 lines · Gilles Chanteperdrix
Quoted 21 lines · Wolfgang Grandegger
Quoted 9 lines · Gilles Chanteperdrix
Quoted 8 lines · Jan Kiszka
Quoted 7 lines · Gilles Chanteperdrix

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

Quoted 7 lines
Quoted 4 lines

CAN_ERR_MASK is part of the Socket-CAN interface (include/linux/can.h), it must not be called differently. Blackfin is obviously doing namespace pollution which should be fixed upstream and meanwhile worked around in Xenomai (e.g. via #undef CAN_ERR_MASK).

Ok. But according to the build logs, it is redefined in rtdm/rtcan.h. The error seems to have been fixed upstream, since we get this warning with 2.6.30 and not with 2.6.31.

Right, the error comes from:

http://lxr.linux.no/#linux+v2.6.32/arch/blackfin/mach-bf537/include/mach/bf537.h#L20

Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
Quoted 1 line

and is in conflict with "include/linux/can/can.h" anyhow.

Ok, ok. My question was about rtdm/rtcan.h redefining what is already defined in linux/can.h. Would not it make sense to include linux/can.h instead? Of course, this is not something that needs fixing right now, but would be better on the long run.

Right. We just need to take care for pre-CAN kernels.

In wrappers.h, as we do for every other variation of the kernel interface.

Yes, I'm going to work on RT-Socket-CAN soon anyhow.

Wolfgang.

#11 lore raw
In reply to Gilles Chanteperdrix
Quoted 6 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

Hi,

I've watched your log file for nios2 (http://sisyphus.hd.free.fr/~gilles/bx/nios2/2.6.30-nios2-linux-uclibc-gcc-3.4.6/log.html#1). You have this error because you don't have generated before the HW design for the NIOS softcore processor: after synthesis with the Quartus Altera tools, you finally have a file for programming the FPGA circuit and a .ptf file that gives ASCII informations on your SoPC design (in a xml style...). The error:
./arch/nios2/Makefile:131: *** Run "make hwselect SYSPTF=<system.ptf>" first. Stop.
is due to lack of this .ptf file.
This command generates a .h (nios2.h) file that makes relation between hardware and the Linux kernel (peripheral base address, irq number, peripheral name...)
Please find here: http://uuu.enseirb.fr/~kadionik/nios-xenomai/std_1s10.ptf
a valid .ptf file for Xenomai port.
Juste run :

$ make hwselect SYSPTF=path_to_std_1s10.ptf
for completing the kernel compilation...

Pat.

Quoted 36 lines

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

So, Alex, could you:
- fix that error, if this combination is supposed to make sense
- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

* blackfin: I finally compiled blackfin! had to build a toolchain for that as the binary-only toolchain from analog.com uses glibc 2.8 and mine is 2.7. However, blackfin does not compile very well, as can be seen by the log:
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.30-bfin-uclinux-gcc-4.1.2/log.html#1
It may happen that my toolchain is buggy or outdated though.

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

* nios2: I am lacking some important file needed to even start to compile.

Thanks in advance for your efforts.
Regards.

Signature · 13 lines
Patrice Kadionik. F6KQH / F4CUQ
-----------

+----------------------------------------------------------------------+
+"Tout doit etre aussi simple que possible, pas seulement plus simple" +
+----------------------------------------------------------------------+
+ Patrice Kadionik             http://www.enseirb.fr/~kadionik         +
+ IMS Laboratory               http://www.ims-bordeaux.fr/             +
+ ENSEIRB                      http://www.enseirb.fr                   +
+ PO BOX 99                    fax   : +33 5.56.37.20.23               +
+ 33402 TALENCE Cedex          voice : +33 5.56.84.23.47               +
+ FRANCE                       mailto:[email protected] +
+----------------------------------------------------------------------+
#13 lore raw
In reply to Gilles Chanteperdrix

Hi Gilles,

Quoted 14 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

Quoted 2 lines

So, Alex, could you:
- fix that error, if this combination is supposed to make sense

Yes it makes sense. I think the MITE is integrated into all PCI boards but the driver should work with the MITE disabled (one day, we could add the ISA boards).

Quoted 4 lines

- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

Ack. I will fix these problems as quickly as possible.

Quoted 16 lines

* blackfin: I finally compiled blackfin! had to build a toolchain for that as the binary-only toolchain from analog.com uses glibc 2.8 and mine is 2.7. However, blackfin does not compile very well, as can be seen by the log:
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.30-bfin-uclinux-gcc-4.1.2/log.html#1
It may happen that my toolchain is buggy or outdated though.

* rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something like XN seems to be asking for trouble. Wolfgang, do you think it would be possible to rename the symbols with such prefix? Or do you share some code with socket-can that you do not want to touch?

Quoted 5 lines

* nios2: I am lacking some important file needed to even start to compile.

Thanks in advance for your efforts.
Regards.

Alexis.

#12 lore raw
In reply to Patrice Kadionik
Quoted 26 lines · Patrice Kadionik
Quoted 6 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

Hi,

I've watched your log file for nios2
(http://sisyphus.hd.free.fr/~gilles/bx/nios2/2.6.30-nios2-linux-uclibc-gcc-3.4.6/log.html#1).
You have this error because you don't have generated before the HW design for the NIOS softcore processor: after synthesis with the Quartus Altera tools, you finally have a file for programming the FPGA circuit and a .ptf file that gives ASCII informations on your SoPC design (in a xml style...).
The error:
./arch/nios2/Makefile:131: *** Run "make hwselect SYSPTF=<system.ptf>" first. Stop.
is due to lack of this .ptf file.
This command generates a .h (nios2.h) file that makes relation between hardware and the Linux kernel (peripheral base address, irq number, peripheral name...)
Please find here: http://uuu.enseirb.fr/~kadionik/nios-xenomai/std_1s10.ptf
a valid .ptf file for Xenomai port.
Juste run :

Quoted 2 lines
$ make hwselect SYSPTF=path_to_std_1s10.ptf
for completing the kernel compilation...

Ok. Thanks, nios2 now compiles.

Signature · 1 line
					    Gilles.
#14 lore raw
In reply to Alexis Berlemont
Quoted 19 lines · Alexis Berlemont

Hi Gilles,

Quoted 14 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

Quoted 2 lines

So, Alex, could you:
- fix that error, if this combination is supposed to make sense

Quoted 8 lines

Yes it makes sense. I think the MITE is integrated into all PCI boards but the driver should work with the MITE disabled (one day, we could add the ISA boards).

Quoted 4 lines

- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

Ack. I will fix these problems as quickly as possible.

Ok. The fix for the second problem would be nice to have soon, as analogy breaks the build on blackfin for this reason. If it is of any help, you can send me a patch for this fix only which I will apply on my side while you are working on other changes.

Signature · 1 line
					    Gilles.
#15 lore raw

Hi Gilles,

Quoted 27 lines · Gilles Chanteperdrix
Quoted 26 lines · Alexis Berlemont

Hi Gilles,

Quoted 14 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

Quoted 2 lines

So, Alex, could you:
- fix that error, if this combination is supposed to make sense

Yes it makes sense. I think the MITE is integrated into all PCI boards but the driver should work with the MITE disabled (one day, we could add the ISA boards).

Quoted 4 lines

- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

Quoted 7 lines
Quoted 1 line

Ack. I will fix these problems as quickly as possible.

Ok. The fix for the second problem would be nice to have soon, as analogy breaks the build on blackfin for this reason. If it is of any help, you can send me a patch for this fix only which I will apply on my side while you are working on other changes.

I modified the common part of the NI driver so that the PCI code can be disabled without any compilation issues.

I made a pull request which contains the fixes.

Merry Christmas.

Alexis.

#16 lore raw
Quoted 37 lines · Alexis Berlemont

Hi Gilles,

Quoted 27 lines · Gilles Chanteperdrix
Quoted 26 lines · Alexis Berlemont

Hi Gilles,

Quoted 14 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

Quoted 2 lines

So, Alex, could you:
- fix that error, if this combination is supposed to make sense

Yes it makes sense. I think the MITE is integrated into all PCI boards but the driver should work with the MITE disabled (one day, we could add the ISA boards).

Quoted 4 lines

- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

Quoted 6 lines
Quoted 1 line

Ack. I will fix these problems as quickly as possible.

Ok. The fix for the second problem would be nice to have soon, as analogy breaks the build on blackfin for this reason. If it is of any help, you can send me a patch for this fix only which I will apply on my side while you are working on other changes.

Quoted 4 lines

I modified the common part of the NI driver so that the PCI code can be disabled without any compilation issues.

I made a pull request which contains the fixes.

Thanks, but well, the compilation still fails on blackfin:
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.30-bfin-uclinux-gcc-4.1.2/log.html#13

And we get a new warning on most platforms (x86 and powerpc, and ixp4xx, which is an ARM with PCI support).

Signature · 1 line
					    Gilles.
#17 lore raw
Quoted 38 lines · Gilles Chanteperdrix
Quoted 37 lines · Alexis Berlemont

Hi Gilles,

Quoted 33 lines · Gilles Chanteperdrix
Quoted 19 lines · Alexis Berlemont

Hi Gilles,

Quoted 14 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

Quoted 2 lines

So, Alex, could you:
- fix that error, if this combination is supposed to make sense

Quoted 8 lines

Yes it makes sense. I think the MITE is integrated into all PCI boards but the driver should work with the MITE disabled (one day, we could add the ISA boards).

Quoted 4 lines

- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

Ack. I will fix these problems as quickly as possible.

Ok. The fix for the second problem would be nice to have soon, as analogy breaks the build on blackfin for this reason. If it is of any help, you can send me a patch for this fix only which I will apply on my side while you are working on other changes.

Quoted 8 lines
Quoted 4 lines

I modified the common part of the NI driver so that the PCI code can be disabled without any compilation issues.

I made a pull request which contains the fixes.

Thanks, but well, the compilation still fails on blackfin:
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.30-bfin-uclinux-gcc-4.1.2/log.html#13

This is because arch/blackfin/include/asm/pci.h does not include asm-generic/pci-dma-compat.h in 2.6.30 yet. Upstream fixed this is 2.6.31.

So either we patch in some ugliness like below, or I issue a revised pipeline patch for 2.6.30.6 which fixes this upstream bug.

include/asm-blackfin/wrappers.h +5 -0
index 6556e74..6111f64 100644
@@ -27,6 +27,11 @@
 #include <asm-generic/xenomai/wrappers.h> /* Read the generic portion. */
 #include <linux/interrupt.h>
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#include <linux/pci.h>
+#include <asm-generic/pci-dma-compat.h>
+#endif
+
 #define wrap_phys_mem_prot(filp,pfn,size,prot)	(prot)
 
 #define wrap_strncpy_from_user(dstP, srcP, n)	strncpy_from_user(dstP, srcP, n)
Quoted 3 lines

And we get a new warning on most platforms (x86 and powerpc, and ixp4xx, which is an ARM with PCI support).

Signature · 1 line
Philippe.
#18 lore raw
Quoted 46 lines · Philippe Gerum
Quoted 37 lines · Gilles Chanteperdrix
Quoted 36 lines · Alexis Berlemont

Hi Gilles,

Quoted 33 lines · Gilles Chanteperdrix
Quoted 19 lines · Alexis Berlemont

Hi Gilles,

Quoted 14 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

Quoted 2 lines

So, Alex, could you:
- fix that error, if this combination is supposed to make sense

Quoted 8 lines

Yes it makes sense. I think the MITE is integrated into all PCI boards but the driver should work with the MITE disabled (one day, we could add the ISA boards).

Quoted 4 lines

- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

Ack. I will fix these problems as quickly as possible.

Ok. The fix for the second problem would be nice to have soon, as analogy breaks the build on blackfin for this reason. If it is of any help, you can send me a patch for this fix only which I will apply on my side while you are working on other changes.

Quoted 7 lines
Quoted 4 lines

I modified the common part of the NI driver so that the PCI code can be disabled without any compilation issues.

I made a pull request which contains the fixes.

Thanks, but well, the compilation still fails on blackfin:
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.30-bfin-uclinux-gcc-4.1.2/log.html#13

Quoted 6 lines

This is because arch/blackfin/include/asm/pci.h does not include asm-generic/pci-dma-compat.h in 2.6.30 yet. Upstream fixed this is 2.6.31.

So either we patch in some ugliness like below, or I issue a revised pipeline patch for 2.6.30.6 which fixes this upstream bug.

Ok. As you wish. Could you also have a look at the bf561 compilation? It seems rtdm gets undefined references to some rthal_atomic* operations.
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.31-bfin-uclinux-gcc-4.1.2/log.html#1

Signature · 1 line
					    Gilles.
#19 lore raw
Quoted 51 lines · Gilles Chanteperdrix
Quoted 50 lines · Philippe Gerum
Quoted 37 lines · Gilles Chanteperdrix
Quoted 36 lines · Alexis Berlemont

Hi Gilles,

Quoted 33 lines · Gilles Chanteperdrix
Quoted 19 lines · Alexis Berlemont

Hi Gilles,

Quoted 14 lines · Gilles Chanteperdrix

Hi,

Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same
place: http://sisyphus.hd.free.fr/~gilles/bx):

* analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI, as compiling parts using PCI on a machine without PCI support, give various levels of warning and even errors depending on the architecture. Doing this, I stumbled across this compilation error:
http://sisyphus.hd.free.fr/~gilles/bx/beagle/2.6.28-arm-none-linux-gnueabi-gcc-4.3.3/log.html#1
this is with CONFIG_NI_MIO, but without CONFIG_NI_MITE.

Quoted 2 lines

So, Alex, could you:
- fix that error, if this combination is supposed to make sense

Quoted 8 lines

Yes it makes sense. I think the MITE is integrated into all PCI boards but the driver should work with the MITE disabled (one day, we could add the ISA boards).

Quoted 4 lines

- fix the Kconfig/Makefile so that no PCI code is compiled if CONFIG_PCI is not set (I tried and do this myself, but better one who knows than 100 who have to search...). As I said, doing this result in various levels of success depending on the architecture.

Ack. I will fix these problems as quickly as possible.

Ok. The fix for the second problem would be nice to have soon, as analogy breaks the build on blackfin for this reason. If it is of any help, you can send me a patch for this fix only which I will apply on my side while you are working on other changes.

Quoted 7 lines
Quoted 4 lines

I modified the common part of the NI driver so that the PCI code can be disabled without any compilation issues.

I made a pull request which contains the fixes.

Thanks, but well, the compilation still fails on blackfin:
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.30-bfin-uclinux-gcc-4.1.2/log.html#13

This is because arch/blackfin/include/asm/pci.h does not include asm-generic/pci-dma-compat.h in 2.6.30 yet. Upstream fixed this is 2.6.31.

Quoted 7 lines
Quoted 2 lines

So either we patch in some ugliness like below, or I issue a revised pipeline patch for 2.6.30.6 which fixes this upstream bug.

Ok. As you wish. Could you also have a look at the bf561 compilation? It seems rtdm gets undefined references to some rthal_atomic* operations.
http://sisyphus.hd.free.fr/~gilles/bx/bf537-stamp/2.6.31-bfin-uclinux-gcc-4.1.2/log.html#1

Missing exports. Will fix.

Signature · 1 line
Philippe.