[mythtv-users] HDHomeRun, 2nd NIC and dhcpd bootup issue

R deadzone2 at excite.com
Sun Nov 4 17:50:47 UTC 2007


It's a very simple change. I'm running the 0.20.2 release and
 it appears the code is the same in the .20 bug svn.

1) Edit the file mythtv-0.20.2/libs/libmythtv/hdhrchannel.cpp
2) Search for "/* Discover. */"
3) You should find:

    /* Discover. */
    for (int retry = 0; retry < 6; retry++)

4) Change the "retry < 6;" to "retry < 60;" or the 6 to whatever 
value works for you. For example:

    /* Discover. */
    for (int retry = 0; retry < 60; retry++)

5) Save the file and backup to the base directory and make;make install;
6) Reboot and if this was your problem, it should work now.

 --- On Sun 11/04, Harley Peters < harley at thepetersclan.net > wrote:
From: Harley Peters [mailto: harley at thepetersclan.net]
To: mythtv-users at mythtv.org
Date: Sun, 04 Nov 2007 10:44:19 -0600
Subject: Re: [mythtv-users] HDHomeRun, 2nd NIC and dhcpd bootup issue

R wrote:> I'm a long time user of MythTV and very much appreciate all the hard work everyone puts into the software. I recently decided I wanted a second HD tuner for OTA broadcasts and since I am already using 4 of 5 PCI slots, I decided to try a HDHomeRun. > > While setting it up, I determined that the HDHomeRun used DHCP to get an IP address so I first connected it to my home network so my router would provide the IP address. My MythTV server is connected to my home network via a PCI Gigabit Ethernet card (eth0). Once everything was up and running, I wanted to move the HDHomeRun off my home network. I enabled the motherboard's 10/100 Ethernet NIC (eth1) and configured dhcpd to provide an address to it. After directly connecting the HDHomeRun to eth1 and restarting mythbackend, the tuners were available and working without any other changes. > > Everything was great until my system was rebooted. > > Turns out that after the reboot mythbackend reported "device not found" for 
both HDHomeRun tuners. After manually restarting mythbackend, the tuners were back and working. Thinking that the problem might be related to the second NIC and DHCP, I reconnected the HDHomeRun to my home network, rebooted and found that indeed, the tuners were discovered after the server restart.> > When facing an issue such as this, I figure I'm not the first to experience it and search the internet for a solution. This time, I couldn't find a solution. > > Thinking that it might be a timing issue where the HDHomeRun did not yet have an address from my MythTV dhcpd server for the second NIC, I hunted in the code until I found the FindDevice function in libs/libmythtv/hdhrchannel.cpp. I noticed that it tries to "Discover" the HDHomeRun 6 times before reporting "device not found". I modified it to try 60 times to give the HDHomeRun a bit more time to get an IP address. After building and installing the change, I rebooted and found that the HDHomeRun was found by mythbackend 
after the server restart and my problem was solved.> > I don't know if the problem is unique to my configuration but, if not, perhaps my experience will help someone else.> > Richard> > > _______________________________________________> Join Excite! - http://www.excite.com> The most personalized portal on the Web!> > > _______________________________________________> mythtv-users mailing list> mythtv-users at mythtv.org> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users> Could you post the change you made so i don't have to search through thecode ?Harley_______________________________________________mythtv-users mailing listmythtv-users at mythtv.orghttp://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Join Excite! - http://www.excite.com
The most personalized portal on the Web!

More information about the mythtv-users mailing list