Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: Cougar on June 06, 2015, 08:25:14 PM

Title: Docker image for kernel building
Post by: Cougar on June 06, 2015, 08:25:14 PM
Hi,

Some times ago I built a Docker (https://www.docker.com/) image that I used to build a kernel for iMX233-OLinuXino-MAXI (https://www.olimex.com/Products/OLinuXino/iMX233/iMX233-OLinuXino-MAXI/). Because it took good amount of time to get everything right I would like to share this information here too.

The container is based on minimal Arch Linux (https://www.archlinux.org/) container (https://registry.hub.docker.com/u/pritunl/archlinux/). The latest kernel I built was 3.18.13 and after weeks of testing I haven't found any problems so far.

I patched (https://github.com/droid4control/olinuxino-kernel/blob/master/imx23.dtsi.diff) device tree description of this kernel based on information I found here (https://www.olimex.com/forum/index.php?topic=1306.msg6092#msg6092). It could be that for other kernel versions, this patch needs to be changed. This patch also includes static description of MOD-RTC (https://www.olimex.com/Products/Modules/Time/MOD-RTC/) real time clock.

You can find the container here: https://registry.hub.docker.com/u/droid4control/olinuxino-kernel/ (https://registry.hub.docker.com/u/droid4control/olinuxino-kernel/).

There is also instruction how to run it and build your own kernel. Two pre-set configuration files are also included. One is for NFS boot that can be used for rapid testing. MOD-RTC is also built into the kernel and with this module kernel gets right time information already during bootup.

Any feedback is appreciated. Fork (https://github.com/droid4control/olinuxino-kernel#fork-destination-box) GitHub repo and submit pull requests for any changes you would like to see in this container.

Cheers,

--
Cougar
Title: Re: Docker image for kernel building
Post by: swahren on June 14, 2015, 12:16:22 PM
Hi Cougar,

you did a good job. I suggest to use Kernel 3.18.15 which includes the LED polarity (https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=0fc6b2a34fb22a979a53d4da7d5d632691f5ddac) and USB mode (https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=90a235929e099e390e75648404527e97234678cc) fix.

Stefan