[mythtv-users] Updated MiniMyth2 Rpi edition

Mike Bibbings mike.bibbings at gmail.com
Fri Nov 24 20:11:04 UTC 2017


On 24/11/17 18:07, Piotr Oniszczuk wrote:
>> Piotr,
>>
>> I have run a few tests on Minimyth2, once over the initial startup problems with upnp, more of that later, it works well.
> Thx for trying :-)
>> I have two mythbackends on different subnets, one built from source, the other from ppa:mythbuntu/30 (i.e. current master), running under Xubuntu 16.04 LTS (HWE).
>>
>> SD card image generated using bsdtar running as root ( sudo su) on Xubuntu 16.04 LTS (HWE) - note that bsdtar  and f2fs-tools packages have to be installed.
>>
>>   I made to changes to /boot/config.txt  for my TV UK 50Hz 1080p, with no overscan, plus MPG2 licence code, before inserting SD card into RPI2 .
>>
>> hdmi_group=1
>> hdmi_mode=31
>> disable_overscan=1
>>
>> On booting Country/Language screen was presented, defaulted to US, changed to UK, then the problems started on Mythtv Servers screen with „Loading..." being displayed continuously - it never timed out and I could get no response to any key presses.
> Interesting!
> I’ll try enable upnp on my home router and see how this impacting BE discovery.
>
>> Went in via SSH and rebooted, same issue.
>> Turned off upnp on the router for the subnet, rebooted and then the single mythbackend was found, so I clicked Save - nothing happened, so rebooted again.
>> This time I used manual to set IP address and password (note password is NOT ‚mythtv', it is the random 8 character alpha-numeric generated when mythtv-backend was installed, this time mythfrontend ran (config.xml file was created in /home/mythtv/.mythtv/).
> So definitely there is issue with upnp BE discovery.
> Image I put to download has master r311 I believe.
> May You update to current master(*), delete config.xml, restart and see:
> -is auto discovery of BE works
> -has Yours router upnp any impact on BE discovery
>     
> (*)
> pls do update from ssh as root.
>
> pacman -Sy
> pacman -Su
>
> updates from UI not working due typo in script.
> I fixed this and new image will work OK for updates
>   
>> Using Setup Wizard, set Audio to OpenMax:hdmi, no sound from speakers, then set video profile to OpenMAX normal, ran the SD test video, which worked, I could get sound by using Volume UP key.
>> I then set Audio Mixer device to OpenMax and sound was then ok on speaker test.
>>  From then on things worked as expected.
>>
>> There is definitely a problem with upnp detection on first run. I ran mythtv-light frontend on Raspbian Stretch and the mythbackend was automatically found.
> Interesting!
> I have perfectly working BE discovery - albeit for me it was important to have exactly current master (I done tests on r328).
> Being on slightly older master also gives me issues with BE discovery…
> (There was regression and upnp was fixed just week or two ago).
> If Yours source built BE is older than very current master - maybe here is issue?
>   
>> I also checked mythfrontend log in /home/mythtv and it entries :
>> 2017-11-23 11:49:44.028244 I  Assumed character encoding:
>> 2017-11-23 11:49:44.028292 W  This application expects to be running a locale that specifies a UTF-8 codeset, and many features may behave improperly with your current language settings. Please set the LC_ALL or LC_CTYPE, and LANG variable(s) in the environment in which this program is executed to include a UTF-8 codeset (such as 'en_US.UTF-8').
>>
>> I setup locale to en_GB.UTF-8, which removed the entries.
>>
>> Also set timezone to Europe/London (it was UTC, +0000) and keyboard map to uk.
>>
>> I don't know if setting locale and  timezone are really necessary for just a frontend.
>>
>>
>> And finally consider adding two packages to the MiniMyth2 image dialog  and wpa_supplicant this will allow USB WIFI devices to be used without having to install over ethernet first, wifi-menu is already present. I do use WIFI.
> Sure. Already done this!
>
> I’ll give notice on forum when new image will be available
>
> (probably also with hosting loc based on google drive)
>   
> br
> _______________________________________________

I have upgraded MiniMyth2 to latest build via pacman, there was one 
error reported (does not seem significant as frontend works):
[root at rpi2 mythtv]# pacman -Sy
:: Synchronising package databases...
  core                      48.0 KiB   343K/s 00:00 
[######################] 100%
  extra                    384.2 KiB  1921K/s 00:00 
[######################] 100%
  community                966.6 KiB  2.36M/s 00:00 
[######################] 100%
  alarm is up to date
  aur is up to date
  minimyth2                  2.5 KiB  0.00B/s 00:00 
[######################] 100%
[root at rpi2 mythtv]# pacman -Su
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (2) mythtv-master-base-1.0.3-333 mythtv-master-plugins-1.0.3-333

Total Download Size:    64.96 MiB
Total Installed Size:  146.09 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n]
warning: no /var/cache/pacman/pkg/ cache exists, creating...
:: Retrieving packages...
  mythtv-master-base-...    36.2 MiB  2.31M/s 00:16 
[######################] 100%
  mythtv-master-plugi...    28.8 MiB  2.33M/s 00:12 
[######################] 100%
(2/2) checking keys in keyring [######################] 100%
(2/2) checking package integrity [######################] 100%
(2/2) loading package files [######################] 100%
(2/2) checking for file conflicts [######################] 100%
(2/2) checking available disk space [######################] 100%
:: Processing package changes...
(1/2) upgrading mythtv-master-base [######################] 100%
(2/2) upgrading mythtv-master-plugins [######################] 100%
:: Running post-transaction hooks...
(1/2) Warn about old perl modules
WARNING: '/usr/lib/perl5/core_perl' contains data from at least 1 
packages which will NOT be used by the installed perl interpreter.
  -> Run the following command to get a list of affected packages: 
pacman -Qqo '/usr/lib/perl5/core_perl'
(2/2) Arming ConditionNeedsUpdate...
[root at rpi2 mythtv]# pacman -Qqo '/usr/lib/perl5/core_perl'
perl-shell


Same upnp problems exist with "Loading..." being displayed. Occasionally 
mythbackend is found but after Save it just hangs.
With the "Loading..." problem if backend is not found after few reboots, 
I just put a config.xml file in /home/mythtv/.mythtv/

I was aware of the recent breakage of upnp, but my backends are at 
MythTV Version : v30-Pre-333-g67a11c1 which is latest master as of writing.

I also rechecked the defaults for the mythfrontend  by changing the 
hostname (hostnamectl set-hostname <new hostname>)  and then rebooting.
I needed to use SetupWizard to change to OpenMAX:hdmi etc and the Audio 
Mixer.
The mythbackend provides default data to the frontend using hostname 
only, so if you already have a hostname of rpi2 in the mythconverg 
database those values will be used.

Mike




More information about the mythtv-users mailing list