How to add new vbs for a new imx board in MFGTOOL

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

How to add new vbs for a new imx board in MFGTOOL

How to add new vbs for a new imx board in MFGTOOL

The vbs file is a script file in mfgtool. In fsl android lollipop consolidate and later MFGTOOL version, You just need add a new vbs item for new board and have not need to change the ucl2.xml. The below is the example struct.

Set wshShell = CreateObject("WScript.shell")

wshShell.run "mfgtool2.exe -c ""linux"" -l ""SDCard-Android"" -s ""board=sabresd"" -s ""folder=sabresd"" -s ""soc=6dl"" -s ""mmc=2"" -s ""data_type=-f2fs"""

Set wshShell = Nothing

Explain for each option:

-l: storage type

     There three type for android: Nand-Android\eMMC-Android\SDCard-Android

-s: extend variable

     board: It is used to download uboot and dts in init system.

     folder: there are three type: sabresd sabreauto evk

               the android image is located in: files/android/%folder%/

     soc: Used to define android image name. types: 6q, 6dl, 6sx, 6sl.

     mmc: define the storage idex.

     data_type: if the type of data partition is f2fs, need define data_type=-f2fs

     ldo: if the board is 1.2G, need to define it to -ldo

     plus: if the board is 6qp, need too define it to p

%3CLINGO-SUB%20id%3D%22lingo-sub-1117248%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20add%20new%20vbs%20for%20a%20new%20imx%20board%20in%20MFGTOOL%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117248%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20vbs%20file%20is%20a%20script%20file%20in%20mfgtool.%20In%20fsl%20android%20lollipop%20consolidate%20and%20later%20MFGTOOL%20version%2C%20You%20just%20need%20add%20a%20new%20vbs%20item%20for%20new%20board%20and%20have%20not%20need%20to%20change%20the%20ucl2.xml.%20The%20below%20is%20the%20example%20struct.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ESet%20wshShell%20%3D%20CreateObject(%22WScript.shell%22)%3C%2FP%3E%3CP%3EwshShell.run%20%22mfgtool2.exe%20-c%20%22%22linux%22%22%20-l%20%22%22SDCard-Android%22%22%20-s%20%22%22board%3Dsabresd%22%22%20-s%20%22%22folder%3Dsabresd%22%22%20-s%20%22%22soc%3D6dl%22%22%20-s%20%22%22mmc%3D2%22%22%20-s%20%22%22data_type%3D-f2fs%22%22%22%3C%2FP%3E%3CP%3ESet%20wshShell%20%3D%20Nothing%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EExplain%20for%20each%20option%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E-l%3A%20storage%20type%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20There%20three%20type%20for%20android%3A%20Nand-Android%5CeMMC-Android%5CSDCard-Android%3C%2FP%3E%3CP%3E-s%3A%20extend%20variable%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20board%3A%20It%20is%20used%20to%20download%20uboot%20and%20dts%20in%20init%20system.%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20folder%3A%20there%20are%20three%20type%3A%20sabresd%20sabreauto%20evk%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20the%20android%20image%20is%20located%20in%3A%20files%2Fandroid%2F%25folder%25%2F%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20soc%3A%20Used%20to%20define%20android%20image%20name.%20types%3A%206q%2C%206dl%2C%206sx%2C%206sl.%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20mmc%3A%20define%20the%20storage%20idex.%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20data_type%3A%20if%20the%20type%20of%20data%20partition%20is%20f2fs%2C%20need%20define%20data_type%3D-f2fs%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ldo%3A%20if%20the%20board%20is%201.2G%2C%20need%20to%20define%20it%20to%20-ldo%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20plus%3A%20if%20the%20board%20is%206qp%2C%20need%20too%20define%20it%20to%20p%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1117248%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAndroid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX6_All%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX6DL%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX6Dual%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX6Quad%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX6SL%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎10-14-2015 11:20 PM
Updated by: