[BusyBox] Serial port
Patrick Ribault
pribault at wanadoo.fr
Wed Mar 24 21:07:18 UTC 2004
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.
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?)
Thanks
Patrick.
More information about the busybox
mailing list