Jump to content


Photo

Astrometa DVB-T/T2/C MN88472/MN88473


  • Please log in to reply
106 replies to this topic

Re: Astrometa DVB-T/T2/C MN88472/MN88473 #21 jbnl

  • Senior Member
  • 282 posts

+8
Neutral

Posted 22 November 2014 - 15:04

Did you make any progress regarding the drivers ?



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #22 dax

  • Senior Member
  • 228 posts

0
Neutral

Posted 25 November 2014 - 00:30

I made a very little step about the drivers meanwhile i'm waiting for receive by mail the device.

At first: devshell isn't enough to build the drivers because doesn't provide the kernel sources. Is mandatory to build the image in order to have the required sources (or maybe run bitbake with an option that i don't known).

When i run make menuconfig i get an error

Created default (all yes) .config file
/home/davide/openpli_4.0/openpli-oe-core/build/tmp/sysroots/vusolo2/usr/src/kernel//scripts/kconfig/mconf ./Kconfig
./Kconfig:491: syntax error
./Kconfig:490: unknown option "Say"
./Kconfig:491: unknown option "To"
./Kconfig:492: unknown option "called"
./Kconfig:495: syntax error
./Kconfig:494:warning: multi-line strings not supported
./Kconfig:494: unknown option "If"
./Kconfig:762: syntax error
./Kconfig:761: unknown option "Say"
./Kconfig:762: unknown option "which"
./Kconfig:763: unknown option "The"
./Kconfig:766: syntax error
./Kconfig:765:warning: multi-line strings not supported
./Kconfig:765: unknown option "If"

So i'm stuck...

If i run make - j 4 (without run before menuconfig)

LD [M]  /home/davide/dtt/media_build/v4l/zr364xx.ko
LD [M]  /home/davide/dtt/media_build/v4l/zl10353.ko
make[3]: Leaving directory '/home/davide/openpli_4.0/openpli-oe-core/build/tmp/sysroots/vusolo2/usr/src/kernel'
make[2]: Leaving directory '/home/davide/openpli_4.0/openpli-oe-core/build/tmp/sysroots/vusolo2/usr/src/kernel'
./scripts/rmmod.pl check
found 447 modules

but is't a good way.

So i'm stuck...

P.S. it's not important, but with the opendreambox 2.0 environment i'm able to run make menuconfig



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #23 amm8990

  • Member
  • 21 posts

0
Neutral

Posted 25 November 2014 - 13:18

Now latest astrometa development are merged into linux media master. 


Edited by amm8990, 25 November 2014 - 13:23.


Re: Astrometa DVB-T/T2/C MN88472/MN88473 #24 jbnl

  • Senior Member
  • 282 posts

+8
Neutral

Posted 25 November 2014 - 18:34

And this means?

Re: Astrometa DVB-T/T2/C MN88472/MN88473 #25 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 November 2014 - 18:48

Hello,

In order to follow the guide for media_build from here http://forums.openpl...73/#entry455694, you need first to build your image!

That means the first step is the following:

cd /opt
git clone git://git.code.sf.net/p/openpli/openpli-oe-core openpli4
cd /opt/openpli4
make
#### setup your sources dir here... eg /opt/sources
MACHINE=dm800se make image
Then you can follow the guide.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Astrometa DVB-T/T2/C MN88472/MN88473 #26 amm8990

  • Member
  • 21 posts

0
Neutral

Posted 25 November 2014 - 19:54

One thing more. Drivers are experimental, so anyone want to compile them  need to enable staging by running:

make menuconfig

Or editing config when you clone the repository.

 

--

 

Sorry, I just saw that you mentioned that in the post.


Edited by amm8990, 25 November 2014 - 19:59.


Re: Astrometa DVB-T/T2/C MN88472/MN88473 #27 dax

  • Senior Member
  • 228 posts

0
Neutral

Posted 26 November 2014 - 08:34

Hello,

In order to follow the guide for media_build from here http://forums.openpl...73/#entry455694, you need first to build your image!

That means the first step is the following:
 

cd /opt
git clone git://git.code.sf.net/p/openpli/openpli-oe-core openpli4
cd /opt/openpli4
make
#### setup your sources dir here... eg /opt/sources
MACHINE=dm800se make image
Then you can follow the guide.

 

Hi, if is related to my question, as i said in my previous post

 

At first: devshell isn't enough to build the drivers because doesn't provide the kernel sources. Is mandatory to build the image in order to have the required sources (or maybe run bitbake with an option that i don't known).


P.S. it's not important, but with the opendreambox 2.0 environment i'm able to run make menuconfig

i built an image but i got an error when i run make menuconfig.

Could you reproduce the error?

Or maybe could be a problem with vu+ environment? I have to build a dm image? If yes, what is missing in a vu+ environment?

Thanks

 



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #28 amm8990

  • Member
  • 21 posts

0
Neutral

Posted 26 November 2014 - 21:50

What kind of error did you get?



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #29 dax

  • Senior Member
  • 228 posts

0
Neutral

Posted 26 November 2014 - 22:49

What kind of error did you get?

Please see post #22 :)



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #30 amm8990

  • Member
  • 21 posts

0
Neutral

Posted 27 November 2014 - 22:50

Oh, sorry. What os are you using? Ubuntu 14.04lts? 



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #31 dax

  • Senior Member
  • 228 posts

0
Neutral

Posted 28 November 2014 - 11:32

Oh, sorry. What os are you using? Ubuntu 14.04lts? 

No, archlinux.



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #32 amm8990

  • Member
  • 21 posts

0
Neutral

Posted 29 November 2014 - 00:52

As I found on the web it is os related. Same problem on Ubuntu also, but on fedora works fine. Don't know why it stuch reading Kconfig file?!



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #33 dax

  • Senior Member
  • 228 posts

0
Neutral

Posted 29 November 2014 - 15:40

As I found on the web it is os related. Same problem on Ubuntu also, but on fedora works fine. Don't know why it stuch reading Kconfig file?!

Sure? Why the kconfig run without problem on same os (mine, archlinux) with the opendreambox environment?



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #34 amm8990

  • Member
  • 21 posts

0
Neutral

Posted 3 December 2014 - 22:56

What kernel version?



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #35 dax

  • Senior Member
  • 228 posts

0
Neutral

Posted 8 December 2014 - 16:13

I got the device mn88472, on my pc (archlinux 3.17.4) works fine dvb-t and dab. I can check dvb-t2 signal

What kernel version?

Pc archlinux 3.17.4

Opendreambox (that run make menuconfig) 3.2

Openpli 3.3.8 with the problem posted above when i run make menuconfig

Openvix same problem as openpli but kernel 3.13.5

So in my opinion isn't a problem related to os.



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #36 amm8990

  • Member
  • 21 posts

0
Neutral

Posted 9 December 2014 - 21:40

Maybe to try

 

make stagingconfig
make
make install



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #37 dax

  • Senior Member
  • 228 posts

0
Neutral

Posted 11 December 2014 - 16:19

Ok, stagingconfig run and set all parameters to yes. My question is: why with openpli environment we can't run make menuconfig? What is missed?



Re: Astrometa DVB-T/T2/C MN88472/MN88473 #38 gjstroom

  • Senior Member
  • 526 posts

+16
Neutral

Posted 13 December 2014 - 14:04

The problem, is that the kernel version on http://git.linuxtv.org/ is version 3.18 which has no broadcom/mips extensions.

I also tried to take some of the files to the 3.13.5 kernel (VU+), but so far no success.

 

drivers/media/dvb-frontends/Kconfig
drivers/media/dvb-frontends/Makefile
drivers/media/dvb-frontends/mn88472.c
drivers/media/dvb-frontends/mn88472.h
drivers/media/dvb-frontends/mn88472_priv.h
drivers/media/dvb-frontends/mn88473.c
drivers/media/dvb-frontends/mn88473.h
drivers/media/dvb-frontends/mn88473_priv.h
drivers/media/dvb-frontends/rtl2832.c
drivers/media/dvb-frontends/rtl2832.h
drivers/media/dvb-frontends/rtl2832_priv.h
drivers/media/usb/dvb-usb-v2/rtl28xxu.c
drivers/media/usb/dvb-usb-v2/rtl28xxu.h
drivers/media/tuners/r820t.c
drivers/media/tuners/r820t.h

drivers/media/dvb-core/dvb-usb-ids.h

 

It goes wrong compiling:
| drivers/media/usb/dvb-usb-v2/rtl28xxu.c: In function 'rtl2832u_tuner_attach':
| drivers/media/usb/dvb-usb-v2/rtl28xxu.c:1085:5: error: unknown field 'fe' specified in initializer
|      .fe = adap->fe[0],
 

You can build a kernel like this (OpenPli uses slightly other directories)

make -j 4 ARCH=mips CROSS_COMPILE=/data2/oe-alliance.23/builds/openatv/vusolo2/tmp/sysroots/x86_64-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux- menuconfig
make -j 4 ARCH=mips CROSS_COMPILE=/data2/oe-alliance.23/builds/openatv/vusolo2/tmp/sysroots/x86_64-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux- vmlinux
make -j 4 ARCH=mips CROSS_COMPILE=/data2/oe-alliance.23/builds/openatv/vusolo2/tmp/sysroots/x86_64-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux- modules


Amiko8240, DM500HD, DM800, DM800SE, DM800SESR4, DM800SEV2, VU+ SoloSEV2, VU+ UnoSE


Re: Astrometa DVB-T/T2/C MN88472/MN88473 #39 gjstroom

  • Senior Member
  • 526 posts

+16
Neutral

Posted 28 December 2014 - 17:18

I did some more work, but still no working drivers.

 

I build the drivers with the following, also have a look at: http://blog.palosaar...393781628365454

 

cd /data2
mkdir -p openpli4_kernel/dm800se
cd openpli4_kernel/dm800se
wget https://www.kernel.o...inux-3.2.tar.gz
wget https://www.kernel.o...patch-3.2.60.gz
wget http://sources.dream...6f5523c6e.patch
untar the kernel and apply the patches

 

cd /data2
git clone --depth=1 git://linuxtv.org/media_build.git
cd media_build

ARCH=mips \
CROSS_COMPILE=/home/gertjan/openpli-oe-core.upstream/build/tmp/sysroots/x86_64-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux- \
DIR=/data2/openpli4_kernel/dm800se/linux/ \
make cleanall

ARCH=mips \
CROSS_COMPILE=/home/gertjan/openpli-oe-core.upstream/build/tmp/sysroots/x86_64-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux- \
DIR=/data2/openpli4_kernel/dm800se/linux/ \
make download untar

vi v4l/versions.txt (edit the file)

#[3.15.0]
# needs reset_control_get_optional
#RC_ST

#[3.10.0]
# needs include/linux/mfd/syscon.h
#IR_HIX5HD2

vi v4l/Makefile (edit the file)
EXTRA_CFLAGS += -Werror-implicit-function-declaration -Wno-implicit

ARCH=mips \
CROSS_COMPILE=/home/gertjan/openpli-oe-core.upstream/build/tmp/sysroots/x86_64-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux- \
DIR=/data2/openpli4_kernel/dm800se/linux/ \
make menuconfig

ARCH=mips \
CROSS_COMPILE=/home/gertjan/openpli-oe-core.upstream/build/tmp/sysroots/x86_64-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux- \
DIR=/data2/openpli4_kernel/dm800se/linux/ \
make -j 4

Somehow all modules get a vermagic=3.2.60-dm800se SMP mod_unload MIPS32_R1 32BIT, I created a little patcher to set it to 3.2-dm800se SMP mod_unload MIPS32_R1 32BIT

#!/bin/sh

for m in $(find /tmp/v4l -name "*.ko")
        do
        grep -q "3.2.60" $m && {
                echo "patching vermagic ${m}"
                sed -i 's/3.2.60-dm800se SMP mod_unload MIPS32_R1 32BIT /3.2-dm800se SMP mod_unload MIPS32_R1 32BIT \x00\x00\x00/g' $m || exit 1

        }
        done
        exit 0
}

But I can't use drivers. I can't load dvb-usb-rtl28xxu.ko / rtl2832.ko / dvb_usb_v2.ko / dvb-core.ko / mn88472.ko / mn88473.ko

dvb_core: exports duplicate symbol dvb_ca_en50221_camchange_irq (owned by kernel)
dvb_usb_rtl28xxu: Unknown symbol dvb_usbv2_reset_resume (err 0)
dvb_usb_rtl28xxu: Unknown symbol rtl2832_get_private_i2c_adapter (err 0)
dvb_usb_rtl28xxu: Unknown symbol dvb_usbv2_suspend (err 0)
dvb_usb_rtl28xxu: Unknown symbol rtl2832_get_i2c_adapter (err 0)
dvb_usb_rtl28xxu: Unknown symbol dvb_usbv2_disconnect (err 0)
dvb_usb_rtl28xxu: Unknown symbol dvb_usbv2_probe (err 0)
dvb_usb_rtl28xxu: Unknown symbol dvb_usbv2_resume (err 0)
dvb_usb_rtl28xxu: Unknown symbol rtl2832_enable_external_ts_if (err 0)
dvb_usb_v2: Unknown symbol dvb_dmx_swfilter_raw (err 0)
dvb_usb_v2: Unknown symbol dvb_frontend_resume (err 0)
dvb_usb_v2: Unknown symbol dvb_frontend_suspend (err 0)
mn88472: Unknown symbol regmap_write (err 0)
mn88472: Unknown symbol regmap_init_i2c (err 0)
mn88472: Unknown symbol regmap_read (err 0)
mn88472: Unknown symbol regmap_bulk_write (err 0)
mn88472: Unknown symbol regmap_exit (err 0)
mn88473: Unknown symbol regmap_write (err 0)
mn88473: Unknown symbol regmap_init_i2c (err 0)
mn88473: Unknown symbol regmap_read (err 0)
mn88473: Unknown symbol regmap_bulk_write (err 0)
mn88473: Unknown symbol regmap_exit (err 0)
 

I can load:

root@dm800se:~# lsmod
Module                  Size  Used by
xc5000                 16224  0
xc4000                 21210  0
tuner_xc2028           21209  0
tuner_simple           13777  0
tda9887                 8669  0
tda8290                12658  0
rtl2830                 6729  0
qt1010                  4504  0
mxl5005s               38566  0
mt20xx                 11240  0
mt2060                  4070  0
mc44s803                2926  0
fc2580                  5769  0
fc0013                  5991  0
fc0012                  4852  0
tuner_types             8241  1 tuner_simple
r820t                  17324  0
 

 


Amiko8240, DM500HD, DM800, DM800SE, DM800SESR4, DM800SEV2, VU+ SoloSEV2, VU+ UnoSE


Re: Astrometa DVB-T/T2/C MN88472/MN88473 #40 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 28 December 2014 - 17:28

The dvb_core should be compiled as module on kernel, so it can replaced by v4l version.

Also there is a patch that removes the sublevel from kernel. You should apply this one also.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916


2 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


    Bing (1)