Archive for the 'linux' category

In this howto I describe how to add a generic kernel mode SPI driver to the BeagleBone kernel source. Of course the methods are nearly the same for different target platforms. I won’t go into the details of writing a kernel mode SPI driver for now.

You’ll need the cross-compiled version of libiconv, libgettext, glib, and slang. Compiling libiconv 123#!/bin/bash CC=arm-linux-gcc ./configure –host=arm-linux-gnu –prefix=/usr –enable-static make install DESTDIR=/home/nonoo/common-libs-compiled/arm/libiconv Compiling libgettext 123#!/bin/bash CC=arm-linux-gcc ./configure –host=arm-linux-gnu –prefix=/usr –disable-csharp –disable-java –disable-openmp –disable-c++ –disable-native-java –enable-static –with-libiconv-prefix=/home/nonoo/common-libs-compiled/arm/libiconv/usr make install DESTDIR=/home/nonoo/common-libs-compiled/arm/libgettext Compiling libffi (needed by glib) 123#!/bin/bash CC=arm-linux-gcc ./configure –host=arm-linux-gnu –prefix=/usr make install DESTDIR=/home/nonoo/common-libs-compiled/arm/libffi Compiling glib 1234567891011#!/bin/bash […]

The BeagleBone is a low-power open source hardware single-board computer designed with open source software development in mind, and as a way of demonstrating the Texas Instrument’s OMAP3530 system-on-a-chip.

See my x86 solution for measuring temperature here! I’m using USB Temper devices again, but this time they are a newer revision, so the previous app with the source code I modified doesn’t work anymore. I downloaded this source code from here (look at the comments) and modified that so I can define from which […]

On the weekend I’ve been hacking a TP-Link MR3220 for my friend Penya. The router has a USB port and I wanted to use a USB flash drive to expand the storage space available on the router. I had two flash drives, one noname 1GB and a Sandisk Cruzer 8GB. I had problems with the […]

GLX X11/Xorg problems

X won’t start up with compiz? Xorg log says it’s stuck at initializing extension GLX? glxinfo segfaults in libc? You have an Nvidia card and tried everything to bring life to compiz? Boot into recovery mode, reinstall the proprietary Nvidia driver, delete /etc/ld.so.nohwcap and suddenly everything starts to work again after hours of frustrated X […]

– Download the driver source from here – Extract it, run ./configure and install all needed *-dev packages – Install x11proto-gl-dev and mesa-common-dev – Run make, if it stops with an error, open the corresponding .c file and uncomment the line which gave an error (for example it tries to include mibank.h, but it’s no […]

I tried to install Ubuntu to a desk computer but there were no disks/partitions listed in the installer. Switching to a console and running fdisk -l listed the disk and I was able to partition it using fdisk, formatted to ext4 but it still wasn’t listed in the installer. The solution: I used this disk […]

Forwarding sound on LAN

Here’s how to simply forward sound from one computer to another in Ubuntu. First, install paprefs: 1sudo apt-get install paprefs Start it by executing paprefs in a terminal. If every checkbox is grayed out, you have to make a symlink to the PulseAudio modules directory as paprefs searches for the modules in the wrong place: […]

Volume control shell script

Here’s a simple shell script I wrote for controlling PulseAudio volume from shell under Linux. It takes two parameters: up and down and sets volume for all sinks. 123456789101112#!/bin/bash OLDIFS=$IFS IFS=$’\n’ for L in `pacmd dump | grep set-sink-volume`; do     if [ $1 = "up" ]; then         pacmd set-sink-volume […]

About me

Nonoo
I'm Nonoo. This is my blog about music, sounds, filmmaking, amateur radio, computers, programming, electronics and other things I'm obsessed with. ... »

Twitter

Listening now

My favorite artists