Skip to content

Instantly share code, notes, and snippets.

@mathslimin
mathslimin / embedded-x86_64-kernel
Last active May 10, 2022 07:02 — forked from debuti/embedded-x86_64-kernel
Kernel and rootfs build for qemu simulator
#!/bin/bash
sudo apt install libtool-bin
sudo apt install help2man
mkdir -p ~/dev/i386
cd ~/dev/i386
# Vanilla
mkdir vanilla
cd vanilla
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <liburing.h>