Linux mfg Tool

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

Linux mfg Tool

2,245 Views
tommos23
Contributor III

I am using Ubuntu 16.04LTS to build android images for the sabresd_6dq board that I have. I can successfully flash the emmc using the mfg tool in Windows 10.

I have tried the attached script and also using the mfg tool.

When I try to use the mfg tools on Ubuntu by running:

./linux-runvbs.sh mfgtool2-android-mx6dl-sabresd-emmc.vbs

I get the following error:

mfgtool2-android-mx6dl-sabresd-emmc.vbs
Executing: ./mfgtoolcli -l eMMC-Android -s board=sabresd -s folder=sabresd -s soc=6dl -s mmc=3 -s data_type=
Your Options:
board: sabresd
folder: sabresd
soc: 6dl
mmc: 3
data_type: 
Ready to flash.
init op Failed code# 21 


The device is connected with the boot switch (SW6) set to 00001100. How do I flash the emmc of a sabre SD on Ubuntu?

Labels (3)
3 Replies

1,225 Views
joneschen
Contributor I

The problem is "There is no -c Linux in mfgtool2-android-mx6dl-sabreauto-sdcard-f2fs.vbs.sh" It cause mfgtoolcli to open ucl2.xml under Profiles/placeholder/OS Firmware/ folder which is wrong.

After fixing it, I got another error code now

    ModuleID[2] LevelID[1]: Error: Invalid device name: MX6SLL
    ModuleID[2] LevelID[1]: Parse ucl script failed, error code: 24

How wonderful! Does NXP test it on Ubuntu when they publish it????

1,225 Views
justingregory
Contributor II

I got around error code 24 by commenting out the MX6SLL, MX6ULL, and MX7ULP lines at the beginning of ucl2.xml.

        <CFG>
                <STATE name="BootStrap" dev="MX6SL" vid="15A2" pid="0063"/>
                <!-- <STATE name="BootStrap" dev="MX6SLL" vid="1FC9" pid="0128"/> -->
                <STATE name="BootStrap" dev="MX6D" vid="15A2" pid="0061"/>
                <STATE name="BootStrap" dev="MX6Q" vid="15A2" pid="0054"/>
                <STATE name="BootStrap" dev="MX6SX" vid="15A2" pid="0071"/>
                <STATE name="BootStrap" dev="MX6UL" vid="15A2" pid="007D"/>
                <STATE name="BootStrap" dev="MX7D" vid="15A2" pid="0076"/>
                <!-- <STATE name="BootStrap" dev="MX6ULL" vid="15A2" pid="0080"/> -->
                <!-- <STATE name="BootStrap" dev="MX7ULP" vid="1FC9" pid="0126"/> -->
                <STATE name="Updater"   dev="MSC" vid="066F" pid="37FF"/>
        </CFG>
0 Kudos

1,225 Views
joneschen
Contributor I

or you can set android_m4_image=Linux in cfg.ini 

Please remember to set cfg.ini file format to unix (It is dos by default....) otherwise you will still get error code 21..........

0 Kudos