summaryrefslogtreecommitdiff
path: root/bootwrapper
diff options
context:
space:
mode:
authorDietmar Eggemann <dietmar.eggemann@arm.com>2012-03-12 17:56:38 +0000
committerDietmar Eggemann <dietmar.eggemann@arm.com>2012-05-22 10:43:47 +0100
commit1752a79a71f45dce8456467331b8225084fc373e (patch)
tree5a381959cfd755560ea7707d37e490ee2c8ef68c /bootwrapper
parent8254f024269f1a24fba003e47ba8d7358f6989e4 (diff)
Rearrange mxscript files.
Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Diffstat (limited to 'bootwrapper')
-rwxr-xr-xbootwrapper/big-little-mp1.mxscript9
-rwxr-xr-xbootwrapper/big-little-mp4.mxscript13
-rwxr-xr-xbootwrapper/bl-mp1-fm-eac.mxscript76
-rwxr-xr-xbootwrapper/bl-mp4-fm-eac.mxscript94
4 files changed, 16 insertions, 176 deletions
diff --git a/bootwrapper/big-little-mp1.mxscript b/bootwrapper/big-little-mp1.mxscript
index b007e3d..7a7912e 100755
--- a/bootwrapper/big-little-mp1.mxscript
+++ b/bootwrapper/big-little-mp1.mxscript
@@ -6,6 +6,11 @@ string model = "<path to the model>";
// e.g. string app = "/home/working_dir/bootwrapper/img.axf"
string app = "<path to the software image>";
+// Replace the string with the absolute path of the wboot.bin image created in the
+// bootwrapper/big-little directory. This image is load in flash at 0x0 and distinguishes
+// between a warm and a cold reset
+string wboot = "<path to warm reset handler image>";
+
int ctr = 0;
// NOTE
@@ -40,11 +45,11 @@ int ctr = 0;
// below (on line 47) and uncomment the following lines taking care to update
// the paths accordingly.
// string mmcimage = "<path to mmc.img>";
-// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
// Invoke the model. It then listens for connection requests from the model debugger
// Vanilla invocation of the model.
-system(model + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+system(model + " -C motherboard.flashloader0.fname=" + wboot + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
// Wait for the model to load before connecting to it. There will be times when we
// try connecting before the model has loded resulting in a "Connection refused"
diff --git a/bootwrapper/big-little-mp4.mxscript b/bootwrapper/big-little-mp4.mxscript
index 96bc6bf..77d9a8f 100755
--- a/bootwrapper/big-little-mp4.mxscript
+++ b/bootwrapper/big-little-mp4.mxscript
@@ -1,11 +1,16 @@
// Replace the string with the absolute path of the Kingfisher model executable
-// e.g. string model = "/home/working_dir/models/RTSM_VE_Cortex-A15x4-A7x4"
+// e.g. string model = "/home/working_dir/RTSM_VE_Cortex-A15x4-A7x4"
string model = "<path to the model>";
// Replace the string with the absolute path of the Virutalizer+Payload software image
// e.g. string app = "/home/working_dir/bootwrapper/img.axf"
string app = "<path to the software image>";
+// Replace the string with the absolute path of the wboot.bin image created in the
+// bootwrapper/big-little directory. This image is load in flash at 0x0 and distinguishes
+// between a warm and a cold reset
+string wboot = "<path to warm reset handler image>";
+
int ctr = 0;
// NOTE
@@ -36,15 +41,15 @@ int ctr = 0;
// NOTE
//
// _Only_ if a run is needed using an optional rootfs MMC image built using the instructions in
-// doc/06-Optional-rootfs-build.txt, then comment out the system() invocation
+// docs/06-Optional-rootfs-build.txt, then comment out the system() invocation
// below (on line 47) and uncomment the following lines taking care to update
// the paths accordingly.
// string mmcimage = "<path to mmc.img>";
-// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
// Invoke the model. It then listens for connection requests from the model debugger
// Vanilla invocation of the model.
-system(model + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
+system(model + " -C motherboard.flashloader0.fname=" + wboot + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
// Wait for the model to load before connecting to it. There will be times when we
// try connecting before the model has loded resulting in a "Connection refused"
diff --git a/bootwrapper/bl-mp1-fm-eac.mxscript b/bootwrapper/bl-mp1-fm-eac.mxscript
deleted file mode 100755
index 7a7912e..0000000
--- a/bootwrapper/bl-mp1-fm-eac.mxscript
+++ /dev/null
@@ -1,76 +0,0 @@
-// Replace the string with the absolute path of the Kingfisher model executable
-// e.g. string model = "/home/working_dir/RTSM_VE_Cortex-A15x1-A7x1";
-string model = "<path to the model>";
-
-// Replace the string with the absolute path of the Virutalizer+Payload software image
-// e.g. string app = "/home/working_dir/bootwrapper/img.axf"
-string app = "<path to the software image>";
-
-// Replace the string with the absolute path of the wboot.bin image created in the
-// bootwrapper/big-little directory. This image is load in flash at 0x0 and distinguishes
-// between a warm and a cold reset
-string wboot = "<path to warm reset handler image>";
-
-int ctr = 0;
-
-// NOTE
-//
-// Uncomment the next 4 'string' variables and update them _only_ if the run is required
-// to generate trace output as described in docs/04-Cache-hit-rate-howto.txt. Also,
-// comment out the system() invocation on line 47 and uncomment the system() command on line 34.
-// Each 'trace' parameter is described below.
-
-// Add the path to the trace plugin
-// string trace_plugin = " --trace-plugin <path to>/GenericTrace.so";
-
-// Parameters for selecting the trace sources to monitor outbound cache hits
-// string trace_sources = " --parameter TRACE.GenericTrace.trace-sources=\*sw_trace_event\*,\*read_for_3_came_from_snoop\*,\*read_for_4_came_from_snoop\* ";
-
-// Add the path to the trace file where all the output will be collected
-// string trace_file = " --parameter TRACE.GenericTrace.trace-file=<path to trace file> ";
-
-// Miscellaneous parameters. The frequency at which the performance metrics of the
-// model appear in the trace source can be changed here (default is 0x100).
-// string trace_misc = " -C TRACE.GenericTrace.perf-period=0x100 -C TRACE.GenericTrace.flush=1 ";
-
-// The commented 'system' command below will launch the model and register the trace
-// sources selected in 'trace_sources' with the Generic Trace plugin selected using
-// 'trace_plugin'. Other parameters are specified in 'trace_file' & 'trace_misc'.
-// system(model + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
-
-// NOTE
-//
-// _Only_ if a run is needed using an optional rootfs MMC image built using the instructions in
-// docs/06-Optional-rootfs-build.txt, then comment out the system() invocation
-// below (on line 47) and uncomment the following lines taking care to update
-// the paths accordingly.
-// string mmcimage = "<path to mmc.img>";
-// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
-
-// Invoke the model. It then listens for connection requests from the model debugger
-// Vanilla invocation of the model.
-system(model + " -C motherboard.flashloader0.fname=" + wboot + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
-
-// Wait for the model to load before connecting to it. There will be times when we
-// try connecting before the model has loded resulting in a "Connection refused"
-// error. Increasing 'ctr' or retrying should solve the problem.
-while(ctr < 400000000)
-{
- ctr++;
-}
-
-// Model listens at port 7000
-connectToModel("7000");
-
-// The following lines can be uncommented to set any breakpoints on each cluster
-selectTarget("coretile.cluster0.cpu0");
-//bpAdd(<address>, "Normal");
-//bpAdd(<address>, "Secure");
-selectTarget("coretile.cluster1.cpu0");
-//bpAdd(<address>, "Normal");
-//bpAdd(<address>, "Secure");
-
-// Select the primary cpu on the primary cluster and set the ball rolling
-selectTarget("coretile.cluster0.cpu0");
-run();
-
diff --git a/bootwrapper/bl-mp4-fm-eac.mxscript b/bootwrapper/bl-mp4-fm-eac.mxscript
deleted file mode 100755
index 6099351..0000000
--- a/bootwrapper/bl-mp4-fm-eac.mxscript
+++ /dev/null
@@ -1,94 +0,0 @@
-// Replace the string with the absolute path of the Kingfisher model executable
-// e.g. string model = "/home/working_dir/models/RTSM_VE_Cortex-A15x4-A7x4"
-string model = "<path to the model>";
-
-// Replace the string with the absolute path of the Virutalizer+Payload software image
-// e.g. string app = "/home/working_dir/bootwrapper/img.axf"
-string app = "<path to the software image>";
-
-// Replace the string with the absolute path of the wboot.bin image created in the
-// bootwrapper/big-little directory. This image is load in flash at 0x0 and distinguishes
-// between a warm and a cold reset
-string wboot = "<path to warm reset handler image>";
-
-int ctr = 0;
-
-// NOTE
-//
-// Uncomment the next 4 'string' variables and update them _only_ if the run is required
-// to generate trace output as described in docs/04-Cache-hit-rate-howto.txt. Also,
-// comment out the system() invocation on line 47 and uncomment the system() command on line 34.
-// Each 'trace' parameter is described below.
-
-// Add the path to the trace plugin
-// string trace_plugin = " --trace-plugin <path to>/GenericTrace.so";
-
-// Parameters for selecting the trace sources to monitor outbound cache hits
-// string trace_sources = " --parameter TRACE.GenericTrace.trace-sources=\*sw_trace_event\*,\*read_for_3_came_from_snoop\*,\*read_for_4_came_from_snoop\* ";
-
-// Add the path to the trace file where all the output will be collected
-// string trace_file = " --parameter TRACE.GenericTrace.trace-file=<path to trace file> ";
-
-// Miscellaneous parameters. The frequency at which the performance metrics of the
-// model appear in the trace source can be changed here (default is 0x100).
-// string trace_misc = " -C TRACE.GenericTrace.perf-period=0x100 -C TRACE.GenericTrace.flush=1 ";
-
-// The commented 'system' command below will launch the model and register the trace
-// sources selected in 'trace_sources' with the Generic Trace plugin selected using
-// 'trace_plugin'. Other parameters are specified in 'trace_file' & 'trace_misc'.
-// system(model + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
-
-// NOTE
-//
-// _Only_ if a run is needed using an optional rootfs MMC image built using the instructions in
-// doc/06-Optional-rootfs-build.txt, then comment out the system() invocation
-// below (on line 47) and uncomment the following lines taking care to update
-// the paths accordingly.
-// string mmcimage = "<path to mmc.img>";
-// system(model + " -C motherboard.mmc.p_mmc_file=" + mmcimage + trace_plugin + trace_sources + trace_file + trace_misc + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
-
-// Invoke the model. It then listens for connection requests from the model debugger
-// Vanilla invocation of the model.
-system(model + " -C motherboard.flashloader0.fname=" + wboot + " -C coretile.cache_state_modelled=1" + " -a coretile.cluster0.\*=" + app + " -a coretile.cluster1.\*=" + app + " --verbose -S &");
-
-// Wait for the model to load before connecting to it. There will be times when we
-// try connecting before the model has loded resulting in a "Connection refused"
-// error. Increasing 'ctr' or retrying should solve the problem.
-while(ctr < 400000000)
-{
- ctr++;
-}
-
-// Model listens at port 7000
-connectToModel("7000");
-
-// The following lines can be uncommented to set any breakpoints on each cluster
-selectTarget("coretile.cluster0.cpu0");
-//bpAdd(<address>, "Normal");
-//bpAdd(<address>, "Secure");
-selectTarget("coretile.cluster0.cpu1");
-//bpAdd(<address>, "Normal");
-//bpAdd(<address>, "Secure");
-selectTarget("coretile.cluster0.cpu2");
-//bpAdd(<address>, "Normal");
-//bpAdd(<address>, "Secure");
-selectTarget("coretile.cluster0.cpu3");
-//bpAdd(<address>, "Normal");
-//bpAdd(<address>, "Secure");
-selectTarget("coretile.cluster1.cpu0");
-//bpAdd(<address>, "Normal");
-//bpAdd(<address>, "Secure");
-selectTarget("coretile.cluster1.cpu1");
-//bpAdd(<address>, "Normal");
-//bpAdd(<address>, "Secure");
-selectTarget("coretile.cluster1.cpu2");
-//bpAdd(<address>, "Normal");
-//bpAdd(<address>, "Secure");
-selectTarget("coretile.cluster1.cpu3");
-//bpAdd(<address>, "Normal");
-//bpAdd(<address>, "Secure");
-
-// Select the primary cpu on the primary cluster and set the ball rolling
-selectTarget("coretile.cluster0.cpu0");
-run();
-