Jump to content


Photo

dm7020hdv2 help for dmm-bsp


  • Please log in to reply
83 replies to this topic

#1 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 11 July 2017 - 17:45

Hi everyone,

We're working on https://github.com/DMM-PLi/dmm-bsp but I need some help with dm7020hdv2.

As far as I know the only extra thing dm7020hdv2 has is how it packed am I right?

dreambox-nand-1024mb-2k.inc https://github.com/D...d-1024mb-2k.inc instead of dreambox-nand-1024mb.inc https://github.com/D...nand-1024mb.inc so could we delete all dm7020hdv2 stuff and do:

1- Compile dm7020hd nfi image then zip it.
2- Remove the nfi as we have the zip.
3- Compile dm7020hd nfi but with dreambox-nand-1024mb-2k.inc this time.
4- Zip the new image with v2 at the end of it then delete the nfi.
5- Now we have both images zipped in same folder and less time.

If it's ok how can I do it via bitbake recipe?

Open Vision sources: https://github.com/OpenVisionE2


Re: dm7020hdv2 help for dmm-bsp #2 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 11 July 2017 - 19:07

The approach you are mentioning above used originally from DMM to produce two versions of nfi using "shared" feeds.

Create an openpli-enigma2-image-dm7020hdv2.bb with something like the following... Then use bitbake -c openpli-enigma2-image-dm7020hdv2 to build.
 
require ../../../meta-openpli/recipes-openpli/images/openpli-enigma2-image.bb

#require ../../../meta-dream/conf/machine/include/dreambox-nand-1024mb-2k.inc
DREAMBOX_ERASE_BLOCK_SIZE = "0x20000"
DREAMBOX_SECTOR_SIZE = "2048"
MKUBIFS_ARGS = "-m 2048 -e 124KiB -c 3320 -x favor_lzo -F"
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 2048"
UBINIZE_VOLSIZE = "402MiB"
UBINIZE_DATAVOLSIZE = "1MiB"

export IMAGE_BASENAME = "openpli-dm7020hdv2"

Edited by athoik, 11 July 2017 - 19:07.

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: dm7020hdv2 help for dmm-bsp #3 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 12 July 2017 - 15:05

It seems that we need those configs for dreambox-secondstage.inc https://github.com/D...secondstage.inc too :(


Open Vision sources: https://github.com/OpenVisionE2


Re: dm7020hdv2 help for dmm-bsp #4 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 12 July 2017 - 18:03

No worry, Solved: https://github.com/D...f6b688e4c6bd272 :)


Edited by Persian Prince, 12 July 2017 - 18:05.

Open Vision sources: https://github.com/OpenVisionE2


Re: dm7020hdv2 help for dmm-bsp #5 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 13 July 2017 - 05:25

Plans for Dreambox DM 900 Ultra HD 4K also?

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: dm7020hdv2 help for dmm-bsp #6 Beeker

  • PLi® Contributor
  • 1,616 posts

+204
Excellent

Posted 13 July 2017 - 06:47

You can build for dm900 now.

Just do

MACHINE=dm900 make image

But we don't know if the box does boot.


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: dm7020hdv2 help for dmm-bsp #7 Beeker

  • PLi® Contributor
  • 1,616 posts

+204
Excellent

Posted 13 July 2017 - 06:57

And change MACHINE in the site.conf file in openpli-oe-core/. if needed.


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: dm7020hdv2 help for dmm-bsp #8 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 13 July 2017 - 09:46

Regarding the dm800, the kernel does build, but binaries built with glibc 2.2x will say: "kernel too old"
Thats why I have a patched glibc 2.19 in my local tree, which will build with recent oe-core versions.

Together with the gcc 6 patches for the 2.6.18 kernel it can get me a working image.

However specifying GLIBCVERSION="2.19" will get us mixed results in the mips32el-nf repository (e.g. other receivers building glibc 2.23)


Edited by MastaG, 13 July 2017 - 09:47.


Re: dm7020hdv2 help for dmm-bsp #9 Beeker

  • PLi® Contributor
  • 1,616 posts

+204
Excellent

Posted 13 July 2017 - 10:17

Yep

 

https://github.com/b...4ccfe843e537374

 

https://github.com/b...eb8dfdc9c607231

 

So if it's possible to update kernel to patch level 32, there is a chance ???

 

On the other side, dm800 is old..And it takes a lot of time..Is it worth it?

 

Priority one (personally), is solve boot problem DM7080


Edited by Beeker, 13 July 2017 - 10:20.

Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: dm7020hdv2 help for dmm-bsp #10 Beeker

  • PLi® Contributor
  • 1,616 posts

+204
Excellent

Posted 13 July 2017 - 10:38

As i don't own a dm7080, it's really hard to test.

 

I have OpenPLi 6.0 for Goliath, But I can not do anything about it.

 

Home builders with a dm7080 who wants to experiment and take e.g. open alliance build-env as example are welcome.

 

One person has build image and reported error:

 

Fatal: Boot image is too big
Fatal: Failed to run dreambox-secondstage.postinst


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: dm7020hdv2 help for dmm-bsp #11 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 13 July 2017 - 11:06

