2008-11-05 06:20:06 Xenomai - 2008R1.5 problems
Mads le maire (NORWAY)
Message: 64697
Hi,
I have some trouble enabeling Xenomai in my configuration. I just ticked of for Xenomai support in the "Miscellaneous Applications" and made a rebuid. The build process succeeded without any problems, but the file structure on the target system looks a bit different that shown in the documentation. Alle the test applications are located in a /usr/bin catalog, there is no xenomai catalog below /usr. When I try to ecxecute the latency test program found in /usr/bin I get the error:
Xenomai: native skin or CONFIG_XENO_OPT_PERVASIVE disabled.
(modprobe xeno_native?)
To me it seems that the CONFIG_XENO_OPT_PERVASIVE may have been a configuration option in earlier versions of uClinux, (Pervasive real-time support in user-space) but I can not find such configuration for the moment.
Any idea?
QuoteReplyEditDelete
2008-11-05 07:26:10 Re: Xenomai - 2008R1.5 problems
Robin Getz (UNITED STATES)
Message: 64698
Mads:
Did you apply the patch to the kernel?
QuoteReplyEditDelete
2008-11-05 09:55:36 Re: Xenomai - 2008R1.5 problems
Mads le maire (NORWAY)
Message: 64704
Acording to the doc, the patch should be applied automatically, and I noticed that a lot of "patch" commands was issued. Looking in the /usr/xenomai makefile, all the test applications are copied to /usr/bin, and this is what I observe on the target, but a corresponding /usr/lib which should have been created as well, according to the makefile is not found.
When I do a "make clean" make complains as follows:
patch: ***** Only garbage was found in the patch input..
The readmefile in the /bfin_patch/adeos_patch says:
This patch is for blackfin uclinux 2008R1 release.
It is based on adeos-ipipe-2.6.23-bf5xx-1.7-00.patch in xenomai-2.4.0 release.
I am using 2008R1.5-RC3 with a kernel 2.6.22.19. Could there be some versioning problems?
QuoteReplyEditDelete
2008-11-05 22:05:56 Re: Xenomai - 2008R1.5 problems
Yi Li (CHINA)
Message: 64727
The error "Xenomai: native skin or CONFIG_XENO_OPT_PERVASIVE disabled" shows this option is not selected in kernel configuration - but it should be set by default.
I will have a check.
QuoteReplyEditDelete
2008-11-06 01:28:03 Re: Xenomai - 2008R1.5 problems
Yi Li (CHINA)
Message: 64729
I checked xenomai on 2008R1.5 on BF537 and it works (the default kernel configuration set "CONFIG_XENO_OPT_PERVASIVE"). Also I updated the wiki to make the test case path to be "/usr/bin". However, since building xenomai requires patching kernel, the Makefile in user/xenomai/ is not smart enough to recovery everything if patch failed or build failed for some reason. I think you can try to configure kernel manualy to remove the configuration error.
-Yi
QuoteReplyEditDelete
2008-11-06 04:29:10 Re: Xenomai - 2008R1.5 problems
Mads le maire (NORWAY)
Message: 64762
Thanks for verifying this!
I unpacked a new uClinux distribution and configured xenomai, and the latency test works now. Realtime subsystem also appears in the kernel configuration, so I have a reference system.
QuoteReplyEditDelete
2009-06-22 04:20:39 Re: Xenomai - 2008R1.5 problems
hegallis mo (UNITED KINGDOM)
Message: 76111
Hi Mads
I am having the same problem. I use 2008R1.5 uClinux distribution and turned on xenomai configure option in misc section. However, I didnt see Real time sub system menu turning up. After I build the image, and download to the target (bf257), I cannt run test as it keeps giving me error msg as "Xenomai: POSIX skin or CONFIG_XENO_OPT_PERVASIVE disabled."
What confused me is that I have put these lines in the config file under linux2.6.x as
CONFIG_USER_XENOMAI=y (this is the one from turning on xenomai from menconfig)
(The following I added manually)
CONFIG_XENOMAI=y
CONFIG_XENO_OPT_PERVASIVE=y
CONFIG_XENO_SKIN_POSIX=y
Can you see anything I have done is questionable or there is a bug in the test suite?
Thanks
Heg
QuoteReplyEditDelete
2009-06-22 05:00:20 Re: Xenomai - 2008R1.5 problems
Yi Li (CHINA)
Message: 76112
Can you check your "linux-kernel/init/Kconfig", and linux-kernel/.config, does it contain a line like: "menu "Real-time sub-system"?
If not, your kernel is not patched correctly. You can check user/xenomai/Makefile to debug.
-Yi
QuoteReplyEditDelete
2009-06-22 05:21:15 Re: Xenomai - 2008R1.5 problems
hegallis mo (UNITED KINGDOM)
Message: 76114
Hi Yi
thanks for the prompt response. Where can I get the correct patches to apply to this version of uclinux?
The patch I have got here stops me at this error
"1 out of 28 hunks FAILED -- saving rejects to file arch/blackfin/kernel/bfin_gpio.c.rej"
Thank you
QuoteReplyEditDelete
2009-06-22 05:43:18 Re: Xenomai - 2008R1.5 problems
Yi Li (CHINA)
Message: 76115
Have you modified bfin_gpio.c? If using the original source code downloaded from blackfin.uclinux.org, there should not be patch error. Otherwise, you will have to fix the error manually. Then you may try to give "-N" option to "patch" command to ignore applied patch and try again.
The trick with user/xenomai build, is the the kernel may be built twice:
build kernel -> build user/xenomai and patch the kernel -> script detects kernel change and build kernel again
-Yi
QuoteReplyEditDelete
2009-06-22 05:58:43 Re: Xenomai - 2008R1.5 problems
hegallis mo (UNITED KINGDOM)
Message: 76116
I am using adeos-ipipe-2008R1.5-RC3-bf5xx-1.8-00.patch without any mods to bfin_gpio.c file. It gives me the error while I was patching the kernel, before any make.
QuoteReplyEditDelete
2009-06-22 06:08:39 Re: Xenomai - 2008R1.5 problems
Yi Li (CHINA)
Message: 76117
Did you download 2008R1.5 from blackfin.uclinux.org or did you checkout from the 2008R1.5 branch. This may caused by later update of bfin_gpio.c on the branch, while the adeos patch is not updated.
I will have a look tomorrow, but you may try to solve the patch error manually as I said before.
-Yi
QuoteReplyEditDelete
2009-06-22 14:19:38 Re: Xenomai - 2008R1.5 problems
hegallis mo (UNITED KINGDOM)
Message: 76141
Hi Yi
I have now build with xenomai turned on from 2008R1.5RC3 using the adeos patch comes with default for blackfin. However, after I download the uImage (I am use ext2 format), it could not boot up, hang at loading kernel at 0x1b0000 or other addresses I have seen too depends on other configure options. Any suggestions?
Thanks
HM
QuoteReplyEditDelete
2009-06-23 04:05:04 Re: Xenomai - 2008R1.5 problems
Yi Li (CHINA)
Message: 76161
Hegallis,
In this case I would use JTAG ICE to debug.
-Yi
QuoteReplyEditDelete
2009-06-23 08:51:04 Re: Xenomai - 2008R1.5 problems
hegallis mo (UNITED KINGDOM)
Message: 76189
Just to post my results here, you donot need *additional* adeos patch to 2008R1.5 RC3. There kernel has been patched by default in the second round of kernel build you do.
For my problem of boot up, I made a mistake of bootup from flash or ram. Kernel command needs to point to the right location.
Thanks for your help Yi.
QuoteReplyEditDelete
2009-06-23 09:54:59 Re: Xenomai - 2008R1.5 problems
hegallis mo (UNITED KINGDOM)
Message: 76190
Another question, now everything is up and running, I can see xenomai patch is applied. However, when I tried to run the test programs, it gave me the error message
Xenomai: native skin or CONFIG_XENO_OPT_PERVASIVE disabled.
(modprobe xeno_native?)
Any suggestions?
QuoteReplyEditDelete
2009-06-24 00:10:36 Re: Xenomai - 2008R1.5 problems
Yi Li (CHINA)
Message: 76215
Can you see booting message like:
I-pipe: Domain Xenomai registered.
Xenomai: hal/blackfin started.
Xenomai: real-time nucleus v2.4.7 (Andalusia) loaded.
Xenomai: starting native API services.
Xenomai: starting POSIX services.
Xenomai: starting RTDM services.
-Yi
QuoteReplyEditDelete
2009-06-26 16:09:42 Re: Xenomai - 2008R1.5 problems
hegallis mo (UNITED KINGDOM)
Message: 76408
Problem resolved. The issue was that kernel didn't get patched correctly.
Just to share with those probably are experiencing the same problem, making sure make are done twice! If you follow the patch script, first time patch will change the configs and copy/modify the files, not actually patching the kernel, as in build. Do another make.