I was able to move forward but I got stuck in this error when I tried to
execute the latency test:

xxx@hypertests:/usr/lib/xenomai/testsuite$ ./latency
>    0"000.000| BUG in low_init(): [main] Cobalt core not enabled in kernel


I used the pre-patched kernel [1] and used the "instruction sequencing #1"
presented below.

I assumed that the cobalt kernel/support is already embedded/patched in
this pre-patched version. However, since the wiki points to the lack of
cobalt support [2], this assumption may not be correct and/or I may be
missing some steps.

What does the pre-patched kernel includes?

As a shot in the dark, I also tried to enable the cobalt core (running the
instructions below after decompressing the ipipe-x96*) but got stuck
when compiling
and generating the debian packages (it just freezed there)

$ cd xenomai-3.1/scripts/
> $ ./prepare-kernel.sh
> --linux=/home/xxx/ipipe-x86-ipipe-core-5.4.105-x86-4--arch=x86_64
> --outpatch=/home/xxx/cobalt-core-3.1-5.4.105.patch
> $ cd ~/ipipe-x86-ipipe-core-5.4.105-x86-4/
> $ patch -p1 < ../cobalt-core-3.1-5.4.105.patch



*Instruction sequencing #1:*

> $ wget
> https://xenomai.org/downloads/xenomai/stable/latest/xenomai-3.1.tar.bz2
> $ tar -xvf xenomai-3.1.tar.bz2
> $ wget
> https://source.denx.de/Xenomai/ipipe-x86/-/archive/ipipe-core-5.4.105-x86-4/ipipe-x86-ipipe-core-5.4.105-x86-4.tar.gz
> $ tar -xvf ipipe-x86-ipipe-core-5.4.105-x86-4.tar.gz
>
$ cd  ipipe-x86-ipipe-core-5.4.105-x86-4/



$ make oldconfig
> $ make menuconfig

(you may find in attach the .config file)



$ sudo CONCURRENCY_LEVEL=12 make-kpkg --rootcmd fakeroot --initrd
> --revision=1.0.0 kernel_image kernel_headers
>
(accepted the default parameters)

$ cd ..
> $ sudo dpkg -i linux-headers-5.4.105_1.0.0_amd64.deb
> linux-image-5.4.105_1.0.0_amd64.deb
> $ sudo reboot
>


$ cd xenomai-3.1/
> $ debuild -us -uc
> $ cd ..
> $ sudo dpkg -i libxenomai1_2.99.0_amd64.deb
> xenomai-kernel-source_2.99.0_all.deb libxenomai-dev_2.99.0_amd64.deb
> xenomai-runtime_2.99.0_amd64.deb
> $ sudo reboot
>


$ cd /usr/lib/xenomai/testsuite/
> $ ./latency

*ouput:*

> xxx@hypertests:/usr/lib/xenomai/testsuite$ ./latency
>    0"000.000| BUG in low_init(): [main] Cobalt core not enabled in kernel



>
*GRUB BOOT OPTIONS*

*Ubuntu, with Linux 5.4.105

Ubuntu, with Linux 5.4.105 (recovery mode)

Ubuntu, with Linux 5.4.0-74-generic

Ubuntu, with Linux 5.4.0-74-generic (recovery mode)


*COMMANDS and OUPUT*

$
*uname -a*Linux hypertests 5.4.105 #1 SMP PREEMPT Mon Jun 7 15:39:00 UTC
2021 x86_64 x86_64 x86_64 GNU/Linux


$* sudo dmesg | grep -i xenomai*
$* sudo dmesg | grep -i cobalt*

both return empty


[1]
https://source.denx.de/Xenomai/ipipe-x86/-/archive/ipipe-core-5.4.105-x86-4/ipipe-x86-ipipe-core-5.4.105-x86-4.tar.gz
[2]
https://source.denx.de/Xenomai/xenomai/-/wikis/Troubleshooting#user-content-cobalt-core-not-enabled-in-kernel


Jan Kiszka <[email protected]> escreveu no dia terça, 1/06/2021 à(s)
11:01:

> On 01.06.21 10:32, João Costa via Xenomai wrote:
> > Hello,
> >
> > I am having serious difficulties in getting Xenomai 3.1 to run in a
> Ubuntu
> > 20.04.2 LTS [1]
> > I should be doing something wrong but I don't know what. Hopefully,
> someone
> > can help me identify what is wrong.
> >
> > I was getting an error that apparently was solved (another email thread
> in
> > this mailing list) but after some other errors showed up. I went back to
> > the beginning and tried to:
> > - use kernel/ipipe version 5.4.77 (.config file in attach)
>
> Latest release is ipipe-core-5.4.105-x86-4, including a couple of I-pipe
> fixes. Don't use outdated versions.
>
> > - use kernel/ipipe version 4.19.114  (forgot to save the .config file)
> > - prepatched kernel version 5.4.77  (.config file in attach) [2]
> >
> > Now I am always getting this *error message:*
> >
> > make[1]: Leaving directory '/home/xxx/linux-5.4.77'
> >
> > make: *** [debian/ruleset/targets/common.mk:301:
> debian/stamp/build/kernel]
> > Error 2
> >
> >
> > In the *output* sent to the *console* it is possible to identify the
> > following *errors*:
> >
> > - too many arguments to function  'switch_fpu_finish'
> >
> > - conflicting types for ‘sys32_put_timex’  143 |
> > EXPORT_SYMBOL_GPL(sys32_put_timex);
> >
>
> Cannot reproduce with your config yet over latest ipipe-5.4 and Xenomai
> 3.1.1. You must be building something inconsistent.
>
> > *In attach you my find a .pdf file with*:
> > - the specifications of the machine/OS I am using
> > - the sequence of commands I used (maybe I am missing something)
> > - the options I chose
> > - the errors
> >
>
> Please share inline, copy&pasted from your shell (no screenshots etc.).
> Makes reviewing and commenting much easier. And make sure that you
> include it completely if you are unsure about the actual error messages.
>
> In general, I would recommend starting with the basic steps, not with
> generating debian packages but rather building the vanilla
> I-pipe/Xenomai trees manually. Then, with a working reference for your
> target OS, you can look into the packaging as well.
>
> Jan
>
> --
> Siemens AG, T RDA IOT
> Corporate Competence Center Embedded Linux
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 231541 bytes
Desc: not available
URL: 
<http://xenomai.org/pipermail/xenomai/attachments/20210608/f200f06e/attachment.obj>

Reply via email to