- 论坛徽章:
- 0
|
hello world 驱动问题 我运行helloword,出现下例情况:
[root@localhost hello_world]# make -C /usr/src/Linux-2.6.22.5/" M=$PWD modules
make: Entering directory /usr/src/Linux-2.6.22.5/
CC [M] /root/work/hello_world/hello.o
Building modules, stage 2.
MODPOST
CC /root/work/hello_world/hello.mod.o
LD [M] /root/work/hello_world/hello.ko
make: Leaving directory /usr/src/Linux-2.6.22.5/
[root@localhost hello_world]# insmod ./hello.ko
./hello.ko: ELF file ./hello.ko not for this architecture
[root@localhost hello_world]#
请帮我分析下,insmod出现的问题,我的是redhat9.0 |
|