1.(1): RedHatLinux2.4.18 升级到 2.4.31-SMP
(2): 进入2.4.31系统
(3): 补丁squashfs, patch -p1 < /usr/src/squashfs.pacth
(3): 在/usr/src/linux-2.4下make mrproper后,将/boot/config-2.4.18拷贝到
当前目录的.config
(4): make menuconfig,在原来配置的基础上在FileSystem菜单增加了squashfs,
选择Y。
(5): make dep clean bzImage
(6): make modules_install时出错:
make[1]: Leaving directory `/usr/src/linux-2.4.31/arch/i386/lib‘
cd /lib/modules/2.4.31-cme-squash; \
mkdir -p pcmcia; \
find kernel -path ‘*/pcmcia/*‘ -name ‘*.o‘ | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.31-cme-squash; fi
depmod: *** Unresolved symbols in /lib/modules/2.4.31-cme-squash/kernel/crypto/autoload.o
depmod: crypto_alg_lookup
depmod: *** Unresolved symbols in /lib/modules/2.4.31-cme-squash/kernel/crypto/proc.o
depmod: crypto_alg_sem
depmod: crypto_alg_list
depmod: *** Unresolved symbols in /lib/modules/2.4.31-cme-squash/kernel/drivers/media/radio/miropcm20.o
depmod: aci_rw_cmd_Rsmp_cc7c4cd8
depmod: aci_port_Rsmp_0d82adb6
depmod: aci_version_Rsmp_93350c87
[root@duanjigang linux-2.4]#
2
INSTALL drivers/usb/serial/visor.ko
INSTALL drivers/mtd/maps/vmax301.ko
INSTALL drivers/input/gameport/vortex.ko
INSTALL drivers/input/mouse/vsxxxaa.ko
INSTALL drivers/media/video/w9966.ko
INSTALL drivers/usb/media/w9968cf.ko
INSTALL drivers/usb/input/wacom.ko
INSTALL drivers/net/wan/wanxl.ko
INSTALL drivers/input/joystick/warrior.ko
INSTALL sound/oss/wavefront.ko
INSTALL drivers/usb/serial/whiteheat.ko
INSTALL net/xfrm/xfrm_user.ko
INSTALL fs/xfs/xfs.ko
INSTALL drivers/md/xor.ko
INSTALL drivers/usb/input/xpad.ko
INSTALL drivers/input/keyboard/xtkbd.ko
INSTALL sound/oss/ymfpci.ko
INSTALL lib/zlib_deflate/zlib_deflate.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.6; fi
WARNING: /lib/modules/2.6.6/kernel/drivers/media/dvb/frontends/tda1004x.ko needs unknown symbol errno
debian:/usr/src/linux#
3
我也是在make mdules_install 是出现了问题,之前的make bzImage , make modules 都是没有问题的,
/lib/modules/3.17.1/kernel/drivers/gpu/drm/drm.ko~ at ./scripts/sign-file line 417
make[1]: *** [drivers/gpu/drm/drm.ko] Error 28
make:*** [modinst] Error 2
不知道是什么原因,求高手赐教!!!
4
在进行内核编译时(linux3.11.0),按照教程给的操作步骤,出现问题:
1.在编译zImage后,在arch/arm/boot/zImage;
2.执行make modules;
3.执行make modules_install 时,提示“cannot create directory `/lib/modules/3.11.0‘
权限不够吧。楼主sudo make modules_install 试试
5
linux # make modules_install
ln: 目标"/source" 不是目录
make: *** [_modinst_] 错误 1
有谁遇到过么?
General setup -->
() Local version - append to kernel release
圆括号里面的内容检查一下(如果自己修改过的话),字符串前面不能够有空格(此帖遇到的问题仅限于此)
6*****************************
错误如下:
DEPMOD 2.6.3212
FATAL:Memory allocation failure ../zlibsupport.c line 33: realloc(buffer,max *=2
make : *** [_modinst_post] Error 1
这个问题暂时没有解决。
原文地址:http://5228690.blog.51cto.com/5218690/1601604