Jump to content

Hello everyone,
I have decided to compile the linux kernel myself after a series of issues with my computer. I ended up going with xz compression for my laptop, but I'd like to try and get LZO compression working. Whenever I try to build bzImage, the makefile errors with the following:

  DESCEND  objtool
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  MKPIGGY arch/x86/boot/compressed/piggy.S
arch/x86/boot/compressed/vmlinux.bin.lzo: Invalid argument
arch/x86/boot/compressed/vmlinux.bin.lzo: Invalid argument
make[2]: *** [arch/x86/boot/compressed/Makefile:160: arch/x86/boot/compressed/piggy.S] Error 1
make[2]: *** Deleting file 'arch/x86/boot/compressed/piggy.S'
make[1]: *** [arch/x86/boot/Makefile:112: arch/x86/boot/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:283: bzImage] Error 2

If anybody with experience in this field would like to help, it would be very much appreciated. Thanks in advance! ~Breadpudding

Discord: Breadpudding#9078

GitHub: https://github.com/cbpudding

Programming Guild: https://discord.gg/7ZVbxXT

Link to comment
https://linustechtips.com/topic/1070239-compiling-linux-517-with-lzo-fails/
Share on other sites

Link to post
Share on other sites

On 6/6/2019 at 3:55 PM, wasab said:

I never compiled kernel from source, always get it from the repo but most distro seem to have them in /boot

 

 

The reason I did is because the latest kernel prevented me from booting and the old kernel I was booted from didn't support my ath10k drivers anymore.

Discord: Breadpudding#9078

GitHub: https://github.com/cbpudding

Programming Guild: https://discord.gg/7ZVbxXT

Link to post
Share on other sites

1 hour ago, Breadpudding said:

The reason I did is because the latest kernel prevented me from booting and the old kernel I was booted from didn't support my ath10k drivers anymore.

What distro you running on? For Ubuntu based distros, I'm pretty sure there is a ppa with lists of many old kernels. Manually compiling kernels is a chore and involves manually configuring the modules.

 

https://www.google.com/amp/s/www.cyberciti.biz/tips/compiling-linux-kernel-26.html/amp

 

You may want to back up your current kernel before switching. 

Sudo make me a sandwich 

Link to post
Share on other sites

On 6/8/2019 at 1:31 PM, wasab said:

What distro you running on? For Ubuntu based distros, I'm pretty sure there is a ppa with lists of many old kernels. Manually compiling kernels is a chore and involves manually configuring the modules.

 

https://www.google.com/amp/s/www.cyberciti.biz/tips/compiling-linux-kernel-26.html/amp

 

You may want to back up your current kernel before switching. 

I'm using Debian Sid for my home PC. I personally don't have a problem with compiling a kernel(especially since all you have to do is run make a few times).

On 6/8/2019 at 1:55 PM, Chunchunmaru_ said:

are you trying to compile the kernel image or rather the initramfs?

The answer is yes. I'm doing both from the latest source found on kernel.org.

On 6/8/2019 at 5:05 PM, alsetema said:

It seems like your compilation environment doesn't have any tools to handle LZO compression. Try installing lzop (I'm not sure what distro you're trying to compile this on) and see if that works, cheers!

I have lzop so I don't really understand why it fails. I had issues with it earlier in the compilation so I installed it, removed the partially compiled version and started over.

Discord: Breadpudding#9078

GitHub: https://github.com/cbpudding

Programming Guild: https://discord.gg/7ZVbxXT

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×