]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcsdk-tools.git/blobdiff - program_evm/program_evm.js
program_evm: updated binaries dir to prebuilt-images for ProcSDK 2.0.1
[keystone-rtos/mcsdk-tools.git] / program_evm / program_evm.js
index b5d6d52d11f8bd287b922cec02c58c4b6ec33e57..e1ad887606a62b9aeb0511883e4e108f83f6ebe7 100644 (file)
@@ -111,7 +111,7 @@ var dss_script_dir    = java.lang.System.getenv("DSS_SCRIPT_DIR");
 var host_os           = "";
 var script_logs    = nandwriter_dir+"/logs/";
 var script_configs = nandwriter_dir+"/configs/";
-var script_binaries = nandwriter_dir+"/binaries/";
+var script_binaries = "../prebuilt-images";
 var targetConfig = "";
 var writeAll = false;
 var writerImages = "";
@@ -158,21 +158,26 @@ if (arguments.length > 0 && arguments.length < 3)
         xds200 = true;
        emulation_spec = "XDS200 emulator";
         board_spec = board_spec.replace(/ls$/, "l");
-    }    
-       
-    // for now, use the same software for lx and l variants
+    }
+
+    if (board_spec.match(/k2h$/) || board_spec.match(/k2e$/) || board_spec.match(/k2l$/) || board_spec.match(/k2g$/))
+    {
+        emulation_spec = "XDS2xx emulator";
+    }
+
+       // for now, use the same software for lx and l variants
     board_spec = board_spec.replace(/lx$/, "l");
-    
+
     // for now, treat evm6618l as an alias for evm6670l
     board_spec = board_spec.replace(/evm6618/, "evm6670");
-        
+
     targetFlag = board_spec;
-    
+
     endian_spec = (big_endian ? "-be" : "");
-    
+
     board_binaries = script_binaries + targetFlag + endian_spec + "/";
     targetConfig = java.lang.System.getenv("PROGRAM_EVM_TARGET_CONFIG_FILE");
-    if (!targetConfig)    
+    if (!targetConfig)
         targetConfig = script_configs + targetFlag + "/" + targetFlag + (emul560 ? "e" : "") + (xds200 ? "s" : "") + host_os + ".ccxml";
 
     print("board: " + targetFlag);
@@ -278,6 +283,30 @@ switch (targetFlag)
                var nandNorAddress = 0x80000000;
                var iblByteSwap = false;
                break;
+       case "evmk2h":
+               cpu_id = "C66xx_0";
+               var nAddress = 0x0C000000;
+               var nandNorAddress = 0x80000000;
+               var iblByteSwap = false;
+        break;
+       case "evmk2e":
+               cpu_id = "C66xx_0";
+               var nAddress = 0x0C000000;
+               var nandNorAddress = 0x80000000;
+               var iblByteSwap = false;
+        break;
+       case "evmk2l":
+               cpu_id = "C66xx_0";
+               var nAddress = 0x0C000000;
+               var nandNorAddress = 0x80000000;
+               var iblByteSwap = false;
+        break;
+       case "evmk2g":
+               cpu_id = "C66xx_0";
+               var nAddress = 0x0C000000;
+               var nandNorAddress = 0x80000000;
+               var iblByteSwap = false;
+        break;
        default:
                script.traceWrite("Could not file cpu id for target " + targetFlag + "\n");