RasPi SortTV and Speed Update

Yo bros,

Here’s an update on the status of my RPi.


Some modules weren’t installing right, namely XML::Parser. It needed some more dependencies built:

sudo apt-get install expat libexpat1-dev

YAML wasn’t working either. This commands specifies to CPAN which YAML to use. There are variants, you see, so it gets confused.

perl -MCPAN -e shell
o conf yaml_module YAML
o conf commit

Couldn’t install all the Perl modules without a swap file. Wear leveling isn’t an issue because you have years and years of NAND life before it craps out.

dd if=/dev/zero of=/swapfile1 bs=1024 count=524288
mkswap /swapfile1
chown root:root /swapfile1
chown 600 /swapfile1
swapon /swapfile1

Then edit your /etc/fstab to mount the swap file after reboots.

nano /etc/fstab
/swapfile1 swap swap defaults 0 0

Check if it’s working.

free -m


I also mounted my Synology NAS over NFS instead of CIFS because the latter requires more CPU overhead. Here’s a tutorial. I ran into an issue with not being able to connect, which was because of the “insecure_locks” flag. Change it to just “insecure.” Refer to 6.2.1 Step 12.

USB Flash Drive

Reports around the world wide web indicate that USB flash drives operate RaspBMC faster than SD cards. I’m using the SanDisk Ultra Class 10. I have the Patriot Rage XT 16 GB USB 2.0, which was the fastest USB 2.0 drive when I bought it. A USB 3.0 drive will saturate the USB 2.0 controller even though the port isn’t capable of the full speed. Here are the USB speeds. Here’s what you need to know about SD cards on the RPi, and here’s how you move the filesystem from the SD card to the USB flash drive.

My SD card writes at 6.5 MB/s, but the USB drive writes at 15 MB/s. Not bad.

That’s what’s done so far, and next up is the overclocking and heatsinking stage. I’ve seen 1.1 GHz out there, and I’m still trying to figure out the best heatsink + enclosure combo. I’m mostly worried about finding a decent one that doesn’t cost more in shipping than the actual heat sink. Here are some contenders.


After that, I’ll be setting up a Bluetooth daemon to turn on the TV and receiver using HDMI-CEC when I get home after work. I’ll be drawing from this script and this package.

Bonus link: The Only Raspberry Pi XBMC Tutorial You Will Ever Need


Christian. Audio. Technology. Go-Getter. Concise.

Posted in Hacks, Technology

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s