sd-card-images/docs/_layouts/board.html

182 lines
6.3 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
layout: default
---
<main role="main">
<div class="container">
<h2>{{ page.board_name }}</h2>
<p>Minimal, pure and up-to-date vanilla Debian SD card image for <i>{{ page.board_name }}</i>.</p>
<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> &gt; 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>Boards by {{ page.board_maker_name }}</h3>
<table class="table table-sm table-hover" id="boards">
<caption>Boards made by {{ page.board_maker_name }}.</caption>
<thead>
<tr>
<th scope="col">Board</th>
<th scope="col">Board maker</th>
<th scope="col">SoC</th>
<th scope="col">CPU</th>
</tr>
</thead>
<tbody>
<tr data-href="/boards/{{ page.board_id }}.html">
<td><i>{{ page.board_name }}</i></td>
<td><i>{{ page.board_maker_name }}</i></td>
<td><i>{{ page.board_soc_name }}</i></td>
<td><i>{{ page.board_cpu_name }}</i></td>
</tr>
{% for board in site.boards %}
{% if board.board_maker_name == page.board_maker_name and board.board_id != page.board_id %}
<tr data-href="/boards/{{ board.board_id }}.html">
<td><a href="/boards/{{ board.board_id }}.html">{{ board.board_name }}</a></td>
<td>{{ board.board_maker_name }}</td>
<td>{{ board.board_soc_name }}</td>
<td>{{ board.board_cpu_name }}</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
<hr />
</div>
<div class="container">
<h3>Boards with {{ page.board_soc_name }}</h3>
<table class="table table-sm table-hover" id="boards">
<caption>Boards with {{ page.board_soc_name }} SoC.</caption>
<thead>
<tr>
<th scope="col">Board</th>
<th scope="col">Board maker</th>
<th scope="col">SoC</th>
<th scope="col">CPU</th>
</tr>
</thead>
<tbody>
<tr data-href="/boards/{{ page.board_id }}.html">
<td><i>{{ page.board_name }}</i></td>
<td><i>{{ page.board_maker_name }}</i></td>
<td><i>{{ page.board_soc_name }}</i></td>
<td><i>{{ page.board_cpu_name }}</i></td>
</tr>
{% for board in site.boards %}
{% if board.board_soc_name == page.board_soc_name and board.board_id != page.board_id %}
<tr data-href="/boards/{{ board.board_id }}.html">
<td><a href="/boards/{{ board.board_id }}.html">{{ board.board_name }}</a></td>
<td>{{ board.board_maker_name }}</td>
<td>{{ board.board_soc_name }}</td>
<td>{{ board.board_cpu_name }}</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
<hr />
</div>
</main>