index b5d6d52d11f8bd287b922cec02c58c4b6ec33e57..e1ad887606a62b9aeb0511883e4e108f83f6ebe7 100644 (file)
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 = "";
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);
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");