Skip to content

Instantly share code, notes, and snippets.

@jemk
jemk / ve-version.c
Created January 26, 2015 14:58
Get sunxi VE version
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
@jemk
jemk / mktoc0.rb
Created February 16, 2017 17:55
sunxi TOC0 generator
#!/usr/bin/env ruby
#
# Copyright (c) 2017 Jens Kuske <jenskuske@gmail.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,