This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

File error when copied through /boot/ location

Hi Experts,

In Linux SDK 6.0 AM335x starter kit I tried to compile the executable  in the host machine and tried to do file transfer using the existing USB /boot location which is FAT file system.

Later copy it from /boot/myfile to the /rootfs/home/root and tried to execute it. It is throwing error but when I removed the SD card and copied directly into the rootfs/home/root machine then it works.

What is the reason for the issue ?

  • What kind of booting are you doing ?
    If SD card booting, then you have to copy the kernel image (uImage) into SD card's 2nd partition (rootfs) of "boot" directory only.

    when I removed the SD card and copied directly into the rootfs/home/root machine then it works.

    This method is correct.
  • Hi Titus,

    Here its bit mis directed. I mean like when the SD card is booted up and running with the USB interface connected to OTG USB connector, then I will get access to both SD cards /boot location as well the serial port. Now I tried copy a text file through USB file manger into /boot/file.txt location which contains MLO,uboot,uImage. Later I tried accessing it from starter kit's serial terminal using the command "cp /media/mmcblkp1/file.txt". Now the file seems corrupted.
  • Hi Lyf,

    Later I tried accessing it from starter kit's serial terminal using the command "cp /media/mmcblkp1/file.txt". Now the file seems corrupted.

    Why do you want to do this ?
    Actually "/dev/mmcblkp1" was mounted into your host PC through "Gadget USB storage" (boot partition)
    If you want to copy something to that partition (boot) then you can do it through host PC right.
    Else , you have to un mount or remove the gadget driver and mount manually the boot partition in target board then copy.