* [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)?
@ 2008-01-16 8:25 Hakan Çakiroglu
2008-01-16 11:03 ` [ECOS] Reading serial ports with timeout Laurie Gellatly
2008-01-16 19:07 ` [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)? Andrew Lunn
0 siblings, 2 replies; 5+ messages in thread
From: Hakan Çakiroglu @ 2008-01-16 8:25 UTC (permalink / raw)
To: ecos-discuss
Is it posible to use nano-x server on Vmware template (i386)???
I know it is possible to use it with ipaq(I am not sure what ipaq is but somebody has ported for it.)
I 'm using vmware template and adding microwindows package to my template. Then I am compiling
one of the nano-x demos. But I always get the error message "cannot open graphics"
Is anybody tried this before???
_________________________________________________________________
Live.com'u deneyin - hýzlý ve kiþiselleþtirilmiþ giriþ sayfanýzla istediðiniz her þey tek bir yerde.
http://www.live.com/getstarted
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ECOS] Reading serial ports with timeout
2008-01-16 8:25 [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)? Hakan Çakiroglu
@ 2008-01-16 11:03 ` Laurie Gellatly
2008-01-16 19:07 ` [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)? Andrew Lunn
1 sibling, 0 replies; 5+ messages in thread
From: Laurie Gellatly @ 2008-01-16 11:03 UTC (permalink / raw)
To: ecos-discuss
Hi All,
On my LPC2212 board I have serial 1 running at 115K baud.
The data coming into the port is CRC checked.
What we've found is that when the micro at the other end of the serial sends
a packet,
(say 60 bytes) about 10% of the time, one of the characters in the data
stream is missed.
I can sniff the line and see the characters are all there, but my
application misses one at random.
The serial port is interrupt driven. We don't use the 16 char FIFO.
Our code does this:
while( iDataItr < L2OVERHEADSIZE-1 ) { // need more chars
cyg_io_get_config(ser_handle, CYG_IO_GET_CONFIG_SERIAL_BUFFER_INFO,
&serial_buffer_info, &iLen); // How many available?
while( (serial_buffer_info.rx_count != 0) && (iDataItr <
L2OVERHEADSIZE-1) ){ // There are some ready and we need them
cyg_io_read( ser_handle, &ucHeader[iDataItr++], &iNumBytesToRead );
//blocking read 1 char in
cyg_io_get_config(ser_handle, CYG_IO_GET_CONFIG_SERIAL_BUFFER_INFO,
&serial_buffer_info, &iLen); // How many available now?
}
ulTimeNow = cyg_current_time(); // What the time now
if( (ulTimeNow - ulTimeStart) > iTimeToWait ){ // Has it taken too long to
read them in (timeout)?
printf( "Error: processRXPacket(): Header timeout!!\n");
return PROCESSRX_TIMEOUT;
}
}
Which is basically,
While we have more data to get, get the number of characters ready to be
read.
While there are characters available and we need more
read the next 1 character and add it to the buffer
find out how many characters are ready to be read now?
Get the current time
check to see if its been too long to get this data
When I looked at eCos' PPP implementation I see it uses cyg_alarm_xxx and
just blocks on a cyg_io_read
Is that the 'right' way to do this? Can someone see a flaw in the existing
code?
Many thanks ...Laurie:{)
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)?
2008-01-16 8:25 [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)? Hakan Çakiroglu
2008-01-16 11:03 ` [ECOS] Reading serial ports with timeout Laurie Gellatly
@ 2008-01-16 19:07 ` Andrew Lunn
2008-01-16 21:02 ` Hakan Çakiroglu
1 sibling, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2008-01-16 19:07 UTC (permalink / raw)
To: Hakan ?akiroglu; +Cc: ecos-discuss
On Wed, Jan 16, 2008 at 08:25:03AM +0000, Hakan ?akiroglu wrote:
>
>
> Is it posible to use nano-x server on Vmware template (i386)???
Never tried it, but should be. Look at the components:
CYGPKG_MICROWINDOWS_PC, CYGIMP_MICROWINDOWS_PCSVGA16, and
CYGIMP_MICROWINDOWS_PCVGA.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)?
2008-01-16 19:07 ` [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)? Andrew Lunn
@ 2008-01-16 21:02 ` Hakan Çakiroglu
2008-01-18 5:11 ` Hakan Çakiroglu
0 siblings, 1 reply; 5+ messages in thread
From: Hakan Çakiroglu @ 2008-01-16 21:02 UTC (permalink / raw)
To: ecos-discuss
I am still working on it. There is no conflicts on package and component selection. I dont think it is beacuse of packages. I think it can not start nano-x server. I dont know if nano-x server really start or not. I am still on it. Thank you for your reply. At least it is good to know that nano-x works on vmware. So I can continue working....
> Date: Wed, 16 Jan 2008 20:07:31 +0100
> From: andrew@lunn.ch
> To: ha_cakiroglu@hotmail.com
> CC: ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)?
>
> On Wed, Jan 16, 2008 at 08:25:03AM +0000, Hakan ?akiroglu wrote:
>>
>>
>> Is it posible to use nano-x server on Vmware template (i386)???
>
> Never tried it, but should be. Look at the components:
> CYGPKG_MICROWINDOWS_PC, CYGIMP_MICROWINDOWS_PCSVGA16, and
> CYGIMP_MICROWINDOWS_PCVGA.
>
> Andrew
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
________________________________
Windows Live Mail'i ilk deneyenlerden olun. Windows Live Mail.
_________________________________________________________________
Live.com'u deneyin: çevrimiçi dünyanýzý bir araya getirin; haberler, spor, hava durumu ve çok daha fazlasý.
http://www.live.com/getstarted
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)?
2008-01-16 21:02 ` Hakan Çakiroglu
@ 2008-01-18 5:11 ` Hakan Çakiroglu
0 siblings, 0 replies; 5+ messages in thread
From: Hakan Çakiroglu @ 2008-01-18 5:11 UTC (permalink / raw)
To: ecos-discuss
Hi there;
1.situation
I was trying to do the following :
-First build redboot with default settings by using ecosconfig.exe for i386 (working from floopy)
- After that I was building my template (vmware) (microwindows packet is included) from ecoscofig.exe
from build library option.
- And I was compiling my demo program (polytest.c) with the help of vmware .ecc
There was no problem in the building section.
-After that I am booting my virtual pc (vmware) with redboot
-And than I am taking my compiled .srec file to booted virtual pc with the command "load a.srec"
-Finally I am giving the command "go" to run the program.
I was taking error message "cannot open graphics"
I have continued searching.....
I couldnt find anything but I have tried this after;
2.situation
-I have only changed my template : I have added build complete ecos+microwindows application settings, build microwindows NANOWM and Build microwindows NanoX demos and built it again by selecting build library.
No problem in built section.
-This time I have sended xx/xx_install/bin/xx.elf to redboot and gived the command "go"
But this time I am taking this output :
Creating System threads
Creating Nano-X server thread
Creating Nano-WM thread
Starting Threads
Starting Nano-X server
Starting Nano-WM
No Video BIOS information at location 0x000A0000
Please use asuitably configured Redboot for bootstrap
Cannot initialise screen
At that position I have two question.
1- In first situation why no threads have started? Is it because of polytest.c ? But it is ok in nanox demos section???
2-OK may be it is wrong to compile only polytest.c to see some result but why I am taking this error in the second situation ?? (No Video BIOS information at location 0x000A0000
Please use asuitably configured Redboot for bootstrap
Cannot initialise screen)
I have looked into /packages/services/gfx/mw/current/src/drivers/scr_ecospcsvga.c
It says:
............However the video
BIOS can normally only be called in x86 real mode, not protected mode,
Currently eCos only runs in protected mode, and has no support for
briefly switching back into real mode.
Can anyone tell me how to build redboot bootstrap that supports me???
(And I have also tried unchecking OUTPUT TO PC SCREEN and checking switch the display to an alterative video mode. This must be the solution but this time there is no output in my pc screen. )
Can somebody help me????
Thank you...
_________________________________________________________________
Live.com'u deneyin: çevrimiçi dünyanýzý bir araya getirin; haberler, spor, hava durumu ve çok daha fazlasý.
http://www.live.com/getstarted
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-18 5:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-16 8:25 [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)? Hakan Çakiroglu
2008-01-16 11:03 ` [ECOS] Reading serial ports with timeout Laurie Gellatly
2008-01-16 19:07 ` [ECOS] Is it posible to use Nano-X packet on Vmware template (i386)? Andrew Lunn
2008-01-16 21:02 ` Hakan Çakiroglu
2008-01-18 5:11 ` Hakan Çakiroglu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).