Yocto support

Share here your ideas for new projects

Moderators: odroid, meveric, mdrjr

Yocto support

Unread postby dirtybit » Tue Apr 02, 2013 6:07 am

Hi,
I've done some research on the internet but it seems there is no Yocto support for ODROID boards and Samsung SoCs.
Is there any ongoing effort to make ODROID in Yocto game by creating BSP packages of required "layers"? If there is no, do you plan putting it into TODO items? I want to get started on that (I am waiting for arrival of my X2 :))
If there is anyone interested in we can talk about it..

I think it is worth considering Yocto as a build environment where you can build your custom embedded Linux distribution. Yocto project is backed by The Linux Foundation as well as some other hardware vendors.
It might be useful to enable Yocto on ODROID platforms.

Yocto Project: https://www.yoctoproject.org
Quick Start Guide: https://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html (it gives the initial idea)

Thanks
dirtybit
 
Posts: 3
Joined: Tue Apr 02, 2013 5:50 am
languages_spoken: english
ODROIDs: ODROID-X2

Re: Yocto support

Unread postby mdrjr » Tue Apr 02, 2013 7:52 am

It looks like an Automated Linux From Scratch for ARM...

Sorry, its not on our TODO list, nor it will probably ever be in a short time.

However, if you want to start such project. I'll help with whatever you want. Providing all the needed information that you'll may need.

Feel free to PM me or join me on IRC freenode @ #odroid
mdrjr
Site Admin
 
Posts: 11543
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Yocto support

Unread postby dirtybit » Sat Apr 06, 2013 6:34 am

Thanks for your interest.
I didn't get the board yet. I am going to start working on this as soon as I get it. I am sure I'll need some information and help about the platform. I'll keep the community updated so that anyone interested can jump in and contribute.
dirtybit
 
Posts: 3
Joined: Tue Apr 02, 2013 5:50 am
languages_spoken: english
ODROIDs: ODROID-X2

Re: Yocto support

Unread postby ozcoder » Tue Nov 05, 2013 11:43 am

Some Yocto videos listed here
http://linuxgizmos.com/two-dozen-embedd ... -released/
Also some other embedded topics too.
I haven't actually got around to watching any of them yet, but the should be interesting to some people.
ozcoder
 
Posts: 12
Joined: Mon Nov 04, 2013 9:20 pm
Location: Sydney, Australia
languages_spoken: english
ODROIDs: X2

Re: Yocto support

Unread postby tobias.h » Fri Mar 14, 2014 5:18 am

Hi,
i am also interested in a hardware layer for yocto...i read (and understood) that the toolchain not only build a image, forthemore it builds a cross-compiler toolchain that can be used within eclipse over a special yacoto-plugin. The IDE Eclipse can be setup on a normal linux development pc and we can implement our programms there compile it there and make a life debugging on the target (odroid). I think it is a cool feature since it grows to a standard thing for embedded socs i think.

regards
tobi
tobias.h
 
Posts: 1
Joined: Fri Mar 14, 2014 5:03 am
languages_spoken: english, german
ODROIDs: u3

Re: Yocto support

Unread postby mdrjr » Fri Mar 14, 2014 5:26 am

tobias.h wrote:Hi,
i am also interested in a hardware layer for yocto...i read (and understood) that the toolchain not only build a image, forthemore it builds a cross-compiler toolchain that can be used within eclipse over a special yacoto-plugin. The IDE Eclipse can be setup on a normal linux development pc and we can implement our programms there compile it there and make a life debugging on the target (odroid). I think it is a cool feature since it grows to a standard thing for embedded socs i think.

regards
tobi


We have no plans to add Yocto support.
mdrjr
Site Admin
 
Posts: 11543
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Yocto support

Unread postby Markus » Tue Jun 24, 2014 5:45 am

I found meta packages on github for odroid. The code is a bit outdated and only supports U2 boards. I have a fork from the repo https://github.com/MarkusEich/meta-odroid and I am working on a XU version. Because you only need to crosscompile u-boot and kernel.3.4 it should be easy to integrate XU into the build chain.

Markus
Markus
 
