[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] Serial port
From:       David Meggy <dmeggy () techsol ! ca>
Date:       2004-03-24 22:15:59
Message-ID: 1080166559.436.123.camel () DavidAsus
[Download RAW message or body]

On Wed, 2004-03-24 at 13:07, Patrick Ribault wrote:
> Hi all,
> 
> I'm currently trying to put getty from busybox on the serial port of my
> embedded PC.
> 
> I succeed on COM1 and COM2; but in order to run it from COM3 and COM4
> I need to initialise these ports during the kernel boot.

These are DOS names.  On linux the serial ports are /dev/ttyS0,
/dev/ttyS1, etc.

> To do that, I need to run the following code
> ComAddr[0] = 0;
> ComAddr[1] = 0x3F8;
> ComAddr[2] = 0x3E8;
> ComAddr[3] = 0x2E8;
> ComAddr[8] = ((ComAddr[8] & 0xF1FF) | 0x0600);	
>
> Does anyone could explain where I need to launch that code?
> And how to compile it (normal gcc, static?)

This is all kernel code, and is out of the realm of Busybox.  You should
take a look at linux/drivers/serial/

David

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
     David Meggy
     Engineering

Technical Solutions Inc.
Unit #1 7157 Honeyman St
Delta BC Canada, V4G 1E2
     www.techsol.ca

eMail: dmeggy@techsol.ca
Tel: 604 946 TECH (8324)
Fax: 604 946 6445
~~~~~~~~~~~~~~~~~~~~~~~~



_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic