installing the xenomai kernel on the BBB

990 views
Skip to first unread message

Bas de Bruijn

unread,
Sep 14, 2014, 4:45:56 PM9/14/14
to machi...@googlegroups.com
Hi,

tl;dr
How do I enable the kernel from installed xenomai-runtime package on my BBB rev C

long version:
Sorry for the long post, tried to be as complete as I can.
Got my BBB rev C, a new BeBoPr++ board with a Pepper for experimenting purposes. Now I would like to set this up.
I have flashed this image to the eMMC of my BBB rev C. I used http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Releases 

2014-09-03 BBB Rev C (4GB eMMC)


This is running from flash as one would expect. The SD card id physically removed

I want to walk thru the entire process to understand (and upgrade my knowledge) of what I’m actually doing.
So far I followed Alexander’s notes on the debian image https://github.com/strahlex/asciidoc-sandbox/wiki/Creating-a-Machinekit-Debian-Image


when continuing with point 7 and doing get the following error

machinekit@beaglebone:~$ sudo apt-get install linux-image-xenomai
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-xenomai

I then browsed
to see what’s there and I did:

sudo apt-get install xenomai-runtime

this then installed, but when I’m restarting I think I still use the old (non xenomai) kernel.

machinekit@beaglebone:~$ uname -r
3.8.13-bone64

I did not do
$ sudo apt-get install machinekit-xenomai 
because I don’t want to have the machinekit binaries. I want to build machinekit from source.

the contents of /boot where the sub directory /boot/uboot is empty

machinekit@beaglebone:~$ ls -l /boot
total 10764
-rw-r--r-- 1 root root  109258 Aug 21 21:29 config-3.8.13-bone64
drwxr-xr-x 3 root root    4096 Sep  3 23:52 dtbs
-rw-r--r-- 1 root root 2860785 Sep  4 00:12 initrd.img-3.8.13-bone64
-rw-r--r-- 1 root root     445 Sep  4 00:40 SOC.sh
-rw-r--r-- 1 root root 2421734 Aug 21 21:29 System.map-3.8.13-bone64
drwxr-xr-x 2 root root    4096 Sep  4 00:05 uboot
-rw-r--r-- 1 root root     852 Sep 14 14:16 uEnv.txt
-rwxr-xr-x 1 root root 5605264 Aug 21 21:29 vmlinuz-3.8.13-bone64

With my PC and wheezy I had to do update-grub. This yields nothing (afaict not there) and I’m clueless where (if) I can define the kernel to start.
Anything I’m missing? (obviously)

I’ve been reading this thread https://groups.google.com/forum/#!searchin/machinekit/installing$20xenomai$20kernel/machinekit/J05ArnrQO5o/2uwZtiuP95sJ but I couldn’t destill a solution between all the knowledge.
I then tried (al least to narrow down)

machinekit@beaglebone:~$ sudo apt-get install machinekit-xenomai
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 machinekit-xenomai : Depends: machinekit (= 0.1.576-1da.bbot.pr290.git2157b61~1wheezy) but it is not going to be installed
                      Depends: libczmq1 (>= 2.2.0-0~1mk~wheezy1) but it is not installable
E: Unable to correct problems, you have held broken packages.

I did also:
sudo apt-get install linux-headers-3.8-1-xenomai linux-image-3.8-1

restart, and uname -r still yields
3.8.13-bone64

That was my clue to go to the list :)
Hope somebody can nudge me in the right direction

Thanks,
Bas

Charles Steinkuehler

unread,
Sep 15, 2014, 6:43:47 AM9/15/14
to Bas de Bruijn, machi...@googlegroups.com
On 9/14/2014 3:45 PM, Bas de Bruijn wrote:
>
> when continuing with point 7 and doing get the following error
>
> machinekit@beaglebone:~$ sudo apt-get install linux-image-xenomai
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package linux-image-xenomai
>
> I then browsed
> http://deb.dovetail-automata.com/pool/main/x/xenomai/
> to see what's there and I did:
>
> sudo apt-get install xenomai-runtime
>
> this then installed, but when I'm restarting I think I still use the old (non xenomai) kernel.
>
> machinekit@beaglebone:~$ uname -r
> 3.8.13-bone64

The xenomai-runtime is not a kernel, it is the xenomai run-time
libraries. Look for a xenomai kernel to install using:

apt-cache search linux-image-xenomai

--
Charles Steinkuehler
cha...@steinkuehler.net

signature.asc

Bas de Bruijn

unread,
Sep 15, 2014, 12:04:17 PM9/15/14
to Charles Steinkuehler, machi...@googlegroups.com
I’m afraid it doesn’t work. Is my image to new?