Posts: 13
Joined: Mon Jun 23, 2014 10:52 pm
languages_spoken: english
ODROIDs: odroid-xu

Re: Yocto support

Unread postby LifeIsBeautiful » Tue Sep 16, 2014 9:01 pm

Hello All
I am working on using Yocto to prepare an image for odroid U3. started with using layer prepared by Markus and others.All most all of them are using "tools/hardkernel/genBscr.sh" but i am not able to locate this file in the kernel code that i downloaded. Can anybody please guide me on where to find this file and what it does.

Thanks
LifeIsBeautiful
 
Posts: 12
Joined: Tue Sep 02, 2014 6:37 pm
languages_spoken: english
ODROIDs: Odroid-U3

Re: Yocto support

Unread postby mdrjr » Tue Sep 16, 2014 9:04 pm

This file is deprecated and we don't use it anymore.
Refer to the boot.scr file on /media/boot of any running image to see / understand its contents.
mdrjr
Site Admin
 
Posts: 11543
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Yocto support

Unread postby gregeva » Mon Feb 09, 2015 7:48 pm

Hello ODroid people.

I have just found your products and am quite interested for a number of projects. Very modular, very nice.

However a major setback for me and my projects is that there are no minimal Linux images or Yocto BSP (Board Support Packages). An embedded device should by definition be compact and optimized for the job that it is doing. This is one MAJOR befefit of Yocto in that you create a configuration which will build a very specific optimized embedded Linux based on this recipe. It is not for ARM, it is a very complete solution designed for building for all sorts of platforms and configurations.

A quick explanation of the approach is this: manufacturers provide a BSP for various embedded environments, these contain specific information regarding the hardware on that product. The BSP is then simply added to a Yocto Recipe in order to be able to build a custom embedded Linux image specifically for that board.

As manufacturers change components over the years, they simply update the BSP and are able to build and ship standard distributions for a range of products with different hardware without the added overhead of maintaining completely different OS branches for their various products.

There is certainly a learning curve for Yocto, but you will benefit over time, as well as making your product much more viable for embedded systems designers/engineers. If you have a look, RaspberryPi, BeagleBone, and UDOO all support Yocto.

Regards,

Greg
gregeva
 
Posts: 1
Joined: Mon Feb 09, 2015 7:38 pm
languages_spoken: english, french

Re: Yocto support

Unread postby delfi » Wed Feb 11, 2015 12:23 am

This was started for meson_6 board, should be easy to adapt for meson8/C1. Change the kernel src, add C1 DTD, some patches are not needed, initramfs could also go away (it was needed due to some initial sdio uSD problems). Sato desktop image builds and works fine.
https://github.com/project-magpie/meta-amlogic
delfi
 
Posts: 3
Joined: Sun Jan 18, 2015 6:27 am
languages_spoken: english

Re: Yocto support

Unread postby graugans » Mon Feb 16, 2015 1:42 am

delfi wrote:This was started for meson_6 board, should be easy to adapt for meson8/C1. Change the kernel src, add C1 DTD, some patches are not needed, initramfs could also go away (it was needed due to some initial sdio uSD problems). Sato desktop image builds and works fine.
https://github.com/project-magpie/meta-amlogic


I am working on basic, support for Odroid-C1 board.
graugans
 
Posts: 11
Joined: Wed Feb 11, 2015 1:11 am
languages_spoken: english

Re: Yocto support

Unread postby stoupa » Fri Mar 06, 2015 11:38 pm

graugans wrote:
delfi wrote:This was started for meson_6 board, should be easy to adapt for meson8/C1. Change the kernel src, add C1 DTD, some patches are not needed, initramfs could also go away (it was needed due to some initial sdio uSD problems). Sato desktop image builds and works fine.
https://github.com/project-magpie/meta-amlogic


I am working on basic, support for Odroid-C1 board.


Do you plan to publish your work on github for example? I can help you with development and/or testing.
stoupa
 
Posts: 7
Joined: Fri Mar 06, 2015 11:07 pm
languages_spoken: english, czech
ODROIDs: ODROID-C1

Re: Yocto support

Unread postby graugans » Sat Mar 07, 2015 12:59 am

