* [Buildroot] Prelim RTAI integration help needed [not found] <541305813.2396.1283840257891.JavaMail.root@her-mx1> @ 2010-09-07 6:44 ` Herman Theron 2010-09-07 7:37 ` Thomas Petazzoni 0 siblings, 1 reply; 5+ messages in thread From: Herman Theron @ 2010-09-07 6:44 UTC (permalink / raw) To: buildroot Hi Everybody I'm currently trying to integrate RTAI into buildroot (which is the last hurdle to use buildroot for our embedded data logging systems). I've got a basic setup compiling and would like to share it with the Buildroot community. I've attached rtai.mk which allows me to compile and install RTAI. This is still in infancy, and I would like to get help from the buildroot community. (Please note that this is the minimum requirements for my project, so a lot of stuff is disabled). There is some issues to get RTAI compiling under buildroot: #1 You need to first build a linux kernel with an appropriate RTAI kernel patch. Then you can select RTAI and run make again. #2 When compiling any of the kernel modules, make complains of "unknown option: --sysroot" and exits with an error. I've found that by deleting all the "--sysroot=...." text in the corresponding makefiles, that I was then able to get the compiler going. In the makefile I have made use of the POST_CONFIGURE_HOOK to delete occurrences of "--sysroot" from the GNUmakefile that is giving an error. Question: is this the best way to do it? Any suggestions? #3 When installing to the staging area, RTAI expects $(STAGING_DIR)/usr/include/asm to be a symlink to $(STAGING_DIR)/usr/include/asm-i386 (for x86 architecture). Currently, $(STAGING_DIR)/usr/include is directory with .h files, and $(STAGING_DIR)/usr/include/asm-i386 is non-existent. I had to create $(STAGING_DIR)/usr/include/asm-i386 by hand, move the files from the "asm" directory to it, delete the "asm", create a softlink from "asm" to "asm-i386". Question, what will be the best way to handle this? In rtai.mk, a patch for RTAI? I would appreciate any help on this. Thanks! Herman Theron -------------- next part -------------- A non-text attachment was scrubbed... Name: rtai.mk Type: application/octet-stream Size: 2241 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100907/72b545d7/attachment.obj> ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Prelim RTAI integration help needed 2010-09-07 6:44 ` [Buildroot] Prelim RTAI integration help needed Herman Theron @ 2010-09-07 7:37 ` Thomas Petazzoni 2010-09-07 7:54 ` Herman Theron 0 siblings, 1 reply; 5+ messages in thread From: Thomas Petazzoni @ 2010-09-07 7:37 UTC (permalink / raw) To: buildroot Hello Herman, On Tue, 7 Sep 2010 08:44:45 +0200 (SAST) Herman Theron <htheron@hmo.ac.za> wrote: > I'm currently trying to integrate RTAI into buildroot (which is the > last hurdle to use buildroot for our embedded data logging systems). > I've got a basic setup compiling and would like to share it with the > Buildroot community. I've attached rtai.mk which allows me to compile > and install RTAI. This is still in infancy, and I would like to get > help from the buildroot community. (Please note that this is the > minimum requirements for my project, so a lot of stuff is disabled). Great! > There is some issues to get RTAI compiling under buildroot: > > #1 You need to first build a linux kernel with an appropriate RTAI > kernel patch. Then you can select RTAI and run make again. In general, we currently don't really have a good common way of handling stuff such as RTAI which require kernel patches, so the fact that you're having issues with this does not surprise me. > #2 When compiling any of the kernel modules, make complains of > "unknown option: --sysroot" and exits with an error. I've found that > by deleting all the "--sysroot=...." text in the corresponding > makefiles, that I was then able to get the compiler going. In the > makefile I have made use of the POST_CONFIGURE_HOOK to delete > occurrences of "--sysroot" from the GNUmakefile that is giving an > error. Question: is this the best way to do it? Any suggestions? Which toolchain are you using ? > #3 When installing to the staging area, RTAI expects > $(STAGING_DIR)/usr/include/asm to be a symlink to > $(STAGING_DIR)/usr/include/asm-i386 (for x86 architecture). > Currently, $(STAGING_DIR)/usr/include is directory with .h files, and > $(STAGING_DIR)/usr/include/asm-i386 is non-existent. I had to create > $(STAGING_DIR)/usr/include/asm-i386 by hand, move the files from the > "asm" directory to it, delete the "asm", create a softlink from "asm" > to "asm-i386". Question, what will be the best way to handle this? In > rtai.mk, a patch for RTAI? Again, which toolchain are you using ? The one generated by Buildroot ? An external toolchain, and if so, which one ? Regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Prelim RTAI integration help needed 2010-09-07 7:37 ` Thomas Petazzoni @ 2010-09-07 7:54 ` Herman Theron 2010-09-07 8:29 ` Thomas Petazzoni 0 siblings, 1 reply; 5+ messages in thread From: Herman Theron @ 2010-09-07 7:54 UTC (permalink / raw) To: buildroot Hi Thomas, I'm using the internal buildroot toolchain, standard gcc (version 4.3.5?) from 2010.08 Regarding first compiling the kernel before RTAI: is it possible to set the kernel as a dependency for RTAI to ensure that it is build before RTAI? Or is the dependencies just for packages? Regards, Herman -----Original Message----- From: buildroot-bounces@busybox.net [mailto:buildroot-bounces at busybox.net] On Behalf Of Thomas Petazzoni Sent: 07 September 2010 09:38 AM To: buildroot at busybox.net Subject: Re: [Buildroot] Prelim RTAI integration help needed Hello Herman, On Tue, 7 Sep 2010 08:44:45 +0200 (SAST) Herman Theron <htheron@hmo.ac.za> wrote: > I'm currently trying to integrate RTAI into buildroot (which is the > last hurdle to use buildroot for our embedded data logging systems). > I've got a basic setup compiling and would like to share it with the > Buildroot community. I've attached rtai.mk which allows me to compile > and install RTAI. This is still in infancy, and I would like to get > help from the buildroot community. (Please note that this is the > minimum requirements for my project, so a lot of stuff is disabled). Great! > There is some issues to get RTAI compiling under buildroot: > > #1 You need to first build a linux kernel with an appropriate RTAI > kernel patch. Then you can select RTAI and run make again. In general, we currently don't really have a good common way of handling stuff such as RTAI which require kernel patches, so the fact that you're having issues with this does not surprise me. > #2 When compiling any of the kernel modules, make complains of > "unknown option: --sysroot" and exits with an error. I've found that > by deleting all the "--sysroot=...." text in the corresponding > makefiles, that I was then able to get the compiler going. In the > makefile I have made use of the POST_CONFIGURE_HOOK to delete > occurrences of "--sysroot" from the GNUmakefile that is giving an > error. Question: is this the best way to do it? Any suggestions? Which toolchain are you using ? > #3 When installing to the staging area, RTAI expects > $(STAGING_DIR)/usr/include/asm to be a symlink to > $(STAGING_DIR)/usr/include/asm-i386 (for x86 architecture). > Currently, $(STAGING_DIR)/usr/include is directory with .h files, and > $(STAGING_DIR)/usr/include/asm-i386 is non-existent. I had to create > $(STAGING_DIR)/usr/include/asm-i386 by hand, move the files from the > "asm" directory to it, delete the "asm", create a softlink from "asm" > to "asm-i386". Question, what will be the best way to handle this? In > rtai.mk, a patch for RTAI? Again, which toolchain are you using ? The one generated by Buildroot ? An external toolchain, and if so, which one ? Regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Prelim RTAI integration help needed 2010-09-07 7:54 ` Herman Theron @ 2010-09-07 8:29 ` Thomas Petazzoni 2010-09-07 9:08 ` Herman Theron 0 siblings, 1 reply; 5+ messages in thread From: Thomas Petazzoni @ 2010-09-07 8:29 UTC (permalink / raw) To: buildroot Hello, On Tue, 7 Sep 2010 09:54:02 +0200 (SAST) "Herman Theron" <htheron@hmo.ac.za> wrote: > I'm using the internal buildroot toolchain, standard gcc (version > 4.3.5?) from 2010.08 Ah. Then your problems 2/ and 3/ are quite strange. I'll try to reproduce them. > Regarding first compiling the kernel before RTAI: is it possible to > set the kernel as a dependency for RTAI to ensure that it is build > before RTAI? Or is the dependencies just for packages? You can do : RTAI_DEPENDENCIES = linux26 However, this will make sure than Linux gets build prior to RTAI, but not that RTAI patches are applied to the kernel. Regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Prelim RTAI integration help needed 2010-09-07 8:29 ` Thomas Petazzoni @ 2010-09-07 9:08 ` Herman Theron 0 siblings, 0 replies; 5+ messages in thread From: Herman Theron @ 2010-09-07 9:08 UTC (permalink / raw) To: buildroot Hi Thomas, Please let me know if I must send you specific config files, etc to be able to reproduce the problem. Thanks Herman -----Original Message----- From: buildroot-bounces@busybox.net [mailto:buildroot-bounces at busybox.net] On Behalf Of Thomas Petazzoni Sent: 07 September 2010 10:29 AM To: buildroot at busybox.net Subject: Re: [Buildroot] Prelim RTAI integration help needed Hello, On Tue, 7 Sep 2010 09:54:02 +0200 (SAST) "Herman Theron" <htheron@hmo.ac.za> wrote: > I'm using the internal buildroot toolchain, standard gcc (version > 4.3.5?) from 2010.08 Ah. Then your problems 2/ and 3/ are quite strange. I'll try to reproduce them. > Regarding first compiling the kernel before RTAI: is it possible to > set the kernel as a dependency for RTAI to ensure that it is build > before RTAI? Or is the dependencies just for packages? You can do : RTAI_DEPENDENCIES = linux26 However, this will make sure than Linux gets build prior to RTAI, but not that RTAI patches are applied to the kernel. Regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-09-07 9:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <541305813.2396.1283840257891.JavaMail.root@her-mx1>
2010-09-07 6:44 ` [Buildroot] Prelim RTAI integration help needed Herman Theron
2010-09-07 7:37 ` Thomas Petazzoni
2010-09-07 7:54 ` Herman Theron
2010-09-07 8:29 ` Thomas Petazzoni
2010-09-07 9:08 ` Herman Theron
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox