mfgtool optimisable for mass production

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mfgtool optimisable for mass production

2,325件の閲覧回数
boudewijn-ame
Contributor II

Hello,

 

I have a very simple yet necessary question. This is mostly aimed at Freescale employees.

 

We have created a custom imx6s board with almost all peripherals onboard. We would like to start mass production very soon and want to use the mfgtool (IMX_6_MFG_L3.10.17_1.0.0_TOOL --> Without rootfs)). We would only like to use the tool to push u-boot to the device. However I have an issue using this tool.

 

The -noui window never closes. Our automated system cannot handle windows that do not close after a successful boot. Is it possible to add an extra command such as "-pass 1" to the tool that closes after one succesful operation?

 

We tried using the application source code (IMX_MFG_TOOL_V2_SOURCE) to do it ourselves, but whenever we build it in visual studio 2012 we get a mass of errors mostly related to a dot in the mapname.  When we got things finally working and building, the application crashes when trying to boot the device. Very weird because we never changed the downloaded source code. Can anyone try to download the website code, extract it into C:\ and open it in visual studio?)

Original Attachment has been moved to: ucl2.xml.zip

ラベル(4)
5 返答(返信)

1,308件の閲覧回数
andrewdyer
Contributor III

I just ran into the same problem today.  Add my vote to this feature request.

In addition to terminating after the <LIST> is run through, MfgTool2.exe should return a code that can be tested with %ERRORLEVEL% in a batch file for success.

1,308件の閲覧回数
andrewdyer
Contributor III

Another possible work-around is to use sb_loader.exe which is a simple standalone download program.  The downside is that sb_loader doesn't implement the UTP protocol that mfgtool uses to push commands and data across the link.  I was looking at replacing the usb mass storage gadget and UTP daemon with the ethernet over USB g_ether gadget and using ssh/scp over that link.  This would require a new kernel build and new ramdisk image.  You might also modify the disk image of the ramdisk and pre-load some scripts on it to do things.  In any case I haven't got that part going yet.

sb_loader.exe  is on the freescale forum in this thread:

sb_loader.exe not supported for imx6 solo

(The version linked at the end does work on the Solo)

My ucl2.xml for loading the kernel looks like so:

    <CMD state="BootStrap" type="boot" body="BootStrap" file ="u-boot-ct200.imx" >Loading U-boot</CMD>

    <CMD state="BootStrap" type="load" file="uImage" address="0x12000000" loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Kernel.</CMD>

    <CMD state="BootStrap" type="load" file="initramfs.cpio.gz.uboot" address="0x12C00000" loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Initramfs.</CMD>

    <CMD state="BootStrap" type="load" file="imx6dl-ct200-ldo.dtb"    address="0x18000000" loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Device Tree.</CMD>

    <CMD state="BootStrap" type="jump" >Jumping to OS image.</CMD>

To replicate this with sb_loader I do the following:

on a linux machine:

run "mkimage -l u-boot-ct200.imx | grep Entry" to get the entry address of the u-boot.  For me it was 0x17800000.  This is used as the parameter for the sb_loader -exec option below

on windows:

REM load u-boot image with register setup script

sb_loader.exe -nojump -f u-boot-ct200.imx

REM load linux kernel image

sb_loader.exe -trans 0x12000000 -f uImage

REM load initial RAM filesystem

sb_loader.exe -trans 0x12C00000 -f initramfs.cpio.gz.uboot

REM load device tree

sb_loader.exe -trans 0x18000000 -f imx6dl-ct200-ldo.dtb

REM start u-boot

sb_loader.exe -exec 0x17800000

after the -exec command the u-boot ran and booted linux up until it was waiting for a command to come across the link for the Freescale UTP protocol.

0 件の賞賛
返信

1,308件の閲覧回数
KursadOney
NXP Employee
NXP Employee

One possible workaround is to launch mfgtool2.exe in the background, wait for a while, and use taskkill to terminate it. For example:

mfgtool2.exe -noui &

timeout 30

taskkill /IM mfgtool2.exe

0 件の賞賛
返信

1,308件の閲覧回数
boudewijn-ame
Contributor II

Hello

0 件の賞賛
返信

1,308件の閲覧回数
KursadOney
NXP Employee
NXP Employee

I agree with you and will try to raise this issue to the mfgtool development team. I wish we had a way for the public to open issues/bugs against the SW and track it.

0 件の賞賛
返信