Skip to contentSkip to conversation

use of xenomai, how to build xenomai3 with graphical desktop in raspberry pi 2

Xenomai Jinlong Shen 2 participants 3 messages Nov 2, 2016 – Nov 4, 2016 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Since I may understand it incompletely, I try to give some details that may help to get myself understood.
I wish to learn how to use Xenomai3 in cobalt mode. I followed the procedure in the following link with some modification. http://www.blaess.fr/christophe/2016/05/22/xenomai-3-sur-raspberry-pi-2/I could generate Linux/Xenomai image as well as the user space. I am having difficult in using buildroot. Since I am not able to populate a naive SD card with the bootloader(s) and file system, I installed Raspbian to the SD card using Noobs.  After that, I copied the aforementioned Linux/Xenomai image (renamed as kerlnel7.img) and User Space to the SD card. Many thanks, the test functions worked!!!
My questions are as follows:
(1) I wish to avoid use of Noobs. How can produce a minimal system on a naive SD card from an engineering PC? I guess the minimal means the following      (a) the file system (b) bootcode.bin. (c) .elf for GPU. (d) configure file to specify memory division between GPU and ARM cores.
(2) The system created with Noobs is having nice HMI ( graphical desktop over HDMI + keyboard). In Xenomai, I do not have it. How and where can I configure it in order to have the normal HMI (keyboard, desktop) again?

Best regards,Jinlong

#2 lore raw

Hey,

that is not really a xenomai question. More a question on how to prepare a root fs for the board. Or how to exchange the kernel in an existing root fs.

As far as i understand it you modified an existing image, putting the xenomai kernel and userland in. If that made you loose the GUI you probably forgot some CONFIG_ in the kernel, or you did not copy the kernel modules.
Try "make modules_install" with INSTALL_MOD_PATH in your kernel dir to get the modules in a place where you can archive and copy them. If the distro is using any external modules you will have to rebuild and install those as well.

regards,
Henning

Am Wed, 2 Nov 2016 22:57:29 +0000
schrieb Jinlong Shen <[email protected]>:

Quoted 25 lines

Since I may understand it incompletely, I try to give some details
that may help to get myself understood. I wish to learn how to use Xenomai3 in cobalt mode. I followed the procedure in the following
link with some
modification. http://www.blaess.fr/christophe/2016/05/22/xenomai-3-sur-raspberry-pi-2/I
could generate Linux/Xenomai image as well as the user space. I am
having difficult in using buildroot. Since I am not able to populate
a naive SD card with the bootloader(s) and file system, I installed Raspbian to the SD card using Noobs.  After that, I copied the aforementioned Linux/Xenomai image (renamed as kerlnel7.img) and User Space to the SD card. Many thanks, the test functions worked!!! My questions are as follows: (1) I wish to avoid use of Noobs. How can produce a minimal system on a naive SD card from an engineering PC? I guess the minimal means the following      (a) the file system (b) bootcode.bin. (c) .elf for GPU. (d) configure file to specify memory division between GPU and ARM cores. (2) The system created with Noobs
is having nice HMI ( graphical desktop over HDMI + keyboard). In
Xenomai, I do not have it. How and where can I configure it in order
to have the normal HMI (keyboard, desktop) again?

Best regards,Jinlong
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20161104090659.7aba3080@md1em3qc

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Am Fri, 4 Nov 2016 11:22:24 +0000
schrieb Jinlong Shen <[email protected]>:

Quoted 10 lines

Hi Henning,
Hardware version: Raspberry Pi 2WLAN: Edimax USB-WLAN Stick Software Version:(1) Linux/Raspberry rpi-4.1.y (Version=4 Patch; Level= 1; Sublevel =21)(2)Xenomai-3.0.2(3)ipipe-core-4.1.18-arm-4.patch I used bcm2709_defconfig. Does it play a role here? With the installation from Noobs, it can find the Access Point and type in the password. With Xenomai-Linux, I can find the Access Point as well. However, I can not get connected. lsusb ifconfig shows that there is wlan0 Phy is there.

