0
0 评论

1.解压出包中的文件到extract目录下
dpkg -X ../linux-image-3.16.0-4-amd64_3.16.43-2+deb8u2_amd64.deb extract/

2.#解压出包的控制信息extract/DEBIAN/下:
dpkg -e ../linux-image-3.16.0-4-amd64_3.16.43-2+deb8u2_amd64.deb extract/DEBIAN/

3.替换两个驱动.ko文件后
4.修改md5sum的对应的ko文件的md5值
5.对修改后的内容重新进行打包生成deb包
dpkg-deb -b extract/ build/

替换到镜像中原有的linux-image-3.16.0-4-amd64_3.16.43-2+deb8u2_amd64.deb文件,启动安装时报错
如下(截取最后部分):
Aug 22 04:25:00 in-target: 10392 files and directories currently installed.)^M
Aug 22 04:25:00 in-target: Preparing to unpack …/libklibc_2.0.4-2_amd64.deb …^M
Aug 22 04:25:00 in-target: Unpacking libklibc (2.0.4-2) …^M
Aug 22 04:25:00 in-target: Selecting previously unselected package klibc-utils.^M
Aug 22 04:25:00 in-target: Preparing to unpack …/klibc-utils_2.0.4-2_amd64.deb …^M
Aug 22 04:25:00 in-target: Unpacking klibc-utils (2.0.4-2) …^M
Aug 22 04:25:00 in-target: Selecting previously unselected package initramfs-tools.^M
Aug 22 04:25:00 in-target: Preparing to unpack …/initramfs-tools_0.120+deb8u3_all.deb …^M
Aug 22 04:25:00 in-target: Unpacking initramfs-tools (0.120+deb8u3) …^M
Aug 22 04:25:00 in-target: Processing triggers for man-db (2.7.0.2-5) …^M
Aug 22 04:25:01 in-target: Setting up libklibc (2.0.4-2) …^M
Aug 22 04:25:01 in-target: Setting up klibc-utils (2.0.4-2) …^M
Aug 22 04:25:01 in-target: Setting up initramfs-tools (0.120+deb8u3) …^M
Aug 22 04:25:01 in-target: update-initramfs: deferring update (trigger activated)^M
Aug 22 04:25:01 in-target: Processing triggers for initramfs-tools (0.120+deb8u3) …^M
Aug 22 04:25:01 in-target: Reading package lists…
Aug 22 04:25:01 in-target:
Aug 22 04:25:01 in-target: Building dependency tree…
Aug 22 04:25:01 in-target:
Aug 22 04:25:01 in-target: Reading state information…
Aug 22 04:25:01 in-target: Some packages could not be installed. This may mean that you have
Aug 22 04:25:01 in-target: requested an impossible situation or if you are using the unstable
Aug 22 04:25:01 in-target: distribution that some required packages have not yet been created
Aug 22 04:25:01 in-target: or been moved out of Incoming.
Aug 22 04:25:01 in-target: The following information may help to resolve the situation:
Aug 22 04:25:01 in-target:
Aug 22 04:25:01 in-target: The following packages have unmet dependencies:
Aug 22 04:25:01 in-target: linux-image-amd64 : Depends: linux-image-3.16.0-4-amd64 but it is not installable
Aug 22 04:25:01 in-target: E
Aug 22 04:25:01 in-target: : Unable to correct problems, you have held broken packages.
Aug 22 04:25:01 in-target:
Aug 22 04:25:01 base-installer: error: exiting on error base-installer/kernel/failed-install


分享到:
已回答的提问