ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #13809
Re: Booting modified kernels on krillin
> Hey all,
>
> for various debugging purposes I want to temporarily boot a modified
> kernel on krillin. My idea was to build the kernel, take the boot.img
> from the OTA-4 image "device" tarball, update the boot.img with the
> new
> kernel, and then use the "fastboot boot" command to boot it once:
>
>
> $ git clone https://github.com/bq/aquaris-E4.5.git
>
> $ cd aquaris-E4.5
>
> $ ./makeMtk -t krillin n k
>
> $ tar -xJvf
> /home/sturmflut/.cache/ubuntuimages/pool/device-168ccf6a391da4f83feb0325783f02b313e3892675bfea9e4a036bd63fd24f93.tar.xz
>
> $ abootimg -u partitions/boot.img -k
> ./out/target/product/krillin/obj/KERNEL_OBJ/arch/arm/boot/zImage
>
> $ fastboot boot partitions/boot.img
>
>
> This doesn't work, the kernel doesn't boot. I don't have much
> experience
> with the whole Android boot procedure, so any hint is appreciated.
>
> cheers,
> Simon
>
I can't give you a definite answer, but maybe offer two hints:
I used abootimg & fastboot boot in a similar way in the past on some Android device and I think I did something with the kernel commandline. Something like firstly getting the old commandline and more info out of the old .img with abootimg -i and then creating a new .img via -c ?
Alternatively maybe you can get something meaninigful from cat /proc/last_kmsg after a subsequent reboot:
http://stackoverflow.com/questions/9682306/android-how-to-get-kernel-logs-after-kernel-panic
Good luck!
References