Lost Password? No account yet? Sign up! Why bother?
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size

SmallNetBuilder - Small Network Help

  
Home arrow Wireless arrow Wireless How To arrow How To: Building a BlueSniper Rifle - Part 2
How To: Building a BlueSniper Rifle - Part 2 Print E-mail
Humphrey Cheung   
August 12, 2005

Building Your Toolchain

Using a Linux computer, you will be downloading all the necessary packages and then cross-compiling a custom ARM-compatible image. It is essential that your Linux computer be quite fast, as cross-compiling translates the C code into ARM-compatible code and it's pretty compute intensive.

Tip! Tip: While you can use CoLinux and build a custom kernel from within Windows, I don't recommend it. You're better off using a native Linux distro.

You will need to install a Subversion client on your Linux box, which you can get here. Subversion is an open source version control system alternative to CVS that will build a catalog of necessary files for the build and then download them from a central repository on the Internet . You'll then make a custom Linux distribution for the Gumstix ARM processor from those files. Subversion will also install files necessary for you to cross-compile the Bluetooth hacking programs, which are described later in this article.

After you install Subversion, issue the following command from a shell prompt to start building the library tree:

svn co http://svn.rungie.com/svn/gumstix-buildroot/trunk gumstix-buildroot

The Subversion client will make a directory called gumstix-buildroot. Go into the directory by typing in the following.

cd gumstix-buildroot

Now, you need to change the make file to add in the Bluetooth-libs and utils. Edit the make file with a text editor of your choice (I used EMACS).

emacs Makefile

Find

#For Bluetooth

within the makefile, and change the line following it to

TARGETS+=bluez-utils bluez-libs 

Figure 2 shows the changed line. This will substitute the newest BlueZ drivers for the standard Bluetooth modules. After making the edit, save the file and exit.

Modifying the make file

Figure 2: Modifying the make file
(click image to enlarge)

Update August 13, 2005
Two additional Bluetooth applications - btscanner and carwhisperer - have been added to the buildroot. The TARGETS line described above and shown in Figure 2 should be modified to be:

TARGETS+=bluez-utils bluez-libs btscanner carwhisperer
to include these applications, which are described in the Finishing Up section.

It is also a good idea to add PERL support on the Gumstix, which will allow you to run and make your own Bluetooth PERL scripts. Add in the following line to the make file.

TARGETS+=perl 

You can add this line right after the edited Bluetooth line and add a comment above it. Remember to start the comment line with a "#"!

Make in progress
Figure 3: Make in progress
(click image to enlarge)

You're now ready to start the "make" or compile. Type in

make 

and gcc will start compiling the custom kernel. It will take around an hour or so for make to download and compile the files, so you may want to grab lunch. After the compile is finished, you will have a file around three megaBytes in size called root_fs_arm, located in the directory that you started the make from. This is the file that you will transfer to the Gumstix.



Tags: BlueSniper, Bluetooth, How To,

Related Articles:

How To: Building a BlueSniper Rifle - Part 1
Atheros adds single-chip Bluetooth
Broadcom adds two wireless headset Bluetooth chips
How To: Hacking the Linksys NSLU2 - Part 4- Customizing the Flash
How To: Building an Embedded Asterisk PBX
 

Most Read

 
 

Over At The Forums

Any Drobo Review Coming?
Tim last time ( in May?? ) you said you were in queue for Drobo Review unit, Have you have any response from them yet?

Qnap 209 Pro II, very slow transfer, advice welcome
Hello I have a Qnap 209 Pro II, I get a very slow file transfer rate. I think (hope) I have something wrong with either my...

For sale brand new original unlocked BlackBerry Storm 9500 $300
Welcome to Phonesstockcity Ltd in United State, We deal with All Electronics Product it is All Brand New with the complete accessories and come with...

Brand New Unlocked Apple Iphone 3G 16GB For Sale at just $350USD
We offer 10% discount for any series of Nokia samsung apple iphone you purchase with Free Shipping.and we are in promo now if buy three...

breaking the magic 100MB/s
Hi, Been following your articles on really fast NAS, and sorry, I think I may of just done it :) I have two p5w64's linked via a...

Slideshows

Western Digital ShareSpace QNAP TS-509 Pro D-Link DNS-343 4-Bay Network Storage Enclosure Thecus N3200 RAID 5 NAS D-Link DIR-628 RangeBooster N Dual Band Router Adtran NetVanta 3120 More

Win This!

Enter to Win!

You could win a Promise NetStor NS2300N NAS.

Learn How!

 

Ldr:0.00159001350403, Rct:0.00594592094421, Sky:0.00768303871155, Tlink:0.0869829654694, TopPG:0.0870540142059, GQV:0.087208032608 seconds to load.