Yocto build script

Discuss use it and firmware update

Yocto build script

Postby jvq » Aug 26th, '17, 20:07

Hi everybody,

I made a build script using Docker that lets you compile the sources to a .syx file under Linux.

https://gitlab.com/jacobvosmaer/yocto-build

Sharing here in case others want to use it.

I am not an Arduino expert so use at your own risk! :)
Last edited by jvq on Aug 27th, '17, 08:42, edited 1 time in total.
jvq
 
Posts: 78
Joined: Aug 17th, '16, 21:36

Re: Yocto build script for Linux

Postby jvq » Aug 27th, '17, 08:42

I just tested in on macOS and it works there too. Yay!

I will update the title of the topic to indicate that this is not just for Linux.
jvq
 
Posts: 78
Joined: Aug 17th, '16, 21:36

Re: Yocto build script

Postby jvq » Aug 27th, '17, 08:44

It should work on Windows too but I can't test that myself. I don't know how easy/hard it is to use Docker on Windows. If Docker works, the script should work too.
jvq
 
Posts: 78
Joined: Aug 17th, '16, 21:36

Re: Yocto build script

Postby helectromagneticus » Aug 29th, '17, 01:59

This is cool, thanks!

I just put the Yocto source up on GitHub (https://github.com/HomoElectromagneticus/Yocto_808), I wonder if there is a way to integrate the code there with this build system?
User avatar
helectromagneticus
 
Posts: 71
Joined: Oct 26th, '16, 02:55

Re: Yocto build script

Postby jvq » Aug 30th, '17, 18:39

I'm working on that right now. :) https://gitlab.com/jacobvosmaer/yocto-f ... lab-ci.yml

It's not quite done yet.
jvq
 
Posts: 78
Joined: Aug 17th, '16, 21:36

Re: Yocto build script

Postby jvq » Aug 30th, '17, 19:02

It works now. You can download the .syx file in a zip with https://gitlab.com/jacobvosmaer/yocto-f ... ?job=build

It builds in under a minute.
jvq
 
Posts: 78
Joined: Aug 17th, '16, 21:36

Re: Yocto build script

Postby sebiiksbcs » Sep 23rd, '17, 09:20

Looks like it's working on Windows 7 x64 via Docker Toolbox!

For your second command...
Code: Select all
# In the yocto-build directory
docker run -v /path/to/yocto-build:/yocto yocto


...I had to adjust the syntax for the path basically like described here: https://stackoverflow.com/questions/402 ... ot-working

Code: Select all
"So I used the command
docker run --publish=7474:7474 --volume=/c/Users/USERNAME/neo4j_test/data:/data neo4j
isntead of
docker run --publish=7474:7474 --volume=C:/Users/USERNAME/neo4j_test/data:/data neoj
and it is working now."


YMMV
sebiiksbcs
 
Posts: 15
Joined: Apr 13th, '16, 03:16

Re: Yocto build script

Postby jvq » Sep 25th, '17, 08:01

That's great! So you had to replace
Code: Select all
C:
with
Code: Select all
/c
and that was it?
jvq
 
Posts: 78
Joined: Aug 17th, '16, 21:36

Re: Yocto build script

Postby sebiiksbcs » Sep 25th, '17, 15:43

Yes, that was it. Depends on where you place your yocto-build folder, of course. Looks like it's simpler if you place it in your home folder (e.g. pointing to "c:\Users\[your username]\yocto-build\" would be a convenient "~/yocto-build" in Docker Toolbox).

However, is it normal that both the hex and syx files built by this script from the unchanged "official" source are about 3kb smaller than the "official" hex and syx you can download from e-licktronic? My Yocto wasn't accepting the syx. I tried sending it at different speeds but the Yocto seems to ignore the upload and revert to the existing firmware. Then I saw the size difference. Any thoughts?
sebiiksbcs
 
Posts: 15
Joined: Apr 13th, '16, 03:16

Re: Yocto build script

Postby jvq » Sep 28th, '17, 18:04

I have noticed that size difference too and I don't know why it is. Might be because of a different -O optimization level on avr-gcc, I don't know what Arduino uses.

How do you know the Yocto is ignoring the new firmware?

I've had issues too where new firmware seemed to be accepted by the bootloader but nothing changed. But in each case that turned out to be because of MIDI problems on the sending side. For example the delay between sysex messages (I use 200ms).
jvq
 
Posts: 78
Joined: Aug 17th, '16, 21:36

Next

Return to Yocto v1.0 Software

Who is online

Users browsing this forum: No registered users and 1 guest