Building Raspbian images for Raspberry Pi

I recently bought a Raspberry Pi, which is a credit card sized computer with an ARM processor. I'm using it as my TV frontend, running Raspbian and XBMC. I'm building my own packages for XBMC since it requires the latest development version.

I initially installed my Pi with the foundation image, but found that it included a lot of packages which I didn't need. Since I have a slight obsession about doing things as efficiently as possible, I decided to build my own image with XBMC from scratch.

I implemented a script in Bash, mkraspbianxbmc.sh which does this. It uses debootstrap to install a minimal Raspbian system in a chroot. It then installs XBMC and a couple extra packages, and does some necessary configuration. Finally it creates an image file with the necessary partitions, creates the filesystems, and copies the installation into the image file. The resultant image fits onto a 1GiB SD card. You can download a pre-built image from this page.

The script can be modified to build images with different packages, or even a very minimal image which fits onto a 512MiB SD card.

Trackback URL for this post:

http://michael.gorven.za.net/trackback/1497
AttachmentSize
mkraspbianxbmc.sh7.09 KB

Man boobs (or boy boobs) are

Man boobs (or boy boobs) are properly known as a
condition called gynecomastia. 6 billion in 2012, predicted to
reach USD 5 billion by the year 2017. Red Bull:
More cocaine found, countries ban energy drinks
Red Bull's cocaine problem spreads to Austria.

[error] kodi doesn't shutdown

[error] kodi doesn't shutdown my raspberry pi 2 (raspbian)

I press shutdown buttom and sometimes kodi closes and other times it doesn't.

After last time kodi close failed I typed ps aux | grep kodi and I got this:

Code: pi 2682 0.0 0.0 1764 360 ? S 15:17 0:00 /bin/sh /usr/bin/kodi-standalone pi 2690 0.0 0.0 1764 356 ? S 15:17 0:00 /bin/sh /usr/bin/kodi --standalone pi 2693 13.5 11.4 218456 86124 ? Sl 15:17 12:10 /usr/lib/kodi/kodi.bin --standalone pi 12752 0.0 0.2 5268 1736 pts/0 S+ 16:47 0:00 grep --color=auto kodi

Last lines in $HOME/.kodi/temp/kodi.log

16:29:38 T:1961488384 WARNING: Attempted to remove window 10013 from the window manager when it didn't exist 16:29:38 T:1961488384 WARNING: Attempted to remove window 10014 from the window manager when it didn't exist 16:29:38 T:1961488384 WARNING: Attempted to remove window 10015 from the window manager when it didn't exist 16:29:38 T:1961488384 WARNING: Attempted to remove window 10016 from the window manager when it didn't exist 16:29:38 T:1961488384 WARNING: Attempted to remove window 10017 from the window manager when it didn't exist 16:29:38 T:1961488384 WARNING: Attempted to remove window 10018 from the window manager when it didn't exist 16:29:38 T:1961488384 WARNING: Attempted to remove window 10019 from the window manager when it didn't exist 16:29:38 T:1961488384 WARNING: Attempted to remove window 10021 from the window manager when it didn't exist 16:29:38 T:1961488384 WARNING: Attempted to remove window 10107 from the window manager when it didn't exist 16:29:38 T:1961488384 WARNING: Attempted to remove window 10115 from the window manager when it didn't exist 16:29:38 T:1961488384 WARNING: Attempted to remove window 10104 from the window manager when it didn't exist 16:29:38 T:1961488384 NOTICE: closing down remote control service 16:29:38 T:1961488384 NOTICE: unload sections 16:29:38 T:1961488384 NOTICE: application stopped...

I've been using your builds

I've been using your builds for a while now and they've worked great so far. Thanks a lot! Now I want to use an add-on that requires that I update the librtmp file. Is that easy to do?

Wish I'd have known about

Wish I'd have known about this last week. I ended up debootstrapping armel vanilla Debian. Why? Would like to use official Debian repos, for that EDIS offer where they'll Colo your pi for free.

Wow, that's a cool hosting

Wow, that's a cool hosting offer! It should be possible to modify the script to install official Debian armel by changing the repositories used.