uartlite with 2.6.17 kernel and kernel early text messages
Robert Corley
rcorley at aegis-inc.net
Sat Oct 14 06:44:42 EST 2006
I am still trying to get the UARTLITE to work with 2.6 and a plb_temac design. I am using EDK 7.1. I have generated the edk files and copied xparameters_ml300.h to arch/ppc/platforms/4xx/xparameters.xparameters_ml403.h
In an effort to get past the "Rebooting to System ACE Configuration Address 6..." message, I have selected "support for early boot texts over serial port" in kernel debugging.
FYI, I'm using Peter's patches to create the uartlite.c and associated files and have selected the uartlite using make menuconfig.
The first error is as follows:
athena startup_network # make ARCH=ppc zImage.initrd
CHK include/linux/version.h
CHK include/linux/compile.h
dnsdomainname: Unknown host
CC arch/ppc/syslib/gen550_dbg.o
arch/ppc/syslib/gen550_dbg.c:36: error: `RS_TABLE_SIZE' undeclared here (not in a function)
arch/ppc/syslib/gen550_dbg.c:38: error: empty scalar initializer
arch/ppc/syslib/gen550_dbg.c:38: error: (near initialization for `rs_table')
arch/ppc/syslib/gen550_dbg.c:36: error: storage size of `rs_table' isn't known
arch/ppc/syslib/gen550_dbg.c:36: warning: 'rs_table' defined but not used
make[1]: *** [arch/ppc/syslib/gen550_dbg.o] Error 1
make: *** [arch/ppc/syslib] Error 2
so, I modified the gen550_dbg.c file to #include the xparameters.h, where the RS_TABLE_SIZE is defined
but still get more errors. Here they are:
CHK include/linux/version.h
CHK include/linux/compile.h
dnsdomainname: Unknown host
CC arch/ppc/syslib/gen550_dbg.o
arch/ppc/syslib/gen550_dbg.c:37: error: `XPAR_UARTNS550_0_CLOCK_FREQ_HZ' undeclared here (not in a function)
arch/ppc/syslib/gen550_dbg.c:37: error: initializer element is not constant
arch/ppc/syslib/gen550_dbg.c:37: error: (near initialization for `rs_table[0].baud_base')
arch/ppc/syslib/gen550_dbg.c:37: error: `XPAR_INTC_0_UARTNS550_0_VEC_ID' undeclared here (not in a function)
arch/ppc/syslib/gen550_dbg.c:37: error: initializer element is not constant
arch/ppc/syslib/gen550_dbg.c:37: error: (near initialization for `rs_table[0].irq')
arch/ppc/syslib/gen550_dbg.c:37: error: `XPAR_UARTNS550_0_BASEADDR' undeclared here (not in a function)
arch/ppc/syslib/gen550_dbg.c:37: error: initializer element is not constant
arch/ppc/syslib/gen550_dbg.c:37: error: (near initialization for `rs_table[0].iomem_base')
arch/ppc/syslib/gen550_dbg.c:37: error: initializer element is not constant
arch/ppc/syslib/gen550_dbg.c:37: error: (near initialization for `rs_table[0]')
make[1]: *** [arch/ppc/syslib/gen550_dbg.o] Error 1
make: *** [arch/ppc/syslib] Error 2
Questions:
1. Now, is this an issue with the UARTLITE driver or is it just not supported for early messaging?
2. What am I missing w.r.t. getting something out of the serial port?
3. I am assuming that the boot args for a initrd boot are: "console=ttyUL0 ip=off root=/dev/ram rw", correct?
-corley
More information about the Linuxppc-embedded
mailing list