mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Bruno, Daniel" <DBruno@ac-magnetic.de>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] Mono with ptxdist for ARMv7 Cortex A8-AM335x
Date: Fri, 15 Nov 2013 14:21:14 +0100	[thread overview]
Message-ID: <776D8986F8FB5A45A6F82C1E4801FA6E012E3187FB08@ger-srv-mail.ac-magnetic.local> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 3253 bytes --]

Hi all,

we are using a phyCore-AM335x with an ARMv7 Cortex A8 processor on it.
We are using the build-tool ptxdist in the version 2012-03.0:

* BSP: using ptxdist-2012.03.0
* platform: using kernel from ti AM335x PSP 04.06.00.06
* platform: using u-boot/MLO from ti AM335x PSP 04.06.00.06

We already created and run successfully the first images / customized root file systems for the target.

At the moment we want to use/evaluate Mono. For Mono there is already a rule-file available which we also used to build it in our image/RFS. (here a link to the used rule-file: https://github.com/ringlej/ptxdist/blob/master/rules/mono.make)

In the first step we did not changed the configure-options. We also have seen the following workaround in the rule-file:

            # looks like we have to install this, otherwhise not even helloworld.cs does work
            @$(call install_copy, mono, 0, 0, 0755, \
                        $(MONO_DIR)/mcs/class/lib/monolite/mscorlib.dll, \
                        /usr/lib/mono/1.0/mscorlib.dll)

This one obviously looks like it is needed to run programs which have the target framework ".NET1.1" (not tested yet).
But we want to use programs which have at least the target framework 2.0 (or higher) - so we tried to run a simple "hello world" compiled with the target framework ".NET2.0" with the following result:

root@target:~/testing_mono/simple_hello_world/bin/Release mono simple_hello_world.exe
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/lib/mono/2.0/mscorlib.dll' directory.

So we had a new try by creating the mentioned directory "2.0" and coping the "mscorlib.dll" into this folder - this leads to the following result:

root@ target:~/testing_mono/simple_hello_world/bin/Release mono simple_hello_world.exe
Hello World!

So the simple "hello world" now is running on the target but since we also wanted to use some more "complex" programs which also uses some more (".NET") Library's we had another try with such a program - and we run in a lot of exceptions. The exceptions thrown are depending on the functions in the code we are using (using StringBuilder, Regex, Dictonary and so on) -
The exception thrown by the example-program looks like the following (source and binary's of the example-programs are attached):

root@target:~/testing_mono/testing_mono/bin/Release mono testing_mono.exe
Unhandled Exception: System.TypeLoadException: A type load exception has occurred.

We guess that the corresponding Mono(/.NET)-Libraries are missing/not in the image for the target. So we tried to edit the Mono-Rule-File or better spoken we edited the configure-options in the rule-file (e.g. added "-with-profile4=yes) but we did not had success yet.


So the questions now is - is there a "newer" Rule-file for Mono? Perhaps one which also includes the profiles4.
Or did we missed something while creating the image with Mono for the target?

Best regards,
Daniel Bruno

________________________________
Magnetic Autocontrol GmbH
(HRB Freiburg 670-426)
Grienmatt 20
79650 Schopfheim
Deutschland/Germany
Internet: http://www.ac-magnetic.com
Geschaeftsfuehrer /
Thomas Braunwalder

[-- Attachment #1.2: Type: text/html, Size: 14100 bytes --]

[-- Attachment #2: testing_mono.zip --]
[-- Type: application/x-zip-compressed, Size: 51272 bytes --]

[-- Attachment #3: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2013-11-15 13:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-15 13:21 Bruno, Daniel [this message]
2013-11-17 18:58 ` Michael Olbrich
2013-11-17 23:25   ` Dirk Schnitzler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=776D8986F8FB5A45A6F82C1E4801FA6E012E3187FB08@ger-srv-mail.ac-magnetic.local \
    --to=dbruno@ac-magnetic.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox