Hi All,
I am using own custom board based on IMX6Q and having customized uboot image and kernel image. Loaded uboot in SD card with help of MFG. But not able to load kernel image in SD card.
I need FAT file system in SD card. So changed the script in MFG Tool.
See the below script,
<!-- partitioning the SD card: -->
<CMD state="Updater" type="push" body="send" file="mksdcard.sh.tar">Sending partition shell</CMD>
<CMD state="Updater" type="push" body="$ tar xf $FILE "> Partitioning...</CMD>
<CMD state="Updater" type="push" body="$ sh mksdcard.sh /dev/mmcblk0"> Partitioning SD card now...</CMD>
<!-- burn the rootfs: -->
<CMD state="Updater" type="push" body="$ mkfs.vfat /dev/mmcblk0p1">Formatting rootfs partition</CMD>
<CMD state="Updater" type="push" body="$ mkdir -p /home/mmcblk0p1"/>
<CMD state="Updater" type="push" body="$ mount -t vfat /dev/mmcblk0p1 /home/mmcblk0p1"/>
<!-- burn the kernel: -->
<CMD state="Updater" type="push" body="send" file="files/Kernel.bin">Sending kernel uImage</CMD>
<CMD state="Updater" type="push" body="$ cp $FILE /home/mmcblk0p1/">write kernel image to sd card</CMD>
<CMD state="Updater" type="push" body="$ ls /home/mmcblk0p1/*">
It is finding the kernel file and copy command also success fully executed (by seeing console window). But in SD card no file is present. Verified by pulging in PC and console window too.
Please let me know anything I'm missing.
Regards,
Praveenkumar
please try to add the "umount" command. e.g. "umount /home/mmcblk0p1".
Hi Jimmychan,
Thanks for your reply.
Where the 'umount' command has to be added?
Regards,
Praveenkumar I
you can put it after the "ls /home/mmcblk0p1/*.
Hi Jim,
I have tried 'umount' command. But it is hanged. Below is the output of console window,
UTP: sending Success to kernel for command send.
UTP: received command '$ cp $FILE /home/mmcblk0p1/'
UTP: executing "cp $FILE /home/mmcblk0p1/"
UTP: sending Success to kernel for command $ cp $FILE /home/mmcblk0p1/.
utp_poll: pass returned.
UTP: received command '$ umount /dev/mmcblk0p1/'
UTP: executing "umount /dev/mmcblk0p1/"
After that no output. MFG tool getting failure.
Verified the mounted device by giving 'mount'.
Regards,
Praveenkumar
maybe it is not hang, it is writing the file to the SD card. if not 'umount', the data may be lost.
Ok Jim.
What I need to do now?
The MFGtool running a small linux system on your board and then execute the linux commands base on the scripts. So, you can try to boot your board with NFS and then try to test the commands you used in the MFGtool script.