public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* Re: newbie...please help.....
@ 2002-09-26  8:45 teo_icKs
  2002-10-01  8:44 ` thanks for ur help Seemanta Dutta
  0 siblings, 1 reply; 4+ 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] 4+ messages in thread
* Re: 286 xterm?
@ 2002-09-10 18:55 Dan Olson
  2002-09-17 16:33 ` newbie...please help Seemanta Dutta
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Olson @ 2002-09-10 18:55 UTC (permalink / raw)
  To: Linux-8086 - ELKS

> AFAICR Ethernet only became popular with the arrival of Win 3.11 on 386s.
> All those loose 10Mb ethernet cards are much later vintage, I suspect from
> the switch between 10Mb/s and 100Mb/s.
>
> I don't know how many <=286s were retro-fitted with ethernet though and
> as 10Mb cards are now seen as worthless I don't suppose it matters.

I guess a little of this stuff is somewhat before my time, but I seem to
recall ethernet being popular with Novell Netware for drive sharing and
printer sharing with MS DOS.  For example, my high school had a netware
server with all the applications on it, and many of the school's computers
just booted off a floppy, loaded the network drivers, then ran everything
from the server.  The network included everything from origional PCs and
Tandy 1000s to newer (at that time) 386s and 486s.  I have a few 3 Com
etherlink cards (not etherlink II) that are full length 8 bit cards that
required a manual jumper to select thicknet (DB15) or ten-base-2 (coax).

	Dan


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

end of thread, other threads:[~2002-10-01 10:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-26  8:45 newbie...please help teo_icKs
2002-10-01  8:44 ` thanks for ur help Seemanta Dutta
2002-10-01 10:19   ` Paul Nasrat
  -- strict thread matches above, loose matches on Subject: below --
2002-09-10 18:55 286 xterm? Dan Olson
2002-09-17 16:33 ` newbie...please help Seemanta Dutta

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