Similar Posts
Building u-boot for Chromebook
I got interested in building Crochet images for Chromebook. The first step, naturally is to build U-boot for Chromebook. In order to build U-boot, you’ll need to have already installed gmake gcc You can get these from the ports tree. You’ll also need xdev, the FreeBSD cross-compiler toolkit. I started with the latest U-boot 2014…
Updated FreeBSD Wandboard Build
This build is for FreeBSD-11, Alpha 2. Binary image, and bootlog.
The mystery of uart0
The FDT file for Raspberry Pi, declares UART. I’ve had quite a bit of trouble understanding how declaring a uart in the FDT results in /dev/tty0 and /dev/cuau0 appearing in /dev/ Here are the relevant lines from the FDT: uart0: uart0 { compatible = “broadcom,bcm2835-uart”, “broadcom,bcm2708-uart”, “arm,pl011”, “arm,primecell”; reg = <0x201000 0x1000>; interrupts = <65>;…
Understanding the Raspberry Pi – FreeBSD gpio device
Recently I found myself wanting to understand how I2C for FreeBSD ARM, on the Pi works. The first step is to understand the GPIO implementation on Pi, since on a Pi, I2C is implemented on the GPIO. So, here’s the basic summary. Firstly, the FreeBSD source browser is here. In the directory /sys/ is the…
IPSec VPNs with pfsense
I’ve been trying forever to get a mobile IPSec connection up between my OS X laptop and pfsense. Finally, thanks to this outstanding blog post, it works. I’m especially excited that it works with the default OS X and Android VPN clients. My pfsense config closely mirrors the one specified by Mike Murray pfsense…
Writing a FreeBSD loadable module
In preparation for writing a device driver, I thought I would firstly write a module. The resulting source code is here. Firstly the Makefile: SRCS+=bus_if.h device_if.h examplemodule.c KMOD=examplemodule .include <bsd.kmod.mk> The first line defines the sources. examplemodule.c is my module source. I needed to include bus_if.h and device_if.h since I’m writing my module…