Setting Up MythTV on a Wandboard

Setting Up MythTV on a Wandboard

Download Robert C. Nelson’s Netinstall utility.  This will allow you to boot off a Micro SD and run the Debian Installer.

git clone https://github.com/RobertCNelson/netinstall

cd netinstall

sudo ./mk_mmc.sh –mmc /dev/sdX –dtb wandboard-quad-revc1 –distro wheezy –firmware –use-beta-kernel

Install MythTV and iSCSI Initiator.

# apt-get install sudo mythtv open-iscsi

MythTV password can be found in /etc/mythtv/config.xml.

Change keybinding IP in /etc/mysql/my.cnf to Wandboard IP. This will allow a Kodi client to connect to the MythTV Backend.

Add the following line in /etc/php5/apache2/php.ini:

max_input_vars = 100000

Setting Up the iSCSI Initiator

Set node.startup = automatic in /etc/iscsi/iscsid.conf.

Restart the initiator:

$ /etc/init.d/open-iscsi restart

Connect to iSCSI target:

$ iscsiadm -m discovery -t st -p X.X.X.X (where X.X.X.X is the IP address of your iSCSI target)

$ iscsiadm -m node

$ /etc/init.d/open-iscsi restart

Check if new iSCSI device exists (you should see something similar to /dev/sda referred to as sdX in this guide):

$ fdisk -l

Partition the new iSCSI device:

$ fdisk /dev/sdX (select n, p, 1, [enter], [enter], & w)

Now the device should show up with a Linux partition:

$ fdisk -l

Format the new iSCSI device (you should see something similar to /dev/sda1 referred to as sdX1 in this guide):

$ mkfs.ext4 /dev/sdX1

Setup the iSCSI device to be mounted automatically at boot:

$ sudo mkdir /recordings

$ sudo chown mythtv:mythtv /recordings

$ sudo chmod 777 /recordings

Add the following entry in /etc/fstab:

/dev/sdX1   /recordings   ext4   defaults,auto,_netdev   0   0

$ sudo reboot

Login remotely with SSH and run mythtv-setup:

$ ssh -X root@X.X.X.X (where X.X.X.X is the IP address of Wandboard)

References:

https://github.com/RobertCNelson/netinstall

https://www.howtoforge.com/using-iscsi-on-debian-squeeze-initiator-and-target

http://lists.mythtv.org/pipermail/mythtv-users/2012-February/328647.html