sudo apt-cache search linux-image-xenomai
linux-image-xenomai.beaglebone-omap - Linux for TI OMAP3+ (meta-package), Xenomai Beaglebone

machinekit@beaglebone:~$ sudo apt-get install linux-image-xenomai.beaglebone-omap
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 linux-image-xenomai.beaglebone-omap : Depends: linux-image-3.8-1-xenomai.beaglebone-omap but it is not installable
E: Unable to correct problems, you have held broken packages.

machinekit@beaglebone:~$ sudo apt-get install linux-image-3.8-1-xenomai.beaglebone-omap
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-image-3.8-1-xenomai.beaglebone-omap is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-image-3.8-1-xenomai.beaglebone-omap' has no installation candidate
machinekit@beaglebone:~$ 


--
Charles Steinkuehler
cha...@steinkuehler.net


Charles Steinkuehler

unread,
Sep 15, 2014, 12:34:33 PM9/15/14
to Bas de Bruijn, machi...@googlegroups.com
On 9/15/2014 11:03 AM, Bas de Bruijn wrote:
>
> On 15 Sep 2014, at 12:43, Charles Steinkuehler <cha...@steinkuehler.net> wrote:
>>
>> apt-cache search linux-image-xenomai
>
> I'm afraid it doesn't work. Is my image to new?
>
> sudo apt-cache search linux-image-xenomai
> linux-image-xenomai.beaglebone-omap - Linux for TI OMAP3+ (meta-package), Xenomai Beaglebone

Do you have your apt sources setup properly to point to the
deb.dovetail-automata.com repository?

Did you fetch the latest package list (apt-get update)?

If you have, perhaps something has changed...I was able to install the
Xenomai BeagleBone kernel without issue a week or so ago.

--
Charles Steinkuehler
cha...@steinkuehler.net

signature.asc

John Morris

unread,
Sep 15, 2014, 12:43:10 PM9/15/14
to Charles Steinkuehler, Bas de Bruijn, machi...@googlegroups.com
Guys, I'm sorry, this is my fault.

I built new kernel packages and had trouble with the Beaglebone package.
I'm still trying to figure out if it's the kernel or the Beaglebone,
so I removed the kernel from the Debian archive, and forgot to replace
it with an older one.

If someone would manually install this kernel and confirm that it works,
I'll put it into the repo:

http://deb.dovetail-automata.com/pool/main/l/linux/linux-headers-3.8-1-xenomai.beaglebone-omap_3.8.13-9da%7ewheezy1_armhf.deb

Thanks, and apologies for the trouble.

John

Bas de Bruijn

unread,
Sep 15, 2014, 1:53:33 PM9/15/14
to John Morris, Charles Steinkuehler, machi...@googlegroups.com
Sorry Guys, no succes afaict. I’ve done so much things now that I might have missed something.
I downloaded the link above to the home folder.

machinekit@beaglebone:~$ ls
linux-headers-3.8-1-xenomai.beaglebone-omap_3.8.13-9da~wheezy1_armhf.deb

machinekit@beaglebone:~$ sudo dpkg -i linux-headers-3.8-1-xenomai.beaglebone-omap_3.8.13-9da~wheezy1_armhf.deb 
(Reading database ... 70570 files and directories currently installed.)
Preparing to replace linux-headers-3.8-1-xenomai.beaglebone-omap 3.8.13-9da~wheezy1 (using linux-headers-3.8-1-xenomai.beaglebone-omap_3.8.13-9da~wheezy1_armhf.deb) ...
Unpacking replacement linux-headers-3.8-1-xenomai.beaglebone-omap ...
Setting up linux-headers-3.8-1-xenomai.beaglebone-omap (3.8.13-9da~wheezy1) ...

machinekit@beaglebone:~$ ls /boot/
config-3.8.13-bone64      SOC.sh                    uEnv.txt
dtbs                      System.map-3.8.13-bone64  vmlinuz-3.8.13-bone64
initrd.img-3.8.13-bone64  uboot
machinekit@beaglebone:~$ ls /boot/uboot
machinekit@beaglebone:~$ 

after a restart:
machinekit@beaglebone:~$ uname -r
3.8.13-bone64

now I would expect another result, because this has been always the result of uname -r

Bas

Charles Steinkuehler

unread,
Sep 15, 2014, 2:15:36 PM9/15/14
to Bas de Bruijn, machi...@googlegroups.com
On 9/15/2014 12:53 PM, Bas de Bruijn wrote:
>
> On 15 Sep 2014, at 18:42, John Morris <jo...@zultron.com> wrote:
>>
>> If someone would manually install this kernel and confirm that it works, I'll put it into the repo:
>>
>> http://deb.dovetail-automata.com/pool/main/l/linux/linux-headers-3.8-1-xenomai.beaglebone-omap_3.8.13-9da%7ewheezy1_armhf.deb
>
> Sorry Guys, no succes afaict. I've done so much things now that I might have missed something.
> I downloaded the link above to the home folder.
>
> machinekit@beaglebone:~$ ls
> linux-headers-3.8-1-xenomai.beaglebone-omap_3.8.13-9da~wheezy1_armhf.deb

I think John sent the wrong link. If you actually want to update your
kernel (and not just install the kernel headers), you should download
and install:

http://deb.dovetail-automata.com/pool/main/l/linux/linux-image-3.8-1-xenomai.beaglebone-omap_3.8.13-9da%7ewheezy1_armhf.deb

Note the "linux-image-" filename vs "linux-headers-".

--
Charles Steinkuehler
cha...@steinkuehler.net

signature.asc

Bas de Bruijn

unread,
Sep 15, 2014, 2:30:40 PM9/15/14
to Charles Steinkuehler, John Morris, machi...@googlegroups.com
Argh, sorry for being so dense.

after download and manual install:

machinekit@beaglebone:~$ uname -r
3.8-1-xenomai.beaglebone-omap

I’ll next install machinekit etcetera, @john, anything additional you’d like me to test?

Thanks Charles and John!
Bas


--
Charles Steinkuehler
cha...@steinkuehler.net


John Morris

unread,
Sep 15, 2014, 4:34:08 PM9/15/14
to Bas de Bruijn, Charles Steinkuehler, machi...@googlegroups.com


On 09/15/2014 01:30 PM, Bas de Bruijn wrote:
>
> On 15 Sep 2014, at 20:15, Charles Steinkuehler <cha...@steinkuehler.net
> <mailto:cha...@steinkuehler.net>> wrote:
>
>> On 9/15/2014 12:53 PM, Bas de Bruijn wrote:
>>>
>>> On 15 Sep 2014, at 18:42, John Morris <jo...@zultron.com
>>> <mailto:jo...@zultron.com>> wrote:
>>>>
>>>> If someone would manually install this kernel and confirm that it
>>>> works, I'll put it into the repo:
>>>>
>>>> http://deb.dovetail-automata.com/pool/main/l/linux/linux-headers-3.8-1-xenomai.beaglebone-omap_3.8.13-9da%7ewheezy1_armhf.deb
>>>
>>> Sorry Guys, no succes afaict. I've done so much things now that I
>>> might have missed something.
>>> I downloaded the link above to the home folder.
>>>
>>> machinekit@beaglebone:~$ ls
>>> linux-headers-3.8-1-xenomai.beaglebone-omap_3.8.13-9da~wheezy1_armhf.deb
>>
>> I think John sent the wrong link. If you actually want to update your
>> kernel (and not just install the kernel headers), you should download
>> and install:
>>
>> http://deb.dovetail-automata.com/pool/main/l/linux/linux-image-3.8-1-xenomai.beaglebone-omap_3.8.13-9da%7ewheezy1_armhf.deb
>>
>> Note the "linux-image-" filename vs "linux-headers-“.
>
> Argh, sorry for being so dense.

Argh, my fault! Thanks Charles.

> after download and manual install:
>
> *machinekit@beaglebone:~$ uname -r*
> 3.8-1-xenomai.beaglebone-omap
>
> I’ll next install machinekit etcetera, @john, anything additional you’d
> like me to test?

If you could just run Machinekit, or build & runtest, or whatever you do
to confirm the kernel is working, I'll update the Debian archive.

I know this is my job, but I won't be able to get to it until tomorrow.
Thanks for the help on this, very appreciated.

John

Bas de Bruijn

unread,
Sep 15, 2014, 4:57:05 PM9/15/14
to John Morris, machi...@googlegroups.com
I’m building machinekit, apart from 
libczmq-dev python-zmq libjansson-dev libwebsockets-dev libxenomai-dev as from the site

I also had to get 
uuid-runtime libzmq-dev libprotobuf-dev protobuf-compiler python-protobuf liburiparser-dev uuid-dev

alas, build didn’t succeed, but I think (guess) it has to do with machinetalk. I’ll look up the directions from Michael if I missed something there 

