[Q] Compile Lollipop-Kernel topic
Hi,
I just tired to compile and repack the LL-Kernel for Z1c into a boot.img.
But I can't get it to start. I only see red LED blinken when I try to boot.
I used following sources:
http://developer.sonymobile.com/down...-14-5-a-0-242/
And did it like it is mentioned in README_Xperia, which was all working fine and without errors.
README_Xperia:
The ramdisk.img I got from http://forum.xda-developers.com/sony...ooted-t3083764
And I extracted the boot.elf with "Andrid Kitchen", which was working almost:
After that there was a ramdisk.img in output folder which I used for mkbootimg.
After getting boot.img I tried to flash/load it via fastboot, which was not working. Can't figuere aout why.
Bootloader is unlocked.
And because of that I tried to flash it via TWRP/CWM/... with following updater-script:
So maybe anyone can point me to mistake I make?
I just tired to compile and repack the LL-Kernel for Z1c into a boot.img.
But I can't get it to start. I only see red LED blinken when I try to boot.
I used following sources:
http://developer.sonymobile.com/down...-14-5-a-0-242/
And did it like it is mentioned in README_Xperia, which was all working fine and without errors.
README_Xperia:
Code:
Configuration files can be found in arch/arm/configs.
Xperia Z Ultra C6802/C6806/C6833 => rhine_togari_row_defconfig
Xperia Z Ultra C6843 => rhine_togari_brazil_defconfig
Xperia Z1 C6902/L39h/C6903/C6906 => rhine_honami_row_defconfig
Xperia Z1 C6943 => rhine_honami_brazil_defconfig
Xperia Z1 Compact D5503/M51w => rhine_amami_row_defconfig
How to build your kernel:
Prerequisites:
* ramdisk.img - root fs
* mkbootimg - boot.img generator
* dtbTool - DTB combiner
You can obtain it from various trusted sites including https://www.codeaurora.org/
* The ARM cross-compiler
Please use the arm-eabi-4.6 prebuild executable binary which is included in
standard Android tree.
Step 1: Build Your Kernel (zImage)
$ cd kernel
$ export ARCH=arm
$ export CROSS_COMPILE=arm-eabi-
NOTE: Please set the location and the prefix of the ARM cross-compiler.
$ make rhine_honami_row_defconfig
NOTE: Please set a configuration file you want to build.
$ make
You can see arch/arm/boot/zImage if you succeed in building the kernel.
Step 2: Prepare Device Tree Image (dt.img)
(In the Linux Kernel directory)
$ dtbTool -o dt.img -s 2048 -p scripts/dtc/ arch/arm/boot/
Step 3: Assembling the boot.img
(In the Linux Kernel directory)
$ mkbootimg --cmdline "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3b7 ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1 vmalloc=300M dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y" \
--base 0x00000000 --kernel arch/arm/boot/zImage --ramdisk ramdisk.img \
--ramdisk_offset 0x02000000 -o boot.img --dt dt.img --tags_offset 0x01E00000
./mkqcdtbootimg --kernel $KERNEL_SRC_PATH/arch/arm/boot/zImage --ramdisk ramdisk.img --base 0x00000000 --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 --pagesize 2048 --cmdline "androidboot.hardware=qcom user_debug=31 maxcpus=2 msm_rtb.filter=0x3F ehci-hcd.park=3 msm_rtb.enable=0 lpj=192598 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y" --dt_dir $KERNEL_SRC_PATH/arch/arm/boot/ -o boot.img
And I extracted the boot.elf with "Andrid Kitchen", which was working almost:
Code:
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=de_DE.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
Processing archive: kernel.elf
Extracting 0
Extracting 1
Extracting 2
Everything is Ok
Files: 3
Size: 11304622
Compressed: 11308906
mv: call of stat for »3 not possible: File or Directory not found
mv: call of stat for »cmdline.txt not possible: File or Directory not found
After getting boot.img I tried to flash/load it via fastboot, which was not working. Can't figuere aout why.
Bootloader is unlocked.
Code:
fastboot boot boot.img
downloading 'boot.img'...
OKAY [ 0.349s]
booting...
FAILED (status read failed (No such device))
finished. total time: 5.437s
Code:
fastboot flash boot boot.img
sending 'boot' (11044 KB)...
OKAY [ 0.349s]
writing 'boot'...
FAILED (remote: Command not allowed)
finished. total time: 0.352s
And because of that I tried to flash it via TWRP/CWM/... with following updater-script:
Code:
show_progress(0,0);
ui_print(" flashing boot.img...");
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
ui_print(" finished");
show_progress(10.000000, 1);
xda-developers
0 commentaires:
Enregistrer un commentaire