96 lines
3.3 KiB
HTML
96 lines
3.3 KiB
HTML
---
|
||
layout: default
|
||
---
|
||
<main role="main">
|
||
<div class="container">
|
||
<h2>{{ page.board_name }}</h2>
|
||
<hr />
|
||
</div>
|
||
<div class="container">
|
||
<div class="row">
|
||
<div class="col-6 text-right px-2"><strong>Board name</strong></div>
|
||
<div class="col-6 px-2">{{ page.board_name }}</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-6 text-right px-2"><strong>Board maker</strong></div>
|
||
<div class="col-6 px-2">{{ page.board_maker_name }}</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-6 text-right px-2"><strong>SoC</strong></div>
|
||
<div class="col-6 px-2">{{ page.board_soc_name }}</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-6 text-right px-2"><strong>CPU</strong></div>
|
||
<div class="col-6 px-2">{{ page.board_cpu_name }}</div>
|
||
</div>
|
||
<hr />
|
||
</div>
|
||
<div class="container">
|
||
<h3>Install instructions</h3>
|
||
<p class="bg-dark py-2 px-3">
|
||
<code class="shell-normal text-light">wget http://ftp.sd-card-images.johang.se<span id="boot_path">/PLACEHOLDER1.bin.gz</span></code><br />
|
||
<code class="shell-normal text-light">wget http://ftp.sd-card-images.johang.se<span id="debian_path">/PLACEHOLDER2.bin.gz</span></code><br />
|
||
<code class="shell-normal text-light">zcat <span id="boot_file">boot.bin.gz</span> <span id="debian_file">debian.bin.gz</span> > sd-card.img</code><br />
|
||
<code class="shell-root text-light">dd if=sd-card.img of=/dev/sdXXX <span class="text-info"># ...where /dev/sdXXX is your SD card</span></code><br />
|
||
</p>
|
||
<p>When the <code>dd</code> command is done, put the SD card in your board and power it on. The board will boot up and assign itself an IP address using DHCP. The last part of the Debian image filename is the default root password.</p>
|
||
<hr />
|
||
</div>
|
||
<div class="container">
|
||
<h3>Downloads</h3>
|
||
<ul id="downloads">
|
||
</ul>
|
||
<hr />
|
||
</div>
|
||
<script>
|
||
base_url = "http://ftp.sd-card-images.johang.se";
|
||
board = "{{ page.board_id }}";
|
||
arch = "{{ page.board_cpu_arch_debian }}";
|
||
dist = "stretch";
|
||
function basename(path) {
|
||
return path.substring(Math.max(0, path.lastIndexOf("/") + 1));
|
||
}
|
||
function handle_boots(boots) {
|
||
boots.forEach(function(boot) {
|
||
if (boot["board"] == board) {
|
||
// Update install instructions
|
||
$("#boot_path").text(boot["path"]);
|
||
$("#boot_file").text(basename(boot["path"]));
|
||
|
||
// Update downloads
|
||
$("<li><a href=\"" + base_url + boot["path"] +
|
||
"\">" + basename(boot["path"]) +
|
||
"</a></li>").appendTo("ul#downloads");
|
||
}
|
||
});
|
||
}
|
||
function handle_debians(debians) {
|
||
debians.forEach(function(debian) {
|
||
if (debian["arch"] == arch) {
|
||
if (debian["dist"] == dist) {
|
||
// Update install instructions
|
||
$("#debian_path").text(debian["path"]);
|
||
$("#debian_file").text(basename(debian["path"]));
|
||
}
|
||
|
||
// Update downloads
|
||
$("<li><a href=\"" + base_url + debian["path"] +
|
||
"\">" + basename(debian["path"]) +
|
||
"</a></li>").appendTo("ul#downloads");
|
||
}
|
||
});
|
||
}
|
||
</script>
|
||
<script src="https://ftp.sd-card-images.johang.se/index-boots.js" type="text/javascript"></script>
|
||
<script src="https://ftp.sd-card-images.johang.se/index-debians.js" type="text/javascript"></script>
|
||
<div class="container">
|
||
{% include digitalocean.html %}
|
||
<hr />
|
||
</div>
|
||
<div class="container">
|
||
<h3>Other boards</h3>
|
||
{% include boards.html %}
|
||
<hr />
|
||
</div>
|
||
</main>
|