在编译imx 4.1.15 内核过程中在最后生成内核报:
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
make[2]: Warning: File `arch/arm/boot/compressed/../Image' has modification time 0.75 s in the future
LZO arch/arm/boot/compressed/piggy.lzo
/bin/sh: 1: lzop: not found
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [uImage] Error 2
度娘一下,说是缺少lzop ,
那么就安装下:
sudo apt-get install lzop
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/cn.archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages
E: 无法解析或打开软件包的列表或是状态文件。
还报错误,依然度娘:
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
sudo apt-get install lzop
然后再编译内核,完美解决。
附加另一种解决方法(英文):
Hi,
LZO arch/arm/boot/compressed/piggy.lzo /bin/sh: lzop: command not found make[3]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1 make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 2 make[1]: *** [uImage] Error 2 make[1]: Leaving directory `/home/ti-dvsdk_omapl138-evm_04_03_00_06/psp/linux-2.6.37-psp03.21.00.04.sdk' make: *** [linux] Error 2 |
The kernel compression mode you have choose is LZO ? Is what you require,
If yes you need to install lzop (sudo apt-get install lzop) should help you surpass the error.
If you are looking for different kernel compression change it using following steps:-
1: make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig
Go under General Setup --->
Kernel Compression mode --->
(X) Gzip
( ) LZMA
( ) XZ
( ) LZO
Chose the appropriate one which you need from the above, currently its set to LZO and the
tool lzop is not installed becoz of which you are getting the above error