Archive for 'software'

GCC is Scary

Markus | Tuesday, May 23rd 2017, 19:58

-- Debugging an application which only works in the debug build

Figure 1. The error message I was confronted with

Recently, I had an interesting bug in one of my C applications where the application would work in the debug build but not in the release build (-O3 etc.). It turned out to be a really stupid mistake of mine where I went 'How could that ever work?!' after finding it out. However, this opened my eyes to how strong gcc's optimization feature really is.

In this article, I will explain the mistake I made, how I went about solving it and what I learned about gcc in the process.

→ Click here to continue reading ←

Tags: gcc software


Building a Custom Mainline Linux Kernel System on the Orange Pi PC

Markus | Updated Sunday, August 6th 2017, 09:21

Figure 1. The Orange Pi PC single board computer
This post will explain how to build an Arch Linux system with the latest mainline Linux kernel for the Orange Pi PC by Xunlong from scratch. The target system is intended for server use only. Graphical features, while they may work, have not been tested and are not the focus of this post. The tutorial starts with a completely blank SD card, which means the following steps need to be accomplished in order to reach the goal:
  • Build the cross compiler
  • Build U-Boot
  • Partition the SD card and install U-Boot
  • Build the Linux kernel
  • Install it and the Arch Root FS onto the SD Card
  • Fun and profit :)

→ Click here to continue reading ←

Tags: linux orangepi software

Newer posts >>