[Android Q&A, Help & Troubleshooting] 1mouse3:
hi I am trying to port a kernel from one zte 8960 to another. I have cwm recover set up with kexec to help get a log of what is going on. the kernel hangs at boot of the phone so I trying to find the cause

-last_kmsg after a failed boot of 3.4

pastebin.com/0AGpACsT

-last_kmsg after a boot of 3.0.8

pastebin.com/N3WtDHwC

-split-boot of boot.img

output directory: fi
boot_magic correct: ANDROID!
kernel size: 6045264
kernel address: 2149613568
Base: 2149580800 (hex): 0x80200000
ramdisk size: 375592
ramdisk address: 2183135232
ERROR: Base from ramdisk address does not match the one from kernel address. 2166358016
second size: 0
second address: 2165309440
tags address: 2149581056
page size: 2048
product name:
cmdline: androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 maxcpus=2
File fi/zImage written (length=6045264).
File fi/ramdisk.gz written (length=375592).

-running kexec

kernel: 0x4018d008 kernel_size: 5c3e50
kexec_load: entry = 0x80208000 flags = 280000
nr_segments = 3
segment[0].buf = 0x33008
segment[0].bufsz = 7c
segment[0].mem = 0x80201000
segment[0].memsz = 1000
segment[1].buf = 0x4018d008
segment[1].bufsz = 5c3e50
segment[1].mem = 0x80208000
segment[1].memsz = 5c4000
segment[2].buf = 0x4098e008
segment[2].bufsz = 5bb28
segment[2].mem = 0x81910000
segment[2].memsz = 5c000
Segmentation fault

-an something I saw in kmsg after doing kexec in cwm