Compiling machinetalk/support/encdec.cc
Compiling machinetalk/lib/pbutil.cc
machinetalk/lib/pbutil.cc: In function ‘int send_pbcontainer(const string&, pb::Container&, void*)’:
machinetalk/lib/pbutil.cc:54:36: error: ‘ZMQ_MORE’ was not declared in this scope
make: *** [objects/machinetalk/lib/pbutil.o] Error 1
make: Leaving directory `/home/machinekit/machinekit/src'



I know this is my job, but I won't be able to get to it until tomorrow.  Thanks for the help on this, very appreciated.

Anything that’s in my power I’m happy to help.

Bas


John

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
--- You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
Visit this group at http://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

John Morris

unread,
Sep 16, 2014, 2:59:18 PM9/16/14
to Bas de Bruijn, machi...@googlegroups.com


On 09/15/2014 03:56 PM, Bas de Bruijn wrote:
>
> On 15 Sep 2014, at 22:33, John Morris <jo...@zultron.com
> Compiling machinetalk/support/encdec.cc <http://encdec.cc>
> Compiling machinetalk/lib/pbutil.cc <http://pbutil.cc>
> machinetalk/lib/pbutil.cc <http://pbutil.cc>: In function ‘int
> send_pbcontainer(const string&, pb::Container&, void*)’:
> machinetalk/lib/pbutil.cc <http://pbutil.cc>:54:36: error: ‘ZMQ_MORE’
> was not declared in this scope
> make: *** [objects/machinetalk/lib/pbutil.o] Error 1
> make: Leaving directory `/home/machinekit/machinekit/src'
>
>
>>
>> I know this is my job, but I won't be able to get to it until
>> tomorrow. Thanks for the help on this, very appreciated.
>
> Anything that’s in my power I’m happy to help.

I've isolated the problem to the buildbot environment, and not the kernel.

The updated beaglebone kernel package is back in the archive. Apologies
for the hassle.

John

Bas de Bruijn

unread,
Sep 16, 2014, 4:33:08 PM9/16/14
to John Morris, machi...@googlegroups.com

On 16 Sep 2014, at 20:59, John Morris <jo...@zultron.com> wrote:

> I've isolated the problem to the buildbot environment, and not the kernel.
>
> The updated beaglebone kernel package is back in the archive. Apologies for the hassle.
>
> John

John,
This evening I re-flashed the BBB, and performed a clean install. The problems with the xenomai kernel installation I experienced earlier have ceased.
Thanks!
Bas

David Kalwar

unread,
Jan 18, 2016, 2:51:07 PM1/18/16
to Machinekit
Hi,

I have the same issue - somehow the kernel images are all gone. How can I find them?

Thanks

Charles Steinkuehler

unread,
Jan 18, 2016, 3:04:19 PM1/18/16
to machi...@googlegroups.com
On 1/18/2016 1:51 PM, David Kalwar wrote:
> Hi,
>
> I have the same issue - somehow the kernel images are all gone. How can I
> find them?

Robert Nelson has taken over building and distributing Xenomai kernels
for Machinekit (as well as PREEMEPT_RT kernels, and various other
flavors). If you have a particularly old image, it will not have the
rcn-ee repository configured so you will need to manually add it to
your sources.list file:

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#2014-05-14_GPG_error:_Optional_enable:_http:.2F.2Frepos.rcn-ee.com.2F

--
Charles Steinkuehler
cha...@steinkuehler.net

Aleksandr Kolomeetc

unread,
Feb 14, 2016, 11:07:10 AM2/14/16
to Machinekit
Hello!
machinekit@beaglebone:~$ sudo apt-get install linux-image-xenomai.beaglebone-omap
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-xenomai.beaglebone-omap
E: Couldn't find any package by regex 'linux-image-xenomai.beaglebone-omap'

I also can't to locate this package the address: http://deb.dovetail-automata.com
What's wrong?

With respect,
Alexandr

Charles Steinkuehler

unread,
Feb 14, 2016, 11:43:08 AM2/14/16
to machi...@googlegroups.com
Kernel packages are now built by Robert C. Nelson and can be found in
the standard BeagleBone repos:

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Kernel_Options

...if you're running an older image, you may need to add the new
BeagleBone repositories to your apt sources list:

hector ice

unread,
Sep 25, 2016, 5:01:39 AM9/25/16
to Machinekit
Hi all,
I am also trying to install xenomai patched kernel on my BBB for preemption and RT Processing for my project.
I have followed the steps described here and also available on other forums. But still I am not able to successfully develop the kernel.

I have tried following steps.( I am using newest version of BBB rev.C)
1. I have downloaded new 3.8 kernel ( as from webs I came to know that xenomai is available till 3.8)
2. I have did menuconfig, Than applied the patch of xenomai.and compiled the kernel.
3. When I have inserted the card with compiled kernel on BBB it gave me 'kernel panic' and stopped booting

--Than I did follow.
1. I did again fresh installation. again with minimal modules selected.
But still no luck.

Can anyone help me for this.?

schoo...@btinternet.com

