mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 16:29:34 +00:00
3851548684
The Atari disk image tools don't allow to place contiki.cfg at a fixed location. Therefore the byte offset of the contiki.cfg content isn't constant :-( However using the tool adir with the option -r allows to learn the block number of the contiki.cfg content. So this block number is stored for each Atari disk image in the PHP code (in the array $blk) and translated into the correct byte offset.
150 lines
5.9 KiB
HTML
150 lines
5.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
|
<html>
|
|
<head>
|
|
<title>Contiki Download</title>
|
|
<style type="text/css">
|
|
tr.p { padding: 15px 0px }
|
|
tr.pt { padding-top: 15px }
|
|
tr.pb { padding-bottom: 15px }
|
|
tr.bg { background-color: black; height: 1px }
|
|
</style>
|
|
<script type="text/javascript">
|
|
function disks(disks) {
|
|
for (var i = 3; i; i--) {
|
|
document.forms[0].disk[i].disabled = i > disks;
|
|
if (document.forms[0].disk[i].checked &&
|
|
document.forms[0].disk[i].disabled)
|
|
document.forms[0].disk[i-1].checked = true;
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form action="download.php">
|
|
<h4 align="center">Download your custom generated Contiki</h4>
|
|
<table align="center" cellpadding="0" cellspacing="0">
|
|
<tr class="p">
|
|
<td>
|
|
<input type="radio" name="machine" id="apple2" value="apple2" onclick="disks(3)" checked="checked" />
|
|
<label for="apple2">Apple //e</label>
|
|
</td><td>
|
|
<label for="apple2-drv">Ethernet Card:</label>
|
|
<select name="apple2-drv" id="apple2-drv" size="1">
|
|
<option value="cs8900a.eth" >Uthernet</option>
|
|
<option value="lan91c96.eth">LANceGS </option>
|
|
</select>
|
|
</td><td>
|
|
<label for="apple2-addr">Slot:</label>
|
|
<select name="apple2-addr" id="apple2-addr" size="1">
|
|
<option value="C090" >1</option>
|
|
<option value="C0A0" >2</option>
|
|
<option value="C0B0" selected="selected">3</option>
|
|
<option value="C0C0" >4</option>
|
|
<option value="C0D0" >5</option>
|
|
<option value="C0E0" >6</option>
|
|
<option value="C0F0" >7</option>
|
|
</select>
|
|
</td>
|
|
</tr><tr class="bg">
|
|
<td colspan="3" />
|
|
</tr><tr class="p">
|
|
<td>
|
|
<input type="radio" name="machine" id="c64" value="c64" onclick="disks(2)" />
|
|
<label for="c64">C64</label>
|
|
</td><td colspan="2">
|
|
<label for="c64-drv">Ethernet Card:</label>
|
|
<select name="c64-addr-drv" id="c64-drv" size="1">
|
|
<option value="DE08-CS8900A.ETH" >RR+RR-Net</option>
|
|
<option value="DE00-CS8900A.ETH" >TFE </option>
|
|
<option value="DE00-LAN91C96.ETH">ETH64 </option>
|
|
</select>
|
|
</td>
|
|
</tr><tr class="bg">
|
|
<td colspan="3" />
|
|
</tr><tr class="p">
|
|
<td>
|
|
<input type="radio" name="machine" id="c128" value="c128" onclick="disks(1)" />
|
|
<label for="c128">C128</label>
|
|
</td><td colspan="2">
|
|
<label for="c128-drv">Ethernet Card:</label>
|
|
<select name="c128-addr-drv" id="c128-drv" size="1">
|
|
<option value="DE08-CS8900A.ETH" >RR+RR-Net</option>
|
|
<option value="DE00-CS8900A.ETH" >TFE </option>
|
|
<option value="DE00-LAN91C96.ETH">ETH64 </option>
|
|
</select>
|
|
</td>
|
|
</tr><tr class="bg">
|
|
<td colspan="3" />
|
|
</tr><tr class="p">
|
|
<td>
|
|
<input type="radio" name="machine" id="atari" value="atari" onclick="disks(2)" />
|
|
<label for="atari">Atari 8-bit</label>
|
|
</td><td colspan="2">
|
|
<label for="atari-drv">Ethernet Card:</label>
|
|
<select name="atari-addr-drv" id="atari-drv" size="1">
|
|
<option value="D500-CS8900A.ETH" >Atari 8-bit Ethernet</option>
|
|
</select>
|
|
</td>
|
|
</tr><tr class="bg">
|
|
<td colspan="3" />
|
|
</tr><tr class="pt">
|
|
<td>
|
|
<label for="addr-a">IP Address:</label>
|
|
</td><td>
|
|
<input type="text" name="addr-a" id="addr-a" size="3" maxlength="3" value="192" />.
|
|
<input type="text" name="addr-b" id="addr-b" size="3" maxlength="3" value="168" />.
|
|
<input type="text" name="addr-c" id="addr-c" size="3" maxlength="3" value="0" />.
|
|
<input type="text" name="addr-d" id="addr-d" size="3" maxlength="3" value="111" />
|
|
</td>
|
|
</tr><tr>
|
|
<td>
|
|
<label for="mask-a">Subnet Mask:</label>
|
|
</td><td>
|
|
<input type="text" name="mask-a" id="mask-a" size="3" maxlength="3" value="255" />.
|
|
<input type="text" name="mask-b" id="mask-b" size="3" maxlength="3" value="255" />.
|
|
<input type="text" name="mask-c" id="mask-c" size="3" maxlength="3" value="255" />.
|
|
<input type="text" name="mask-d" id="mask-d" size="3" maxlength="3" value="0" />
|
|
</td>
|
|
</tr><tr>
|
|
<td>
|
|
<label for="dgw-a">Default Gateway: </label>
|
|
</td><td>
|
|
<input type="text" name="dgw-a" id="dgw-a" size="3" maxlength="3" value="192" />.
|
|
<input type="text" name="dgw-b" id="dgw-b" size="3" maxlength="3" value="168" />.
|
|
<input type="text" name="dgw-c" id="dgw-c" size="3" maxlength="3" value="0" />.
|
|
<input type="text" name="dgw-d" id="dgw-d" size="3" maxlength="3" value="1" />
|
|
</td>
|
|
</tr><tr class="pb">
|
|
<td>
|
|
<label for="dns-a">DNS Server:</label>
|
|
</td><td>
|
|
<input type="text" name="dns-a" id="dns-a" size="3" maxlength="3" value="192" />.
|
|
<input type="text" name="dns-b" id="dns-b" size="3" maxlength="3" value="168" />.
|
|
<input type="text" name="dns-c" id="dns-c" size="3" maxlength="3" value="0" />.
|
|
<input type="text" name="dns-d" id="dns-d" size="3" maxlength="3" value="1" />
|
|
</td>
|
|
</tr><tr class="bg">
|
|
<td colspan="3" />
|
|
</tr><tr class="p">
|
|
<td colspan="3">
|
|
<input type="radio" name="disk" id="conf" value="0" />
|
|
<label for="conf">Configuration File Only</label><br />
|
|
<input type="radio" name="disk" id="disk-1" value="1" checked="checked" />
|
|
<label for="disk-1">Complete Image Of Disk 1</label><br />
|
|
<input type="radio" name="disk" id="disk-2" value="2" />
|
|
<label for="disk-2">Complete Image Of Disk 2</label><br />
|
|
<input type="radio" name="disk" id="disk-3" value="3" />
|
|
<label for="disk-3">Complete Image Of Disk 3</label>
|
|
</td>
|
|
</tr><tr class="bg">
|
|
<td colspan="3" />
|
|
</tr><tr class="p">
|
|
<td colspan="3" align="center">
|
|
<input type="submit" value="Download" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</body>
|
|
</html>
|