You are not logged in.
Hi,
have anybody here tried to get a twinhan(mantis)2033 dvb-c card to work on archlinux?
# lspci -vv
02:0a.0 Multimedia controller: Twinhan Technology Co. Ltd Mantis DTV PCI Bridge Controller [Ver 1.0] (rev 01)
Subsystem: Twinhan Technology Co. Ltd Unknown device 0008
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (2000ns min, 63750ns max)
Interrupt: pin A routed to IRQ 11
Region 0: Memory at e2000000 (32-bit, prefetchable) [size=4K]
]
Would also be nice to set up some kind of AUR on this driver. If we get it to work
Found some links to the alfa-stage driver.
http://www.verbraak.org/wiki/index.php/ … tis_driver
http://forum.ubuntu-fi.org/index.php?to … 5.msg70416 //finnish
http://www.linuxtv.fi/viewtopic.php?t=2415 //finnish
//burra
Last edited by burra (2007-08-15 18:19:18)
Offline
Hi,
I have now tried to download and compile my kernel module. But with no luck.
What I have done so far.
# wget http://jusst.de/manu/mantis-v4l-dvb.tar.bz2
# tar -xf mantis-v4l-dvb.tar.bz2
# cd v4l-dvb/
# make release VER=2.6.22-ck
I then get this
make -C /home/burra/build/v4l-dvb/v4l release
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/home/burra/build/v4l-dvb/v4l'
Forcing compiling to version 2.6.22-ck.
make[1]: Leaving directory `/home/burra/build/v4l-dvb/v4l'
seems like it did not find lsmod
So I made a slink to that
ln -s /bin/lsmod /sbin/lsmod
and tried again
# make release VER=2.6.22-ck
make -C /home/burra/build/v4l-dvb/v4l release
make[1]: Entering directory `/home/burra/build/v4l-dvb/v4l'
Forcing compiling to version 2.6.22-ck.
make[1]: Leaving directory `/home/burra/build/v4l-dvb/v4l'
Looks better
Then I try to make
# make
make -C /home/burra/build/v4l-dvb/v4l
make[1]: Entering directory `/home/burra/build/v4l-dvb/v4l'
Updating/Creating .config
./scripts/make_kconfig.pl /lib/modules/2.6.22-ck/build
Preparing to compile for kernel version 2.6.22
***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.
If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.
Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:
cp /boot/config-`uname -r` <your kernel dir>/.config
cd <your kernel dir>
make all modules_install install
Please see your distro's web site for instructions to build a new kernel.
VIDEO_PLANB: Requires at least kernel 2.6.99
./scripts/make_myconfig.pl
make[1]: Leaving directory `/home/burra/build/v4l-dvb/v4l'
make[1]: Entering directory `/home/burra/build/v4l-dvb/v4l'
creating symbolic links...
make -C /lib/modules/2.6.22-ck/build SUBDIRS=/home/burra/build/v4l-dvb/v4l modules
make[2]: Entering directory `/usr/src/linux-2.6.22-ck'
CC [M] /home/burra/build/v4l-dvb/v4l/dvbdev.o
CC [M] /home/burra/build/v4l-dvb/v4l/dmxdev.o
CC [M] /home/burra/build/v4l-dvb/v4l/dvb_demux.o
CC [M] /home/burra/build/v4l-dvb/v4l/dvb_filter.o
CC [M] /home/burra/build/v4l-dvb/v4l/dvb_ca_en50221.o
CC [M] /home/burra/build/v4l-dvb/v4l/dvb_frontend.o
CC [M] /home/burra/build/v4l-dvb/v4l/dvb_net.o
/home/burra/build/v4l-dvb/v4l/dvb_net.c: In function 'dvb_net_eth_type_trans':
/home/burra/build/v4l-dvb/v4l/dvb_net.c:186: error: 'struct sk_buff' has no member named 'mac'
make[3]: *** [/home/burra/build/v4l-dvb/v4l/dvb_net.o] Error 1
make[2]: *** [_module_/home/burra/build/v4l-dvb/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.22-ck'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/burra/build/v4l-dvb/v4l'
make: *** [all] Error 2
It seems like there is something wrong in the code. So I had a look at it.
# nano /home/burra/build/v4l-dvb/v4l/dvb_net.c
/**
* Determine the packet's protocol ID. The rule here is that we
* assume 802.3 if the type field is short enough to be a length.
* This is normal practice and works for any 'now in use' protocol.
*
* stolen from eth.c out of the linux kernel, hacked for dvb-device
* by Michael Holzt <kju@debian.org>
*/
static unsigned short dvb_net_eth_type_trans(struct sk_buff *skb,
struct net_device *dev)
{
struct ethhdr *eth;
unsigned char *rawp;
skb->mac.raw=skb->data; //<---line 186 burra added
skb_pull(skb,dev->hard_header_len);
eth = eth_hdr(skb);
It seems like somethings are from the eth.c code
Have there maybe been some changes in the kernel 2.6.22 since 2.6.21 that makes this unable to compile or have I done some bad moves.
appreciates some help here
//burra
Last edited by burra (2007-08-15 10:31:13)
Offline