Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍👨‍👦‍👦
using gnu

Ishimoto Shinobu protonesso

👨‍👨‍👦‍👦
using gnu
View GitHub Profile
@protonesso
protonesso / makerpm
Created Jul 22, 2019
Build RPM packages with more comfort
View makerpm
#!/bin/bash
umask 022
unalias -a
pushd () { command pushd "$@" > /dev/null; }
popd () { command popd "$@" > /dev/null; }
msg() { echo -e "\033[1;32m >>> \033[0m$@"; }
msgtwo() { echo -e "\033[1;35m * \033[0m$@"; }
msgthree() { echo -e "\033[1;32m * \033[0m$@"; }
@protonesso
protonesso / mini_linux.md
Created Jul 12, 2019 — forked from hardentoo/mini_linux.md
Buildinq a minimal Linux / Busybox OS for Qemu
View mini_linux.md

Buildinq a minimal Linux / Busybox OS for Qemu

This short tutorial shows how to quickly build a minimal Linux kernel, a minimal initramfs root filesystem and test them on Qemu. We explore two options for the initramfs root filesystem:

  • starting from the Busybox sources (inspired by Mitchel Humpherys),
  • using Buildroot.

We also show how to compile and test a Hello world user application and a Hello world loadable kernel module.

Common

@protonesso
protonesso / ARMDebianUbuntu.md
Created May 5, 2019 — forked from Liryna/ARMDebianUbuntu.md
Emulating ARM on Debian/Ubuntu
View ARMDebianUbuntu.md

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

You can’t perform that action at this time.