120 lines
4.1 KiB
HTML
120 lines
4.1 KiB
HTML
---
|
||
layout: default
|
||
---
|
||
<main role="main">
|
||
<div class="container">
|
||
<h2>{{ page.board_name }}</h2>
|
||
<hr />
|
||
</div>
|
||
<div class="container">
|
||
<dl class="row">
|
||
<dt class="col-6 text-right"><strong>Board name</strong></dt>
|
||
<dd class="col-6">{{ page.board_name }}</dd>
|
||
<dt class="col-6 text-right"><strong>Board maker</strong></dt>
|
||
<dd class="col-6">{{ page.board_maker_name }}</dd>
|
||
<dt class="col-6 text-right"><strong>SoC</strong></dt>
|
||
<dd class="col-6">{{ page.board_soc_name }}</dd>
|
||
<dt class="col-6 text-right"><strong>CPU</strong></dt>
|
||
<dd class="col-6">{{ page.board_cpu_name }}</dd>
|
||
</dl>
|
||
<hr />
|
||
</div>
|
||
<div class="container">
|
||
<h3>Install instructions</h3>
|
||
<div id="install-instructions">
|
||
<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>
|
||
</div>
|
||
<div class="alert alert-warning" role="alert" style="display: none;" id="unsupported-boot-warning"></div>
|
||
<div class="alert alert-warning" role="alert" style="display: none;" id="unsupported-debian-warning"></div>
|
||
<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 }}";
|
||
dtb = "{{ page.board_dtb_name }}";
|
||
function basename(path) {
|
||
return path.substring(Math.max(0, path.lastIndexOf("/") + 1));
|
||
}
|
||
function handle_boots(boots) {
|
||
supported = 0;
|
||
boots.forEach(function(boot) {
|
||
if (boot["board"] == board) {
|
||
supported++;
|
||
|
||
// 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");
|
||
}
|
||
});
|
||
if (supported <= 0) {
|
||
// Board's unsupported
|
||
$("#install-instructions").hide();
|
||
$("#unsupported-boot-warning").text("This board is not supported by any boot image").show();
|
||
}
|
||
}
|
||
function handle_debians(debians) {
|
||
supported = [];
|
||
debians.forEach(function(debian) {
|
||
if (debian["arch"] == arch) {
|
||
if (dtb == "N/A") {
|
||
supported.push(debian);
|
||
} else {
|
||
debian["dtbs"].forEach(function(_dtb) {
|
||
if (_dtb == dtb)
|
||
supported.push(debian);
|
||
});
|
||
}
|
||
}
|
||
});
|
||
if (supported.length <= 0) {
|
||
// Board's unsupported
|
||
$("#install-instructions").hide();
|
||
$("#unsupported-debian-warning").text("This board is not supported by any Debian image").show();
|
||
}
|
||
supported.forEach(function(debian) {
|
||
if (debian["arch"] == arch) {
|
||
if (debian == supported[0]) {
|
||
// 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>
|