/bin/sh: 1: lzop: not found

在编译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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值