
Getting Started
38
»
Run
make
to compile the serial driver module:
»
With some kernel versions header files may not be found while
make
is compiling.
For example, if
stdarg.h
is not found:
-
Search for the file:
static struct uart_99100_contxt uart_99100_contxts[] = {
//Port 0
{
.rx_dma_en= 0,
.tx_dma_en=
0,
.uart_mode= AX99100_RS232_MODE,
.en_flow_control= 0,
.flow_ctrl_type = AX99100_RTS_CTS_HW_FLOWCONTROL,
.rxfifotrigger= 64,
.txfifotrigger= 64,
.x_on = SERIAL_DEF_XON,
.x_off= SERIAL_DEF_XOFF,
.ltc2872_te485 = 0,
.ltc2872_dz = 0,
.ltc2872_lb = 0,
.ltc2872_fen = 0,
.pci_config_l0s= 0,
.pci_config_l1 = 0,
},
//Port 1
{
.rx_dma_en= 0,
.tx_dma_en= 0,
.uart_mode= AX99100_RS422_MODE,
.en_flow_control= 0,
.flow_ctrl_type = AX99100_RTS_CTS_HW_FLOWCONTROL,
.rxfifotrigger = 64,
.txfifotrigger = 64,
.x_on = SERIAL_DEF_XON,
.x_off= SERIAL_DEF_XOFF,
.ltc2872_te485 = 0,
.ltc2872_dz = 0,
.ltc2872_lb = 0,
.ltc2872_fen = 0,
.pci_config_l0s= 0,
.pci_config_l1 = 0,
},
};
$
make
$
cd /usr/lib/gcc/
$
find . -name stdarg.h