logo

blog

My website can't be that messy, right? git clone https://hacktivis.me/git/blog.git
commit: ca898d3bef8b8f1366397af0927835f7f781e6cd
parent 7c6d979604f02a0c1d8321369341e02abad05b6b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 10 Apr 2019 17:22:59 +0200

articles/Install Gentoo via Floppy: New

Diffstat:

Aarticles/Install Gentoo via Floppy.shtml15+++++++++++++++
Aarticles/Install Gentoo via Floppy.xhtml24++++++++++++++++++++++++
Mfeed.atom11+++++++++++
Mhome.shtml1+
4 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/articles/Install Gentoo via Floppy.shtml b/articles/Install Gentoo via Floppy.shtml @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html lang="en"> + <head> +<!--#include file="/templates/head.shtml" --> + <meta property="og:type" content="article"/> + <meta property="og:title" content="Install Gentoo via Floppy"/> + <title>Install Gentoo via Floppy — Cyber-home of lanodan</title> + </head> + <body> +<!--#include file="/templates/en/nav.shtml" --> +<!--#include file="/articles/Install Gentoo via Floppy.xhtml"--> + <a href="/articles/Install%20Gentoo%20via%20Floppy.xhtml">article only(plain XHTML)</a> +<!--#include file="/templates/en/footer.html" --> + </body> +</html> diff --git a/articles/Install Gentoo via Floppy.xhtml b/articles/Install Gentoo via Floppy.xhtml @@ -0,0 +1,24 @@ +<article xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" class="h-entry"> +<a href="/articles/My%20email%20setup"><h1>Install Gentoo via Floppy</h1></a> +<p>Okay, so here are the files I generated for it:</p> +<ul> + <li><a href="https://lanodan.eu/pastes/2019-04-10T15:26:10-make-initrd-smol.sh">make-initrd-smol.sh</a>: a slightly modified version of make-initrd to only copy a static busybox</li> + <li><a href="https://lanodan.eu/pastes/2019-04-10T15:25:50-init">init</a>: the init file I wrote, included in the initramfs of the floppy image, could be done better</li> + <li><a href="https://lanodan.eu/pastes/2019-04-10T13:05:05-fdimage">fdimage</a>: The floppy image (2.88 MB), done with <code>make fdimage288 FDINITRD=/boot/initramfs-smol.cpio.xz</code></li> +</ul> +<p>Some people might be wondering why I did this: Well, I saw this <a href="http://sakamoto.pl/weblog/07-windows-3-flash-edition/">blogpost of cramming Windows 3.1 + some extra in the coreboot virtual floppy</a>. And looking at how my kernel images where relatively well stripped down (5 MB for the kernel of my VPS and about the same size for my other machines) and that busybox is damn small (~700 Kilobytes), yet has all the neccesarry userspace tools required to install gentoo (iproute2, udhcpc, fdisk, mkfs, wget, …).</p> +<p>Also while the floppy version isn’t very useful nowadays, the kernel+initramfs is quite useful for netbooting (even if I already had that but 4 times bigger)</p> +<p>It was quite fun to do, even if I needed to launch the VM quite a lot of time until I got all the drivers for QEMU to work. And so, here is what is present in the kernel:</p> +<ul> + <li>Architecture: amd64</li> + <li>USB: Human Interface Device (HID), Mass Storage (only USB 2.0)</li> + <li>SATA (w/ PATA): Generic platform devices + AHCI + Intel PIIX (for QEMU)</li> + <li>Storage: msdos/GPT partitions, Ext2, FAT (in unicode)</li> + <li>Networking: IPv4+IPv6, TCP, Intel+Realtek cards</li> + <li>Graphics: reuses the VGA framebuffer</li> + <li>Compression: XZ on kernel + initramfs</li> +</ul> +<p>Note: The permissions for the <code>/dev</code> files are wrong, which is probably why udhcpc is broken. And it requires you to put <code>FEATURES="-userfetch"</code> in <code>/etc/portage/make.conf<code>. I guess this will make me fix some stuff in make-initrd.</p> +<p>btw I managed to not hit the floppy limit (except when I tried without XZ on the initramfs), but I didn’t find a way to see the occupied size on the floppy. I would probably have tried to cram more stuff in it like tinyx / tinyxserver and/or useful recovery tools. Such a floppy-based linux was <a href="http://distro.ibiblio.org/baslinux/">Basic Linux</a> from 2005 but it’s apparently dead and it used either DOS for booting or two floppies.</p> +<p><a href="">Fediverse post for comments</a></p> +</article> diff --git a/feed.atom b/feed.atom @@ -10,6 +10,17 @@ </author> <entry> + <title>Install Gentoo via Floppy</title> + <link rel="alternate" type="text/html" href="/articles/Install%20Gentoo%20via%20Floppy"/> + <id>https://hacktivis.me/articles/Install%20Gentoo%20via%20Floppy</id> + <published>2019-04-10T15:21:04Z</published> + <updated>2019-04-10T15:21:04Z</updated> + <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<!--#include file="/articles/Install Gentoo via Floppy.xhtml"--> + </div></content> + </entry> + + <entry> <title>My email setup</title> <link rel="alternate" type="text/html" href="/articles/My%20email%20setup"/> <id>https://hacktivis.me/articles/My%20email%20setup</id> diff --git a/home.shtml b/home.shtml @@ -6,6 +6,7 @@ </head> <body> <!--#set var="transPageUrl" value='accueil' --><!--#set var="feedURL" value='/feed.atom'--><!--#include file="templates/en/nav.shtml" --> +<!--#include file="/articles/Install Gentoo via Floppy.xhtml"--> <!--#include file="/articles/My email setup.xhtml"--> <!--#include file="/articles/Pretty Bad Privacy.xhtml"--> <!--#include file="/articles/AtASSian.xhtml"-->