Thank you for pointing me to the glibc patches Beeker.

 

The problem is, we can't just use older kernel headers for glibc on one machine and newer headers for other machines when they share the same mipsel repository.

 

This means we have a few options:

 

1. We'll patch glibc (which is a shared component for all mips32el-nf receivers) reverting the two commits you mention (and a few other patches from oe-a) for supporting the dm800.

This needs to be done globally in meta-openpli.

e.g.

- setting OLDEST_KERNEL="2.6.18" for mips32el-nf

- reverting those two commits you mention for glibc for mips32el-nf

- using kernel-headers version 2.6.18 for all mips32el-nf

Only then you can have a shared mips32el-nf feed for all receivers without getting conflicts in shared packages.

But the team will never agree on this, since using such old kernel headers will break many packages relying on newer dvbapi stacks.

 

2. Look into getting the 2.6.32 kernel on the dm800.

Here's the dm800 drivers for 2.6.30:

http://sources.dream...0090723.tar.bz2

So there should be a 2.6.30 kernel patch-set as well.

Maybe we can apply the patch-set on top of 2.6.32 and patch the driver VERMAGIC strings.

 

3. Just go with point 1 but decide just apply the glibc patches only for the dm800, also use the 2.6.18 kernel headers and set OLDEST_KERNEL only for the dm800.

And decide we build the dm800 image in a separate build directory.

This way other mips32el-nf receivers will keep on using recent kernel headers.

But the dm800 feed will have it's own mips32el-nf repository.

 

4. Just forget about the dm800.



Re: dm7020hdv2 help for dmm-bsp #12 WanWizard

  • PLi® Core member
  • 70,897 posts

+1,833
Excellent

Posted 13 July 2017 - 11:08

1. It is one of the reasons support for the DM800 was dropped in the first place. ;)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: dm7020hdv2 help for dmm-bsp #13 Beeker

  • PLi® Contributor
  • 1,616 posts

+204
Excellent

Posted 13 July 2017 - 11:24

+1 for option 4.

 

Indeed it's too complicated.

 

Users must create a separate build-environment with modified meta-openpli and openembedded-core.

 

Feel free to send PR's for meta-dream layer anyway.


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: dm7020hdv2 help for dmm-bsp #14 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 13 July 2017 - 11:32

Well point 3 is the option where we apply the glibc patches and using the older headers only for the dm800.
But we just use another build directory e.g. 'build800' instead.
This way we wont break other receivers.

Anyways just go with 4.

I'll fork your thing and look into 2.6.32 when I have some time :)

Re: dm7020hdv2 help for dmm-bsp #15 Beeker

  • PLi® Contributor
  • 1,616 posts

+204
Excellent

Posted 13 July 2017 - 11:40

I  must push some commits to github regarding dm800. Patches doesn't apply.

Perhaps i can update kernel.To give option 2/3 a chance.


Edited by Beeker, 13 July 2017 - 11:41.

Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: dm7020hdv2 help for dmm-bsp #16 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 13 July 2017 - 14:08

I tried MACHINE=dm900 make image, but NO GO: too  much errors :(

In fact this box is beautiful, but for trying I do not have it.


DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: dm7020hdv2 help for dmm-bsp #17 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 13 July 2017 - 15:03

@Beeker for 2.6.18 I already created the patches for gcc 6.x and reworked the asm-code for recent binutils.

I can submit a PR if you want to.

So I have that fully working already.. but I don't like the fact we need to modify glibc and build in a separate environment.

I'd rather spent time looking at the 2.6.30 kernel patches to see whether we can integrate those into 2.6.32 and have something that should still be compatible.



Re: dm7020hdv2 help for dmm-bsp #18 Beeker

  • PLi® Contributor
  • 1,616 posts

+204
Excellent

Posted 13 July 2017 - 16:46

PR is welcome.

 

Great!

 

For dm8000 i did tricky way to use patch level 90. 

Copy the dreambox-kernel from source dir and make it local, just as the other patches.

I had to remove 2 hunks in that mega patch because. 

1) The code was too much changed. I could not merge it.

2) Patch was already applied in the source.

 

I hope you can make it

 

I'm too busy with Goliath at the moment.


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: dm7020hdv2 help for dmm-bsp #19 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 13 July 2017 - 16:56

np, will do this in the following days.

 

I've also been looking at the DMM 2.6.30 patchset.

I could successfully merge it into linux 2.6.32.27 by fixing the rejects manually (not so many).

Funny thing is that for the dvb-stack they already had upstream code from linux-media which was eventually merged into 2.6.32.

 

So I think I can create a booting 2.6.32 kernel for the dm800.. only thing is that DMM never finished porting the dm800 NAND driver.

There's one for the dm8000 though and it isn't very big as well.

So maybe I can backport the dm800 NAND driver from 2.6.18 by comparing the dm8000 NAND driver from 2.6.18 and 2.6.30 :)



Re: dm7020hdv2 help for dmm-bsp #20 Beeker

  • PLi® Contributor
  • 1,616 posts

+204
Excellent

Posted 13 July 2017 - 17:01

Ok..that would be great for dm800.

 

If you ready send PR :)


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users