From: 0 <taobingzhiwang@qq.com>
To: xenomai <xenomai@lists.linux.dev>
Subject: about porting xenomai to nuc972
Date: Wed, 9 Aug 2023 16:42:38 +0800 [thread overview]
Message-ID: <tencent_18511CB838B5A6CAC92E57F0E1EC88A69E08@qq.com> (raw)
Recently, I ported xenomai3 to nuc972.
The kernel is 4.4, when I run the xenomai built-in demo,
prompt pthread_create error, return -1,
sched_setscheduler also prompt failure,
now I don't know what to do next
Here are the changes I made with kernel:
1.arch/arm/mach-nuc970/time.c add ipipe timer config
2.arch/arm/kernel/ipipe_tsc_asm.c arch/arm/kernel/ipipe_tsc.c add func __ipipe_freerunning_24
on pc:
cd xenomaiscripts/prepare-kernel.sh --linux=../linux-4.4-nuc972 --arch=arm
./configure --host=arm-linux --prefix=/opt/arm/xenomai --build=i686-pc-linux-gnu --with-core=cobalt CC=/usr/local/arm-2014.05/bin/arm-linux-gcc LD=/usr/local/arm-2014.05/bin/arm-linux-ld
make
make install
cd /opt/armtar cvzf xenomai.tgz xenomai
scp xenomai.tgz 192.168.1.101:/root/app
on arm-linux:
[root@pole]$ tar xvf xenomai.tgz
[root@pole]$l n -s /root/app/xenomai /opt/arm/xenomai
[root@pole]$ /opt/arm/xenomai/demo/cyclictest
either run as root or join realtime group
[root@pole]$ /opt/arm/xenomai/demo/xddp-echo
pthread_create: Operation not permitted
reply other threads:[~2023-08-09 8:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_18511CB838B5A6CAC92E57F0E1EC88A69E08@qq.com \
--to=taobingzhiwang@qq.com \
--cc=xenomai@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).