faust93 / android_kernel_nx512j

ZTE Z9 MAX NX512J Kernel
Other
1 stars 2 forks source link

kexec hardboot not work.. #1

Open sndnvaps opened 8 years ago

sndnvaps commented 8 years ago

hi @faust93 ,i have pick up some func from you repo

now i have test the kexec hardboot code ..

i have meet a big problem. the kexec cann't load new kernel to hardboot

my log is below .

/data/media/0/multirom/kexec /data/media/0/kernel --mem-min=0x008500000 --dtb=/data/media/0/dt.img --load-hardboot --initrd=./initrd.img --command-line=console=null androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk androidboot.selinux=permissive boot_cpus=0,4,5,6,7 sched_enable_hmp=1 androidboot.emmc=true androidboot.serialno=NX511J BOARD_INFO=:0,0:0,0,0:1778: androidboot.baseband=msm mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_sharp_nt35595_1080p_5p0_command:1:none mrom_kexecd=1

kexec version: 16.02.07.19.31-g364a380
arch_process_options:112: command_line: console=null androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk androidboot.selinux=permissive boot_cpus=0,4,5,6,7 sched_enable_hmp=1 androidboot.emmc=true androidboot.serialno=NX511J BOARD_INFO=:0,0:0,0,0:1778: androidboot.baseband=msm mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_sharp_nt35595_1080p_5p0_command:1:none mrom_kexecd=1
arch_process_options:114: initrd: ./initrd.img
arch_process_options:115: dtb: (null)
arch_process_options:117: port: 0x0
Try gzip decompression.
kernel: 0x7fa7f92010 kernel_size: 0x141edc8
read_1st_dtb: found /sys/firmware/fdt
get_memory_ranges_dt:825: /sys/firmware/fdt: fdt_check_header failed:FDT_ERR_BADMAGIC
get_memory_ranges_dt:894: /sys/firmware/fdt: Unusable device-tree file
get_memory_ranges_iomem:936: SKIP: 000000000005c000 - 000000000005d000 : tsens_eeprom_physical
get_memory_ranges_iomem:936: SKIP: 00000000000601d0 - 00000000000611d0 : vmpm
get_memory_ranges_iomem:936: SKIP: 00000000004a8000 - 00000000004aa000 : tsens_physical
get_memory_ranges_iomem:936: SKIP: 00000000004ab000 - 00000000004ab004 : /soc/restart@4ab000
get_memory_ranges_iomem:936: SKIP: 0000000001810000 - 0000000001810004 : restart_reg_sec
get_memory_ranges_iomem:936: SKIP: 0000000001b00020 - 0000000001b00030 : csi_clk_mux
get_memory_ranges_iomem:936: SKIP: 0000000001b00030 - 0000000001b00034 : csiphy_clk_mux
get_memory_ranges_iomem:936: SKIP: 0000000001b00038 - 0000000001b0003c : csiphy_clk_mux
get_memory_ranges_iomem:936: SKIP: 0000000001b04000 - 0000000001b04100 : 1b04000.qcom,cpp
get_memory_ranges_iomem:936: SKIP: 0000000001b08000 - 0000000001b08100 : 1b08000.qcom,csid
get_memory_ranges_iomem:936: SKIP: 0000000001b08400 - 0000000001b08500 : 1b08400.qcom,csid
get_memory_ranges_iomem:936: SKIP: 0000000001b08800 - 0000000001b08900 : 1b08800.qcom,csid
get_memory_ranges_iomem:936: SKIP: 0000000001b0a000 - 0000000001b0a500 : 1b0a000.qcom,ispif
get_memory_ranges_iomem:936: SKIP: 0000000001b0ac00 - 0000000001b0ae00 : 1b0ac00.qcom,csiphy
get_memory_ranges_iomem:936: SKIP: 0000000001b0b000 - 0000000001b0b200 : 1b0b000.qcom,csiphy
get_memory_ranges_iomem:936: SKIP: 0000000001b0c000 - 0000000001b0d000 : 1b0c000.qcom,cci
get_memory_ranges_iomem:936: SKIP: 0000000001c00000 - 0000000001c10000 : kgsl-3d0
get_memory_ranges_iomem:936: SKIP: 0000000001c20000 - 0000000001c30000 : kgsl-3d0
get_memory_ranges_iomem:936: SKIP: 0000000004020000 - 0000000004020040 : rmb_base
get_memory_ranges_iomem:936: SKIP: 0000000004080000 - 0000000004080100 : qdsp6_base
get_memory_ranges_iomem:936: SKIP: 0000000007824900 - 0000000007824a1c : mmc0
get_memory_ranges_iomem:936: SKIP: 0000000007864900 - 0000000007864a1c : mmc1
get_memory_ranges_iomem:936: SKIP: 00000000078b6000 - 00000000078b6600 : 78b6000.i2c
get_memory_ranges_iomem:936: SKIP: 00000000078b7000 - 00000000078b8000 : 78b7000.i2c
get_memory_ranges_iomem:936: SKIP: 00000000078b8000 - 00000000078b9000 : 78b8000.i2c
get_memory_ranges_iomem:936: SKIP: 00000000078b9000 - 00000000078b9600 : 78b9000.i2c
get_memory_ranges_iomem:936: SKIP: 00000000078ba000 - 00000000078bb000 : 78ba000.i2c
get_memory_ranges_iomem:936: SKIP: 00000000078d9000 - 00000000078d9400 : core
get_memory_ranges_iomem:936: SKIP: 00000000078d9000 - 00000000078d9400 : core
get_memory_ranges_iomem:936: SKIP: 000000000a0120a8 - 000000000a0120b0 : alarms_txctl
get_memory_ranges_iomem:936: SKIP: 000000000a012448 - 000000000a012450 : alarms_tactl
get_memory_ranges_iomem:936: SKIP: 000000000a08040c - 000000000a080414 : wlan_tx_status
get_memory_ranges_iomem:936: SKIP: 000000000a080488 - 000000000a080490 : wlan_tx_phy_aborts
get_memory_ranges_iomem:936: SKIP: 000000000a080c00 - 000000000a080c01 : pronto_mcu_base
get_memory_ranges_iomem:936: SKIP: 000000000a080fb0 - 000000000a080fb8 : wlan_brdg_err_source
get_memory_ranges_iomem:936: SKIP: 000000000a100400 - 000000000a100600 : pronto_a2xb_base
get_memory_ranges_iomem:936: SKIP: 000000000a205050 - 000000000a205250 : pronto_ccpu_base
get_memory_ranges_iomem:936: SKIP: 000000000a219000 - 000000000a219020 : pronto_saw2_base
get_memory_ranges_iomem:936: SKIP: 000000000a21b000 - 000000000a21e000 : pronto_phy_base
get_memory_ranges_iomem:936: SKIP: 000000000b017000 - 000000000b018000 : msm-watchdog
get_memory_ranges_iomem:943: RAM: 0000007f80000000 - 0000000086000000 : System RAM
get_memory_ranges_iomem:936: SKIP: 0000000080080000 - 000000008149f000 : Kernel code
get_memory_ranges_iomem:936: SKIP: 000000008154d1ac - 00000000818958ac : Kernel data
get_memory_ranges_iomem:943: RAM: 0000007f8c300000 - 000000009ff00000 : System RAM
get_memory_ranges_iomem:943: RAM: 0000007fa0100000 - 0000000100000000 : System RAM
get_memory_ranges_iomem:957: Success
elf_arm64_probe: Not an ELF executable.
image_arm64_probe: PE format: no
kernel symbol _text vaddr =                0
0x8149efff > 0xffffffffffffffff
Invalid memory segment 0x80080000 - 0x8149efff
1|root@nx511j:/data/media/0/multirom/roms/bckp_1970-01-04--21-54-41_/boot # 

from the log, it seems , kernel code cann't load in the origin phy_address -> which i have adjust my origin kernel_code is show as below 2016-03-26 21 38 42

my kexec-tools hold at https://github.com/nx511j-multirom/kexec-tools i have ajust the code to point the rd_base && dtb_base to compat Nx511j( Nubia z9 mini)


in the end, can you point the key of this problem.

Thank's a lot . Best wish!

sndnvaps commented 8 years ago

my multirom binary && trampoline is working now. but kexec cann't load the kernel to hardboot. it seem's my memory pool have some thing wrong .


to some all the memory info from the origin kernel , i have adjust the FDT_MAGIC to 0x310D3D6

sndnvaps commented 8 years ago

the most import things, i have point the dtb_base = 0xc0000000

sndnvaps commented 8 years ago

when i add more debug info,,, i got the things like 2016-03-27 22 58 22