[Xperia Z1 Original Android Development] Surge1223:
I am using some of your source but my implementation of machine kexec is different and subsequently I can get past machine_kexec_prepare to kexec call w/ stack where it hangs (No panics though) maybe a few of us can talk kexec on hangouts?

Edit: Can you or [MENTION=4225567]delewer[/MENTION] look at my relocate kernel code? I'm thinking I'm having issues writing to memory...

https://github.com/surge1223/kernel...blob/master/arch/arm/kernel/relocate_kernel.S

[ 198.929656] kexec: kexec: KEXEC_IOC_LOAD
[ 201.055480] kexec: kexec: KEXEC_IOC_CHECK_LOADED (1)
[ 201.115417] kexec: kexec: KEXEC_IOC_REBOOT
[ 201.115509] KEXEC: preempt_disable
[ 201.115631] KEXEC: disable interrupts
[ 201.115722] KEXEC: kernel_restart_prepare_ptr
[ 201.115783] set_dload_mode ( c00788e4 )
[ 201.115936] (sec_debug_set_upload_magic) 0
[ 201.121337] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.134979] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.155181] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.174865] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.195098] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.214843] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.234954] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.255340] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.276275] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.295318] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.315307] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.335418] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.355285] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.357696] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.375274] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.427337] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.427581] qup_i2c qup_i2c.2: QUP: I2C status flags :0x1300c8, irq:228
[ 201.429626] qup_i2c qup_i2c.2: I2C slave addr:0x26 not connected
[ 201.430206] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.447265] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.451995] BUG: scheduling while atomic: kexec/664/0x00000003
[ 201.454193] KEXEC: machine_shutdown
[ 201.455383] MKEXEC: found gic_raise_softirq: c001e914
[ 201.455596] MKEXEC: waiting for CPUs ...(1000000)
[ 201.455718] KEXEC: machine_kexec
[ 201.455841] MKEXEC: va: da3c9000
[ 201.456054] MKEXEC: kexec_start_address: 80208000
[ 201.456176] MKEXEC: kexec_indirection_page: 9b825000
[ 201.456390] MKEXEC: kexec_mach_type: 00000f6d
[ 201.456512] MKEXEC: kexec_boot_atags: 80201000
[ 201.456604] MKEXEC: copy relocate code: addr=0xda3c9000, len==136
[ 201.456817] MKEXEC: kexec_reinit
[ 201.456939] MKEXEC: soft_restart
[ 201.457061] MKEXEC: outer_flush_all
[ 201.457275] MKEXEC: outer_disable
[ 201.457366] MKEXEC: kexec_identity_mapping_add 0x16640000-0x16641000
[ 201.457580] MKEXEC: end mappings end==0x16641000
[ 201.457702] MKEXEC: flush_cache_all()
[ 201.458007] MKEXEC: local_flush_tlb_all()
[ 201.458251] MKEXEC: kexec_call_with_stack (va: 0xbf0046c0, __soft_reset: 0xbf00416c, addr: 0x9b8c9000, stack: 0xbf004fc8)