[BusyBox] Serial port
David Meggy
dmeggy at techsol.ca
Wed Mar 24 22:15:59 UTC 2004
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 at techsol.ca
Tel: 604 946 TECH (8324)
Fax: 604 946 6445
~~~~~~~~~~~~~~~~~~~~~~~~
More information about the busybox
mailing list