<6>[01-01 00:02:52.124] [0][135: azuzu-sboot]pn544_shutdown()
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]pm8921 rtc alarm disable:rtc_alarm_powerup=0,zte_rtc_alarm_en=0
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]Starting new kernel
<2>[01-01 00:02:52.124] [0][135: azuzu-sboot]KEXEC: MSM Watchdog Exit - Deactivated
<1>[01-01 00:02:52.124] [0][135: azuzu-sboot]Unable to handle kernel paging request at virtual address c010b55c
<1>[01-01 00:02:52.124] [0][135: azuzu-sboot]pgd = df7d4000
<1>[01-01 00:02:52.124] [0][135: azuzu-sboot][c010b55c] *pgd=8021140e(bad)
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]Internal error: Oops: 80d [#1] PREEMPT SMP
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]Modules linked in:
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]CPU: 0 Tainted: G W (3.0.8-zerg #3)
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]PC is at machine_kexec+0x54/0x118
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]LR is at machine_kexec+0x44/0x118
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]pc : [<c010b420>] lr : [<c010b410>] psr: a0000013
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]sp : df7f3e68 ip : 000a6cdc fp : 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]r10: 00000000 r9 : df7f2000 r8 : c0105f28
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]r7 : fee1dead r6 : a6cdc000 r5 : df699e00 r4 : a6cd4000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]r3 : 80208000 r2 : c010b55c r1 : 38a00000 r0 : df6dc000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]Control: 10c5787d Table: a6dd406a DAC: 00000015
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]PC: 0xc010b3a0:
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b3a0 e5931014 eb028980 e59f0018 e8bd4070 ea1acc09 c07d6ebc c0ce2158 c010b28c
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b3c0 066665b0 c0975d83 c0975dae e92d40f8 e1a05000 eb0037da e5950014 e59f20d4
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b3e0 e5954000 e5901000 e5922000 e3c44eff e3c4400f e1a01e21 e3520000 10822181
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b400 e5926000 e3c66003 e0666000 eb03a256 e5953010 e59f20a0 e1a062c6 e1a06606
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b420 e5823000 e2433a07 e59f2090 e5824000 e59f208c e59f408c e5921000 e59f2088
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b440 e5821000 e59f2084 e59f1084 e5823000 e59f3080 e5932000 e1a07000 eb09537f
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b460 e5943010 e1a00007 e2871a01 e12fff33 e59f0064 eb1acbd8 e59f3060 e5933004
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b480 e3530000 0a000000 e12fff33 f10c0080 f10c0040 e3a00000 eb0018bf e5943004
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]LR: 0xc010b390:
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b390 e1a0200d e3c23d7f e3c3303f e1a00006 e5931014 eb028980 e59f0018 e8bd4070
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b3b0 ea1acc09 c07d6ebc c0ce2158 c010b28c 066665b0 c0975d83 c0975dae e92d40f8
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b3d0 e1a05000 eb0037da e5950014 e59f20d4 e5954000 e5901000 e5922000 e3c44eff
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b3f0 e3c4400f e1a01e21 e3520000 10822181 e5926000 e3c66003 e0666000 eb03a256
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b410 e5953010 e59f20a0 e1a062c6 e1a06606 e5823000 e2433a07 e59f2090 e5824000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b430 e59f208c e59f408c e5921000 e59f2088 e5821000 e59f2084 e59f1084 e5823000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b450 e59f3080 e5932000 e1a07000 eb09537f e5943010 e1a00007 e2871a01 e12fff33
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b470 e59f0064 eb1acbd8 e59f3060 e5933004 e3530000 0a000000 e12fff33 f10c0080
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]SP: 0xdf7f3de8:
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]3de8 305b0001 33315b5d 61203a35 757a757a 6f62732d ffffffff df7f3e54 a6cdc000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]3e08 fee1dead c0105f28 20000113 00000000 00000000 c07ca8ec df6dc000 38a00000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]3e28 c010b55c 80208000 a6cd4000 df699e00 a6cdc000 fee1dead c0105f28 df7f2000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]3e48 00000000 00000000 000a6cdc df7f3e68 c010b410 c010b420 a0000013 ffffffff
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]3e68 df7f3e74 c0d84ec0 c0c60410 00000000 fee1dead c01adce8 45584543 c0186fa4
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]3e88 00000000 00000000 00000000 00000002 df7f3e98 df7f3e98 00000000 be9505e0
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]3ea8 c0ec8204 c0ec81bc be9505e8 00000800 0000009c c0644d14 c16cf460 00000020
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]3ec8 be9505e8 c07bfb7c e0a01500 c02214d8 c02214d8 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]R0: 0xdf6dbf80:
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]bf80 df6dbf7c e09452b0 00000000 00000000 00000000 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]bfa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]bfc0 c0c0c0c0 c0c0c2c0 c0c0c0c0 c0c0c0c0 c0c0c000 c0c0c0c0 c0c0c0c0 c0c0c0c0
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]bfe0 c0c0c0c0 c0c0c0c0 c0c0c0c0 c0c0c0c0 c0c0c0c0 c0c000c0 c0c0c0c0 c0c0c0c0
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]c000 00000000 c020f608 00000000 00000000 00000000 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]c020 00020001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]c040 00000000 00000000 df6da380 00000000 00000000 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]c060 00000000 00000000 00000000 00000000 00000000 00000000 00000000 df6dc07c
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]R2: 0xc010b4dc:
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b4dc c0975dce c0ce2158 e59f0074 e59f106c e3500000 0a000014 e4903004 e3130001
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b4fc 0a000001 e3c34001 eafffffa e3130002 0a000001 e3c30002 eafffff6 e3130004
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b51c 0a000000 ea000008 e3130008 0afffff1 e3c33008 e3a06b01 e4935004 e4845004
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b53c e2566001 1afffffb eaffffea e1a0e001 e3a00000 e59f100c e59f200c e1a0f00e
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b55c 00000000 00000000 00000000 00000000 00000088 e92d4010 e59d100c e591c000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b57c e152000c 259d3008 23a02001 23a04000 25832000 2a000006 e062400c e0811002
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b59c e1540003 a1a04003 e2811004 e1a02004 eb09532b e1a00004 e8bd8010 e92d4070
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]b5bc e24dd060 e5903008 e59f2118 e8900030 e0032002 e1a0ca23 e6ef3073 e1a02602
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]R5: 0xdf699d80:
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]9d80 00000000 00000000 00000000 00000001 00000000 df699d94 df699d94 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]9da0 df699800 00000000 df699da8 df699da8 00000000 232a232a 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]9dc0 00000000 df699dc4 df699dc4 00000000 00000000 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]9de0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]9e00 a6cd4002 df6cb8c8 df6cbffc 8199d000 80208000 c16d8b80 c16d8b60 00000003
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]9e20 00033008 0000007c 80201000 00001000 4026c008 005d0178 80208000 005d1000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]9e40 40a6d008 0005bb28 81941000 0005c000 00000000 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]9e60 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]R7: 0xfee1de2d:
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]de2c ******** ******** ******** ******** ******** ******** ******** ********
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]de4c ******** ******** ******** ******** ******** ******** ******** ********
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]de6c ******** ******** ******** ******** ******** ******** ******** ********
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]de8c ******** ******** ******** ******** ******** ******** ******** ********
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]deac ******** ******** ******** ******** ******** ******** ******** ********
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]decc ******** ******** ******** ******** ******** ******** ******** ********
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]deec ******** ******** ******** ******** ******** ******** ******** ********
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]df0c ******** ******** ******** ******** ******** ******** ******** ********
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]df2c ******** ******** ******** ******** ******** ******** ******** ********
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]R8: 0xc0105ea8:
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]5ea8 e24fee13 3798f107 e28d1008 e3a08000 e357080f e2270000 2a000fb4 ea022e36
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]5ec8 e1a02007 e28d1008 e3a00000 eb0008b8 e28fe014 e1a07000 e28d1008 e3570f5e
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]5ee8 3891000f 3798f107 eaffffef e5ad0008 e1a02007 e1a0100d e3a00001 eb0008ac
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]5f08 eaffffb4 e320f000 e320f000 e320f000 e320f000 e320f000 c0c325e4 c01065cc
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]5f28 c0185520 c0176f58 c0106530 c020eafc c020eb64 c020dfe8 c020cb54 c01917a4
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]5f48 c020e010 c021b8e4 c021b6b8 c0106540 c020d9e0 c01917a4 c021b588 c020dc74
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]5f68 c01a330c c01917a4 c01917a4 c020e4d0 c0181c08 c02299b0 c01917a4 c01a337c
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]5f88 c01a36e0 c01917a4 c017e684 c01917a4 c01917a4 c018659c c01917a4 c01917a4
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]R9: 0xdf7f1f80:
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]1f80 bed96e5c c0176fec 00000001 00000000 bed96e64 0005178d 000000f8 c0177038
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]1fa0 00000001 c0105d80 00000000 bed96e64 00000000 00000000 001e6e34 00000001
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]1fc0 00000000 bed96e64 0005178d 000000f8 00121eb8 000080d4 00000000 bed96e5c
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]1fe0 000f32b0 bed96d60 000a81f7 000a0c10 60000010 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]2000 00000000 00000002 00000000 c0017a80 c0c5e934 00000000 00000015 c385e1c0
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]2020 c0017a80 c0c31588 df7bfc00 c004d1c0 00000000 00000000 df7f3dec df7f3d50
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]2040 c07c7dc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]2060 00030d34 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]Process azuzu-sboot (pid: 135, stack limit = 0xdf7f22f0)
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]Stack: (0xdf7f3e68 to 0xdf7f4000)
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3e60: df7f3e74 c0d84ec0 c0c60410 00000000 fee1dead c01adce8
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3e80: 45584543 c0186fa4 00000000 00000000 00000000 00000002 df7f3e98 df7f3e98
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3ea0: 00000000 be9505e0 c0ec8204 c0ec81bc be9505e8 00000800 0000009c c0644d14
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3ec0: c16cf460 00000020 be9505e8 c07bfb7c e0a01500 c02214d8 c02214d8 00000000
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3ee0: 00000000 00000000 fffffff8 c385c7e0 e0a88d00 0000003c e0a01500 0000247c
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3f00: df2739f8 df273980 e0627b20 00000000 e0627b20 e02dfc08 00000000 e0a21480
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3f20: 00000000 c021fc74 df273980 00000000 df273980 00000000 df2739cc c0220eb8
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3f40: fffffff8 e02dfc00 e0627b20 00000008 df273980 c021039c 00000020 00000000
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3f60: e02dfc00 00000000 df7f2000 c0227dd4 e02dfc00 00000000 dfd9bb00 c020cb48
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3f80: 00000003 dfd9bb00 dfd9bb40 271aed14 00000001 00000000 be950eb0 00000001
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3fa0: 00000058 c0105d80 00000000 be950eb0 fee1dead 28121969 45584543 00000000
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3fc0: 00000000 be950eb0 00000001 00000058 00000000 00000000 00000000 00000000
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]3fe0: be950e00 be950df0 000093a7 00017e50 20000010 fee1dead a85fc821 a85fcc21
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot][<c010b420>] (machine_kexec+0x54/0x118) from [<c01adce8>] (kernel_kexec+0x44/0x70)
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot][<c01adce8>] (kernel_kexec+0x44/0x70) from [<c0186fa4>] (sys_reboot+0x17c/0x200)
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot][<c0186fa4>] (sys_reboot+0x17c/0x200) from [<c0105d80>] (ret_fast_syscall+0x0/0x30)
<0>[01-01 00:02:52.124] [0][135: azuzu-sboot]Code: e5953010 e59f20a0 e1a062c6 e1a06606 (e5823000)
<4>[01-01 00:02:52.124] [0][135: azuzu-sboot]---[ end trace da227214a82491c0 ]---

