ubuntu编译内核提示lzop错误

ubuntu编译内核提示lzop错误

/bin/sh: 1: lzop: not found

build@build-machine:/work/embedfire/code/ebf_6ull_linux$ make ARCH=arm -j4 CROSS_COMPILE=arm-linux-gnueabihf-
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  Kernel: arch/arm/boot/Image is ready
  Building modules, stage 2.
  LZO     arch/arm/boot/compressed/piggy.lzo
/bin/sh: 1: lzop: not found
  MODPOST 72 modules
arch/arm/boot/compressed/Makefile:180: recipe for target 'arch/arm/boot/compressed/piggy.lzo' failed
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] Error 1
make[2]: *** Waiting for unfinished jobs....
  CC      arch/arm/boot/compressed/decompress.o
arch/arm/boot/Makefile:52: recipe for target 'arch/arm/boot/compressed/vmlinux' failed
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
arch/arm/Makefile:316: recipe for target 'zImage' failed
make: *** [zImage] Error 2
make: *** Waiting for unfinished jobs....

使用下面的命令安装lzop即可

sudo apt install lzop

build@build-machine:/work/embedfire/code/ebf_6ull_linux$ sudo apt install lzop
[sudo] password for build: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  lzop
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 39.8 kB of archives.
After this operation, 97.3 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 lzop amd64 1.03-4 [39.8 kB]
Fetched 39.8 kB in 3s (14.0 kB/s)
Selecting previously unselected package lzop.
(Reading database ... 175432 files and directories currently installed.)
Preparing to unpack .../archives/lzop_1.03-4_amd64.deb ...
Unpacking lzop (1.03-4) ...
Setting up lzop (1.03-4) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

然后重新编译即可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值