Skip to contentSkip to conversation

Serial terminal help

DISCUSSION Pat Gilliland 5 participants 9 messages Oct 8, 2002 – Nov 13, 2002 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

What I am trying to do is control a headless linux box using my 8088 laptop (ELKS 0.1.0) over a serial cable.

http://www.sorgonet.com/8086/8088_linux_dumb_terminal/ describes how to do this using dos and kermit terminal emulator on the 8088. I have done this proving the linux setup is good but I would much prefer an ELKS solution for the laptop side.

I have sucessfully telnetted into the linux box using a SLIP connection (thanks Harry) but I would prefer not to run telnetd or similar services on the linux box.

I suspect this should be simple to do but rtfm and google have just left me confused.

Thanks for any help you can provide.

Pat Gilliland

#2 lore raw
In reply to a message not in the archive

Much appreciated. Blaz suggested I do the same. (touche Blaz)

http://microcomLinux.homestead.com/index~ns4.html has a 27k emulator I am trying to rework. Figuring out how/if bcc implements fd_set is my main hold up but then I've only just started and I'm no programmer. ;)

If I succeed, I'll post back to the list.

Pat Gilliland

Quoted 11 lines · Paul Nasrat
Quoted 4 lines · Pat Gilliland

What I am trying to do is control a headless linux box using my 8088 laptop (ELKS 0.1.0) over a serial cable.

Thanks for any help you can provide.

Looks as if c-kermit should be compilable under bcc, I'll have an attempt to create the appropriate makefile entry, and any patches needed.

Paul

Signature · 8 lines
This communication is intended to be received only by the individual
or entity to whom or to which it is addressed and contains information
that is privileged and confidential.  Any unauthorized use, copying,
review or disclosure is prohibited.  Please notify the sender
immediately
if you have received this communication in error.

Contents of this message Copyright 2002 Patrick Gilliland
#3 lore raw
Quoted 5 lines · Pat Gilliland

Much appreciated. Blaz suggested I do the same. (touche Blaz)

http://microcomLinux.homestead.com/index~ns4.html has a 27k emulator I am trying to rework. Figuring out how/if bcc implements fd_set is my main hold up but then I've only just started and I'm no programmer. ;)

http://www.funet.fi/pub/minix/communications/

mcom1.5c.tar.Z will run on minix i86, so with a bit of makefile tweaking and some #ifdef's or so we should be able to get it on elks.

I'm just playing with the makefile now.

Also gkermit compiles fine out of the box with make CC=bcc. But can't test this atm.

Paul

#4 lore raw
In reply to Pat Gilliland
Quoted 4 lines · Pat Gilliland

http://www.sorgonet.com/8086/8088_linux_dumb_terminal/ describes how to do this using dos and kermit terminal emulator on the 8088. I have done this proving the linux setup is good but I would much prefer an ELKS solution for the laptop side.

you don't need a terminal emulator, just a a program to talk to the serial port, since elks can do vt52 emulation well

Quoted 2 lines

I suspect this should be simple to do but rtfm and google have just left me confused.

thats strange, enter +elks +serial +terminal into google :)

http://acid.ch.pw.edu.pl/~sq5bpf/elks/ has a serial terminal. use version 0.2 if you have a recent elks kernel with select(), or 0.1 if you don't.

jacek

#5 lore raw

assembling programs under as86..

greeting all linux gurus....

i am a newbie to as86 although i have extensively used masm for assembling 8086 programs under linux....

i wrote a simple program like this..

! a simple as86 program..

.data
db 0x32 ! some data...

.text

foo:

	mov ax,0x1234
	mov bx,ax
	inc bx

this was all...when i assembled it i got no error but while linking..i got 'unable to find start' error...

i am confused..even the man page does not clarify all things.. i have used masm..so is there any command line parameter that will switch as86 to masm like mode???

otherwise please tell me where is my mistake..please tell me what are the various steps to produce assemly programs under as86,.i know this is a very silly question to ask...but forgive me...i shall be ever be indebted to u for this....