unread,
Sep 25, 2016, 7:22:54 AM9/25/16
to machi...@googlegroups.com

On 25/09/16 10:01, hector ice wrote:
Hi all,
I am also trying to install xenomai patched kernel on my BBB for preemption and RT Processing for my project.
I have followed the steps described here and also available on other forums. But still I am not able to successfully develop the kernel.

I have tried following steps.( I am using newest version of BBB rev.C)
1. I have downloaded new 3.8 kernel ( as from webs I came to know that xenomai is available till 3.8)
2. I have did menuconfig, Than applied the patch of xenomai.and compiled the kernel.

Normally you would patch the kernel and THEN configure it for building - no idea what options you used.
But you should not need to build your own


3. When I have inserted the card with compiled kernel on BBB it gave me 'kernel panic' and stopped booting

--Than I did follow.
1. I did again fresh installation. again with minimal modules selected.
But still no luck.

Can anyone help me for this.?

There are pre-built kernels available as previously in this thread and as Charles shows below


On Sunday, February 14, 2016 at 10:13:08 PM UTC+5:30, Charles Steinkuehler wrote:
On 2/14/2016 10:07 AM, Aleksandr Kolomeetc wrote:
> Hello!
> machinekit@beaglebone:~$ sudo apt-get install
> linux-image-xenomai.beaglebone-omap
> Reading package lists... Done
> Building dependency tree      
> Reading state information... Done
> E: Unable to locate package linux-image-xenomai.beaglebone-omap
> E: Couldn't find any package by regex 'linux-image-xenomai.beaglebone-omap'
>
> I also can't to locate this package the
> address: http://deb.dovetail-automata.com
> What's wrong?

Kernel packages are now built by Robert C. Nelson and can be found in
the standard BeagleBone repos:

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Kernel_Options

...if you're running an older image, you may need to add the new
BeagleBone repositories to your apt sources list:

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#2014-05-14_GPG_error:_Optional_enable:_http:.2F.2Frepos.rcn-ee.com.2F

--
Charles Steinkuehler
cha...@steinkuehler.net
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.

Charles Steinkuehler

unread,
Sep 25, 2016, 10:48:45 AM9/25/16
to machi...@googlegroups.com
On 9/25/2016 4:01 AM, hector ice wrote:
> Hi all,
> I am also trying to install xenomai patched kernel on my BBB for preemption and
> RT Processing for my project.
> I have followed the steps described here and also available on other forums. But
> still I am not able to successfully develop the kernel.
>
> I have tried following steps.( I am using newest version of BBB rev.C)
> 1. I have downloaded new 3.8 kernel ( as from webs I came to know that xenomai
> is available till 3.8)
> 2. I have did menuconfig, Than applied the patch of xenomai.and compiled the kernel.
> 3. When I have inserted the card with compiled kernel on BBB it gave me 'kernel
> panic' and stopped booting
>
> --Than I did follow.
> 1. I did again fresh installation. again with minimal modules selected.
> But still no luck.
>
> Can anyone help me for this.?

Unless you _really_ know what you're doing, I suggest you start with
RCN's build script to create a known-good kernel, then start making
whatever tweaks you need. Grab the build scripts from here:

https://github.com/RobertCNelson/bb-kernel/tree/3.8.13-xenomai

Checkout the 3.8.13-xenomai branch or one of the specific kernel tags
(the current version is 3.8.13-xenomai-r79). Copy system.sh.sample to
system.sh and configure for you local machine (ie: set LINUX_GIT to
where you want your local copy of the kernel source repo).

Then just run "./build_deb.sh" and you will get an installable kernel
package...just copy it to your BBB and install with dpkg.

Verify that kernel works and you can start making changes. Just edit
the files in the KERNEL directory and rebuild with "tools/rebuild_deb.sh".

WARNING: If you do not use one of the rebuild scripts in tools (either
rebuild.sh or rebuild_deb.sh) you will *LOOSE* all your local changes
and the KERNEL directory will be overwritten with a fresh checkout +
BBB patches of the full kernel tree.

--
Charles Steinkuehler
cha...@steinkuehler.net

hector ice

unread,
Sep 25, 2016, 2:22:32 PM9/25/16
to Machinekit


On Sunday, September 25, 2016 at 4:52:54 PM UTC+5:30, Schooner wrote:

On 25/09/16 10:01, hector ice wrote:
Hi all,
I am also trying to install xenomai patched kernel on my BBB for preemption and RT Processing for my project.
I have followed the steps described here and also available on other forums. But still I am not able to successfully develop the kernel.

I have tried following steps.( I am using newest version of BBB rev.C)
1. I have downloaded new 3.8 kernel ( as from webs I came to know that xenomai is available till 3.8)
2. I have did menuconfig, Than applied the patch of xenomai.and compiled the kernel.

