OpenIL

News -OpenIL v0.3 release

2017-08-30, Author: Gang Liu,
=== OpenIL v0.3 release (OpenIL-201708) site:

https://github.com/openil/openil/releases/tag/OpenIL-201708

=== Platforms

LS1012ARDB-32B
LS1012ARDB-64B
LS1021AIOT
LS1021ATSN
LS1043ARDB-32B
LS1043ARDB-64B
LS1046ARDB-32B
LS1046ARDB-64B


=== Features

NetConf/Yang
Netopeer
TSN
IEEE 1588
OTA
Xenomai Cobalt 64bit support
SJA1105 Qbv support
SELinux support for LS1043/LS1046 Ubuntu userland
OP-TEE support for LS1021ATSN and LS1021AIOT platforms
4G LTE module support
LS1043ARDB, LS1046ARDB and LS1012ARDB 64bit support
Ubuntu user land support for LS1043ARDB-64bit and LS1046ARDB-64bit


=== Getting OpenIL
OpenIL release is made every few months. Release number follow the format YYYYMM, for example 201708. the source code is available at:

https://github.com/openil/openil


To follow development, you can make a clone of the code repository. Refer to the command:
$ git clone https://github.com/openil/openil.git
$ cd openil

1. OpenIL Quick Start
The steps below build the NXP platform images with OpenIL quickly. And you should NOT ignore the important notes in the following section.

#Important Notes

• Build everything as a normal user. There is no need to be root to configure and use OpenIL.
   By running all commands as a regular user, you protect your system against packages behaving badly during compile and installation.
• Not use make -jN to build OpenIL: top-level parallel make is currently not supported.
• The PERL_MM_OPT issue. you may encounter the error information of the PERL_MM_OPT when run make command in some host
   Linux environment like this:

You have PERL_MM_OPT defined because Perl local::lib
is installed on your system. Please unset this variable
before starting Buildroot, otherwise the compilation of
Perl related packages will fail
make[1]: *** [core-dependencies] Error 1
make: *** [_all] Error 2


To resolve it, just unset the PERL_MM_OPT.

$ unset PERL_MM_OPT

2. Building the Final Images
For the NXP platforms supported by OpenIL, The default configuration files can be found in directory “configs”.

Platform         Config file in OpenIL
ls1021atsn        configs/nxp_ls1021atsn_defconfig
       configs/nxp_ls1021atsn_optee_defconfig
ls1021aiot        configs/nxp_ls1021aiot_defconfig
       configs/nxp_ls1021aiot_optee_defconfig
ls1043ardb        configs/nxp_ls1043ardb-32b_defconfig
       configs/nxp_ls1043ardb-64b_defconfig
       configs/nxp_ls1043ardb-64b_ubuntu_defconfig
ls1046ardb        configs/nxp_ls1046ardb-32b_defconfig
       configs/nxp_ls1046ardb-64b_defconfig
       configs/nxp_ls1046ardb-64b_ubuntu_defconfig
ls1012ardb        configs/nxp_ls1012ardb-32b_defconfig
       configs/nxp_ls1012ardb-64b_defconfig

Those “configs/nxp_xxxx_defconfig” files include all the necessary U-Boot, Kernel configurations and application packages for filesystem.
Based on the files without any changes, you can build a complete Linux environment for the target platforms.
To build the final images for one NXP platform (i.e. ls1021atsn), simply run:

$ cd openil
$ make nxp_ls1021atsn_defconfig
$ make
# or make with a log
$ make 2>&1 | tee build.log

The “make” command will generally perform the following steps:

• Download source files (as required and just at the first time);
• Configure, build and install the cross-compilation toolchain;
• Configure, build and install selected target packages;
• Build a kernel image, if selected;
• Build a bootloader image, if selected;
• Create a root filesystem in selected formats.


After the correct compilation, you can find all the images for the platform at “output/images”.

images/
├── boot.vfat
├── ls1021a-tsn.dtb --- dtb file for ls1021atsn
├── rootfs.ext2
├── rootfs.ext2.gz
├── rootfs.ext2.gz.uboot --- ramdisk can be used for debug
├── rootfs.ext4.gz -> rootfs.ext2.gz
├── rootfs.tar
├── sdcard.img --- entire image can be programmed into the SD card
├── uboot-env.bin
├── u-boot-with-spl-pbl.bin --- uboot image for ls1021atsn
└── uImage --- kernel image for ls1021atsn

Stay Connected

Key Technologies

Linux TSN IEEE 1588 Security Xenomai IoT Industrial Real-Time