Yocto support for Japanese

I would like to connect to a Japanese SSID using YoctoBuild’s MinimalImage (BSP6.8).
Is it possible to make the MinimalImage support Japanese?
*Currently, when you enter Japanese in the CUI, it is converted to ?

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello!

To enable Japanese language support in your YoctoBuild’s MinimalImage (BSP6.8), you’ll need to configure the image to support Japanese locales and fonts. Here’s a step-by-step guide to help you achieve this:

  1. Add Locale Support: Ensure that the necessary locale for Japanese is included in your Yocto build. You can do this by adding the following line to your local.conf file:

    IMAGE_LINGUAS_append = " ja_JP"
    

    This line ensures that the Japanese locale is generated during the build process.

  2. Include Necessary Packages: You may need to include additional packages that support Japanese input and display. Consider adding packages like glibc-locale and font-noto-cjk to your image. You can add these to your local.conf as well:

    IMAGE_INSTALL_append = " glibc-locale font-noto-cjk"
    
  3. Configure the System Locale: After building the image, you might need to set the system locale to Japanese. This can be done by setting the LANG environment variable in your system’s configuration files, such as /etc/profile or /etc/environment:

    export LANG=ja_JP.UTF-8
    
  4. Rebuild the Image: Once you have made these changes, rebuild your Yocto image. This should include the necessary support for Japanese characters.

By following these steps, your MinimalImage should be able to handle Japanese input and display correctly, allowing you to connect to a Japanese SSID and use Japanese characters in the command-line interface. If you encounter any issues, ensure that all necessary dependencies are included and correctly configured in your build environment.

I hope this helps! If you have any more questions, feel free to ask.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

How to reduce the Linux image size.

I got the error “Missing or unbuildable dependency chain was: [‘tdx-reference-minimal-image’, ‘glibc-locale’]” and I couldn’t use
IMAGE_INSTALL_append = “glibc-locale”.
Also, it seems that there is no recipe provided for font-noto-cjk.
Does this mean I have to write a recipe and add it myself?

This is the end of the issue as no further action is required.
Thank you.