Normally you would patch the kernel and THEN configure it for building - no idea what options you used.
But you should not need to build your own

I need all the peripherals including pwm ,uart, i2c,spi to be up and running with other features so was trying to build. I agree ,Pre-built kernel is very good option. so will do on that.
3. When I have inserted the card with compiled kernel on BBB it gave me 'kernel panic' and stopped booting

--Than I did follow.
1. I did again fresh installation. again with minimal modules selected.
But still no luck.

Can anyone help me for this.?

There are pre-built kernels available as previously in this thread and as Charles shows below
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#2014-05-14_GPG_error:_Optional_enable:_http:.2F.2Frepos.rcn-ee.com.2F

They are at
http://repos.rcn-ee.com/debian/pool/main/l/linux-3.8.13-xenomai-r76/
with headers and firmware

 I checked link. Its says .deb package. I though prebuild kernel would be the whole kernel with xenomai. Around some Gb's. By the way in short I have project where I need full RT support with Preempt in kernel level. Please don't mind as I have tried some ways searched from net. that didn't worked So If that .deb package serves the need. I am more happy to go with it.

hector ice

unread,
Sep 25, 2016, 2:29:28 PM9/25/16
to Machinekit

I have tried this link, As it has downloaded full kernel and made It image, Than I have tried that image on sd card than booted up bbb with it. but no luck. I guess I have missed some step, Can you please clear me where I am wrong. Also I want make one full image with xenomai ( RT+Preempt  support) So that I can have only one image, So no need to  install packages externally when ever there is new board comes for configuration. Can you suggest me what should i do to make that? 
--
Charles Steinkuehler
cha...@steinkuehler.net

Charles Steinkuehler

unread,
Sep 25, 2016, 2:36:46 PM9/25/16
to machi...@googlegroups.com
On 9/25/2016 1:22 PM, hector ice wrote:
> On Sunday, September 25, 2016 at 4:52:54 PM UTC+5:30, Schooner wrote:
>
> I need all the peripherals including pwm ,uart, i2c,spi to be up and running
> with other features so was trying to build. I agree ,Pre-built kernel is very
> good option. so will do on that.

The pre-built kernels have all the drivers compiled in. If you want
something specific enabled as early as possible, you can create a
custom device tree to enable what you need early in the kernel boot
sequence. If you need even earlier support for something, there are
some things that can be enabled by the u-Boot boot loader.

> There are pre-built kernels available as previously in this thread and as
> Charles shows below
> http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#2014-05-14_GPG_error:_Optional_enable:_http:.2F.2Frepos.rcn-ee.com.2F
> <http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#2014-05-14_GPG_error:_Optional_enable:_http:.2F.2Frepos.rcn-ee.com.2F>
>
> They are at
> http://repos.rcn-ee.com/debian/pool/main/l/linux-3.8.13-xenomai-r76/
> <http://repos.rcn-ee.com/debian/pool/main/l/linux-3.8.13-xenomai-r76/>
> with headers and firmware
>
> I checked link. Its says .deb package. I though prebuild kernel would be the
> whole kernel with xenomai. Around some Gb's. By the way in short I have project
> where I need full RT support with Preempt in kernel level. Please don't mind as
> I have tried some ways searched from net. that didn't worked So If that .deb
> package serves the need. I am more happy to go with it.

Just run:

> $ apt-get update
> apt-cache search linux-image xenomai
> linux-image-3.8.13-xenomai-r67 - Linux kernel, version 3.8.13-xenomai-r67
> linux-image-3.8.13-xenomai-r69 - Linux kernel, version 3.8.13-xenomai-r69
> linux-image-3.8.13-xenomai-r70 - Linux kernel, version 3.8.13-xenomai-r70
> linux-image-3.8.13-xenomai-r71 - Linux kernel, version 3.8.13-xenomai-r71
> linux-image-3.8.13-xenomai-r72 - Linux kernel, version 3.8.13-xenomai-r72
> linux-image-3.8.13-xenomai-r76 - Linux kernel, version 3.8.13-xenomai-r76
> linux-image-3.8.13-xenomai-r78 - Linux kernel, version 3.8.13-xenomai-r78
> linux-image-3.8.13-xenomai-r79 - Linux kernel, version 3.8.13-xenomai-r79
> $ sudo apt-get install <desired version>

The kernel packages are built with xenomai support, but you will still
need to install the xenomai user-land packages (ie: xenomai-runtime)
and install or write a xenomai-enabled application.

--
Charles Steinkuehler
cha...@steinkuehler.net

Charles Steinkuehler

unread,
Sep 25, 2016, 2:45:14 PM9/25/16
to machi...@googlegroups.com
On 9/25/2016 1:29 PM, hector ice wrote:
>
> I have tried this link, As it has downloaded full kernel and made It image, Than
> I have tried that image on sd card than booted up bbb with it. but no luck. I
> guess I have missed some step, Can you please clear me where I am wrong.

I have no clue. The scripts just build a kernel, they do not create a
uSD image (there are other scripts for that). You should start with a
working uSD image and add your custom kernel, or you will have lots of
problems that I will not help you through on the Machinekit mailing list.

Start by booting an unmodified uSD image on your BBB.

Build a kernel deb package using RCN's scripts.

Copy the resulting deb package to your BBB and install with dpkg.

Reboot and you should be running the new kernel.

...at this point, you can start making changes to the kernel source to
customize it for your needs. If you can't get this working, you will
need to figure out why before you start trying to tweak the kernel.

> Also I
> want make one full image with xenomai ( RT+Preempt support) So that I can have
> only one image, So no need to install packages externally when ever there is
> new board comes for configuration. Can you suggest me what should i do to make
> that?

It sounds like you may not want to use a standard distribution like
Debian. If you want a single image for commercial release with no
packaging, you may be better off looking into one of the embedded
distributions like Yocto (and many others).

--
Charles Steinkuehler
cha...@steinkuehler.net

hector ice

unread,
Sep 25, 2016, 3:14:57 PM9/25/16
to Machinekit
I am not in favor of yocto also. And I am using only( and I wanted too) debian standard distribution . With that I wanted to download and install all the packages with patches described by you. I am trying now with the steps described.
 
--
Charles Steinkuehler
cha...@steinkuehler.net

hector ice

unread,
Sep 25, 2016, 3:17:11 PM9/25/16
to Machinekit
Also i will try with machine kit, with xenomai. So that I can have all with single image.
--
Charles Steinkuehler
cha...@steinkuehler.net

hector ice

unread,
Sep 25, 2016, 4:01:21 PM9/25/16
to Machinekit

Update:- I was trying with 2gb sd-card image from BBB official download site. So it was creating A 2g partition on the disk, so when i ran make menuconfig, it was giving error as low space. But when i increased space via gparted, The location gets changed so when I boot from that sd-card, Kernel panic occurred. So I have 4gb image, With Xenomai patched. but still it won't boot.

kernel downloaded from official BBB site, With given Debian distribution 7.5 Version (kernel 3.8) of 4gb.
what should i do now.?
  
--
Charles Steinkuehler
cha...@steinkuehler.net

hector ice

unread,
Sep 26, 2016, 1:20:30 AM9/26/16
to Machinekit

