我最近由于工作需要,需重新编译内核,可是当我编译了内核之后,发现编译内核,简直是错误频繁阿,下面的就是一例:
环境:
redhat 7.2 kernel :2.4.7-10 goal: add a device driver
steps:
1:enter device driver : cd /my-driver
2:patch : ./patch_linux linux-2_4-patch driver-patch
3: mknod :./mknod_my
4: enter /usr/src/linux (linux is a link of linux-2.4.7-10)
5: make menuconfig
6:make dep
Error info:
the first time
i only add my driver in block as a Module )
-------------------------------------------------------------
......
make -C block fastdep
make[4]: Entering directory '/usr/src/linux/drivers/block'
makefile:47 ***extrance 'endif' .stop
make[4];leaving directory '/usr/src/linux/drivers/block'
make[3];***[_sfdeps_block] Error 2
make[3]
eaving directory.....
make[2]:***[fastdep] error 2
make [2]: leaving directory ....
make [1]: ***[_sfdep_drivers] error 2
make[1]; leaving directory .....
make:***[dep_filse] Error 2
-------------------------------------------------------
why?
the second time
i edit some opitions in menuconfig in my idea)
--------------------------------------------------------
........
make[3]:undecode:command not found
make[3];***[libosak.o] Error 127
make[3]
eaving directory.....linux-2.4.7-10/drivers/block/doc
make[2]:***[_modsubdir_doc] error 2
make [2]: leaving directory ....
make [1]: ***[_modsubdir_block] error 2
make[1]; leaving directory ...../linux-2.4.7-10/drivers
make:***[dep_filse] Error 2
------------------------------------------------------------
why?
-----------------------
有时候它显示的是:make[3]:***[fastdep] Error 135
这是什么错误阿?有什么引起的阿?怎么改正?
--------------------next---------------------