GeeXboX for Embedded Devices – Booting on Raspberry Pi

November 2nd, 2013 Leave a comment Go to comments

To boot GeeXboX on your Raspberry Pi you will need to prepare a SD card. We provide a script to automate this.

Connect the SD card to your host system and note the device (we will use /dev/sdd in this document).

Method #1: Using a script (recommended).

Starting with GeeXBoX 3.1 we are using a unified script. Please follow these instructions.

Method #2: Doing it by hands (not recommended).

Umount any partitions on the SD card

Erase SD card partition table

dd if=/dev/zero of=/dev/sdd bs=512 count=8

Partition the SD card

fdisk /dev/sdd

create (n) one small boot partition (100MB)

change (t) the boot partition type to FAT32 (c)

create (n) a data partition in the remaining space

mark as active/bootable (a) the boot partition

save your changes and quit (w)

Create the filesystems

mkfs.vfat -F 32 -n boot /dev/sdd1
mkfs.ext4 -L GEEXBOX /dev/sdd2

Fetch the GeeXboX for Raspberry Pi tarball and unpack it on the partitions you just created:

mount /dev/sdd2 /mnt
mkdir /mnt/boot
mount -t vfat /dev/sdd1 /mnt/boot
tar xjf path_to_release_file.tar.bz2 -C /mnt

Finallly unmount the partitions

umount /mnt/boot
umount /mnt

Plug the SD card into your Raspberry Pi, connect power, HDMI and optionally ethernet, and enjoy!

  1. gilesasp
    April 6th, 2013 at 09:22 | #1

    Any chance we can get a script that works on Mac OSX? The commands mkfs.vfat and mkfs.ext4 don’t work on Mac.

  2. tomlohave
    April 6th, 2013 at 09:27 | #2

    I have no MacOSX, so someone that can test should write it, or help us to modify our script

  3. jarwha
    April 29th, 2013 at 07:49 | #3

    Any change to prepare the SD-card under Windows?


  4. tomlohave
    April 29th, 2013 at 09:59 | #4

    sorry, no, unless someone wants to work on this..

  5. angelusninja
    October 16th, 2013 at 20:42 | #5

    I have to change in raspberrysid line 28 to: mkfs.vfat -F 16 -n boot $boot_part because raspberry couldn’t boot, is it correct?

  1. No trackbacks yet.
You must be logged in to post a comment.