Dear all,

 

I try to flash linux OS image by using MFG tool and try to boot from
emmc.

Board is mx6qsabresd 

But I get error like this  

DLL version: 2.3.3

Tuesday, April 21, 2015 14:14:23   Start new logging

ModuleID[2] LevelID[10]: CMyExceptionHandler thread is running

ModuleID[2] LevelID[1]: new MxHidDeviceClass

ModuleID[2] LevelID[10]: Device Manager thread is running

ModuleID[2] LevelID[10]: DeviceManager::DevChangeWnd::OnDeviceChange() -
DEVICE_ARRIVAL_EVT(\\?\USB#VID_15A2&PID_0054#6&27177e6b&0&6#{a5dcbf10-65
30-11d2-901f-00c04fb951ed})

ModuleID[2] LevelID[10]: DeviceManager::DevChangeWnd::OnDeviceChange() -
end

ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() -
DEVICE_ARRIVAL_EVT(\\?\USB#VID_15A2&PID_0054#6&27177e6b&0&6#{a5dcbf10-65
30-11d2-901f-00c04fb951ed})

ModuleID[2] LevelID[10]:
DeviceClass::FindDeviceByUsbPath--DeviceListType_Current, _devices.size:
0

ModuleID[2] LevelID[1]: DeviceClass::FindDeviceByUsbPath() -
DeviceListType_New--index: 0

ModuleID[2] LevelID[1]: DeviceClass::FindDeviceByUsbPath() -
DeviceListType_New--devPath:
\\?\hid#vid_0461&pid_4e22#7&19a6fc1e&0&0000#{4d1e55b2-f16f-11cf-88cb-001
111000030}

ModuleID[2] LevelID[1]: DeviceClass::FindDeviceByUsbPath() -
DeviceListType_New--index: 1

ModuleID[2] LevelID[1]: DeviceClass::FindDeviceByUsbPath() -
DeviceListType_New--devPath:
\\?\hid#vid_15a2&pid_0054#7&65f53e&0&0000#{4d1e55b2-f16f-11cf-88cb-00111
1000030}

ModuleID[2] LevelID[10]: new MxHidDevice[00947880]

ModuleID[2] LevelID[10]:
DeviceClass::FindDeviceByUsbPath--DeviceListType_New, devInstPathToFind:
USB\VID_15A2&PID_0054\6&27177E6B&0&6, _deviceInstanceID:
USB\VID_15A2&PID_0054\6&27177E6B&0&6

ModuleID[2] LevelID[10]:
DeviceClass::FindDeviceByUsbPath--DeviceListType_New, Find the device,
Port: 6

ModuleID[2] LevelID[10]: DeviceClass::AddUsbDevice() successful
USB#VID_15A2&PID_0054#6&27177E6B&0&6#{A5DCBF10-6530-11D2-901F-00C04FB951
ED} add to current list, retrycount: 0

ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() -
DEVICE_ARRIVAL_EVT,[MxHidDeviceClass] vid_15a2&pid_0054, Hub:3-Port:6

ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() -
DEVICE_ARRIVAL_EVT, Notify

ModuleID[2] LevelID[10]: CmdOpreation[0]--OnDeviceChangeNotify, Volume
Arrive/Remove or Device Arrive/Remove

ModuleID[2] LevelID[10]: CmdOpreation[0]--OnDeviceChangeNotify,
m_p_usb_port is not NULL, so only refresh

ModuleID[2] LevelID[10]: CmdOpreation[0]--OnDeviceChangeNotify,
Volume/Device Arrive

ModuleID[2] LevelID[1]: CmdOpreation[0]--set m_hDeviceArriveEvent.

ModuleID[2] LevelID[10]: CmdOpreation[0]--WaitforEvents device arrive1

ModuleID[2] LevelID[10]: CmdOperation[0] device chagned and reset to
state 0

ModuleID[2] LevelID[10]: ExecuteCommand--Boot[WndIndex:0], File is
E:\Sachu\sachu\mfgtools\Profiles\Linux\OS Firmware\firmware\u-boot.imx

ModuleID[2] LevelID[10]: ExecuteCommand--Load[WndIndex:0], File is
E:\Sachu\sachu\mfgtools\Profiles\Linux\OS Firmware\firmware\uImage,
address is 0x12000000

ModuleID[2] LevelID[10]: PortMgrDlg(0)--Command Load excute
successfully, retry count: 0

ModuleID[2] LevelID[10]: ExecuteCommand--Load[WndIndex:0], File is
E:\Sachu\sachu\mfgtools\Profiles\Linux\OS
Firmware\firmware\fsl-image-mfgtool-initramfs-imx6qsabresd.cpio.gz.u-boo
t, address is 0x12C00000

ModuleID[2] LevelID[10]: PortMgrDlg(0)--Command Load excute
successfully, retry count: 0

ModuleID[2] LevelID[10]: ExecuteCommand--Load[WndIndex:0], File is
E:\Sachu\sachu\mfgtools\Profiles\Linux\OS
Firmware\firmware\uImage-mfgtool--imx6q-sabresd-dtb, address is
0x18000000

ModuleID[2] LevelID[10]: PortMgrDlg(0)--Command Load excute
successfully, retry count: 0

ModuleID[2] LevelID[10]: ExecuteCommand--Jump[WndIndex:0]

ModuleID[2] LevelID[10]: *********MxHidDevice[00947880] Jump to
Ramkernel successfully!**********

ModuleID[2] LevelID[10]: CmdOperation[0], current state command has been
finished and the last command is successful, so
SetEvent(hDevCanDeleteEvent)

ModuleID[2] LevelID[10]: CmdOperation[0] device chagned and reset to
state 0

ModuleID[2] LevelID[10]: ExecuteCommand--Boot[WndIndex:0], File is
E:\Sachu\sachu\mfgtools\Profiles\Linux\OS Firmware\firmware\u-boot.imx

 

 

 

I  hereby attach my ucl script file and configuration file.

If anyone know means please help me to solve this error.

 

 

Regards

Sachu

 

<!--
* Copyright (C) 2012, Freescale Semiconductor, Inc. All Rights Reserved.
* The CFG element contains a list of recognized usb devices.
*  DEV elements provide a name, class, vid and pid for each device.
*
* Each LIST element contains a list of update instructions.
*  "Install" - Erase media and install firmware.
*  "Update" - Update firmware only.
*
* Each CMD element contains one update instruction of attribute type.
*  "pull" - Does UtpRead(body, file) transaction.
*  "push" - Does UtpWrite(body, file) transaction.
*  "drop" - Does UtpCommand(body) then waits for device to disconnect.
*  "boot" - Finds configured device, forces it to "body" device and downloads "file".
*  "find" - Waits for "timeout" seconds for the "body" device to connect.
*  "show" - Parse and show device info in "file".  
-->


<UCL>
  <CFG>
    <STATE name="BootStrap" dev="MX6Q" vid="15A2" pid="0054"/>
    <STATE name="Updater"   dev="MSC" vid="066F" pid="37FF"/>
  </CFG>

    <LIST name="eMMC" desc="Choose eMMC as media">
	<CMD state="BootStrap" type="boot" body="BootStrap" file ="firmware/u-boot-imx6qsabresd_sd.imx" ifdev="MX6Q">Loading U-boot</CMD>
		
	<CMD state="BootStrap" type="load" file="firmware/uImage" address="0x12000000"
		loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6Q">Loading Kernel.</CMD>

	<CMD state="BootStrap" type="load" file="firmware/fsl-image-mfgtool-initramfs-imx6qsabresd.cpio.gz.u-boot" address="0x12C00000"
		loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6Q">Loading Initramfs.</CMD>
		
	<CMD state="BootStrap" type="load" file="firmware/uImage-imx6q-sabresdldo.dtb" address="0x18000000"
		loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6Q">Loading device tree.</CMD>
		
	<CMD state="BootStrap" type="jump" > Jumping to OS image. </CMD>
<!--
	<CMD state="Updater" type="push" body="$ ls /dev/*"/>
	<CMD state="Updater" type="push" body="$ dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=1536 count=16">clean up u-boot parameter</CMD>
	<CMD state="Updater" type="push" body="$ dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=8192 count=3">clean up Startup Image Flags</CMD>
-->
	<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/mmcblk%mmc%"> Partitioning...</CMD>
	
	<CMD state="Updater" type="push" body="$ dd if=/dev/zero of=/dev/mmcblk0 bs=1k seek=384 conv=fsync count=129">clear u-boot arg</CMD>
	
	<CMD state="Updater" type="push" body="$ echo 0 > /sys/block/mmcblk0boot0/force_ro">access boot partition 1</CMD>
	<CMD state="Updater" type="push" body="send" file="files/u-boot.imx">Sending U-Boot</CMD>
	<CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk0boot0 bs=512 seek=2 skip=2">write U-Boot to sd card</CMD>
	<CMD state="Updater" type="push" body="$ echo 1 > /sys/block/mmcblk0boot0/force_ro"> re-enable read-only access </CMD>
	<CMD state="Updater" type="push" body="$ echo 8 > /sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_config">enable boot partion 1 to boot</CMD>
	
    <CMD state="Updater" type="push" body="send" file="files/uImage">Sending Primary kernel uImage</CMD> 
    <CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk0 bs=20M seek=1 conv=fsync">write kernel image to sd card</CMD> 
 
	 <CMD state="Updater" type="push" body="send" file="files/uImage">Sending Retsore kernel uImage</CMD> 
    <CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk0 bs=26M seek=1 conv=fsync">write kernel image to sd card</CMD>
	
    <CMD state="Updater" type="push" body="send" file="eMMC-Partition.sh.tar">Sending partition shell</CMD> 
    <CMD state="Updater" type="push" body="$ tar xf $FILE "> Partitioning...</CMD> 
    <CMD state="Updater" type="push" body="$ sh eMMC-Partition.sh /dev/mmcblk0"> Partitioning...</CMD> 
 
    <CMD state="Updater" type="push" body="$ mkfs.ext3 -j /dev/mmcblk0p1">Formatting Primary rootfs partition</CMD> 
    <CMD state="Updater" type="push" body="$ mkdir -p /mnt/mmcblk0p1"/>  
    <CMD state="Updater" type="push" body="$ mount -t ext3 /dev/mmcblk0p1 /mnt/mmcblk0p1"/> 
    <CMD state="Updater" type="push" body="pipe tar -jxv -C /mnt/mmcblk0p1" file="files/rootfs.tar.bz2">Sending and writting rootfs</CMD> 
    <CMD state="Updater" type="push" body="frf">Finishing rootfs write</CMD> 
    <CMD state="Updater" type="push" body="$ umount /mnt/mmcblk0p1">Unmounting rootfs partition</CMD> 
	
	
	<CMD state="Updater" type="push" body="$ mkfs.ext3 -j /dev/mmcblk0p2">Formatting Secondary rootfs partition</CMD> 
    <CMD state="Updater" type="push" body="$ mkdir -p /mnt/mmcblk0p2"/>  
    <CMD state="Updater" type="push" body="$ mount -t ext3 /dev/mmcblk0p2 /mnt/mmcblk0p2"/> 
    <CMD state="Updater" type="push" body="pipe tar -jxv -C /mnt/mmcblk0p2" file="files/rootfs.tar.bz2">Sending and writting rootfs</CMD> 
    <CMD state="Updater" type="push" body="frf">Finishing rootfs write</CMD> 
    <CMD state="Updater" type="push" body="$ umount /mnt/mmcblk0p2">Unmounting rootfs partition</CMD>
	
	<CMD state="Updater" type="push" body="$ mkfs.ext3 -j /dev/mmcblk0p3">Formatting Third Partition</CMD> 
    <CMD state="Updater" type="push" body="$ mkdir -p /mnt/mmcblk0p3"/>  
    <CMD state="Updater" type="push" body="$ mount -t ext3 /dev/mmcblk0p3 /mnt/mmcblk0p3"/> 
    <CMD state="Updater" type="push" body="frf">Finishing Partition write</CMD> 
    <CMD state="Updater" type="push" body="$ umount /mnt/mmcblk0p3">Unmounting Third partition</CMD>
	
	<CMD state="Updater" type="push" body="$ mkfs.ext3 -j /dev/mmcblk0p4">Formatting Fourth partition</CMD> 
    <CMD state="Updater" type="push" body="$ mkdir -p /mnt/mmcblk0p4"/>  
    <CMD state="Updater" type="push" body="$ mount -t ext3 /dev/mmcblk0p4 /mnt/mmcblk0p4"/> 
    <CMD state="Updater" type="push" body="frf">Finishing Partition write</CMD> 
    <CMD state="Updater" type="push" body="$ umount /mnt/mmcblk0p4">Unmounting Fourth partition</CMD>

  </LIST>

 
</UCL>

Attachment: cfg.ini
Description: cfg.ini

-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to