Asus U3100 DMB-TH -> ubuntu 9.10

本帖最後由 百無禁忌 於 2010-1-22 12:25 編輯

ksng 師兄:

閣下提供 Asus U3100 DMB-TH 的 driver 在 ubuntu 9.04 無問題,已用了一段時間。最近我想而移去 ubuntu 9.10,不成功,出現以下 error:

[email protected]:~/v4l-dvb$ make
make -C /home/ubuntu/v4l-dvb/v4l
make[1]: Entering directory `/home/ubuntu/v4l-dvb/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.31-17-generic/build ./.myconfig ./config-compat.h creating symbolic links...
Kernel build directory is /lib/modules/2.6.31-17-generic/build
make -C /lib/modules/2.6.31-17-generic/build SUBDIRS=/home/ubuntu/v4l-dvb/v4l  modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.31-17-generic'
  CC [M]  /home/ubuntu/v4l-dvb/v4l/tuner-xc2028.o
/home/ubuntu/v4l-dvb/v4l/tuner-xc2028.c:55: error: 'FIRMWARE_NAME_MAX' undeclared here (not in a function)
make[3]: *** [/home/ubuntu/v4l-dvb/v4l/tuner-xc2028.o] Error 1
make[2]: *** [_module_/home/ubuntu/v4l-dvb/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.31-17-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/ubuntu/v4l-dvb/v4l'
make: *** [all] Error 2

請問怎樣解決?

本帖最後由 ksng 於 2010-1-22 18:43 編輯

I've just tried in Ubuntu 9.10 and found no problem, after fixing a compilation error (different from yours). My procedure is as follows:
1.  From the link in the below web page, download the driver source (the driver source is for both ASUS u3100 and Magicpro proHDTV dual):
  http://www.linuxtv.org/wiki/index.php/MagicPro_ProHDTV_Dual_USB

2. Untar it in a directory. 'su -' to root (or precede below commands with 'sudo').

3. cd <untar directory>/v4l-dvb

4. make distclean

5. make
   You'll get an error (Ubuntu 9.10 issue):
   firedtv-1394.c:21:17: error: dma.h: No such file or directory

6. Edit v4l/.config
    Change the line,
    CONFIG_DVB_FIREDTV=m
    to
    CONFIG_DVB_FIREDTV=n

7. Run 'make' again to continue the compilation

8. make install  --  done

Note that step 5 is required before modifying v4l/.config, since the '.config' file is created in early stage of 'make'.

TOP

我用是沒有問題的, try using http://www.mythtv.org/wiki/Asus_My_Cinema_U3100_mini.

TOP

若有問題,可以send 個Source 給你..

TOP

若有問題,可以send 個Source 給你..
hwkit 發表於 2010-1-23 00:15

先謝。ksng兄的source及方法已OK,不過要自行
mkdir /dev/dvb
mkdir /dev/dvb/adapter0
mknod /dev/dvb/adapter0/demux0 c 212 0
mknod /dev/dvb/adapter0/dvr0 c 212 1
mknod /dev/dvb/adapter0/frontend0 c 212 3
mknod /dev/dvb/adapter0/net0 c 212 2
chmod 0777 -R /dev/dvb/adapter0

知不知道能否用在Magicpro proHDTV 3 USB?

TOP

ksng兄,ok,多謝幫忙。

再請問可否改用mplayer?

TOP

1.  mplayer cannot directly tune to a dvb channel like VLC. I'm using mplayer to play HD Jade invoked by my streaming/recording scripts (download link of the scripts is near bottom of web page http://www.linuxtv.org/wiki/index.php/MagicPro_ProHDTV_Dual_USB)

2. device files under /dev/dvb - Strange! I found these files were missing for Ubuntu 9.04, but they're automatically created for Ubuntu 9.10. Actually they're auto created due to following lines in /lib/udev/rules.d/50-udev-default.rules :

# DVB (video)
SUBSYSTEM=="dvb", GROUP="video",  MODE="0664"
KERNEL=="dvb[0-9].dvr[0-9]", NAME="dvb/adapter%n/dvr%n", GROUP="video",  MODE="0664"
KERNEL=="dvb[0-9].demux[0-9]", NAME="dvb/adapter%n/demux%n", GROUP="video",  MODE="0664"
KERNEL=="dvb[0-9].net[0-9]", NAME="dvb/adapter%n/net%n", GROUP="video",  MODE="0664"
KERNEL=="dvb[0-9].frontend[0-9]" NAME="dvb/adapter%n/frontend%n", GROUP="video",  MODE="0664"

If these lines are not present, then device files /dev/dvb0.dvr0, /dev/dvb0.demux0, /dev/dvr0.demux0, /dev/dvb0.net0 and /dev/dvb0.frontend0 would be created on inserting the ASUS u3100 into a usb port.

TOP

1.  mplayer cannot directly tune to a dvb channel like VLC. I'm using mplayer to play HD Jade invoke ...
ksng 發表於 2010-1-23 23:39

But in my ubuntu 9.10 pc, /lib/udev/rules.d/50-udev-default.rules :

# sound
SUBSYSTEM=="sound",                GROUP="audio"
KERNEL=="mixer0",                SYMLINK+="mixer"

# DVB (video)
SUBSYSTEM=="dvb", GROUP="video"

# FireWire (firewire-core driver: IIDC devices, AV/C devices)
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video"
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video"

TOP

Strange! Mine is:

# sound
SUBSYSTEM=="sound",             GROUP="audio"
KERNEL=="mixer0",               SYMLINK+="mixer"

# DVB (video)
SUBSYSTEM=="dvb", GROUP="video",  MODE="0664"
KERNEL=="dvb[0-9].dvr[0-9]", NAME="dvb/adapter%n/dvr%n", GROUP="video",  MODE="0664"
KERNEL=="dvb[0-9].demux[0-9]", NAME="dvb/adapter%n/demux%n", GROUP="video",  MODE="0664"
KERNEL=="dvb[0-9].net[0-9]", NAME="dvb/adapter%n/net%n", GROUP="video",  MODE="0664"
KERNEL=="dvb[0-9].frontend[0-9]" NAME="dvb/adapter%n/frontend%n", GROUP="video",  MODE="0664"

# FireWire (firewire-core driver: IIDC devices, AV/C devices)
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video"
SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video"
---------------
So there're a few more lines in mine, and they are very important for DMB-TH device filenames to be mapped properly. However I forgot whether these few lines are already there right after Ubuntu 9.10 installation, or were they added by me manually. Probably you may add them manually to see if there's any better effect.

TOP

我有另一部機裝了ubuntu 9.10,亦只係
# DVB (video)
SUBSYSTEM=="dvb", GROUP="video"

TOP