Moderator Control Panel ]

Cross Compiler for MOI

Cross Compiler for MOI

Postby Angel » Wed Apr 10, 2013 11:33 pm

Hello,

I need your help.

I'm going to use a cross compiler in order to build OSCAM for MOI.
The question is, Which cross compiler should I use ?

I made a lot of research for Buildroot Platform and Samsung ARMv7 cpu but I couldn't find anything.
Is there any compatible compiler ?

Is anyone able to give us a tip so that we can start searching ?

Thank you.
User avatar
Angel
 
Posts: 4
Joined: Wed Apr 10, 2013 6:59 am
Location: Greece

Re: Cross Compiler for MOI

Postby updatelee » Thu Apr 11, 2013 2:03 am

Build root should include everything you need. I haven't tested on the moi but I've used Dreambox build root env before to cross compile applications

UDL
TBS6925/5980, Prof 7301/7500/8000, Genpix Skywalker-1, Skystar 2 Express HD
Hauppauge 950Q, Kworld 330U/435v3/445v3
Dreambox 800

I use Linux and support open source projects.
User avatar
updatelee
 
Posts: 374
Joined: Wed Jul 25, 2012 11:48 am
Location: CFB Edmonton

Re: Cross Compiler for MOI

Postby gfi » Thu Apr 11, 2013 8:18 am

updatelee Wrote:Build root should include everything you need. I haven't tested on the moi but I've used Dreambox build root env before to cross compile applications

UDL


That isn't so true. Missing config for Buildroot, device list handling (hw) etc...
Thats work 's step by steb with looking to kernel configuration.
Dreambox developers team (e.g. OpenPli), duckbox sh4 have a complete package with all informations.

But I have a first image compiled as good. Cross isn't problem, now for nothing.

About oscam:
Disable debug output before compiling Buildroot on ttyS0. But it's a 3,3V TTL, I'm not sure.
For USB, enable USB utils, support usb-serial
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

Re: Cross Compiler for MOI

Postby biv21 » Tue Apr 16, 2013 8:24 pm

biv21
 
Posts: 1
Joined: Sat Apr 06, 2013 5:37 pm

Re: Cross Compiler for MOI

Postby gfi » Tue Apr 16, 2013 9:12 pm



Already done:
viewtopic.php?f=98&t=8451

As best way for all, use buildroot, with optimisations for s5pv210.
I tried some external cross-tools (for example newest git of tvheadend), Buildroot provide the best results and lowest cpu usage (not only on TVheadend.
After some days I've a new rootfs with Busybox 1.21.1.
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

Re: Cross Compiler for MOI

Postby linuxstb » Thu Apr 18, 2013 6:32 am

Hi gfi,

Would you be willing to share your buildroot config? I've successfully used it to build a newer tvheadend, but would like to be able to build the complete filesystem.

I've been playing with building my own kernel, and that's working quite well now - I've added the driver for my DVB-T stick (a dual-tuner dib0700 device) and that's working fine. The main issue was that it has a loadable firmware file, and the /lib/firmware directory wasn't being mounted on boot. The solution was to embed it into the kernel binary - you need to copy the .fw file into the firmware/ directory in the kernel sources, and then add its name to the list of firmware files to embed.

Also, I can't recall what was in the kernel being provided by TBS, but the .config included in tbs-moi-linux-kernel-sources has NFS enabled. I have managed to get this working with the following options:

mount -o nolock,clientaddr=192.168.1.188 192.168.1.10:/abc /abc

i.e. you need to disable locking and explicity specify which interface on the MOI the NFS client binds to.
linuxstb
 
Posts: 7
Joined: Wed Mar 27, 2013 8:03 pm

Re: Cross Compiler for MOI

Postby gfi » Thu Apr 18, 2013 12:12 pm

linuxstb Wrote:Hi gfi,

Would you be willing to share your buildroot config? I've successfully used it to build a newer tvheadend, but would like to be able to build the complete filesystem.

I've been playing with building my own kernel, and that's working quite well now - I've added the driver for my DVB-T stick (a dual-tuner dib0700 device) and that's working fine. The main issue was that it has a loadable firmware file, and the /lib/firmware directory wasn't being mounted on boot. The solution was to embed it into the kernel binary - you need to copy the .fw file into the firmware/ directory in the kernel sources, and then add its name to the list of firmware files to embed.

Also, I can't recall what was in the kernel being provided by TBS, but the .config included in tbs-moi-linux-kernel-sources has NFS enabled. I have managed to get this working with the following options:

mount -o nolock,clientaddr=192.168.1.188 192.168.1.10:/abc /abc

i.e. you need to disable locking and explicity specify which interface on the MOI the NFS client binds to.


.config - meanwhile not, I'm still doing some changes. But it's not your problem, I think.
What target image (fs) have you defined?
BTW: I'm still going with clear tarball for training, with hardly method - mtd3 (flash_unlock, erase, mount tmpfs, lock... I don't want write about this unsafe ways).