Sure, but at the moment I do not have access to a odroid c1 board. So I am unable to test.
graugans
 
Posts: 11
Joined: Wed Feb 11, 2015 1:11 am
languages_spoken: english

Re: Yocto support

Unread postby stoupa » Sat Mar 07, 2015 1:12 am

graugans wrote:Sure, but at the moment I do not have access to a odroid c1 board. So I am unable to test.


Although I will be out for the next week, could you please publish it somewhere? I have C1 here, so I will able to test it.
stoupa
 
Posts: 7
Joined: Fri Mar 06, 2015 11:07 pm
languages_spoken: english, czech
ODROIDs: ODROID-C1

Re: Yocto support

Unread postby stoupa » Wed Mar 18, 2015 12:05 am

So I started at github, my work is based on MarkusEich/meta-odroid and is forked at stoupa-cz/meta-odroid (hepofully it will be merged back). The only notable think for the moment is build of u-boot (see branches). I will continue on Linux etc. Tests, help or patches are more then welcome.
stoupa
 
Posts: 7
Joined: Fri Mar 06, 2015 11:07 pm
languages_spoken: english, czech
ODROIDs: ODROID-C1

Re: Yocto support

Unread postby graugans » Wed Mar 18, 2015 2:58 am

Sorry, I completely forgot about this....
Is this your fork: https://github.com/stoupa-cz/meta-odroid
graugans
 
Posts: 11
Joined: Wed Feb 11, 2015 1:11 am
languages_spoken: english

Re: Yocto support

Unread postby graugans » Wed Mar 18, 2015 3:54 am

May I recommend to use COMPATIBLE_MACHINE in your recipes. Due to the fact that the name meta-odroid indicates is has support for various odroid machines your recipes may conflict.

Maybe it is better to use " cortexa5hf-neon" as default tuning option this will use hard floating point unit instead of softfp calling convention.
graugans
 
Posts: 11
Joined: Wed Feb 11, 2015 1:11 am
languages_spoken: english

Re: Yocto support

Unread postby stoupa » Thu Mar 19, 2015 12:56 am

graugans wrote:May I recommend to use COMPATIBLE_MACHINE in your recipes. Due to the fact that the name meta-odroid indicates is has support for various odroid machines your recipes may conflict.

Maybe it is better to use " cortexa5hf-neon" as default tuning option this will use hard floating point unit instead of softfp calling convention.


Hi graugans,

thanks for your comments.
* regarding COMPATIBLE_MACHINE: I already have COMPATIBLE_MACHINE in my u-boot recipe. The other u-boot recipes (the forked ones for different ODROIDs) missing that variable, I will add it.
* regarding tuning: Yes, I was also thinking about hard float optimization flags. But in our use case I need to have soft float ABI... anyway it is a weak assignment so it can be redefined. Do you think that generally HF is better? If yes, I will make HF default and override it to SF in my local.conf.

Best regards,

Tomas
stoupa
 
Posts: 7
Joined: Fri Mar 06, 2015 11:07 pm
languages_spoken: english, czech
ODROIDs: ODROID-C1

Re: Yocto support

Unread postby graugans » Thu Mar 19, 2015 5:41 am

Sorry I have not seen the COMPATIBLE_MACHINE flag. Anyway I created a pull request for ODROID-C1 support for the kernel recipe. This may need some polishing and it is not tested...
graugans
 
Posts: 11
Joined: Wed Feb 11, 2015 1:11 am
languages_spoken: english

Re: Yocto support

Unread postby stoupa » Tue Apr 14, 2015 11:20 pm

There is a status update:
ODROID-C1 support is ready for testing and it is here: https://github.com/stoupa-cz/meta-odroid . In the meantime, another one C1 support (and also XU3) were done here: https://github.com/funman/meta-odroid . We will try to join the work.
stoupa
 
Posts: 7
Joined: Fri Mar 06, 2015 11:07 pm
languages_spoken: english, czech
ODROIDs: ODROID-C1

Re: Yocto support

Unread postby graugans » Wed Apr 15, 2015 12:30 am

I merged my meta-amlogic with the changes from @stoupa and the changes I made the result can be found here:

https://github.com/project-magpie/meta-amlogic

