diff options
Diffstat (limited to 'src/server/httpd')
-rw-r--r-- | src/server/httpd/browsemem.tcl | 2 | ||||
-rw-r--r-- | src/server/httpd/downloadmem.tcl | 6 | ||||
-rw-r--r-- | src/server/httpd/erase.tcl | 2 | ||||
-rw-r--r-- | src/server/httpd/flash.tcl | 2 | ||||
-rw-r--r-- | src/server/httpd/flashinfo.tcl | 2 | ||||
-rw-r--r-- | src/server/httpd/guiupload.tcl | 46 | ||||
-rw-r--r-- | src/server/httpd/httpd.tcl | 5 | ||||
-rw-r--r-- | src/server/httpd/index.tcl | 5 | ||||
-rw-r--r-- | src/server/httpd/menu.xml | 85 | ||||
-rw-r--r-- | src/server/httpd/openocd.tcl | 4 | ||||
-rw-r--r-- | src/server/httpd/production.tcl | 2 | ||||
-rw-r--r-- | src/server/httpd/run.tcl | 2 | ||||
-rw-r--r-- | src/server/httpd/targets.tcl | 10 | ||||
-rw-r--r-- | src/server/httpd/terminal.tcl | 2 |
14 files changed, 26 insertions, 149 deletions
diff --git a/src/server/httpd/browsemem.tcl b/src/server/httpd/browsemem.tcl index b34ff692..566643aa 100644 --- a/src/server/httpd/browsemem.tcl +++ b/src/server/httpd/browsemem.tcl @@ -14,8 +14,6 @@ append buffer { -
-
diff --git a/src/server/httpd/downloadmem.tcl b/src/server/httpd/downloadmem.tcl index 035ff3d9..6e9d00fb 100644 --- a/src/server/httpd/downloadmem.tcl +++ b/src/server/httpd/downloadmem.tcl @@ -14,8 +14,6 @@ append buffer { -
-
@@ -317,12 +315,12 @@ append buffer { <tr style="height:100%;">
<td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
- Download memory to ZY1000 from target. <br>
+ Download memory from target. <br>
<b>Note</b> that download memory can take
a long time(potentially minutes for megabytes at low JTAG clk speeds).
<p/>
Once the memory is downloaded a link is available on the page to download
- the file from ZY1000 to your PC.
+ the file to your PC.
</td>
</tr>
diff --git a/src/server/httpd/erase.tcl b/src/server/httpd/erase.tcl index b48197f1..3c29840d 100644 --- a/src/server/httpd/erase.tcl +++ b/src/server/httpd/erase.tcl @@ -14,8 +14,6 @@ append buffer { -
-
diff --git a/src/server/httpd/flash.tcl b/src/server/httpd/flash.tcl index f7c8547b..6fd1cb16 100644 --- a/src/server/httpd/flash.tcl +++ b/src/server/httpd/flash.tcl @@ -14,8 +14,6 @@ append buffer { -
-
<html xmlns="http://www.w3.org/TR/REC-html40">
diff --git a/src/server/httpd/flashinfo.tcl b/src/server/httpd/flashinfo.tcl index 595c449d..7a208636 100644 --- a/src/server/httpd/flashinfo.tcl +++ b/src/server/httpd/flashinfo.tcl @@ -14,8 +14,6 @@ append buffer { -
-
<html xmlns="http://www.w3.org/TR/REC-html40">
<head>
<title>OpenOCD debugger</title>
diff --git a/src/server/httpd/guiupload.tcl b/src/server/httpd/guiupload.tcl index 9b02c2ac..1911510c 100644 --- a/src/server/httpd/guiupload.tcl +++ b/src/server/httpd/guiupload.tcl @@ -14,8 +14,6 @@ append buffer { -
-
@@ -95,7 +93,7 @@ append buffer { <tr>
<td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
<div style="position:relative;left:10px;top:10px;font-weight:bold;">
-<a href="guiupload.tcl" style="font-weight: bold;">Upload File to ZY1000</a>
+<a href="guiupload.tcl" style="font-weight: bold;">Upload File</a>
</div>
</td>
</tr>
@@ -149,7 +147,7 @@ append buffer { </tr>
<tr>
<td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
-<H1>Upload File to ZY1000</H1>
+<H1>Upload File</H1>
</td>
</tr>
<tr style="height:100%;">
@@ -171,7 +169,7 @@ append buffer { }
}
- append buffer {<table style="padding:0px;border-collapse:collapse;"><tr><td class="formtext">Filename on ZY1000</td><td><input type="text" name="form_filename"></td></tr>}
+ append buffer {<table style="padding:0px;border-collapse:collapse;"><tr><td class="formtext">Filename on OpenOCD machine</td><td><input type="text" name="form_filename"></td></tr>}
append buffer {<td class="formtext">File to upload</td><td><input type="file" name="form_filecontent"></td></tr></table>}
append buffer {<table><tr><td style="height:15px;width:535px;"> </td></tr><tr><td style="height:1px;width:535px;background-color:#a2c5d1;"></td></tr><tr><td style="height:15px;width:535px;"> </td></tr></table>}
append buffer {<input type="submit" name="form_action" value="Upload" ><br> }
@@ -302,43 +300,7 @@ append buffer { <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
</tr>
<tr style="height:100%;">
-<td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
-
- <p>The ZY1000 has three filing systems "/rom", "/ram" and "/config". "/rom" is a read only filing
- embedded into the firmware.</p>
-
- <p>Use "/ram" to store temporary files.<p/>
-
- <p>
- You can browse filing systems and download files by pointing your web browser to:
- <ul>
- <li><a href="/ram" target="_blank">/ram</a>
- <li><a href="/rom" target="_blank">/rom</a>
- <li><a href="/config" target="_blank">/config</a>
- </ul>
- </p>
-
- <p>
- You can also upload files using e.g. curl from the command line. Example:
- </p>
- <code>
- curl --form form_filecontent=@/tmp/myfile.elf --form form_filename=/ram/myfile.elf }
-append buffer [ip]
-append buffer {upload.tcl
- </code>
- <p>
- If you have a tftp server installed on your development PC, you can access
- files on your developer PC using a /tftp/ip/ prefix to the file to be accessed
- on your developer PC. Note that if you do not increase the default packet
- size for your tftp server, then the performance will be very poor. Normal
- performance is about 500-600kBytes/s.
- </p>
- <code>
- cp /tftp/10.0.0.106/build/src/openocd /ram/test
- </code>
-
-
- </td>
+<td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray"/>
</tr>
<tr>
<td style="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan="3">
diff --git a/src/server/httpd/httpd.tcl b/src/server/httpd/httpd.tcl index b5794114..607660cc 100644 --- a/src/server/httpd/httpd.tcl +++ b/src/server/httpd/httpd.tcl @@ -106,3 +106,8 @@ proc capture_catch {a} { } result
return $result
}
+
+proc zy1000_flash {} {
+ set t [lindex 0 [ocd_flash_banks]]
+ return $t(base)
+}
diff --git a/src/server/httpd/index.tcl b/src/server/httpd/index.tcl index 91e7e3fb..f450ce0f 100644 --- a/src/server/httpd/index.tcl +++ b/src/server/httpd/index.tcl @@ -298,10 +298,7 @@ append buffer { See log for details. <br>
<p><b>Target power</b> - Detects power on target. <br>
If the JTAG cable is not connected, or the target has no power, then no target power will be detected.</p>
- <p><b>Power on</b> - Turn on ZY1000 target power relay.</p>
- <p><b>Power off</b> - Turn off ZY1000 target power relay.</p>
<p>Type "help power" in telnet for command to control power relay.</p>
- <p><b>Reboot ZY1000</b> - Reboots ZY1000 unit. Type "help reboot" in telnet.</p>
</td>
</tr>
@@ -325,8 +322,6 @@ append buffer { -
-
diff --git a/src/server/httpd/menu.xml b/src/server/httpd/menu.xml index cf286e23..11daef94 100644 --- a/src/server/httpd/menu.xml +++ b/src/server/httpd/menu.xml @@ -87,10 +87,7 @@ See log for details. <br>
<p><b>Target power</b> - Detects power on target. <br>
If the JTAG cable is not connected, or the target has no power, then no target power will be detected.</p>
- <p><b>Power on</b> - Turn on ZY1000 target power relay.</p>
- <p><b>Power off</b> - Turn off ZY1000 target power relay.</p>
<p>Type "help power" in telnet for command to control power relay.</p>
- <p><b>Reboot ZY1000</b> - Reboots ZY1000 unit. Type "help reboot" in telnet.</p>
]]></markup_code>
</right_column>
@@ -108,13 +105,13 @@ <markup_code><![CDATA[
A target needs an openocd.cfg file. This config file sets up
- the CPU, flash and reset init script. Either ZY1000 ships with an
+ the CPU, flash and reset init script. Either OpenOCD ships with an
openocd.cfg file for your target or you need to take an existing
config file and modify it for your needs.
<p>
The reset init script is crucial. It will set up e.g. MMU, chip
select registers, etc. after a reset. The init.cfg (reset init script)
- is embedded into the openocd.cfg file in the sampls Zylin provides.
+ is embedded into the openocd.cfg file in the sampls OpenOCD provides.
<p>
Writing an openocd.cfg from scratch is a non-trivial exercise, but
fortunally it only has to be done once for a target and afterwards it
@@ -133,33 +130,6 @@ - <page lang="eng">
- <outfile>reload.tcl</outfile>
- <level2parent>index.tcl</level2parent>
- <pageheading>Reload Config Scripts</pageheading>
- <pagetext>
- <markup_code><![CDATA[
-
- <tcl>
- set form_action [formfetch form_action]
-
- if {[string compare $form_action "Reload"]==0} {
- append buffer "Reloading Config Scripts...<p>"
- reboot
- }
- </tcl>
- <form enctype="multipart/form-data" action="reload.tcl" method="post">
- <input type="submit" name="form_action" value="Reload">
- </form>
-
- ]]></markup_code>
- <right_column>
- Restart ZY1000 to reload selected target config script.
- </right_column>
- </pagetext>
-
- </page>
-
<page lang="eng">
<outfile>flashinfo.tcl</outfile>
@@ -789,12 +759,12 @@ append console [encode [capture_catch poll]] ]]></markup_code>
<right_column>
<![CDATA[
- Download memory to ZY1000 from target. <br>
+ Download memory from target. <br>
<b>Note</b> that download memory can take
a long time(potentially minutes for megabytes at low JTAG clk speeds).
<p/>
Once the memory is downloaded a link is available on the page to download
- the file from ZY1000 to your PC.
+ the file to your PC.
]]>
</right_column>
</pagetext>
@@ -811,9 +781,9 @@ append console [encode [capture_catch poll]] <level2parent>openocd.tcl</level2parent>
<level2menu href="openocd.tcl" title="Run Command" titlestyle="color:#4e6627;">
</level2menu>
- <level2menu href="guiupload.tcl" title="Upload File to ZY1000" titlestyle="color:#4e6627;">
+ <level2menu href="guiupload.tcl" title="Upload File" titlestyle="color:#4e6627;">
<![CDATA[
- Upload file to ZY1000
+ Upload file
]]>
</level2menu>
@@ -869,7 +839,7 @@ append console [encode [capture_catch poll]] <page lang="eng">
<outfile>guiupload.tcl</outfile>
<level2parent>openocd.tcl</level2parent>
- <pageheading>Upload File to ZY1000</pageheading>
+ <pageheading>Upload File</pageheading>
<pagetext>
<markup_code><![CDATA[
@@ -888,7 +858,7 @@ append console [encode [capture_catch poll]] }
}
- append buffer {<table style="padding:0px;border-collapse:collapse;"><tr><td class="formtext">Filename on ZY1000</td><td><input type="text" name="form_filename"></td></tr>}
+ append buffer {<table style="padding:0px;border-collapse:collapse;"><tr><td class="formtext">Filename on OpenOCD machine</td><td><input type="text" name="form_filename"></td></tr>}
append buffer {<td class="formtext">File to upload</td><td><input type="file" name="form_filecontent"></td></tr></table>}
append buffer {<table><tr><td style="height:15px;width:535px;"> </td></tr><tr><td style="height:1px;width:535px;background-color:#a2c5d1;"></td></tr><tr><td style="height:15px;width:535px;"> </td></tr></table>}
append buffer {<input type="submit" name="form_action" value="Upload" ><br> }
@@ -897,41 +867,6 @@ append console [encode [capture_catch poll]] </tcl>
]]></markup_code>
- <right_column>
- <![CDATA[
- <p>The ZY1000 has three filing systems "/rom", "/ram" and "/config". "/rom" is a read only filing
- embedded into the firmware.</p>
-
- <p>Use "/ram" to store temporary files.<p/>
-
- <p>
- You can browse filing systems and download files by pointing your web browser to:
- <ul>
- <li><a href="/ram" target="_blank">/ram</a>
- <li><a href="/rom" target="_blank">/rom</a>
- <li><a href="/config" target="_blank">/config</a>
- </ul>
- </p>
-
- <p>
- You can also upload files using e.g. curl from the command line. Example:
- </p>
- <code>
- curl --form form_filecontent=@/tmp/myfile.elf --form form_filename=/ram/myfile.elf <tcl>append buffer [ip]</tcl>upload.tcl
- </code>
- <p>
- If you have a tftp server installed on your development PC, you can access
- files on your developer PC using a /tftp/ip/ prefix to the file to be accessed
- on your developer PC. Note that if you do not increase the default packet
- size for your tftp server, then the performance will be very poor. Normal
- performance is about 500-600kBytes/s.
- </p>
- <code>
- cp /tftp/10.0.0.106/build/src/openocd /ram/test
- </code>
-
- ]]>
- </right_column>
</pagetext>
</page>
@@ -946,13 +881,13 @@ append console [encode [capture_catch poll]] <markup_code><![CDATA[
A target needs an openocd.cfg file. This config file sets up
- the CPU, flash and reset init script. Either ZY1000 ships with an
+ the CPU, flash and reset init script. Either OpenOCD ships with an
openocd.cfg file for your target or you need to take an existing
config file and modify it for your needs.
<p>
The reset init script is crucial. It will set up e.g. MMU, chip
select registers, etc. after a reset. The init.cfg (reset init script)
- is embedded into the openocd.cfg file in the sampls Zylin provides.
+ is embedded into the openocd.cfg file in the sampls OpenOCD provides.
<p>
Writing an openocd.cfg from scratch is a non-trivial exercise, but
fortunally it only has to be done once for a target and afterwards it
diff --git a/src/server/httpd/openocd.tcl b/src/server/httpd/openocd.tcl index fe1d195d..cb28026e 100644 --- a/src/server/httpd/openocd.tcl +++ b/src/server/httpd/openocd.tcl @@ -14,8 +14,6 @@ append buffer { -
-
@@ -91,7 +89,7 @@ append buffer { <tr>
<td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
<div style="position:relative;left:10px;top:10px;font-weight:bold;">
-<a href="guiupload.tcl" style="">Upload File to ZY1000</a>
+<a href="guiupload.tcl" style="">Upload File</a>
</div>
</td>
</tr>
diff --git a/src/server/httpd/production.tcl b/src/server/httpd/production.tcl index 654c6311..8172800b 100644 --- a/src/server/httpd/production.tcl +++ b/src/server/httpd/production.tcl @@ -14,8 +14,6 @@ append buffer { -
-
diff --git a/src/server/httpd/run.tcl b/src/server/httpd/run.tcl index 1a00eb97..1ce78132 100644 --- a/src/server/httpd/run.tcl +++ b/src/server/httpd/run.tcl @@ -14,8 +14,6 @@ append buffer { -
-
diff --git a/src/server/httpd/targets.tcl b/src/server/httpd/targets.tcl index 3df16367..f56746f8 100644 --- a/src/server/httpd/targets.tcl +++ b/src/server/httpd/targets.tcl @@ -105,13 +105,13 @@ append buffer { <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
A target needs an openocd.cfg file. This config file sets up
- the CPU, flash and reset init script. Either ZY1000 ships with an
+ the CPU, flash and reset init script. Either OpenOCD ships with an
openocd.cfg file for your target or you need to take an existing
config file and modify it for your needs.
<p>
The reset init script is crucial. It will set up e.g. MMU, chip
select registers, etc. after a reset. The init.cfg (reset init script)
- is embedded into the openocd.cfg file in the sampls Zylin provides.
+ is embedded into the openocd.cfg file in the sampls OpenOCD provides.
<p>
Writing an openocd.cfg from scratch is a non-trivial exercise, but
fortunally it only has to be done once for a target and afterwards it
@@ -260,8 +260,6 @@ append buffer { -
-
@@ -392,13 +390,13 @@ append buffer { <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
A target needs an openocd.cfg file. This config file sets up
- the CPU, flash and reset init script. Either ZY1000 ships with an
+ the CPU, flash and reset init script. Either OpenOCD ships with an
openocd.cfg file for your target or you need to take an existing
config file and modify it for your needs.
<p>
The reset init script is crucial. It will set up e.g. MMU, chip
select registers, etc. after a reset. The init.cfg (reset init script)
- is embedded into the openocd.cfg file in the sampls Zylin provides.
+ is embedded into the openocd.cfg file in the sampls OpenOCD provides.
<p>
Writing an openocd.cfg from scratch is a non-trivial exercise, but
fortunally it only has to be done once for a target and afterwards it
diff --git a/src/server/httpd/terminal.tcl b/src/server/httpd/terminal.tcl index 707ddd0f..5032e124 100644 --- a/src/server/httpd/terminal.tcl +++ b/src/server/httpd/terminal.tcl @@ -14,8 +14,6 @@ append buffer { -
-
|