About dvb usb stick. I have also kernel (only upgraded TBS) with af9015 chip.
I just created firmware directory in target/lib, cp <fw files> and simply make.
Nothing else. But for example in tvheadend frontend don't going "down", close handle don't working too, when device is in "idle" state.
I haven't any problem with mount, I'm not sure, what you mean with "wasn't mounted on boot".
Try: create diectory in original rootfs, copy fw file and reboot.

NFS I didn't checked, so I can't help you. But I know what you mean.

You have another kernel, as you wrote. How You managed drivers from TBS (are precompiled)? Step by step from TBS's kernel (with path of patches, etc), or with linux drivers (also precompiled) for TBS QUAD PCIe (some tuner)?
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

Re: Cross Compiler for MOI

Postby linuxstb » Fri Apr 19, 2013 2:52 pm

gfi Wrote:I haven't any problem with mount, I'm not sure, what you mean with "wasn't mounted on boot".
Try: create diectory in original rootfs, copy fw file and reboot.


The problem I had was that if my DVB-T stick was inserted in the MOI when the MOI booted, then the firmware file was not found. If I inserted it into my MOI after it booted, then it worked fine. So I assume that the root filesystem isn't mounted at the time the DVB-T driver is initialised.

As I mentioned, the solution was to tell the kernel to embed my DVB-T stick's firmware file in the zImage - the kernel's firmware loading mechanism supports this method, so it's not hard.

gfi Wrote:You have another kernel, as you wrote. How You managed drivers from TBS (are precompiled)? Step by step from TBS's kernel (with path of patches, etc), or with linux drivers (also precompiled) for TBS QUAD PCIe (some tuner)?


I have just been using TBS's kernel with the pre-compiled drivers for the built-in DVB-S2 tuners.
linuxstb
 
Posts: 7
Joined: Wed Mar 27, 2013 8:03 pm

Re: Cross Compiler for MOI

Postby TUISTERa » Sat Apr 20, 2013 2:47 am

Is there any chance for us to get some user friendly cross compiler? I need it to compile latest dvblast, mine is 2.0 with broken mmi menus and can't get the ci to work . Gfi can you help about that ?
TUISTERa
 
Posts: 13
Joined: Thu Apr 18, 2013 8:59 pm

Re: Cross Compiler for MOI

Postby gfi » Sat Apr 20, 2013 11:53 am

TUISTERa Wrote:Is there any chance for us to get some user friendly cross compiler? I need it to compile latest dvblast, mine is 2.0 with broken mmi menus and can't get the ci to work . Gfi can you help about that ?


Hi,

buildroot is best for compilation for MOI. I tried all other cross tools...

You have already in MOI dvblast version 2.2 with dvblast_mmi.sh.

PATH: /usr/local/bin
files: dvblast22 (!)
dvblast_mmi.sh

# dvblast22 -V
DVBlast 2.2 (release)

----------------
But, If You want compile yours (upgraded), don't forget to libiconv path. In Makefile of dvblast missing path of libiconv for LD.
So, in line with
LDLIBS += lrt
add -liconv

+ of course add in CFLAGS props for s5pv210 cpu. Note: neon is disabled, so without neon...
+ includes (-I,-L), if you need or if your cross-compiler need that.
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

Next

Return to FAQ

Who is online

Users browsing this forum: No registered users and 0 guests