To build for ODROID-C1 you have to select odroidc1 as machine.

Yes, I know yet another source for confusion. But for me mixing support for all ODROID boards in one layer felt not that good. Because in a lot of recipes there have to made checks weather to build for C1 or any other board. I just own the C1 + another Amlogic based Platform so it is easier for me. Feel free to port stuff to the other layer's. I'll do it as-well when the licence will allow it :)

Maybe you are interested in the following stuff:
- https://github.com/project-magpie/meta- ... ia/amcodec
- http://ch.ege.io/blog/2015/04/12/runnin ... nembedded/
graugans
 
Posts: 11
Joined: Wed Feb 11, 2015 1:11 am
languages_spoken: english

Re: Yocto support

Unread postby odroid » Wed Apr 15, 2015 10:08 am

Another Yocto Recipe for XU3. It seems to support the Mali T628 GPU.
https://github.com/ARM-software/meta-mali
User avatar
odroid
Site Admin
 
Posts: 21241
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Yocto support

Unread postby stoupa » Wed Apr 15, 2015 7:36 pm

So, we should find some conclusion for the future maintainability. Maybe it is really better to group layers by CPU (i.e. Amlogic, Samsung) than by manufacturer (Hardkernel, Wetek).

@Graugans - judging from your meta-amlogic layer, you would maintain your meta-amlogic in foreseeable future? If yes, I can mark my meta-odroid as a discontinued project and start using your layer. U2 and XU boards aren't maintained anyway in my layer.
stoupa
 
Posts: 7
Joined: Fri Mar 06, 2015 11:07 pm
languages_spoken: english, czech
ODROIDs: ODROID-C1

Re: Yocto support

Unread postby graugans » Wed Apr 15, 2015 8:10 pm

@stoupa, I will maintain it in foreseeable future? I have to merge some fixes from your branch. I thought it would be better to move this into this newly created project. I can add you on this project so you will have commit access.

https://github.com/linux-meson

My next steps on the TODO list:

- Speed up Kernel fetching by using a github TAG/Release and use the .zip instead of cloning the whole bunch.
- Adoption of the odroid-utility (https://github.com/linux-meson/odroid-utility) to fit into the Yocto/OpenEmbedded world
- More investigation in direction of Video/Audio decoding
- Integration of mali
- More testing with u-boot
graugans
 
Posts: 11
Joined: Wed Feb 11, 2015 1:11 am
languages_spoken: english

Re: Yocto support

Unread postby stoupa » Fri Apr 17, 2015 8:00 pm

graugans wrote:@stoupa, I will maintain it in foreseeable future? I have to merge some fixes from your branch. I thought it would be better to move this into this newly created project. I can add you on this project so you will have commit access.


Not needed now, pull requests are ok for me.

graugans wrote:https://github.com/linux-meson

My next steps on the TODO list:

- Speed up Kernel fetching by using a github TAG/Release and use the .zip instead of cloning the whole bunch.


This is usually done only once and further upgrades are easier (git is just updated). But it is true that kernel has really big git.

graugans wrote:- Adoption of the odroid-utility (https://github.com/linux-meson/odroid-utility) to fit into the Yocto/OpenEmbedded world
- More investigation in direction of Video/Audio decoding
- Integration of mali
- More testing with u-boot


So I will continue on your branch. I'm now switching to another task so I won't do much in that field, but in few weeks I should be back and I will start to test your layer. Thanks,

Tomas
stoupa
 
Posts: 7
Joined: Fri Mar 06, 2015 11:07 pm
languages_spoken: english, czech
ODROIDs: ODROID-C1

Re: Yocto support

Unread postby graugans » Wed May 06, 2015 12:45 am

The new home for my Yocto/OpenEmbedded Layer for ODROID-C1 Layer is at

https://github.com/linux-meson/meta-amlogic

I merged most of the fixes from stoupa. Maybe Some of the Admins can add a Link on the 3rdparty Distro section in the Wiki?

I've documented most of my test on my blog under the tag ODRIOD-C1

http://ch.ege.io/blog/categories/odroid-c1/

enjoy,
Christian
graugans
 
Posts: 11
Joined: Wed Feb 11, 2015 1:11 am
languages_spoken: english

Re: Yocto support

Unread postby odroid » Wed May 06, 2015 10:33 am

graugans wrote:I merged most of the fixes from stoupa. Maybe Some of the Admins can add a Link on the 3rdparty Distro section in the Wiki?


Great!
I've just added your Yocto port for C1 in the WiKi.
http://odroid.com/dokuwiki/doku.php?id= ... ng_systems
User avatar
odroid
Site Admin
 
Posts: 21241
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Yocto support

Unread postby droland » Thu Jan 19, 2017 8:28 pm

I have tried to use Yocto Morthy 2.2 release (for Odroid-C1+) but I could not find meta-odriod layer and odroid-c1 machine in that release, so I have tried to use Krogoth 2.1.2.
The Yocto master branch also contains Odroid but there is an error at starting of building.
So, Krogoth looks like works fine but it cannot check out HardKernel repo when I tried to build core-image-minimal recipe:
Code: Select all
NOTE: Logfile for task /home/dr/poky/build-toaster-2/tmp/work/odroid_c1-poky-linux-gnueabi/linux-hardkernel/3.14+gitAUTOINC+a7ae544a80-r0/temp/log.do_fetch.2573
NOTE: Logging error 2: {'lineno': 1606, 'message': 'Failed to fetch URL git://github.com/hardkernel/linux.git;branch=master,
attempting MIRRORS if available', 'pathname': '/home/dr/poky/_toaster_clones/_git___git.yoctoproject.org_poky.git_krogoth/bitbake/lib/bb/fetch2/__init__.py', 'build': <Build: 7 Odroid C1 Test1 (Release krogoth (krogoth), BBV krogoth (Branch: krogoth)) core-image-minimal>, 'level': 1}
WARNING: Failed to fetch URL git://github.com/hardkernel/linux.git;branch=master, attempting MIRRORS if available
NOTE: Logging error 2: {'lineno': 1618, 'message': 'Fetcher failure: Unable to find revision a7ae544a802bd56121bf7e6f93054d3e76066431 in branch master even from upstream', 'pathname': '/home/dr/poky/_toaster_clones/_git___git.yoctoproject.org_poky.git_krogoth/bitbake/lib/bb/fetch2/__init__.py', 'build': <Build: 7 Odroid C1 Test1 (Release krogoth (krogoth), BBV krogoth (Branch: krogoth)) core-image-minimal>, 'level': 2}
ERROR: Fetcher failure: Unable to find revision a7ae544a802bd56121bf7e6f93054d3e76066431 in branch master even from upstream
NOTE: Logging error 2: {'lineno': 516, 'message': "Function failed: Fetcher failure for URL: 'git://github.com/hardkernel/linux.git;branch=master'. Unable to fetch URL from any source.", 'pathname': '/home/dr/poky/_toaster_clones/_git___git.yoctoproject.org_poky.git_krogoth/bitbake/lib/bb/build.py', 'build': <Build: 7 Odroid C1 Test1 (Release krogoth (krogoth), BBV krogoth (Branch: krogoth)) core-image-minimal>, 'level': 2}
ERROR: Function failed: Fetcher failure for URL: 'git://github.com/hardkernel/linux.git;branch=master'. Unable to fetch URL from any source.
NOTE: recipe linux-hardkernel-3.14+gitAUTOINC+a7ae544a80-r0: task do_fetch: Failed
ERROR: Task 54 (/home/dr/poky/_toaster_clones/_https___github.com_akuster_meta-odroid_krogoth/recipes-kernel/linux/linux-hardkernel_3.14.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 835 tasks of which 834 didn't need to be rerun and 1 failed.


Could anybody tell me how/where could I fix urls and revisions?
I want to build a minimal image for Odroid C1+. What is the currently working Yocto release?

Best regards,
droland



[ url=link ] description [ /url ]
droland
 
Posts: 2
Joined: Thu Jan 19, 2017 1:52 am
Location: Hungary
languages_spoken: hungarian
ODROIDs: C1+, C2


Return to The Ideas

Who is online

Users browsing this forum: No registered users and 1 guest