from what i see, this is the case of the issue and am trying to track it down

[c010b22c] *pgd=8021140e(bad)

Internal error: Oops: 80d [#1] PREEMPT SMP

so it would fall into "c010b044 t unmap_single_vma" which is in mm/memory.c of the source

static void unmap_single_vma(struct mmu_gather *tlb,
struct vm_area_struct *vma, unsigned long start_addr,
unsigned long end_addr, unsigned long *nr_accounted,
struct zap_details *details)
{
unsigned long start = max(vma->vm_start, start_addr);
unsigned long end;

if (start >= vma->vm_end)
return;
end = min(vma->vm_end, end_addr);
if (end <= vma->vm_start)
return;

if (vma->vm_flags & VM_ACCOUNT)
*nr_accounted += (end - start) >> PAGE_SHIFT;

if (unlikely(is_pfn_mapping(vma)))
untrack_pfn_vma(vma, 0, 0);

if (start != end) {
if (unlikely(is_vm_hugetlb_page(vma))) {
/*
* It is undesirable to test vma->vm_file as it
* should be non-null for valid hugetlb area.
* However, vm_file will be NULL in the error
* cleanup path of do_mmap_pgoff. When
* hugetlbfs ->mmap method fails,
* do_mmap_pgoff() nullifies vma->vm_file
* before calling this function to clean up.
* Since no pte has actually been setup, it is
* safe to do nothing in this case.
*/
if (vma->vm_file)
unmap_hugepage_range(vma, start, end, NULL);
} else
unmap_page_range(tlb, vma, start, end, details);
}
}

I am thinking it might had hit "un-allocated" memory area, I did have to change the ramdisk_offset from 0x01300000 to 0x02000000 make the kernel fit. what could I do to check to see if it is un-allocated space I am dealing with