Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

使用menuconfig对Linux内核进行配置,

Code Block
languagebash
themeMidnight
bitbake linux-ti -c menuconfig					(AM335X)
bitbake linux-mainline -c menuconfig			(i.MX6)

菜单的File systems – > Native language support下 ,找到以下三行,选中

Code Block
languagebash
themeMidnight
<*>   Simplified Chinese charset (CP936, GB2312)                           │
<*>   Traditional Chinese charset (Big5)
<*>   NLS UTF-8


重新编译内核,镜像,开发板重新更新内核,文件系统

Code Block
languagebash
themeMidnight
bitbake linux-mainline -c comfile -f
bitbake linux-mainline -c deploy
bitbake phytec-qt5demo-image

测试方法

将一张有中文文件的SD卡挂载在开发板上

Code Block
languagebash
themeMidnight
mkdir /mnt/mmc
mount /dev/mmcblk0p1 /mnt/mmc -o utf8
ls /mnt/mmc

能看到中文文件名了。