Skip to content

Instantly share code, notes, and snippets.

View robertkirkman's full-sized avatar
🇺🇸

Robert Kirkman robertkirkman

🇺🇸
View GitHub Profile
@robertkirkman
robertkirkman / README.md
Last active April 11, 2024 23:17 — forked from thalamus/ArchLinuxARM-M1
How to install Arch Linux ARM in QEMU full system emulator

How to install an Arch Linux ARM emulator

Prerequisites:

  • A PC with a Linux distribution - Arch Linux amd64 used here

Dependencies (for Arch Linux amd64):

  • edk2-armvirt
  • qemu-arch-extra
  • wget
@robertkirkman
robertkirkman / Linux_DRM_OpenGLES.c
Last active January 6, 2021 11:19 — forked from Miouyouyou/Linux_DRM_OpenGLES.c
An example, inspired by Rob Clark "kmscube.c" that uses Linux Direct Rendering Manager ( DRM ) and EGL to create an OpenGL ES 2 context. This is a standalone example, that just clears the screen with a blueish color. This is a fork of Miouyouyou's gist intended for use with the BeagleBone Black's IT PowerVR SGX530 GPU.
// gcc -o drmgl Linux_DRM_OpenGLES.c `pkg-config --cflags --libs libdrm` -lgbm -lEGL -lGLESv2 -ldl -lsrv_um -I/usr/include/gbm -lIMGegl -ldrm_omap
/*
* Copyright (c) 2012 Arvin Schnell <arvin.schnell@gmail.com>
* Copyright (c) 2012 Rob Clark <rob@ti.com>
* Copyright (c) 2013 Anand Balagopalakrishnan <anandb@ti.com>
* Copyright (c) 2017 Miouyouyou <Myy> <myy@miouyouyou.fr>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),