If the interfaces are there but not working you seem to have the right modules, maybe you are still missing the firmware blobs?
But that problem does not seem to be a xenomai one. I suggest you try with a regular 4.1.18 kernel. My guess is that you are missing one step required to get the WIFI working and the problem can be reproduced with any similar kernel.
Trying that should confirm that you do not have a problem with the ipipe kernel and will put you into a position where you can ask around in other communities as well.

Henning

Quoted 91 lines

Best regards,Jinlong

From: Henning Schild <[email protected]>
To: Jinlong Shen <[email protected]>
Sent: Friday, November 4, 2016 9:06 AM
Subject: Re: [Xenomai] use of xenomai, how to build xenomai3 with
graphical desktop in raspberry pi 2
Am Thu, 3 Nov 2016 22:33:41 +0000
schrieb Jinlong Shen <[email protected]>:

Quoted 5 lines

Hi Henning,
many thanks. It worked.
I followed your advice and it worked. However, it is not able to automatic discover Router/Access Point. Any hint? Best regards,Jinlong

If that worked with the original kernel you network adaptor might require an external module. The kernel log should tell you which module is the driver for the interface. If your new kernel is missing that module you will have to find the sources for it and compile it for the new kernel.
If it never worked you should read a general linux networking guide or something specific to your distribution.

I do not know the raspi hardware or the kernel support for it. But maybe you can let us know which kernel version you are using and what kind of network adaptor you are using. The one on the SoC or something attached over USB?

Henning

Quoted 57 lines

      From: Henning Schild <[email protected]>
  To: Jinlong Shen <[email protected]>
Cc: "[email protected]" <[email protected]>
  Sent: Thursday, November 3, 2016 9:49 AM
  Subject: Re: [Xenomai] use of xenomai, how to build xenomai3 with graphical desktop in raspberry pi 2
Hey,

that is not really a xenomai question. More a question on how to prepare a root fs for the board. Or how to exchange the kernel in an existing root fs.

As far as i understand it you modified an existing image, putting the xenomai kernel and userland in. If that made you loose the GUI you probably forgot some CONFIG_ in the kernel, or you did not copy the kernel modules.
Try "make modules_install" with INSTALL_MOD_PATH in your kernel dir to get the modules in a place where you can archive and copy them. If the distro is using any external modules you will have to rebuild and install those as well.

regards,
Henning

Am Wed, 2 Nov 2016 22:57:29 +0000
schrieb Jinlong Shen <[email protected]>:

Quoted 21 lines

Since I may understand it incompletely, I try to give some details
that may help to get myself understood. I wish to learn how to use Xenomai3 in cobalt mode. I followed the procedure in the following
link with some
modification. http://www.blaess.fr/christophe/2016/05/22/xenomai-3-sur-raspberry-pi-2/I
could generate Linux/Xenomai image as well as the user space. I am
having difficult in using buildroot. Since I am not able to
populate a naive SD card with the bootloader(s) and file system,
I installed Raspbian to the SD card using Noobs.  After that, I
copied the aforementioned Linux/Xenomai image (renamed as
kerlnel7.img) and User Space to the SD card. Many thanks, the
test functions worked!!! My questions are as follows: (1) I wish
to avoid use of Noobs. How can produce a minimal system on a
naive SD card from an engineering PC? I guess the minimal means
the following      (a) the file system (b) bootcode.bin. (c) .elf
for GPU. (d) configure file to specify memory division between
GPU and ARM cores. (2) The system created with Noobs is having
nice HMI ( graphical desktop over HDMI + keyboard). In Xenomai, I
do not have it. How and where can I configure it in order to have
the normal HMI (keyboard, desktop) again?

Quoted 5 lines

Best regards,Jinlong
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai