Hi,<br />&nbsp;&nbsp;&nbsp; My host machine kernel was 2.4.28 and the PowerPC board was 2.4.25-rthal5. I followed&nbsp; the Standard Makefile for 2.4(&lt;=) kernels<span style="font-weight: bold;"> </span>on the page http://kernelnewbies.org/FAQ/LinuxKernelModuleCompile?highlight=%28insmod%29, and do some changes based on my situation:<br /><br />TARGET := hello<br />INCLUDE := -I/lib/modules/2.4.25-rthal5/build/include<br />CFLAGS := -O2 -Wall -DMODULE -D__KERNEL__ -DLINUX<br />CC := powerpc-linux-gcc<br /><br />${TARGET}.o: ${TARGET}.c<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(CC) $(CFLAGS) ${INCLUDE} -c ${TARGET}.c<br /><br />The problem is still "insmod: unresolved symbol printk". But when I logged in the PowerPC board, and # fgrep 'printk' /proc/ksyms, there was "c0015500 printk_Rdd132261".<br /><br /><br /><br /><b><i>Olof Johansson &lt;olof@lixom.net&gt;</i></b> :<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px;
 padding-left: 5px;"> On Thu, Jun 22, 2006 at 10:31:56PM +0800, Zhou Rui wrote:<br />&gt; Hi, all<br />&gt;     I'm a newbie for linuxppc. I've tried to write a simple hello.c as a kernel module.<br /><br />Hi,<br /><br />http://kernelnewbies.org/  should have information on kernel module<br />basics, and where to find help if you still have problems.<br /><br /><br />-Olof<br /></blockquote><br /><BR><BR>Zhou Rui<br>Distributed &amp; Embedded System Lab<br>School of Information Science &amp; Engineering<br>Lanzhou University, P. R. China<br>http://dslab.lzu.edu.cn/~zr/<p>&#32;
                <hr size=1><a href="http://music.yahoo.com.cn/?source=mail_mailbox_footer" target=blank> 
Mp3疯狂搜-新歌热歌高速下 
</a>