Labels: I/O ar files installed on cti as tt
The yocto version I use is 1.5.1. The default locale is en_US and does not contain Chinese environments. However, in the actual compilation process, not only the Chinese environment, but also the locale packages of other environments are compiled, except that the installation package of the Chinese environment is not loaded when the image is created and installed.
There are two ways to install the Chinese environment:
1. Add the default Chinese environment to the yocto compilation configuration file so that the compiled Chinese environment is packaged during image creation;
2. Add a packagegroups that supports the Chinese environment to the yocto compilation configuration file, and then add the packagegroups that supports the Chinese environment to the configuration file that creates the image;
3. Add the Chinese environment installation package to the existing yocto installation image;
The following process is described in method 3, Method 1 and method 2. You can find the following installation packages in the yocto compilation Directory (my image uses the deb package format ):
Eglibc-binary-localedata-zh-cn_2.18-r0_armhf.deb
Eglibc-binary-localedata-zh-cn.gb18030_2.18-r0_armhf.deb
Eglibc-binary-localedata-zh-cn.gb2312_2.18-r0_armhf.deb
Eglibc-binary-localedata-zh-cn.gbk_2.18-r0_armhf.deb
Eglibc-charmap-gb18030_2.18-r0_armhf.deb
Eglibc-charmap-gb-1988-80_2.18-r0_armhf.deb
Eglibc-charmap-gb2312_2.18-r0_armhf.deb
Eglibc-charmap-gbk_2.18-r0_armhf.deb
Eglibc-charmap-utf-8_2.18-r0_armhf.deb
Eglibc-localedata-i18n_2.18-r0_armhf.deb
Eglibc-localedata-iso14651-t1_2.18-r0_armhf.deb
Eglibc-localedata-iso14651-t1-common_2.18-r0_armhf.deb
Eglibc-localedata-iso14651-t1-pinyin_2.18-r0_armhf.deb
Eglibc-localedata-translit-circle_2.18-r0_armhf.deb
Eglibc-localedata-translit-cjk-compat_2.18-r0_armhf.deb
Eglibc-localedata-translit-compat_2.18-r0_armhf.deb
Eglibc-localedata-translit-font_2.18-r0_armhf.deb
Eglibc-localedata-translit-fraction_2.18-r0_armhf.deb
Eglibc-localedata-translit-narrow_2.18-r0_armhf.deb
Eglibc-localedata-translit-neutral_2.18-r0_armhf.deb
Eglibc-localedata-translit-small_2.18-r0_armhf.deb
Eglibc-localedata-translit-wide_2.18-r0_armhf.deb
Eglibc-localedata-zh-cn_2.18-r0_armhf.deb
Eglibc-locale-zh-cn_2.18-r0_armhf.deb
Eglibc-utils_2.18-r1_armhf.deb
Locale-base-zh-cn_2.18-r0_armhf.deb
Locale-base-zh-cn.gb18030_2.18-r0_armhf.deb
Locale-base-zh-cn.gb2312_2.18-r0_armhf.deb
Locale-base-zh-cn.gbk_2.18-r0_armhf.deb
Install these installation packages using dpkg-I to an existing image.
In addition to the above installation packages, you also need to install the Chinese character pack. The Chinese font I use is Wenquan translation, therefore, you need to copy the font of the source image to the/usr/share/fonts/ttf/directory of the existing image, and then execute the command # fc-cache-fv to enable the Chinese font.
The last step needs to configure the environment variable LANG, export LANG = zh_CN.UTF-8
All right, the Chinese environment of the yocto image has been installed.
Build the yocto Chinese environment