I have tried above command. But didnt worked. produced now version as output.. Result is as below.

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy/restricted/source/Sources  404  Not Found [IP: 91.189.88.161 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy/universe/source/Sources  404  Not Found [IP: 91.189.88.161 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/main/source/Sources  404  Not Found [IP: 91.189.88.161 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/restricted/source/Sources  404  Not Found [IP: 91.189.88.161 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/hardy-updates/universe/source/Sources  404  Not Found [IP: 91.189.88.161 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@debian-armhf:/home/debian# apt-cache search linux-image xenomai
root@debian-armhf:/home/debian#

Kernel version.
root@debian-armhf:/home/debian# uname -r
3.8.13-bone30
root@debian-armhf:/home/debian#


 
--
Charles Steinkuehler
cha...@steinkuehler.net

Charles Steinkuehler

unread,
Sep 26, 2016, 8:08:15 AM9/26/16
to machi...@googlegroups.com
On 9/26/2016 12:20 AM, hector ice wrote:
>
> I have tried above command. But didnt worked. produced now version as output..
> Result is as below.
>
> W: Failed to fetch
> http://archive.ubuntu.com/ubuntu/dists/hardy/restricted/source/Sources 404 Not
> Found [IP: 91.189.88.161 80]

All of my instructions assume you are starting with a Machinekit
Debian Jessie image, or at least one of RCN's Debian images for the
BBB. If you want to use Ubuntu, you are on your own and will have to
recreate a bunch of tweaks specific for the BeagleBone and Machinekit.

--
Charles Steinkuehler
cha...@steinkuehler.net

Charles Steinkuehler

unread,
Sep 26, 2016, 8:10:51 AM9/26/16
to machi...@googlegroups.com
On 9/25/2016 3:01 PM, hector ice wrote:
>
> Update:- I was trying with 2gb sd-card image from BBB official download site. So
> it was creating A 2g partition on the disk, so when i ran make menuconfig, it
> was giving error as low space. But when i increased space via gparted, The
> location gets changed so when I boot from that sd-card, Kernel panic occurred.
> So I have 4gb image, With Xenomai patched. but still it won't boot.
>
> kernel downloaded from official BBB site, With given Debian distribution 7.5
> Version (kernel 3.8) of 4gb.
> what should i do now.?

Use one of the official 4G images and an 8G or larger uSD card.

Boot the image and increase the partition size on the uSD by running:

/opt/scripts/tools/grow_partition.sh

...then reboot.

If you are going to be building the kernel (or anything else, really)
on the BeagleBone, you will need to add a swapfile.

--
Charles Steinkuehler
cha...@steinkuehler.net

Robert Nelson

unread,
Sep 26, 2016, 11:10:10 AM9/26/16
to hector ice, Machinekit
>
>
> I have tried above command. But didnt worked. produced now version as
> output.. Result is as below.
>
> W: Failed to fetch
> http://archive.ubuntu.com/ubuntu/dists/hardy/restricted/source/Sources 404
> Not Found [IP: 91.189.88.161 80]
>
> W: Failed to fetch
> http://archive.ubuntu.com/ubuntu/dists/hardy/universe/source/Sources 404
> Not Found [IP: 91.189.88.161 80]
>
> W: Failed to fetch
> http://archive.ubuntu.com/ubuntu/dists/hardy-updates/main/source/Sources
> 404 Not Found [IP: 91.189.88.161 80]
>
> W: Failed to fetch
> http://archive.ubuntu.com/ubuntu/dists/hardy-updates/restricted/source/Sources
> 404 Not Found [IP: 91.189.88.161 80]
>
> W: Failed to fetch
> http://archive.ubuntu.com/ubuntu/dists/hardy-updates/universe/source/Sources
> 404 Not Found [IP: 91.189.88.161 80]

"hardy" there was never an "armhf" port back then...


> E: Some index files failed to download. They have been ignored, or old ones
> used instead.
> root@debian-armhf:/home/debian# apt-cache search linux-image xenomai
> root@debian-armhf:/home/debian#
>
> Kernel version.
> root@debian-armhf:/home/debian# uname -r
> 3.8.13-bone30

debian-armhf and bone30, that's the "http://armhf.com" default image..

Get an image that's not ancient and atleast supported by someone..

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#BBW.2FBBB_.28All_Revs.29_Machinekit

Regards,

--
Robert Nelson
https://rcn-ee.com/

hector ice

unread,
Sep 26, 2016, 4:58:16 PM9/26/16
to Machinekit
Nop, not using ubuntu on BBB. Downloaded new RCN debian image. And it worked.
Thx :-)
--
Charles Steinkuehler
cha...@steinkuehler.net

hector ice

unread,
Sep 26, 2016, 5:01:26 PM9/26/16
to Machinekit, zero.c...@gmail.com

Thank you Robert for pointing it out, I was also doubtful of image so changed and tried the steps. And installed xenomai patched kernel.
Also I have one query, How do i install user space xenomai with all the test scripts.?
Right now my kernel is showing ( though not near my board now but still remember)
verson:- 3.8.13-bone 70-xenomai 3.x

So how do I install ( if there is need) and where do i check the test scripts of xenomai.?
Thanks again for replay.

Charles Steinkuehler

unread,
Sep 26, 2016, 6:09:21 PM9/26/16
to machi...@googlegroups.com
On 9/26/2016 4:01 PM, hector ice wrote:
>
> Thank you Robert for pointing it out, I was also doubtful of image so changed
> and tried the steps. And installed xenomai patched kernel.
> Also I have one query, How do i install user space xenomai with all the test
> scripts.?

apt-get install xenomai-runtime

--
Charles Steinkuehler
cha...@steinkuehler.net

hector ice

unread,
Sep 27, 2016, 6:06:08 AM9/27/16
to Machinekit


On Tuesday, September 27, 2016 at 3:39:21 AM UTC+5:30, Charles Steinkuehler wrote:
On 9/26/2016 4:01 PM, hector ice wrote:
>
> Thank you Robert for pointing it out, I was also doubtful of image so changed
> and tried the steps. And installed xenomai patched kernel.
> Also I have one query, How do i install user space xenomai with all the test
> scripts.?

apt-get install xenomai-runtime

I ran the command and it ran successfully. But still I am not able to find the test example for xenomai, RT and PreEmpt. Could you guide me the path.
( i have search in all the directories under /usr and /lib. but I have got the examples with Makefile.am and one .c file. I have tried to make but no luck).

Thanks
--
Charles Steinkuehler
cha...@steinkuehler.net
Reply all
Reply to author
Forward
0 new messages