Published 2008-11-17 11:10:00
These are my notes/ comments on getting it to work (partly), check the blog
again every month or so to see if I ever get the thing working fully..
After leaving the Digital TV sticks lying around for a few months, I
finally got back to looking at the issues with drivers. ASUS have been
absolutely useless, and have ceased responding to all support requests.
The Source code supplied on the site, and emailed to me directly
appears to be the completely the wrong source code (based on comparisons using strings on the binary driver, I'll have more
confirmation of this when I review the dmesg outputs as described
below..)
Having given up on the source code, I decided just to see if I could
get them to work in any way. We had a go with the Windows drivers on a
PC at work, but did not really have much success (as I found out later,
probably due to signal issues with the little antenna). But it did give
me the idea of using virtual machines and running the EEEPC development
kit. So here's the process so far just to test the cards. - details in the extended bit..
Get Hold of the Eeepc SDK
googling for eeepc sdk will give you the download links at sourceforge, you need a number of files from there,
a) The SDK iso file (which is really a xandros install CD) - you need
this to convert the Eeepc image iso into a vmware usable image
b) The L70???.iso file (which is an install CD for the eeepc i think)
c) the vmware vmx file (which is a text file and can be edited to point to the right place)
d) have a look at the readme file that goes with the vmware vmx file, it kind of summarizes the process.
Now to create the vmware image you need to do:
a) create a linux virtual machine (using vmware server for example) or
you can use virtualbox - give it quite a bit of possilbe space (20G
should be enough)
b) point the CD drive of the virtual machine to the SDK iso image.
c) boot the PC, and install xandros into the virutal machine
d) using nfs or just scp, move the L70??.iso file to the virutal machine
e) inside the virutal machine run 'vmware-convert L70?????.iso' - this will generate a asus.vmdk file
f) copy the asus.vmdk file to your host machine
g) edit the vmware.vmx file to point to the asus.vmdk file
h) open the vmware.vmx file in vmplayer (or server edition)
You now should have an emulated vmware enviroment. (there are a few
issues with cursor keys bindings that you may have to google for)
Now for the digital Tv driver installation.
within the eeepc,
go to asus's website, and download the latest binary driver for linux (eeepc kernel only)
use Ctrl-Alt-T to get a terminal, and extract the file - it contains two deb files, run the ./install script.
This should give you the vdr application, and the kernel modules in the eeepc /lib/modules/???-eeepc/v4l directory,
I copied this directory to the /lib/modules/???-vmware/v4l directory
you need to modprobe firmware_class (this is the only required module for the others to work)
Then you can go through insmoding the modules (the order is a bit
picky, but it will give you errors when you do it in the wrong order) - modprobe might work once you've done a depmod -a
Make sure the vmware player (or server) passes through the usb
connections (something like usb.autoconnect = true) in the vmx file.
Plug in the USB stick.
If you are lucky it will fire up the vdr application., (otherwise you
can try running /opt/vdr/runvdr ,a few times until it works)
Now for the fun part.
exit the vdr application, and find the frequency scan file /opt/vdr/video/???/China
edit this file, and delete all the lines except the 562000000 line (this is the TVB/ATV digital frequency)
Now run the vdr application again and try scanning
It's best to use a proper Aerial (the little antenna is very picky
about a signal, and the green light on the stick is not that useful) - If you are using the antenna, you may
want to try using vlc (see later)
If you are lucky, it should detect The four standard free channels, and you can watch them in vdr
Vlc:
Thanks to isaac's blog, there are details on how to try it with vlc.
http://isaac.hk/blog/archives/21-Use-EeePC-701-to-watch-Digital-TV-channels-in-HK.html
(installing vlc, involves adding the debian repository to /etc/apt/sources.list and apt-get installing vlc)
(dont forget to chgrp the /dev/dvb0*
for testing the Aerial, it's best to do this
>vlc dvb:// :dvb-frequency=562000000
you can then keep testing by moving the Aerial around until you get a signal.
I few gotcha's along the way.
- the driver segfaults (see dmesg) when you remove the card - would be fixable, if we had the source.....
- if you ls /dev/dvb0* and get IO error's you may need to rmmod the dvb????_mc module, and reload it.
- dont stick the antenna to a surface, and pick up your laptop and
yank it away (I think I've broken one of the Sticks doing this!)
- Sound in vmplayer on ubuntu is flakey, and difficult to get to work
(I've not actually got round to fixing that as it's not really
important...)
- The HD channels look like they need to much CPU power for my portable/vmware solution.
- The building I live in has an antenna however it does not appear to provide the TVB
J2 / ATV HD channels, although I can pick them up using the antenna
when I'm lucky...
Where are we now?
- I need check the dmesg output from the card and compare it with the source code and see what differences there are.
- see if I can recompile the vmware kernel for the eeepc device to add
extra logging on what is getting sent/received from the card, when
doing various actions, and compare that to what the source code appears
to be doing..
Anyway.... Thats all for now..
Comments
channels.conf for Hong Kong
Jade:562000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:811:0:1
Pearl:562000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:841:0:2
Home :562000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:111:0:11
World :562000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:161:0:16
News & Business :602000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:0:0:12
His TV :602000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:0:0:13
Her TV :602000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:0:0:14
Plus TV :602000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:0:0:15
CCTV 4 :602000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:0:0:17
HDTV :602000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:0:0:19
J2:586000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:0:0:82
iNews:586000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:0:0:83
High Definition Jade:586000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_3_4:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_32:HIERARCHY_NONE:0:0:85
channels.conf for Hong Kong
What is this channels.conf you have posted for? Is it for vdr or for vlc? Mine for vdr looks very different from yours?
Jade:546000:I999B8C999D999M999T999G999Y999:T:27500:811:;812,813:0:0:1:0:0:0
Pearl:546000:I999B8C999D999M999T999G999Y999:T:27500:841:;842,843:0:0:2:0:0:0
Home :546000:I999B8C999D999M999T999G999Y999:T:27500:111:;112,113:0:0:11:0:0:0
World :546000:I999B8C999D999M999T999G999Y999:T:27500:161:;162,163:0:0:16:0:0:0
J2(不支持高清節目):586000:I999B8C999D999M999T999G999Y999:T:27500:821:;822,823:0:0:82:0:0:0
iNews(不支持高清節目):586000:I999B8C999D999M999T999G999Y999:T:27500:831:;832,833,834:0:0:83:0:0:0
High Definition Jade(不支持高清節目):586000:I999B8C999D999M999T999G999Y999:T:27500:851:;852,853:0:0:85:0:0:0
Also, I have worked out how to properly unload the modules and shutdown my EeePC by adding this to /sbin/fastshutdown.sh
/sbin/modprobe -r dvb_usb_dibusb_mc