Problem - Loading Kernel Image in SD card (FAT) with MFG Tool

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem - Loading Kernel Image in SD card (FAT) with MFG Tool

888 Views
praveenkumari
Contributor II

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

Labels (1)
0 Kudos
7 Replies

739 Views
jimmychan
NXP TechSupport
NXP TechSupport

please try to add the "umount" command. e.g. "umount /home/mmcblk0p1".

0 Kudos

739 Views
praveenkumari
Contributor II

Hi Jimmychan,

     Thanks for your reply.

     Where the 'umount' command has to be added?

Regards,

Praveenkumar I

0 Kudos

739 Views
jimmychan
NXP TechSupport
NXP TechSupport

you can put it after the "ls /home/mmcblk0p1/*.

0 Kudos

739 Views
praveenkumari
Contributor II

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

0 Kudos

739 Views
jimmychan
NXP TechSupport
NXP TechSupport

maybe it is not hang, it is writing the file to the SD card. if not 'umount', the data may be lost.

0 Kudos

739 Views
praveenkumari
Contributor II

Ok Jim.

What I need to do now?

0 Kudos

739 Views
jimmychan
NXP TechSupport
NXP TechSupport

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.

0 Kudos