2008-02-15 14:29:25 Adeos and Xenomai on uclinux 2008R1-RC1
Diana Hecht (UNITED STATES)
Message: 51120
Hello,
I have been trying to get a combination of Xenomai/Adeos/uclinux 2008R1-RC1 to the point I can run the Xenomai Latency testsuite program on a BF537 stamp board. I have included the combination of releases I am using at the end of this message.
I have encountered two major issues with this effort:
1) the Adeos patch that comes with uclinux 2008R1-RC1 seems to be based on an earlier version of the file 2008R1-RC1\linux-2.6.x\arch\blackfin\kernel\bfin_gpio.c than what is included in the 2008R1-RC1 release (from SVN Tag directory). The patch is expecting a bunch of BUG-ON statements that are not in the file. I remedied this by editing the patch file to match the bfin_gpio.c file that is included and everything seems fine.
2) I have followed the Xenomai installation instructions from:
http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:adeos
Everything builds fine and I am able to download everything to the stamp board and boot linux. The problem comes when i try to run the latency program. (/usr/xenomai/bin/latency). When I try to run it, I get the error “./latency: can’t load library ‘libnative.so.1’. I do see that file in the directory /usr/xenomai/lib and I have tried adding that directory to the Path but it doesn’t help.
I am using the following:
svn://sources.blackfin.uclinux.org/toolchain/trunk
svn://sources.blackfin.uclinux.org/u-boot/tags/2008R1-RC1
svn://sources.blackfin.uclinux.org/uclinux-dist/tags/2008R1-RC1
Xenomai 2.4.0
Any help you can offer would be greatly appreciated. I have already searched the FAQ, and bug-lists.
thanks,
Diana
QuoteReplyEditDelete
2008-02-15 14:55:06 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Mike Frysinger (UNITED STATES)
Message: 51122 most likely the patch has not been updated for 2008R1 yet
QuoteReplyEditDelete
2008-02-15 15:06:11 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Diana Hecht (UNITED STATES)
Message: 51124 I'm assuming you are referring to the 1) adeos patch issue. This one I solved......I included it here so it could be fixed before an "official" release.
My real problem is the one in 2) . I don't know why it can't load the library mentioned and I don't know where to begin to start trying to fix the problem.
Any suggestions would really be welcomed.
thanks,
Diana
QuoteReplyEditDelete
2008-02-15 15:53:46 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Mike Frysinger (UNITED STATES)
Message: 51126 the xenomai ABI changed i believe ... it is now libnative.so.2 which means any app linking against libnative.so.1 needs to be rebuilt
Yi will probably know more as he's the xenomai expert
QuoteReplyEditDelete
2008-02-18 09:34:39 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Diana Hecht (UNITED STATES)
Message: 51199 Hi,
I built the testsuite using the script as described in:
http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:adeos
I am at a stopping point without more information. The message says that it is actually looking for libnative.so.1 which is there in the /lib directory in the filesystem downloaded to the stamp board. There isn't a libnative.so.2 file that was placed in the embedded filesystem. This leaves me to believe that this version of Xenomai (2.4.0) does use the libnative.so.1. file. Please correct me if I am wrong.
I am at a loss as to what to try next. Any help would be appreciated. I can't move forward in my project until I have a version of Xenomai and Adeos working with the distribution. (I have to port it to another architecture and can't start that until it is working on the stamp board first).
Perhaps Yi has a suggestion?
thanks so much,
Diana Hecht
QuoteReplyEditDelete
2008-02-20 09:38:21 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Robin Getz (UNITED STATES)
Message: 51348 Diana:
Sorry for the delay - I found out last night that Yi was/is out for a few days - He should be back by the end of this week.
-Robin
QuoteReplyEditDelete
2008-02-20 14:51:04 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Diana Hecht (UNITED STATES)
Message: 51388 Thanks, Robin. I'll check back in a couple of days.
thanks,
Diana
QuoteReplyEditDelete
2008-02-20 18:57:06 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Yi Li (CHINA)
Message: 51397
Diana,
For your question:
"the Adeos patch that comes with uclinux 2008R1-RC1 seems to be based on an earlier version of the file 2008R1-RC1\linux-2.6.x\arch\blackfin\kernel\bfin_gpio.c than what is included in the 2008R1-RC1 release (from SVN Tag directory)"
As you have mentioned, there are a few patch error since bfin_gpio.c has been updated recently. I will update the adeos-bfin patch to latest kernel.
"When I try to run it, I get the error “./latency: can’t load library ‘libnative.so.1’, I do see that file in the directory /usr/xenomai/lib and I have tried adding that directory to the Path but it doesn’t help"
I usually install the shared library required by "laterncy" to /lib/. Or you may add "/usr/xenomai/lib" to LD_LIBRARY_PATH.
BTW, by default xenomai installs a lot of unnecessary things, like manual page, static library to the install directory, you could just remove them to free some rootfs space.
"I am using the following:
svn://sources.blackfin.uclinux.org/toolchain/trunk
svn://sources.blackfin.uclinux.org/u-boot/tags/2008R1-RC1
svn://sources.blackfin.uclinux.org/uclinux-dist/tags/2008R1-RC1
Xenomai 2.4.0"
Using svn trunk toolchain with 2008R1 branch kernel may cause errors. Please use 2008R1 toolchain instead.
-Yi
QuoteReplyEditDelete
2008-02-20 19:14:16 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Mike Frysinger (UNITED STATES)
Message: 51398 if there's userspace adeos stuff, cant we integrate that into our uclinux-dist ?
QuoteReplyEditDelete
2008-02-21 21:09:56 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Yi Li (CHINA)
Message: 51465 The user space part includes a set of test cases (currently we used only one, the other may not work) and related libraries.
We can add the whole Xenomai source to our tree, but the files are 35MB large.
QuoteReplyEditDelete
2008-02-21 23:59:20 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Mike Frysinger (UNITED STATES)
Message: 51467 if people need the userspace aspect and it would be useful to have compiled for them in a known working manner, the size doesnt really matter
QuoteReplyEditDelete
2008-02-22 13:52:02 Re: Adeos and Xenomai on uclinux 2008R1-RC1
Diana Hecht (UNITED STATES)
Message: 51516 Yi,
Thank you very much for your help.
I added the xenomai/lib directory to the LD_LIBRARY_PATH and the latency program of the testsuite is running now.
Diana