how to setup locales on imx ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to setup locales on imx ?

ソリューションへジャンプ
2,976件の閲覧回数
blurencetin
Contributor II

Hey guys,

I need to setup locale to display unicode charsets on my imx6 sabresd, i checked out LTIB(L3.0.35_4.1.0_130816), but found nothing related.

I have also tried oneiric ubuntu image, it works well.

so, I copied following files/dirs from oneiric rootfs to my sabresd linux:

/usr/sbin/locale

/usr/sbin/localedef

/usr/sbin/locale-gen

/usr/lib/locale

/usr/share/i18n

then, use 'locale-gen' to add/update locales,the command runs ok, and 'locale -a' could list out all the supported charset.

But some characters still cannot displayed after i changed locale by command "export LC_ALL=xxx" and "export LANG=xxx".

I found similar ticket here: Locale LTIB iMX, but no answer.


Is there any other easy way for imx charset setup? or any configuration files missed in my procedure?


Thanks.

ラベル(1)
タグ(2)
1 解決策
2,155件の閲覧回数
blurencetin
Contributor II

yes, add "libc locale files" support is first step.

then prepare those locale files (locale/localedef/locale-gen, charmap and i18n under usr/share) to generate correct locale env.

those files could be found under freescale oneiric rootfs use locale -a to confirm.


last, if you need to display wide-byte characters, remember to fix busybox bug (1.17+)for terminal output.


And, if you need usb vfat unicode support, dont forget to add unicode support in kernel nls options.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,155件の閲覧回数
blurencetin
Contributor II

solved, please close it.

thanks.

2,155件の閲覧回数
gusarambula
NXP TechSupport
NXP TechSupport

I’m glad to hear you found a solution. I looked for an answer  but there is no much information available regarding this, at least for LTIB or Linux for the i.MX families of processors.

I’ve tried to set it up on LTIB

$ ./ltib --configure

Then:

Toolchain component options --->

[*]     libc locale files

But haven’t seen any changes. Did you changed it on /etc/locale.conf?

If you would please share the solution it would very likely help other users on the community.

0 件の賞賛
返信
2,156件の閲覧回数
blurencetin
Contributor II

yes, add "libc locale files" support is first step.

then prepare those locale files (locale/localedef/locale-gen, charmap and i18n under usr/share) to generate correct locale env.

those files could be found under freescale oneiric rootfs use locale -a to confirm.


last, if you need to display wide-byte characters, remember to fix busybox bug (1.17+)for terminal output.


And, if you need usb vfat unicode support, dont forget to add unicode support in kernel nls options.

0 件の賞賛
返信
2,155件の閲覧回数
blurencetin
Contributor II

Any suggestions or tips?

I am puzzled that as no more references of the charset setup on imx, how to do localization for different customers?

0 件の賞賛
返信