This is a rough tutorial on how to build a small, full-featured XBMC-based media-center to run on the Raspberry Pi.
This is a work in progress.
Expect rough edges.
Mind your fingers.
This XBMC setup boots in about 15 seconds from power up, to the XBMC main screen (depending on the speed of your SDcard; the first boot is a bit longer).
With this, you'll be able to:
Here are the tools we're going to use:
First, get the lastest version of
git clone git://ymorin.is-a-geek.org/buildroot.config
or for those behind a restrictive proxy:
git clone http://ymorin.is-a-geek.org/git/buildroot.config
(Prefer using the
/ URL, as it uses the git protocol, which is more efficient than the http protocol.)
Next, enter this directory, and launch the
Buildroot.config shell wrapper:
cd buildroot.config ./brsh
You are now set to use
Buildroot.config comes with a set of pre-configure projects. You can list them with:
For this tutorial, we are interested in the
rpi/xbmc project. We are going to tell
Buildroot.config to use that project to prepare a build environment:
Now is time to run the build proper:
You'll see at lot of messages go by on your screen. The build can be very long. Depending on your machine, it may take more than one hour. For example, on a dual-core, hyper-thread Core-i5 @ 2.5 GHz and a fast SSD, the build takes a bit more than 1 hour and 15 minutes. On an hexa-core, hyper-threaded Core-i7 @ 3.2 GHz, it takes a bit less than 45 minutes (both timings not counting the download time).
Finally, if all goes well, you'll get a directory named
images/ in the current location. In this directory, you'll find a file named
mmclbk0.img. This is the image of the firmware, ready to be flashed on the raw device of an SDcard:
dd if=images/mmcblk0.img of=/dev/sdX bs=1M conv=sync
/dev/sdx with the actual device for your SDcard. Be sure not to use a partition, such as
/dev/sdX1, but really the raw device.
( Note: if
dd complains, you may remove the trailing
conv=sync option. Be sure however to run
sync manually afterwards, to ensure the write to the SDcard is complete.)
Plug your SDcard in your Raspberry Pi, connect it to a monitor and the network, then power-up the Raspberry Pi.
You should soon see the splashscreen with the three logos of Builroot, Raspberry Pi and XBMC :
After a few seconds (depending on the speed of your SDcard), you should see the the main screen of XBMC:
Finally, when you're done, shutdown the system (using XBMC shutdown menu). You should see the shadow of the three logos :
After a few seconds (the time for the final
sync of the SDcard), it should be safe to power down your Raspberry Pi.