[U-Boot] [BUG] fs: fat: incorrect creation of files with Unicode file name

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Nov 12 23:53:17 UTC 2019

In the UEFI Shell I create a file with

FS0:\> echo привет_мир.текст > привет_мир.текст

FS0:\> ls
Directory of: FS0:\
00/00/0000  00:00                  38  привет_мир.текст

The U-Boot console shows it correctly:

=> ls scsi 0:1
        38   привет_мир.текст

Now in Linux I mount the volume. ls shows an incorrect filename:

 > ls /mnt

Now in Linux I create a file

# echo привет_мир.текст > /mnt/привет_мир.текст

U-Boot shows the file name incorrectly

=> ls scsi 0:1
        31   ?@825B_<8 at .B5:AB

So U-Boot seems not to convert file names correctly to UTF-16 before saving.

Best regards


More information about the U-Boot mailing list