On Sat, 2016-11-26 at 16:54 +0000, Heinrich Schuchardt wrote: > Package: flash-kernel > Version: 3.71 > Severity: normal > > Dear Maintainer, > > I want to get the Hardkernel Odroid C2 supported by flash-kernel. > > It is a 64bit system. > > Unfortunately in file /usr/share/flash-kernel/functions the functions > mkimage_kernel() and mkimage_initrd() both call mkimage with argument > > -A arm . > > This is incorrect. On 64bit arm systems you have to use > > -A arm64 . > > Otherwise neither u-boot nor the kernel can read the images. > > I suggest to use `uname -m` to determine the architectue. > If it is aarch64 use mkimage -A arm64.
I think it's currently possible to use flash-kernel:armhf on an arm64 system to build an armhf image, and this would break that. Given that flash-kernel is an arch-dependent package, I think it should use the package architecture here instead of `uname -m`. (But since flash-kernel doesn't contain any native code, I think it wwould be even better to make it arch-independent and to specify the machine architecture in each entry in db/all.db.) Ben. -- Ben Hutchings Beware of programmers who carry screwdrivers. - Leonard Brandwein
signature.asc
Description: This is a digitally signed message part