commit 6d00d0f822c336e753997e1c56dcf66bf89afeba
parent 16a06c247079dbd0ed7d8ade5d49947ae03c7d16
Author: parazyd <parazyd@dyne.org>
Date: Tue, 7 Nov 2017 20:49:29 +0100
tweaks
Diffstat:
3 files changed, 45 insertions(+), 33 deletions(-)
diff --git a/doc/arm-ramdisk.html.md b/doc/arm-ramdisk.html.md
@@ -13,7 +13,7 @@ and mount it:
# dd if=/dev/zero of=initrd.img bs=1k count=8192
# mke2fs -vm0 initrd.img 8192
# tune2fs -c 0 initrd.img
-
+
# mkdir mnt
# mount -o loop initrd.img ./mnt
@@ -39,49 +39,48 @@ Add more files as needed. To boot AoE, we need aoetools. Find them here:
Finally, we need an init script that will set up the things needed and
switch root once mounted. The following scripts implies an available AoE
-mount at `/dev/etherd/e0.1p1`. It also implies having a directory called
-`old_root` in that rootfs.
+mount at **/dev/etherd/e0.1p1**. It also implies having a directory called
+**old_root** in that rootfs.
-<hr>
#!/bin/busybox sh
-
+
rescue_shell() {
echo "$@"
echo " * dropping to a shell"
exec /bin/sh
}
-
+
ifconfig eth0 up || rescue_shell
-
+
mount -t sysfs none /sys
mount -t proc none /proc
echo 0 > /proc/sys/kernel/printk
sleep 2
-
+
echo " * discovering AoE block devices"
/usr/sbin/aoe-discover
sleep 3
/usr/sbin/aoe-discover
sleep 3
-
+
echo " * mounting AoE root"
mount -t ext4 -o ro /dev/etherd/e0.1p1 /mnt/root || rescue_shell
-
+
echo " * mounting to /mnt/root"
mount -t devtmpfs none /mnt/root/dev
mount -t sysfs none /mnt/root/sys
mount -t proc none /mnt/root/proc
-
+
echo 1 > /proc/sys/kernel/printk
-
+
echo " * pivoting root"
cd /mnt/root
pivot_root . old_root || rescue_shell "Failed pivoting"
umount /old_root/proc /old_root/sys /old_root/dev
-
+
echo " * exec-ing init"
exec /sbin/init 3 || rescue_shell "init failed"
-<hr>
+
Kernel config
-------------
diff --git a/doc/odroidc2-mainline.html.md b/doc/odroidc2-mainline.html.md
@@ -15,8 +15,8 @@ ARM64 Toolchain
I used a linaro aarch64 toolchain found at
[https://releases.linaro.org/components/toolchain/binaries/latest/aarch64-linux-gnu/](https://releases.linaro.org/components/toolchain/binaries/latest/aarch64-linux-gnu/).
-Download it, extract it, and export `$PATH` and `$compiler` for easy use
-later on.
+Download it, extract it, and export **$PATH** and **$compiler** for easy
+use later on.
# mkdir odroidc2 && cd odroidc2
# wget ...
@@ -39,15 +39,15 @@ Go inside the repo, and compile it.
# make ARCH=arm CROSS_COMPILE=$compiler -j4
# mv u-boot.bin ../ && cd ..
-This will provide us with `u-boot.bin` we'll use later on.
+This will provide us with **u-boot.bin** we'll use later on.
Providing hardkernel's binary blobs
-----------------------------------
Let's grab a tarball of hardkernel's u-boot repository. A tested
-revision is `205c7b3259559283161703a1a200b787c2c445a5`. We will also
-need `meson-tools` - where we find `amlbootsig`.
+revision is **205c7b3259559283161703a1a200b787c2c445a5**. We will also
+need **meson-tools** - where we find **amlbootsig**.
# wget -O hardkernel-uboot.tgz https://github.com/hardkernel/u-boot/archive/205c7b3259559283161703a1a200b787c2c445a5.tar.gz
# tar xf hardkernel-uboot.tgz
@@ -57,7 +57,7 @@ need `meson-tools` - where we find `amlbootsig`.
# make
# cd ../hardkernel-uboot
-Now we have to compile and use the `fip_create` program to prepare our
+Now we have to compile and use the **fip_create** program to prepare our
.bin files.
# make -C tools/fip_create
@@ -74,16 +74,16 @@ Now we have it ready, and we can proceed with the final step:
Flashing this stuff to a microsd card
-------------------------------------
-We should be in the directory where `bl1.bin.hardkernel` and
-`u-boot.gxbb` are. To "flash" this on our microsd card we will simply
-use `dd`, like always.
+We should be in the directory where **bl1.bin.hardkernel** and
+**u-boot.gxbb** are. To "flash" this on our microsd card we will simply
+use **dd**, like always.
# dd if=bl1.bin.hardkernel of=/dev/mmcblk0 conv=fsync bs=1 count=422
# dd if=bl1.bin.hardkernel of=/dev/mmcblk0 conv=fsync bs=512 skip=1 seek=1
# dd if=u-boot.gxbb of=/dev/mmcblk0 conv=fsync bs=512 seek=97
# sync; sync; sync
-If this went well, all that is left is providing a `boot.scr`
+If this went well, all that is left is providing a **boot.scr**
boot.scr
@@ -100,11 +100,11 @@ boot.scr
#booti 0x41000000 0x50000000 0x43000000
booti 0x41000000 - 0x43000000
-Create `boot.scr` out of it:
+Create **boot.scr** out of it:
# mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d boot.cmd boot.scr
-Copy the .dtb from your linux sources. It's found in arch/arm64/boot/dts:
-`meson-gxbb-odroidc2.dtb`. The u-boot looks for it in a directory called
-`amlogic` on the first partition. Of course, remember to copy your `Image`
-as well.
+Copy the .dtb from your linux sources. It's found in
+arch/arm64/boot/dts: **meson-gxbb-odroidc2.dtb**. The u-boot looks for
+it in a directory called **amlogic** on the first partition. Of course,
+remember to copy your **Image** as well.
diff --git a/static/style.css b/static/style.css
@@ -5,17 +5,30 @@ body {
font-family: sans-serif, monospace;
}
-code {
+pre code {
font-family: monospace;
- font-size: 11pt;
- padding: 2px;
- background-color: #ddd;
+ font-size: 95%;
+ line-height: 140%;
+ white-space: pre;
+ white-space: pre-wrap;
+ white-space: -moz-pre-wrap;
+ white-space: -o-pre-wrap;
+}
+
+code {
+ background: #faf8f0;
}
#content {
margin: 0 10% 0 10%;
}
+#content code {
+ display: block;
+ padding: 0.5em 1em;
+ border: 1px solid #bebab0;
+}
+
#footer {
text-align: right;
font-size: 7pt;