Linux-8086 Development Archive on lore.kernel.org
 help / color / mirror / Atom feed
* 286 xterm?
@ 2002-08-25 18:54 Bardelli Luigi
  2002-08-25 21:42 ` Stefan de Konink
  0 siblings, 1 reply; 29+ messages in thread
From: Bardelli Luigi @ 2002-08-25 18:54 UTC (permalink / raw)
  To: Linux-8086

Dear all,

     I'm totally new to the world of 286 & Linux, and I would like to ask
you something:
it is possible to use a 286 machine as a normal X-term?
I'd like to use it together with a "normal" linux-box: every application
will run one the 
remote machine.

Thank you
      Luigi

PS: Beg pardon if it is not the right place to post...



^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: newbie...please help.....
@ 2002-09-26  8:45 teo_icKs
  0 siblings, 0 replies; 29+ messages in thread
From: teo_icKs @ 2002-09-26  8:45 UTC (permalink / raw)
  To: ELKS mailing list

hi, 

if you want to make bin in ELKS (and you haven't its libc)you must use
its include file with bcc and then statically link file object in your
app;
First of all install ELKS source files (for ex. /usr/src/elks) in your
linux
environment; instead use bcc in this way:

bcc -0 -ansi -I/usr/bcc/include/ -I/usr/src/elks/include/ -o
Parallela  	          parallela.c /usr/src/elks/arch/i86/lib/outportb.o

the modified source code of your app...

#include<arch/io.h>   /* is the correct position of io.h in ELKS */
#include<unistd.h> 
int main() 
{ 
       /*- ioperm(0x378,3,1);  to enable access to the parallel port.. 
				not implement				*/
	
       for(;;){ 
       		outb(0x88,0x378); /* writing 0x88 or 10001000b to the data 
            	                     pins..thereby lighting the LEDs.... */
       } 
} 

before this you must compile the implementation of outb function; this
is an assembly file in the source code of ELKS kernel. 
If have you compiled the Kernel ..... good 
(you can link directly the object file> outportb.o)
else learn to make it!!!! :-)

If you have the small version of libc, don't you need to statically link
it in your app.

> whenever i am running the above program after compiling thru gcc...i get 
> the LEDs lighted, alright...but the other LEDs that are not supposed 
> to light up..also light up and then light off..although very fast...for 
> example if i write hex F8 on the data port... 
> what i should get is this: on on on on on off off off in my LEDs... 
> but the last three LEDs switch between on and off states very fast..thus 
> what i get actually is a series of alternating F8 and FF in my 
> LEDs...can u suggest any thing??? 

THis effect is probably caused by another process who use this port;
Kill all suspected process and try it again! ....:-0
With ELKS kernel and the code that I have fixed, this problem there
isn't.

Now I don't know what process could uses your parallel port...  

however in Linux kernel, use this port with read, write, open and the
other syscall! It's safer then the direct access to register.

teo_icKs    ....    ....     ....    .....    ....
______________________________________________________________________
Scarica il nuovo Yahoo! Messenger: con webcam, nuove faccine e tante altre novità.
http://it.yahoo.com/mail_it/foot/?http://it.messenger.yahoo.com/

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2002-09-26  8:45 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-25 18:54 286 xterm? Bardelli Luigi
2002-08-25 21:42 ` Stefan de Konink
2002-08-25 21:54   ` Riley Williams
2002-08-25 22:31     ` Stefan de Konink
2002-09-01  6:28   ` Dan Olson
2002-09-01  9:48     ` Luigi Bardelli
2002-09-01 19:10       ` Rob Helmer
2002-09-01 19:06         ` Stefan de Konink
2002-09-01 19:29     ` Paul Nasrat
2002-09-02  9:44     ` Feher Tamas
2002-09-02 23:31       ` Gavin
2002-09-03  2:23         ` Gregg C Levine
2002-09-03  9:11         ` Feher Tamas
2002-09-03 16:59         ` Blaz Antonic
2002-09-03  9:23           ` Gavin
2002-09-03 17:17             ` Chad Page
2002-09-05 19:45               ` Robert de Bath
2002-09-05 20:17                 ` Francois Gurin
2002-09-05 20:18                 ` Dan Olson
2002-09-06  4:23                   ` Gregg C Levine
2002-09-10  5:44                     ` Robert de Bath
2002-09-10 18:55                       ` Dan Olson
2002-09-12 15:30                         ` Jacek Lipkowski
2002-09-17 16:33                         ` Seemanta Dutta
2002-09-17 16:33                         ` newbie...please help Seemanta Dutta
2002-09-10 21:47                       ` 286 xterm? kees
2002-09-05 21:02                 ` Chad Page
2002-09-03 16:17           ` Bardelli Luigi
  -- strict thread matches above, loose matches on Subject: below --
2002-09-26  8:45 newbie...please help teo_icKs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox