[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Kernel compile error with RS485



So I figured out that I have to recompile the kernel with ser3
(/dev/ttys3) enabled to use the port. I also turned on RS485 support.
But now the kernel compile with "make kernel" fails. I thought I caught
a bug in 

/usr/local/axis/devboard_lx/os/linux/arch/cris/drivers/serial.h

where CONFIG_RS485 should probably be CONFIG_ETRAX_RS485.

But it still would not compile. Here is the error after I made the above
change. Is RS485 support complete on the devboard?

Thanks,

Ujwal

make[3]: Entering directory
`/usr/local/axis/devboard_lx/os/linux/arch/cris/drivers
'
/usr/local/cris/lib/gcc-lib/cris/2.96/gcc -D__KERNEL__
-I/usr/local/axis/devboard_l
x/os/linux/include -Wstrict-prototypes -O2 -fomit-frame-pointer
-march=v10 -fno-str
ict-aliasing -pipe -D__linux__    -c -o ethernet.o ethernet.c
/usr/local/cris/lib/gcc-lib/cris/2.96/gcc -D__KERNEL__
-I/usr/local/axis/devboard_l
x/os/linux/include -Wstrict-prototypes -O2 -fomit-frame-pointer
-march=v10 -fno-str
ict-aliasing -pipe -D__linux__    -c -o serial.o serial.c
In file included from serial.c:242:
serial.h:87: field `rs485' has incomplete type
serial.c: In function `e100_enable_rs485':
serial.c:786: dereferencing pointer to incomplete type
serial.c:787: dereferencing pointer to incomplete type
serial.c:788: dereferencing pointer to incomplete type
serial.c:789: dereferencing pointer to incomplete type
serial.c: At top level:
serial.c:795: warning: `struct rs485_write' declared inside parameter
list
serial.c:795: warning: its scope is only this definition or declaration,
which is p
robably not what you want.
serial.c: In function `e100_write_rs485':
serial.c:801: dereferencing pointer to incomplete type
serial.c:803: variable `wait' has initializer but incomplete type
serial.c:803: warning: excess elements in struct initializer
serial.c:803: warning: (near initialization for `wait')
serial.c:803: warning: excess elements in struct initializer
serial.c:803: warning: (near initialization for `wait')
serial.c:803: storage size of `wait' isn't known
serial.c:815: structure has no member named `timeout'
serial.c:818: structure has no member named `timeout'
serial.c:820: dereferencing pointer to incomplete type
serial.c:820: dereferencing pointer to incomplete type
serial.c: In function `rs_ioctl':
serial.c:2386: `TIOCSERSETRS485' undeclared (first use in this function)
serial.c:2386: (Each undeclared identifier is reported only once
serial.c:2386: for each function it appears in.)
serial.c:2388: sizeof applied to an incomplete type
serial.c:2395: `TIOCSERWRRS485' undeclared (first use in this function)
serial.c:2397: sizeof applied to an incomplete type
serial.c:2402: warning: passing arg 2 of `e100_write_rs485' from
incompatible point
er type
make[3]: *** [serial.o] Error 1
make[3]: Leaving directory
`/usr/local/axis/devboard_lx/os/linux/arch/cris/drivers'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory
`/usr/local/axis/devboard_lx/os/linux/arch/cris/drivers'
make[1]: *** [_dir_arch/cris/drivers] Error 2
make[1]: Leaving directory `/usr/local/axis/devboard_lx/os/linux'
make: *** [kernel] Error 2
[ujwal@kurukshetra devboard_lx]$ cd -
/usr/local/axis/devboard_lx/os/linux
[ujwal@kurukshetra linux]$ cd -
/usr/local/axis/devboard_lx
[ujwal@kurukshetra devboard_lx]$