Beta of MiniMyth2 RPI edition

For discussion of topics specific to MythTV on Raspberry Pi devices
Post Reply
User avatar
warpme
Translator
Posts: 79
Joined: Fri Feb 07, 2014 9:13 pm
Poland

Beta of MiniMyth2 RPI edition

Post by warpme »

Hi *

--
current 0.28-fixes packages are r78 [ 1434df8]
current master packages are r195 [ e0d1544]
as of 08/11/2016

--

Last year Santa Claus decided to gift me RPI2 :-)
I started to play with it and later I decided: let my RPI2 learnings be
useful for others.
So I decided to prepare small, dedicated to MythTV frontend distro
converting RPI2 into ready to run MythTV frontend.
Goal is to get running MythTV on RPI2 in easiest possible way.

Currently procedure is like this:

1.Partition SD card
2.Download & unpack file to SD card
3.Insert SD card into RPI2
4.Power-on RPI2
5.Select discovered MythTV backend.
6.You should get fully running MythTV on PRI2

Now I have initial ver. with current MythTV 0.28-fixes.
This is beta & prof-of-concept - so expect changes and issues....

If anybody wants to try, procedure is following:


0.You have to have working in Your LAN:
(a) MythTV backend with current MythTV 0.28-fixes
(b) Properly working DHCP server


1.Partition SD card:
===============

(a) Start fdisk to partition the SD card:
"fdisk /dev/sdX"

(b) At the fdisk prompt, delete old partitions and create a new one:
Type o. This will clear out any partitions on the drive.
Type p to list partitions. There should be no partitions left.
Type n, then p for primary, 1 for the first partition on the drive,
press ENTER to accept the default first sector, then type +100M for the
last sector.
Type t, then c to set the first partition to type W95 FAT32 (LBA).
Type n, then p for primary, 2 for the second partition on the
drive, and then press ENTER twice to accept the default first and last
sector.
Write the partition table and exit by typing w.

(c) Create and mount the FAT filesystem:
"mkfs.vfat /dev/sdX1"
"mkdir boot"
"mount /dev/sdX1 boot"

(d) Create and mount the ext4 filesystem:
"mkfs.ext4 /dev/sdX2"
"mkdir root"
"mount /dev/sdX2 root"


2. Install MiniMyth2 RPI edition software on SD card:
========================================
(replace „xx” in URL!)
(a) Download software (as root, not via sudo)
„wget hxxp://warped.homenet.org/MiniMyth2-rpi2-latest.tar.bz2”
"bsdtar -xpf MiniMyth2-rpi2-latest.tar.bz2 -C root"
"sync"
(b) Move boot files to the first partition:
"mv root/boot/* boot"
(c) Unmount the two partitions:
"umount boot root"


3. Insert SD card to RPI2, power-on
===========================


4. You should see country/language selection screen. Select appropriate.
=======================================================


5. Next You should see BE selection. Select BE and use „Save".
=================================================


6. You should see reloading fronted and next famous MythTV main menu
======================================================


7. Go to MythTV setup and select in playback profile openmax etc.
===================================================
Do the same also for audio. Set rest things accordingly to Your's preference.


8. Ask MiniMyth2 to update to most current version:
=======================================
You can do this from UI by selecting "System Updates". In classic theme it is under "Advanced/System Updates"

Alternatively You can do this from terminal:
(a) fire terminal somewhere in LAN
(b) type "ssh -l root <RPI2 IP address>"
user: root
pass root
(c) type "pacman -Sy"
(d) type "pacman -Su"
press 'y'
(e) reboot RPI2 to get running new software


9. Setup all boring things like TZ, etc.
============================
(a) ssh as root/root
(b) Check the current zone defined in the system:
"timedatectl"
(c) To list available zones:
"timedatectl list-timezones"
(d) To change your time zone:
"timedatectl set-timezone Zone/SubZone"






If You have problems:
=================
(a) Log via ssh as root/root
(b) type "cat /home/mythtv/mythfrontend.log"
(c) type "journalctl -b"

See what problem might be....

BTW: I have also mythtv master packages.
To switch MiniMyth2 to master:
(a) fire terminal somewhere in LAN
(b) type "ssh -l root <RPI2 IP address>"
user: root
pass root
(c) type "pacman -Syu"
(d) type "pacman -S mythtv-master-base mythtv-master-plugins"
press 'y' when asked
(e) reboot RPI2 to get running new software

Happy watching!
Post Reply