How To: Building a BlueSniper Rifle – Part 2



Introduction

Updated August 13, 2005

Way back in March, I gave you plans on how to build your own "BlueSniper" rifle in How To: Building a BlueSniper Rifle Part 1. With the BlueSniper rifle, you can discover Bluetooth devices and perhaps perform exploits such as copying an address book. But the physical construction of the rifle is only half of the battle.In this installment, I'll cover the software side of construction by providing a step-by-step for building a custom Linux kernel for the rifle. I'll then guide you through transferring that kernel to the Gumstix computer that makes up the heart of the rifle and storing it in the Gumstix' flash memory. Finally, I'll show you how to use some of the basic Bluetooth tools that are built into the kernel.

Gumstix Computer - Actual Size!!
Figure 1: Gumstix Computer - Actual Size!!

You will need six things to get started:

  1. The Gumstix Computer (either the waysmall 200st-bt or waysmall 400st-bt models)
  2. A computer with Linux installed (I used Fedora Core 2)
  3. A fast Internet connection to download the tools
  4. Serial null-modem cable (from gumstix.com) which connects the Gumstix to your computer
    If you computer doesn't have a serial port, you can use a USB / Serial Adapter
  5. Either the rubber-duck antenna from Gumstix or the antenna purchased in Part I of Building a BlueSniper Rifle
  6. At least one Bluetooth device that can be placed into discoverable mode

The major steps in the process you'll be following are:

  1. Install the Subversion version control client
  2. Build the toolchain library tree
  3. Edit the makefile to add Bluetooth
  4. Compile the kernel
  5. Transfer the kernel image to the Gumstix RAM
  6. Flash the Gumstix with the new kernel

Let's get going!

NOTE!NOTE: While building the custom kernel, please follow all the steps and enter commands EXACTLY as given, because Linux is not very forgiving with spaces and misspelled letters. In addition, take the same care in transferring the image to the Gumstix as you would in flashing any firmware. Loss of power or data connection during the flash can result in a dead Gumstix!