a linux newbie, eager to learn...

seemanta

#6 lore raw

Re: assembling_programs_under_as86..

http://www.tldp.org/HOWTO/Assembley-HOWTO/index.html
has an 'hello world' in the index so that should get you started.
Wrox 'Beginning Linux Programming' seems to be rather good for all languages
Tom

--- Seemanta Dutta <[email protected]> wrote: > greeting all linux gurus....

Quoted 40 lines

i am a newbie to as86 although i have extensively
used masm for assembling
8086 programs under linux....

i wrote a simple program like this..

! a simple as86 program..

.data
db 0x32 ! some data...

.text

foo:

	mov ax,0x1234
	mov bx,ax
	inc bx

this was all...when i assembled it i got no error
but while linking..i got
'unable to find start' error...

i am confused..even the man page does not clarify
all things..
i have used masm..so is there any command line
parameter that will switch
as86 to masm like mode???

otherwise please tell me where is my mistake..please tell me what are the
various steps to produce assemly programs under as86,.i know this is a
very silly question to ask...but forgive me...i shall be ever be indebted
to u for this....

a linux newbie, eager to learn...

Quoted 8 lines

seemanta

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to [email protected] More majordomo info at

http://vger.kernel.org/majordomo-info.html

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

#9 lore raw
In reply to Jacek Lipkowski

Well 2 emails to Jacek directly have failed after sitting for 4 days on the server so I'll say it here.

Thanks very much for st it works very well except that all i/o appears on one line. e.g. "ls" will print everything on one line "vi xyz" will print the whole file on one line in the vi window (most of the time, once or twice it has seemed to work properly) BUT just "vi" will open normally with the usual screen and allow normal full page editing. I suspect it's a problem with the terminal setup on the remote box rather than st. I will post back when I get it figured out.

Quoted 25 lines · Jacek Lipkowski
Quoted 4 lines · Pat Gilliland

http://www.sorgonet.com/8086/8088_linux_dumb_terminal/ describes how to do this using dos and kermit terminal emulator on the 8088. I have done this proving the linux setup is good but I would much prefer an ELKS solution for the laptop side.

you don't need a terminal emulator, just a a program to talk to the serial port, since elks can do vt52 emulation well

Quoted 2 lines

I suspect this should be simple to do but rtfm and google have just left me confused.

thats strange, enter +elks +serial +terminal into google :)

http://acid.ch.pw.edu.pl/~sq5bpf/elks/ has a serial terminal. use version 0.2 if you have a recent elks kernel with select(), or 0.1 if you don't.

jacek

-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 8 lines
This communication is intended to be received only by the individual
or entity to whom or to which it is addressed and contains information
that is privileged and confidential.  Any unauthorized use, copying,
review or disclosure is prohibited.  Please notify the sender
immediately
if you have received this communication in error.

Contents of this message Copyright 2002 Patrick Gilliland
#8 lore raw

Re: assembly under as86...

In reply to Seemanta Dutta

http://www.linux.org/docs/ldp/howto/Assembly-HOWTO/hello.html
will give you two examples - you will have to read further into as86 documentaton to see the exact format for as86 but

global _start
_start:

whould be a close guess for the start label The book I mentioned did not actually cover assemler as it is Linux and not machine specific

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

#7 lore raw

assembly under as86...

In reply to Seemanta Dutta

greetings all linux gurus....

i followed ur links given by u and would like to thank u for the help... as for the book..i am still trying to get my hands over it...

at this stage i am able to assemble my as86 programs nicely..without ant errors...but linking them with ld86 gives the following error:

no start symbol found

do i have to export or .global any label?? what is the default label for as86 programs?? is not it _start??

i tried using that nad exporting it..but still that gave this error while linking...

please help me with this linking part..i shall always be indebted to you...otherwise using as and ld are going fine by me...what bugs me is this as86 and ld86....please show me the way...

thanks in advance...
seemanta

-------------------------------------------------------------------------------
To iterate is human, to recurse divine.
-Anonymous
-------------------------------------------------------------------------------