Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: arjepsen on March 20, 2021, 04:05:18 PM

Title: New building tool
Post by: arjepsen on March 20, 2021, 04:05:18 PM
I can see that there's a new building tool put up on github:
https://github.com/OLIMEX/olimage

It would be awesome if there would be a bit of information about how to use it exactly :-)

Best regards.
Title: Re: New building tool
Post by: LubOlimex on March 22, 2021, 08:16:00 AM
I guess here:

https://github.com/OLIMEX/olimage/blob/master/build.sh

Let me know if that is what you needed.
Title: Re: New building tool
Post by: arjepsen on March 24, 2021, 12:15:04 PM
Thanks, but not entirely.
I do a:
git clone https://github.com/olimex/olimage

in the olimage directory, only mount.sh is executable..?
so I change the permissions for build.sh, and run it:
sudo ./build.sh

it runs a bit, but ends with:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: open /dev/ptmx: no such device: unknown.
Title: Re: New building tool
Post by: LubOlimex on March 24, 2021, 04:19:04 PM
What board do you want to compile for?
Title: Re: New building tool
Post by: arjepsen on March 24, 2021, 05:23:42 PM
A13 (som-512)
Title: Re: New building tool
Post by: LubOlimex on March 26, 2021, 10:20:13 AM
The issue you report seems to be related to docker installation. However, the command to compile for A13 boards would be:

bash run.sh -v image A13-OLinuXino buster minimal A13-OLinuXino-buster-minimal-$(date +%Y%m%d-%H%M%S).img

This builds the test image.

For release you would need to run:

env ARGS=-r bash run.sh -v image A13-OLinuXino buster minimal A13-OLinuXino-buster-minimal-$(date +%Y%m%d-%H%M%S).img
Title: Re: New building tool
Post by: arjepsen on March 26, 2021, 04:11:39 PM
Thanks a lot.

bash run.sh -v image A13-OLinuXino buster minimal A13-OLinuXino-buster-minimal-$(date +%Y%m%d-%H%M%S).img
This worked well.