[Galaxy S 4 i9505 Android Development] Advancer:
The last_kmsg from reboot while charging:

[ 0.000000] Truncating memory at 0xc0000000 to fit in 32-bit physical address space
[ 0.000000] sec_dbg_setup: str=@0xfff00008
[ 0.000000] sec_dbg_setup: secdbg_paddr = 0xfff00008
[ 0.000000] sec_dbg_setup: secdbg_size = 0x80000
[ 0.000000] sec_tsp_mode: LCD_ID = 0x408047, val: 0X408047, ret1: 0x8
[ 0.002197] set_dload_mode <1> ( c0e10550 )
[ 0.024291] AXI: msm_bus_fabric_init_driver(): msm_bus_fabric_init_driver
[ 0.024627] MSM_DCVS: msm_dcvs_early_init: Unable to initialize DCVS err=4
[ 0.027709] sec_debug_init: enable=0
[ 0.027740] sec_debug_init: restart_reason : 0xfa00a65c
[ 0.045623] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.045654] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.045684] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.045715] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.045715] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.045745] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.045776] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.045776] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.108215] sensor_power_on_vdd: done
[ 0.163024] i2c i2c-4: Failed to register i2c client imx135 at 0x10 (-16)
[ 0.163208] i2c i2c-4: Can't create device at 0x10
[ 0.163574] i2c i2c-4: Failed to register i2c client s5k3l1yx at 0x34 (-16)
[ 0.163757] i2c i2c-4: Can't create device at 0x34
[ 0.196136] ion_heap_create: Invalid heap type 3
[ 0.200622] msm_slim_ctrl msm_slim_ctrl.1: Slim-dev:3 report inf element:0x0
[ 0.200775] msm_slim_ctrl msm_slim_ctrl.1: offset:0x0:bit mask:8
[ 0.201141] msm_slim_ctrl msm_slim_ctrl.1: Slim-dev:4 report inf element:0x400
[ 0.201202] param_sec_operation: filp_open failed. (-2)
[ 0.201232] sec_open_param PARAM OPEN FAIL
[ 0.201873] msm_slim_ctrl msm_slim_ctrl.1: offset:0x0:bit mask:8
[ 0.275665] Error-Bad Function Input
[ 0.276519] Error-Bad Function Input
[ 0.347991] smd_channel_probe_worker: allocation table not initialized
[ 0.363494] mdm_modem_probe: registered mdm id 0
[ 0.363616] mdm_do_first_power_on:id 0: Powering on modem for the first time
[ 0.681884] [mdnie lite] start!
[ 0.682128] [mdnie lite] end!
[ 0.684997] hdmi_msm hdmi_msm.1: external_common_state_create: sysfs group de234a08
[ 0.685821] Inside writeback_driver_init
[ 0.686309] Inside writeback_probe
[ 0.889343] wcd9xxx_slim_probe: failed to get slimbus tabla-slim logical address: -6
[ 0.969848] msm_otg msm_otg: failed to get phy_clk
[ 1.149505] couldn't get usb power supply
[ 1.195281] [jc_spi_init:336] Entered
[ 1.195495] [jc_spi_probe:301] Entered
[ 1.195648] [jc_spi_probe:311] jc_spi successfully probed
[ 1.195892] jc_config_isp_irq~~~~~~~~~~
[ 1.196105] msm_eeprom_probe probe_fail
[ 1.201049] msm_sensor_i2c_probe s5k6b2yx probe succeeded
[ 1.201232] msm_eeprom_probe probe_fail
[ 1.242584] mmc0: No card detect facilities available
[ 1.354736] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 1.355285] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 1.381561] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 1.386810] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 1.429595] mmc0: msmsdcc_execute_tuning: found good phase = 0
[ 1.429809] mmc0: msmsdcc_execute_tuning: found good phase = 1
[ 1.430084] mmc0: msmsdcc_execute_tuning: found good phase = 2
[ 1.430267] mmc0: msmsdcc_execute_tuning: found good phase = 3
[ 1.430541] mmc0: msmsdcc_execute_tuning: found good phase = 4
[ 1.430755] mmc0: msmsdcc_execute_tuning: found good phase = 5
[ 1.431030] mmc0: msmsdcc_execute_tuning: found good phase = 6
[ 1.431213] mmc0: msmsdcc_execute_tuning: found good phase = 7
[ 1.431488] mmc0: msmsdcc_execute_tuning: found good phase = 8
[ 1.431701] mmc0: msmsdcc_execute_tuning: found good phase = 9
[ 1.431976] mmc0: msmsdcc_execute_tuning: found good phase = 10
[ 1.432159] mmc0: msmsdcc_execute_tuning: found good phase = 11
[ 1.432434] mmc0: msmsdcc_execute_tuning: found good phase = 12
[ 1.432647] mmc0: msmsdcc_execute_tuning: found good phase = 13
[ 1.433013] mmc0: msmsdcc_execute_tuning: found good phase = 14
[ 1.433227] mmc0: msmsdcc_execute_tuning: found good phase = 15
[ 1.433410] mmc0: msmsdcc_execute_tuning: finally setting the tuning phase to 11
[ 1.554443] qup_i2c qup_i2c.2: QUP: I2C status flags :0x11100c8, irq:228
[ 1.554687] qup_i2c qup_i2c.2: I2C slave addr:0x26 not connected
[ 1.645385] msm8930_audio_init: Not the right machine type
[ 1.645629] msm_audio_init: Not the right machine type
[ 1.832855] param_sec_operation: filp_open failed. (-2)
[ 1.832916] sec_open_param PARAM OPEN FAIL
[ 2.041748] Unable to register core for 0
[ 2.046142] sec-battery sec-battery: sec_battery_probe: Failed to Enable Wakeup Source(-6)
[ 2.060791] irda_device_init called!
[ 2.061248] barcode_emul_ice4: probe complete barcode_emul_probe
[ 2.061584] brcm_wlan_power: WL_REG_ON failed to pull up
[ 2.061706] brcm_wlan_power: WL_REG_ON failed to pull down
[ 3.743682] synaptics_rmi4_i2c 3-0020: synaptics_ta_cb: device is in suspend state or reflash.
[ 4.076446] brcm_wlan_power: WL_REG_ON failed to pull up
[ 4.076538] brcm_wlan_power: WL_REG_ON failed to pull down
[ 6.459686] mmc1: msmsdcc_execute_tuning: found good phase = 0
[ 6.459808] mmc1: msmsdcc_execute_tuning: found good phase = 1
[ 6.459899] mmc1: msmsdcc_execute_tuning: found good phase = 2
[ 6.460052] mmc1: msmsdcc_execute_tuning: found good phase = 3
[ 6.460205] mmc1: msmsdcc_execute_tuning: found good phase = 4
[ 6.460327] mmc1: msmsdcc_execute_tuning: found good phase = 5
[ 6.460906] mmc1: msmsdcc_execute_tuning: found good phase = 8
[ 6.461059] mmc1: msmsdcc_execute_tuning: found good phase = 9
[ 6.461151] mmc1: msmsdcc_execute_tuning: found good phase = 10
[ 6.461303] mmc1: msmsdcc_execute_tuning: found good phase = 11
[ 6.461395] mmc1: msmsdcc_execute_tuning: found good phase = 12
[ 6.461547] mmc1: msmsdcc_execute_tuning: found good phase = 13
[ 6.461669] mmc1: msmsdcc_execute_tuning: found good phase = 14
[ 6.461822] mmc1: msmsdcc_execute_tuning: found good phase = 15
[ 6.461883] mmc1: msmsdcc_execute_tuning: finally setting the tuning phase to 1
[ 8.137695] init: /init.jgedlte.rc: 646: invalid command '/system/bin/log'
[ 8.138031] init: /init.jgedlte.rc: 778: invalid command 'kill'
[ 8.138122] init: /init.jgedlte.rc: 780: invalid command 'kill'
[ 8.138214] init: /init.jgedlte.rc: 782: invalid command 'kill'
[ 8.138305] init: /init.jgedlte.rc: 784: invalid command 'kill'
[ 8.139404] init: init.target.rc: 47: invalid command 'check_fs'
[ 8.139495] init: init.target.rc: 61: invalid command 'check_fs'
[ 8.139617] init: init.target.rc: 90: invalid command 'check_fs'
[ 8.139709] init: init.target.rc: 104: invalid command 'check_fs'
[ 8.142120] init: invalid uid 'fm_radio'
[ 8.248016] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 8.251434] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 8.355895] init: cannot open '/initlogo.rle'
[ 8.671752] init: failed to open '/sys/devices/soc0/soc_id'
[ 8.671875] init: failed to open '/sys/devices/soc0/platform_version'
[ 8.672027] init: failed to open '/sys/devices/soc0/hw_platform'
[ 8.672180] init: Detected MSM SOC ID=153 SOC VER=65536 BOARD TYPE=MTP
[ 8.682708] healthd: wakealarm_init: timerfd_create failed
[ 8.686553] init: cannot find '/system/bin/rf4ce', disabling 'rf4ce'
[ 8.686645] init: cannot find '/system/bin/qrngd', disabling 'qrngd'
[ 8.686798] init: cannot find '/system/bin/bintvoutservice', disabling 'TvoutService_C'
[ 8.718261] init: cannot find '/system/bin/imsqmidaemon', disabling 'imsqmidaemon'
[ 8.788269] init: cannot find '/system/bin/gsiff_daemon', disabling 'gsiff_daemon'
[ 8.789337] init: property 'sys.powerctl' doesn't exist while expanding '${sys.powerctl}'
[ 8.789459] init: powerctl: cannot expand '${sys.powerctl}'
[ 8.789550] init: property 'sys.sysctl.extra_free_kbytes' doesn't exist while expanding '${sys.sysctl.extra_free_kbytes}'
[ 8.789672] init: cannot expand '${sys.sysctl.extra_free_kbytes}' while writing to '/proc/sys/vm/extra_free_kbytes'
[ 8.885864] init: cannot find '/system/bin/quipc_igsn', disabling 'quipc_igsn'
[ 8.898468] init: cannot find '/system/bin/quipc_main', disabling 'quipc_main'
[ 8.907196] init: cannot find '/system/bin/location-mq', disabling 'location_mq'
[ 8.922790] init: cannot find '/system/bin/lowi-server', disabling 'lowi-server'
[ 8.931152] init: cannot find '/system/bin/xtwifi-inet-agent', disabling 'xtwifi_inet'
[ 8.938018] init: cannot find '/system/bin/xtwifi-client', disabling 'xtwifi_client'
[ 9.846649] [mdnie lite] is negative Mode On = 0
[ 9.846649] [mdnie lite] negative off when resume, tuning again!
[ 9.846649] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 9.846649] [mdnie lite] = UI MODE =
[ 9.846649] [mdnie lite] = STANDARD MODE =
[ 9.846679] [mdnie lite] send tuning cmd!!
[ 9.894287] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 10.369110] init: sys_prop: permission denied uid:1003 name:boot.sfbootcomplete
[ 12.454925] mag_store_hwoffset success
[ 15.657409] diag: proc 1, msg mask update fail -12, tried 419
[ 121.995574] msm_pm_mode_attr_store: spc is blocked (1) from [sh]
[ 121.995727] msm_pm_mode_attr_store: spc is blocked (2) from [sh]
[ 121.995941] msm_pm_mode_attr_store: spc is blocked (3) from [sh]
[ 121.996093] msm_pm_mode_attr_store: spc is blocked (4) from [sh]
[ 122.137847] mpd msm_mpd_attr_slack_time_max_us_store: Error 4 returned when setting algo param slack_time_max_us to 45000
[ 122.138244] mpd msm_mpd_attr_slack_time_min_us_store: Error 4 returned when setting algo param slack_time_min_us to 15000
[ 122.138610] mpd msm_mpd_attr_em_win_size_min_us_store: Error 4 returned when setting algo param em_win_size_min_us to 100000
[ 122.138977] mpd msm_mpd_attr_em_win_size_max_us_store: Error 4 returned when setting algo param em_win_size_max_us to 1000000
[ 122.139404] mpd msm_mpd_attr_online_util_pct_min_store: Error 4 returned when setting algo param online_util_pct_min to 3
[ 122.139801] mpd msm_mpd_attr_online_util_pct_max_store: Error 4 returned when setting algo param online_util_pct_max to 25
[ 122.140167] mpd msm_mpd_attr_em_max_util_pct_store: Error 4 returned when setting algo param em_max_util_pct to 97
[ 122.140594] mpd msm_mpd_attr_mp_em_rounding_point_min_store: Error 4 returned when setting algo param mp_em_rounding_point_min to 10
[ 122.140960] mpd msm_mpd_attr_mp_em_rounding_point_max_store: Error 4 returned when setting algo param mp_em_rounding_point_max to 85
[ 123.151275] init: sys_prop: permission denied uid:1003 name:boot.sfbootcomplete
[ 123.166534] init: sys_prop: permission denied uid:1003 name:service.bootanim.exit
[ 123.853302] init: sys_prop: permission denied uid:1001 name:persist.sys.timezone
[ 125.524200] [BT] Bluetooth Power On.
[ 125.569976] hostwake line change [BT]
[ 126.847900] (bluesleep_write_proc_lpm) Reg HCI notifier. [BT]
[ 126.848571] bluesleep_outgoing_data. [BT]
[ 126.850524] hostwake line change [BT]
[ 127.176239] (bluesleep_write_proc_lpm) Unreg HCI notifier. [BT]
[ 127.208312] [BT] Bluetooth Power Off.
[ 198.849822] WLDEV-ERROR) wldev_set_country : wldev_set_country: set country for NO as NO rev 4
[ 346.769165] dtv_pipe is not configured yet
[ 349.822845] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 349.822967] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 351.209564] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 351.209655] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 353.439605] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 353.439666] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 353.789489] [mdnie lite] is negative Mode On = 0
[ 353.789581] [mdnie lite] negative off when resume, tuning again!
[ 353.789703] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 353.789794] [mdnie lite] = UI MODE =
[ 353.789916] [mdnie lite] = STANDARD MODE =
[ 353.790008] [mdnie lite] send tuning cmd!!
[ 353.822753] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 474.768463] [TouchKey]press=1, code=1
[ 474.936737] [TouchKey]press=0, code=1
[ 494.520965] dtv_pipe is not configured yet
[ 548.110229] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 548.110321] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 548.432708] [mdnie lite] is negative Mode On = 0
[ 548.432800] [mdnie lite] negative off when resume, tuning again!
[ 548.432891] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 548.433074] [mdnie lite] = UI MODE =
[ 548.433105] [mdnie lite] = STANDARD MODE =
[ 548.433166] [mdnie lite] send tuning cmd!!
[ 548.465881] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 556.306793] dtv_pipe is not configured yet
[ 560.792297] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 560.792388] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 562.021514] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 562.021606] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 564.631683] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 564.631774] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 566.012573] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 566.012664] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 566.413543] [mdnie lite] is negative Mode On = 0
[ 566.413635] [mdnie lite] negative off when resume, tuning again!
[ 566.413757] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 566.413909] [mdnie lite] = UI MODE =
[ 566.413970] [mdnie lite] = STANDARD MODE =
[ 566.414031] [mdnie lite] send tuning cmd!!
[ 566.446807] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 619.357269] dtv_pipe is not configured yet
[ 623.662414] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 623.662506] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 625.204071] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 625.204162] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 626.514190] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 626.514251] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 628.304748] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 628.304840] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 630.832031] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512
[ 630.832153] QSEECOM: qseecom_ioctl: failed qseecom_receive_req: -512

No errors detected