Tango recipes for OpenEmbedded Bitbake

Hi tangoers,

for those who need a customised linux distribution including tango, here is the successfull result of my attempt with OpenEmbedded & Poky. (no apt-get required)

It has been tested with a Zedboard (xilinx zynq fpga = dual arm7 cores) (TangoTest devices). I will give a try with raspberry pi 2 and BBB asap.

you need 4 recipes (zeromq omniorb4 tango)

hope it helps…


for beginners, more info here :
https://github.com/Xilinx/meta-xilinx
www.openembedded.org

attachments are omniorb4_4.1.7.bb, omniorb-native_4.1.7.bb, tango_8.1.2.bb, zeromq_3.2.5.bb 5



tango vdi for testing
http://dl.free.fr/nXmWNLGqM
(sorry I dont how to edit files name)



Poky (Yocto Project Reference Distro) 1.7 zedboard-zynq7 /dev/ttyPS0

zedboard-zynq7 login: root
root@zedboard-zynq7:~# uname -a
Linux zedboard-zynq7 3.18.0 #5 SMP PREEMPT Mon Jun 8 14:59:40 CEST 2015 armv7l GNU/Linux

root@zedboard-zynq7:~# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 0 (v7l)Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc09
CPU revision : 0

processor : 1
model name : ARMv7 Processor rev 0 (v7l)
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc09
CPU revision : 0

Hardware : Xilinx Zynq Platform
Revision : ffffffff
Serial : 0000000000000000
root@zedboard-zynq7:~# TangoTest test1
Failed to import EventChannelFactory notifd/factory/zedboard-zynq7 from the Tango database
Ready to accept request
Edited 5 years ago
Sounds very interesting but I think I am missing some explanations of the intermediate steps smile

Let me know if I can help you upload the files mentioned in the post.

Andy
those files are OpenEmbedded/bitbake recipes for tango, omniorb4, zmq.

OpenEmbedded is a collection of tools and recipes to build from scratch a linux embedded system.
it automatically download source code from repository, launch autoconf, cmake or anything else, then cross compile, build packages, … and generate a linux kernel, tailored for your hardware, modules, root filesystem, ext4, ext3, resiserfs, … even the bootloader

it is backed by TI,INTEL,ARM,… definitely the way to go with linux on embedded device

basically you have to install openembedded, then git clone some collections of recipes (meta : generics ones, meta-xilinx : xilinx specifics, …) edit local.conf to describe your hardware and software packages requirements (X11 or not, …)
eventually add some new recipes… It take a couple of hour (need a decent computer)… but very reliable


this is the tango recipes (easy because we use autoconf, bitbake knows what to do)

DESCRIPTION = "tango control system"
LICENSE = "GPLv3 | LGPLv3"
LIC_FILES_CHKSUM = " \
		 file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
		 file://COPYING.LESSER;md5=6a6a8e020838b23406c81b19c1d46df6 \
"
SRC_URI = "http://downloads.sourceforge.net/project/tango-cs/tango-8.1.2c.tar.gz \
file://p812_1.diff;patch=1 \
file://p812_2.diff;patch=1 \
file://p812_3.diff;patch=1 \
file://p812_4.diff;patch=1 "
SRC_URI[md5sum] = "3dbcc2cf34f8c9395ee72f4ee5ae05dc"
SRC_URI[sha256sum] = "0149e797e5745b1dd8d5d39260889b6da31c84c75c272372255ae8ca3507a116"

EXTRA_OECONF_append += "PATH=${PATH}:${STAGING_BINDIR_NATIVE}/arm-poky-linux-gnueabi/  \
–disable-dbserver \
'–with-zlib=${STAGING_DIR}' \
'OMNI_ROOT=${STAGING_DIR}/../work/armv7a-vfp-neon-poky-linux-gnueabi/omniorb4/4.1.7-r2/package/usr/' \
'ZMQ_ROOT=${STAGING_DIR}/../work/armv7a-vfp-neon-poky-linux-gnueabi/zeromq/3.2.5-r0/package/usr/' \
"
inherit autotools pkgconfig 



I will make you a demo next timesmile

files are in attachment. we see their size but I can't edit the file name.




Andy
Sounds very interesting but I think I am missing some explanations of the intermediate steps smile

Let me know if I can help you upload the files mentioned in the post.

Andy
Edited 5 years ago
Hi Raphael,

could you please re-upload your VM? You posted a download link to other forums for a preconfigured VM but the zip-file (2,3 GB) is corrupted.

Many thanks in advance!

Wahid
Best regards

Wahid
Sorry Whaid, I dont have access right now to my desktop. I will be back mid August.

The last download link to VDI disk was :

http://dl.free.fr/hrX7h9EMa

Is it the corrupted one ?
Rgds
Hi Raphael,

yes that's the link, I downloaded it again but I'm still not able to unpack the archive…

It would be nice if you could upload it again when you are back :)

Many Thanks,

Wahid
Best regards

Wahid
try this link

http://dl.free.fr/nXmWNLGqM

tell me if it is okay now …
Edited 5 years ago
Hi Raphael,

now it works, thank you
Best regards

Wahid
Edited 5 years ago
maybe you have some time to write your requirements/advice in this thread about the new VM
feel free to ask if you have specific needs…

http://www.tango-controls.org/community/forums/topic/74/
Hi!

Do you maybe have some tips on how to use the recipes for open-embedded/yocto? I'm trying it since a week and it is still not working with the recipes. Is there a typo in the filename: omniorb4_4.1.7.bb instead of omniorb_4.1.7.bb ?

I tested the VM and hoped your openembedded project was integrated and i could use it from your VM.
I am working on a project where a controlsystem needs to be integrated on embedded devices like the zedboard (we're planing to develop a customized board with the Zynq Chip, but for now the Zedboard is more then we need for developing). The idea is, that we build a tailored os on the arm core running which is ready to use by plug'n'play in the control system, an automated subscription to the TangoHost / ServerIntegration is planed.
Best regards

Wahid
 
Register or login to create to post a reply.