Follow the instructions in disk partition windows.
# Maintainer: Josh Cartwright <joshc@eso.teric.us> | |
# Based on extra/qemu maintained by Tobias Powalowski <tpowa@archlinux.org> | |
pkgname=qemu-fdt | |
pkgver=1.5.0 | |
pkgrel=2 | |
pkgdesc="A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation." | |
arch=('i686' 'x86_64') | |
license=('GPL2' 'LGPL2.1') | |
url="http://wiki.qemu.org/Index.html" | |
makedepends=('texi2html' 'perl' 'python2') |
.gist { | |
color: #000; | |
} | |
.gist div { | |
padding: 0; | |
margin: 0; | |
} | |
.gist .gist-file { |
.gist{ | |
margin: 15px 0 !important; | |
} | |
.gist-file{ | |
border: none !important; | |
} | |
.gist-meta{ | |
border: 1px solid #D2d2d2 !important; |
General rules: | |
---------------------- | |
1. Use the master branches. | |
2. Install autotools and gcc. | |
3. Compile and install libdrm first. | |
4. Use the most recent mainline linux kernel or at least the most recent stable. | |
5. Update all libdrm / opentegra / mesa at once as there could be interdependencies, start from libdrm. | |
libdrm: | |
---------- |
<!-- Add the following lines to theme's html code right before </head> --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script> | |
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script> | |
<!-- | |
Usage: just add <div class="gist">[gist URL]</div> | |
Example: <div class="gist">https://gist.github.com/1395926</div> | |
--> |
/* | |
Reads voltage and power from China-style energy meter. | |
Collecting data by eavesdropping on the MOSI-line (master in slave out) | |
between the energy monitoring chip (ECH1560) and the main processor*/ | |
const int CLKPin = 2; // Pin connected to CLK (D2 & INT0) | |
const int MISOPin = 5; // Pin connected to MISO (D5) | |
//All variables that is changed in the interrupt function must be volatile to make sure changes are saved. | |
volatile int Ba = 0; //Store MISO-byte 1 |
FROM base/archlinux:latest AS base | |
RUN pacman -Sy --noconfirm binutils perl python libxcb clang emscripten git make cmake qbs | |
ENV PATH="/usr/lib/emscripten:${PATH}" | |
FROM base AS repos-configured | |
COPY ./configure-qt5-repos.sh ./ | |
RUN ./configure-qt5-repos.sh | |
FROM repos-configured AS repos-built |
# Uncrustify 0.60 | |
# | |
# Qt specific options | |
# | |
set FOR foreach | |
set FOR forever | |
# | |
# General options |
The new Raspberry Pi 3 released on 29 Feb 2016 has issues with its UART port as the pinout GPIO 14/15 on the pin header is now based on a low throughput mini-UART.
To understand the issue better than reading the wall of text below, you can see the talk I gave on this issue.
The actual hardware UART on the BCM2837 SoC has now been assigned to handle Bluetooth with the BCM43438 Wifi/Bluetooth chip. More details can be found here and here.
This mini-UART does not produce a stable baud rate as it fluctuates based on the Core clock speed whenever it rises or falls. The result is that the serial debug output is practically unusable. On Raspbian you may see garbage or nothing at all. The solution is simple, add core_freq=250
to /boot/config.txt
to cap the core frequency to a constant value. This optio