Installing Japanese Language Pack for IMX Yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Installing Japanese Language Pack for IMX Yocto

Installing Japanese Language Pack for IMX Yocto

Hello, this post describes how you can add Japanese Language to the Yocto BSP. There are just a few steps to achieve.

It was tested on the i.MX93-FRDM board, i.MX93-EVK and i.MX8M (Family). And Linux kernel 6.6.36.

 

The first step before to start your board building according to the Yocto Project User's Guide, is adding the below lines to the local.conf file:

GLIBC_GENERATE_LOCALES = "en_US.UTF-8 ja_JP.UTF-8"
IMAGE_LINGUAS = "en-us ja-jp"

IMAGE_INSTALL:append = " \
    glibc-gconv-euc-jp \
    glibc-gconv-sjis \
    glibc-gconv-utf-16 \
    glibc-utils \
    fontconfig \
    ttf-bitstream-vera \
    ttf-dejavu-sans \
"

 

Where: 

glibc-gconv-*: Adds Japanese encoding conversions.

 

After building, flash the Image to the board and boot it. You can check if the Japanese font was installed successfully with:

root@imx93frdm:~# locale -a
C
POSIX
en_US
en_US.utf8
ja_JP
ja_JP.utf8

 

We can see it was installed successfully:

ja_JP
ja_JP.utf8

 

Then, we can change the Language at Runtime with:

root@imx93frdm:~# export LANG=ja_JP.UTF-8
root@imx93frdm:~# export LC_ALL=ja_JP.UTF-8

 

Finally, probe with a command that supports Japanese outputs like "date":

root@imx93frdm:~# date
2024年  2月 27日 火曜日 17:29:11 UTC

 

 

I hope this information can helps to you.

 

Best regards,

Salas.

No ratings
Version history
Last update:
‎07-08-2025 01:23 PM
Updated by: