harryzhu 发表于 2005-12-7 14:14:40

郁闷啊,我load /boot/config*编译内核也不行

我想打开硬盘的DMA模式,操作失败
hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma    =0 (off)

想想可能是内核不支持,需要重新编译一下,可是改来改去总是在make bzImage时出错,后来索性load /boot/config*,看看当前使用的内核能不能编译通过,结果是照样出错,出错信息如下:
/usr/src/linux-2.4.21-27.EL/include/net/ah.h: In function `ah_hmac_digest':
/usr/src/linux-2.4.21-27.EL/include/net/ah.h:26: warning: implicit declaration of function `crypto_hmac_init'
/usr/src/linux-2.4.21-27.EL/include/net/ah.h:27: `crypto_hmac_update' undeclared (first use in this function)
/usr/src/linux-2.4.21-27.EL/include/net/ah.h:27: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.21-27.EL/include/net/ah.h:27: for each function it appears in.)
/usr/src/linux-2.4.21-27.EL/include/net/ah.h:28: warning: implicit declaration of function `crypto_hmac_final'
In file included from xfrm_algo.c:19:
/usr/src/linux-2.4.21-27.EL/include/net/esp.h: In function `esp_hmac_digest':
/usr/src/linux-2.4.21-27.EL/include/net/esp.h:49: `crypto_hmac_update' undeclared (first use in this function)
make: *** Error 1
make: Leaving directory `/usr/src/linux-2.4.21-27.EL/net/xfrm'
make: *** Error 2
make: Leaving directory `/usr/src/linux-2.4.21-27.EL/net/xfrm'
make: *** Error 2
make: Leaving directory `/usr/src/linux-2.4.21-27.EL/net'
make: *** Error 2

哪位老大帮帮忙了,看看什么问题,郁闷哦,我保证什么都没有改

harryzhu 发表于 2005-12-7 14:45:21

发现个问题,即时我load /boot/config*,直接save and exit,对比.config & /boot/config*,两个文件也有很大差别,不知道为什么

后来再测,直接把cp /boot/config* /usr/src/linux-2.4/.config,运行make dep时就出错,是不是这个/boot/config*文件并不可靠啊?最好还是自己重新编译一遍?
页: [1]
查看完整版本: 郁闷啊,我load /boot/config*编译内核也不行