shana@shana:/usr/src$ apt-cache search linux-source linux-source - Linux kernel source with Ubuntu patches xen-source-2.6.16 - Linux kernel source for version 2.6.17 with Ubuntu patches linux-source-2.6.22 - Linux kernel source for version 2.6.22 with Ubuntu patches shana@shana:/usr/src$
我选择了 linux-source-2.6.22 - Linux kernel source for version 2.6.22 with Ubuntu patches 这个~ 然后 install 之
shana@shana:~/linux_驱动开发$ cat /var/log/syslog |grep world Mar 16 12:14:53 shana kernel: [ 5937.529297] Hello, world Mar 16 12:16:05 shana kernel: [ 6009.439036] Goodbye, cruel world shana@shana:~/linux_驱动开发$