<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:10pt"><div>Greeting all,<br><br>I am developing my application on TQM8xxL with linux kernel 2.6.11.7 and&nbsp; tosatti.patch file. It can run on TQM8xxL. But I want to recompile uart driver as loadable module, there are problem while linking object file belows:<br><br>_ I configured kernel to supporting loadable module:<br><br><span style="font-style: italic;">#</span><br style="font-style: italic;"><span style="font-style: italic;"># Loadable module support</span><br style="font-style: italic;"><span style="font-style: italic;">#</span><br style="font-style: italic;"><span style="font-style: italic;">CONFIG_MODULES=y</span><br style="font-style: italic;"><span style="font-style: italic;">CONFIG_MODULE_UNLOAD=y</span><br style="font-style: italic;"><span style="font-style: italic;">CONFIG_MODULE_FORCE_UNLOAD=y</span><br
 style="font-style: italic;"><span style="font-style: italic;">CONFIG_OBSOLETE_MODPARM=y</span><br style="font-style: italic;"><span style="font-style: italic;">CONFIG_MODVERSIONS=y</span><br style="font-style: italic;"><span style="font-style: italic;"># CONFIG_MODULE_SRCVERSION_ALL is not set</span><br style="font-style: italic;"><span style="font-style: italic;">CONFIG_KMOD=y</span><br><br>_ And configured uart driver as loadable module:<br><br><span style="font-style: italic;">#</span><br style="font-style: italic;"><span style="font-style: italic;"># Character devices</span><br style="font-style: italic;"><span style="font-style: italic;">#</span><br style="font-style: italic;"><span style="font-style: italic;"># CONFIG_VT is not set</span><br style="font-style: italic;"><span style="font-style: italic;"># CONFIG_SERIAL_NONSTANDARD is not set</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">#</span><br
 style="font-style: italic;"><span style="font-style: italic;"># Serial drivers</span><br style="font-style: italic;"><span style="font-style: italic;">#</span><br style="font-style: italic;"><span style="font-style: italic;"># CONFIG_SERIAL_8250 is not set</span><br style="font-style: italic;"><br style="font-style: italic;"><span style="font-style: italic;">#</span><br style="font-style: italic;"><span style="font-style: italic;"># Non-8250 serial port support</span><br style="font-style: italic;"><span style="font-style: italic;">#</span><br style="font-style: italic;"><span style="font-style: italic;">CONFIG_SERIAL_CORE=m</span><br style="font-style: italic;"><span style="font-style: italic;">CONFIG_SERIAL_CPM=m</span><br style="font-style: italic;"><span style="font-style: italic;">CONFIG_UNIX98_PTYS=y</span><br style="font-style: italic;"><span style="font-style: italic;"># CONFIG_LEGACY_PTYS is not set</span><br><br>_ And after compiling kernel image successful, I
 compiled modules, these following warning appeared:<br><br><span style="font-style: italic;">[root@main linux-2.6.11.7_src]# make ARCH=ppc CROSS_COMPILE=ppc_8xx- modules</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; CHK&nbsp;&nbsp;&nbsp;&nbsp; include/linux/version.h</span><br style="font-style: italic;"><span style="font-style: italic;">make[1]: `arch/ppc/kernel/asm-offsets.s' is up to date.</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; CC [M]&nbsp; drivers/serial/serial_core.o</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; CC [M]&nbsp; drivers/serial/cpm_uart/cpm_uart_core.o</span><br style="font-style: italic;"><span style="font-style: italic;">drivers/serial/cpm_uart/cpm_uart_core.c:732: warning: `cpm_uart_init_smc' defined but not used</span><br style="font-style: italic;"><span style="font-style: italic;">drivers/serial/cpm_uart/cpm_uart_core.c:671: warning:
 `cpm_uart_init_scc' defined but not used</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; CC [M]&nbsp; drivers/serial/cpm_uart/cpm_uart_cpm1.o</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; LD [M]&nbsp; drivers/serial/cpm_uart/cpm_uart.o</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; Building modules, stage 2.</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; MODPOST</span><br style="font-style: italic;"><span style="font-style: italic;">*** Warning: "cpm_setbrg" [drivers/serial/cpm_uart/cpm_uart.ko] undefined!</span><br style="font-style: italic;"><span style="font-style: italic;">*** Warning: "m8xx_cpm_hostalloc" [drivers/serial/cpm_uart/cpm_uart.ko] undefined!</span><br style="font-style: italic;"><span style="font-style: italic;">*** Warning: "cpmp" [drivers/serial/cpm_uart/cpm_uart.ko] undefined!</span><br style="font-style: italic;"><span
 style="font-style: italic;">&nbsp; CC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; drivers/serial/cpm_uart/cpm_uart.mod.o</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; LD [M]&nbsp; drivers/serial/cpm_uart/cpm_uart.ko</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; CC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; drivers/serial/serial_core.mod.o</span><br style="font-style: italic;"><span style="font-style: italic;">&nbsp; LD [M]&nbsp; drivers/serial/serial_core.ko</span><br style="font-style: italic;"><span style="font-style: italic;">[root@main linux-2.6.11.7_src]#</span><br><br>_ I don't know why It can't linking with the symbols <span style="font-style: italic;">cpm_setbrg, m8xx_cpm_hostalloc, cpmp</span>. Although these were implemented on commproc.c and has been compiled as commproc.o in arch/ppc/8xx_io/ folder of kernel source file.<br><br>Anyone can help me to fix it.<br><br>Thanks,<br>Nam Ho.<br></div></div><br>

<hr size=1>Check out <a href="http://us.rd.yahoo.com/evt=43257/*http://advision.webevents.yahoo.com/mailbeta">the all-new Yahoo! Mail beta</a> - Fire up a more powerful email and get things done faster.</body></html>