Skip to content

Instantly share code, notes, and snippets.

View DavidHamburg's full-sized avatar

David Hamburg DavidHamburg

  • ifu Hamburg GmbH
  • Hamburg, Germany
View GitHub Profile
@cGandom
cGandom / RaspberryPi4-qemu.md
Last active May 17, 2024 17:06
Emulating Raspberry Pi 4 with Qemu

Emulating Raspberry Pi 4 with Qemu

Just a quick update before we dive in: what we're actually doing here is running Raspberry Pi OS (64-bit) on a QEMU virtual ARM setup. This isn't full-blown hardware emulation of the Raspberry Pi 4, but more about creating a virtual environment for the OS. It doesn't mimic all the specific hardware features of the Pi 4, but it's pretty useful and great for general testing. I turned to this solution mainly to extract a modified sysroot from the Raspberry Pi OS, something not readily available in other resources. For those looking into detailed emulation of the actual Raspberry Pi 4's hardware in QEMU, check out this link for the latest updates: https://gitlab.com/qemu-project/qemu/-/issues/1208.

Hope it helps! :D

Shortcomings: No GUI yet, only console.

Steps

@0x414c
0x414c / makepkg-unsafe.sh
Created April 5, 2016 19:18
`makepkg' that can be run as root (again)!
#!/usr/bin/bash
#
# makepkg - make packages compatible for use with pacman
# Generated from makepkg.sh.in; do not edit by hand.
#
# Copyright (c) 2006-2016 Pacman Development Team <pacman-dev@archlinux.org>
# Copyright (c) 2002-2006 by Judd Vinet <jvinet@zeroflux.org>
# Copyright (c) 2005 by Aurelien Foret <orelien@chez.com>
# Copyright (c) 2006 by Miklos Vajna <vmiklos@frugalware.org>
# Copyright (c) 2005 by Christian Hamar <krics@linuxforum.hu>
@john2x
john2x / offlineimap-notify.sh
Last active January 20, 2023 03:18 — forked from nlamirault/gist:38cfc46682eaeb28709e
offlineimap-notify.sh
#!/bin/bash
usage="usage: $(basename "$0") [-hn] ACCOUNT
Check an offlineimap account's mail directory for new messages and trigger notification
where:
-h show this help text
ACCOUNT the offlineimap account name"
@dirkk0
dirkk0 / main.cpp
Last active August 3, 2023 23:08
Basic SDL2 OpenGL application
// code nicked mainly from here:
// http://lazyfoo.net/tutorials/SDL/50_SDL_and_opengl_2/index.php
/* to compile
### installation on ubuntu
# install compiler etc
sudo apt-get install --yes software-properties-common g++ make
# install sdl2