[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: arm64: Image vs. Image.gz



On Wed, Feb 01, 2017 at 01:35:40PM -0800, Vagrant Cascadian wrote:
> So, when building an arm64 linux package using Debian's packaging, it
> builds a package where /boot/vmlinuz-VERSION is uncompressed, and
> bootloaders such as u-boot can boot it with booti.
 
> But when building a mainline kernel with "make bindeb-pkg" it produces a
> package where /boot/vmlinuz-VERSION is compressed with gzip, and
> u-boot's booti fails to boot it. Simply uncompressing the
> /boot/vmlinuz-VERSION then allows u-boot's booti command to work
> properly.

Since it already breaks with "failed magic" error, I think adding support
for detecting gzip magic would not be very hard? 
 
> I seem to recall a similar issue with grub not booting the compressed
> image, but it's been a while since I've tried.

grub has a gzip module, which may or may not get included the grub that 
get installed in grubaa64.efi. We should mae sure it happens.
 
> Are there platforms on arm64 that use Image.gz?
 
> Should upstream default to "Image" instead, or should upstream's
> bindeb-pkg target default arm64 builds to use KBUILD_IMAGE=Image, to be
> consistant with Debian's linux packages?

Personally I'd like to see compressed kernels by default (because they are 
so yuge). But for now, as no bootloader really works out of box with compressed
images, deb-pkg/bindeb-pkg should match what Debian is doing.

Riku


Reply to: