[U-Boot] [Question] How to create a file in a directory

Masahiro Yamada yamada.masahiro at socionext.com
Wed Apr 25 12:01:38 UTC 2018


Hi.


I was trying to write a file to FAT file system
by U-Boot command.

I tried 'fatwrite' and 'save'.


I cannot create a file in a sub-directory.



> fatwrite mmc  0:1  81000000  boot/a  10

created a file 'boot/a' in the root directory.

But I want a file 'a' in the directory path '/boot/'.



The directory looks like follows:


=> ls  mmc 0:1
            boot/
       16   boot/a
       16   boot//a

2 file(s), 1 dir(s)


=> ls mmc 0:1  boot
            ./
            ../
            extlinux/
  7674090   Image.gz
  5177610   rootfs.cpio.uboot
    15002   uniphier-ld20-global.dtb

3 file(s), 3 dir(s)



I wrote kernel, rootfs, etc. into the '/boot' directory
by mounting the device from Linux.

But, the U-Boot command cannot do likewise
because U-boot recognizes '/' as a part of a file name.

Is there a solution, or am I missing something?


Thanks.



-- 
Best Regards
Masahiro Yamada


More information about the U-Boot mailing list