Beagleboard Mono

Hi,

I compiled the mono for beagleboard with scratchbox. simple “hello world” application works fine, but simple serial port application give an error. Error message below

Unhandled Exception: System.DllNotFoundException: libMonoPosixHelper.so
at (wrapper managed-to-native) System.IO.Ports.SerialPortStream:open_serial (string)
at System.IO.Ports.SerialPortStream…ctor (System.String portName, Int32 baudRate, Int32 dataBits, Parity parity, StopBits stopBits, Boolean dtrEnable, Boolean rtsEnable, Handshake handshake, Int32 readTimeout, Int32 writeTimeout, Int32 readBufferSize, Int32 writeBufferSize) [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPortStream:.ctor(string,int,int,System.IO.Ports.Parity,System.IO.Ports.StopBits,bool,bool,System.IO.Ports.Handshake,int,int,int,int)
at System.IO.Ports.SerialPort.Open () [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:Open ()
at serial.MainClass.Main (System.String[] args) [0x00000]

libMonoPosixHelper.so is “/lib” and “/usr/lib” and “/usr/local/lib”, but it can not find libMonoPosixHelper.so.

can anybody help me…

mehmet gocer,

Does the mono in the angstrom feeds give the same error?

regards,

Koen

Hi,

I compiled the mono for beagleboard with scratchbox. simple "hello world"
application works fine, but simple serial port application give an error.
Error message below

Can you provide the sources or at least the binary so that we may try
this out? Some of us that might like to help don't have any simple
serial port apps for Mono.

I compiled linux kernel for beagleboard, kernel 2.6.26-omap1. i download kernel patch “http://muru.com/linux/omap/” site.
simple serialport application code:

using System;
using System.IO.Ports;

namespace serial
{
class MainClass
{
public static void Main(string[] args)
{
SerialPort com = new SerialPort("/dev/ttyS2",115200);
com.Parity = Parity.None;
com.StopBits = StopBits.One;
com.Handshake = Handshake.None;

com.Open();
com.Write(“Test\r”);
com.Close();
}
}
}