Skip to content

Instantly share code, notes, and snippets.

@jemk
jemk / mktoc0.rb
Created Feb 16, 2017
sunxi TOC0 generator
View mktoc0.rb
#!/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,
@jemk
jemk / ve-version.c
Created Jan 26, 2015
Get sunxi VE version
View ve-version.c
#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>