Problem replacing kernel

hey guys,
i’m having trouble flashing a new kernel for my hikey board.

after i’ve finished building the kernel i followed the getting started guide,
and tried using the original boot image, as stated here

$ mkdir tmp $ sudo mount boot-fat.uefi.img tmp $ sudo cp YOUR-KERNEL-BUILD/arch/arm64/boot/Image tmp/Image $ sudo cp YOUR-KERNEL-BUILD/arch/arm64/boot/dts/hi6220-hikey.dtb tmp/ $ sudo umount tmp $ rm -rf tmp

then i flashed the boot image with fastboot but when i rebooted the board it loaded the same kernel as before.

can anyone point me to my mistake ?

Hi Asaf,

have you tried following the RPB instructions?

Notice that once you install the RPB release, you can use any other kernel not only the RPB release (just use the dpkg -i to install the new kernel).

now i see my mistake,
i was on an RPB build already and tried to flash the kernel as if i was still using the regular build.

thanks !

@ldts I found my Hikey was still running the old kernel after I update a kernel with the way introduced on BFSDebianRPB.md (the link you provided here is no longer accessible), and I also checked grub.cfg, it wasn’t changed either.

Is there something wrong?

@ldts I found my Hikey was still running the old kernel after I update a kernel with the way introduced on
instructions

and I also checked grub.cfg after I installed a new kernel with dpkg -i, it wasn’t changed either.

Is there something wrong?

@chunyan, Did you notice any error messages while building the image or while installing the new boot package? also, can I assume you used sudo when executing the dpkg -i on HiKey?

@chunyan If you have Linaro images (http://builds.96boards.org/releases/hikey/linaro/debian/latest/) running on your board, you need to first flash it with RPB images (http://builds.96boards.org/releases/reference-platform/debian/hikey/16.06/) using the instructions here (https://github.com/Linaro/documentation/blob/master/Reference-Platform/Releases/RPB_16.06/ConsumerEdition/HiKey/InstallDebianRPB.md) before dpkg will work.

Also see below for difference between RPB and Linaro images:
http://www.96boards.org/forums/topic/difference-between-reference-platform-rp-and-linaro

HTH

@vchong @ldts ,

Thanks for your replies, after updated RPB images, ‘dpkg -i’ finally worked on Hikey.