[Galaxy S 4 Q&A, Help & Troubleshooting] AntaresOne:
ROM available here: http://xdaforums.com/showthread.php?t=2943934

Hello, I built AOSP 5 and CM12 (even if it's still more AOSP-like atm) for i9505 but don't boot.

This is the last_kmsg:

[ 0.000000] Truncating memory at 0xc0000000 to fit in 32-bit physical address space
[ 0.000000] sec_tsp_mode: LCD_ID = 0x408047, val: 0X408047, ret1: 0x8
[ 0.030853] AXI: msm_bus_fabric_init_driver(): msm_bus_fabric_init_driver
[ 0.052886] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.052917] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.052947] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.052947] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.052978] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.053009] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.053009] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.053039] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.124511] sensor_power_on_vdd: done
[ 0.177917] i2c i2c-4: Failed to register i2c client imx135 at 0x10 (-16)
[ 0.178100] i2c i2c-4: Can't create device at 0x10
[ 0.178497] i2c i2c-4: Failed to register i2c client s5k3l1yx at 0x34 (-16)
[ 0.178710] i2c i2c-4: Can't create device at 0x34
[ 0.210174] ion_heap_create: Invalid heap type 3
[ 0.214752] msm_slim_ctrl msm_slim_ctrl.1: Slim-dev:3 report inf element:0x0
[ 0.214904] msm_slim_ctrl msm_slim_ctrl.1: offset:0x0:bit mask:8
[ 0.215484] msm_slim_ctrl msm_slim_ctrl.1: Slim-dev:4 report inf element:0x400
[ 0.215759] msm_slim_ctrl msm_slim_ctrl.1: offset:0x0:bit mask:8
[ 0.291564] Error-Bad Function Input
[ 0.292449] Error-Bad Function Input
[ 0.399383] smd_channel_probe_worker: allocation table not initialized
[ 0.408843] dma_test_init, minor number 37
[ 0.416992] mdm_modem_probe: registered mdm id 0
[ 0.417114] mdm_do_first_power_on:id 0: Powering on modem for the first time
[ 0.672729] cont_splash_clk_ctrl: dsi_esc_clk - clk_set_rate failed
[ 0.681335] [mdnie lite] start!
[ 0.681518] [mdnie lite] end!
[ 0.682952] hdmi_msm hdmi_msm.1: external_common_state_create: sysfs group df046e08
[ 0.683319] Inside writeback_driver_init
[ 0.683563] Inside writeback_probe
[ 0.876434] wcd9xxx_slim_probe: failed to get slimbus tabla-slim logical address: -6
[ 0.944671] msm_otg msm_otg: failed to get phy_clk
[ 1.115600] couldn't get usb power supply
[ 1.135345] [jc_spi_init:336] Entered
[ 1.135437] [jc_spi_probe:301] Entered
[ 1.135528] [jc_spi_probe:311] jc_spi successfully probed
[ 1.135681] jc_config_isp_irq~~~~~~~~~~
[ 1.135833] msm_eeprom_probe probe_fail
[ 1.139526] msm_sensor_i2c_probe s5k6b2yx probe succeeded
[ 1.139648] msm_eeprom_probe probe_fail
[ 1.173065] mmc0: No card detect facilities available
[ 1.297515] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 1.297637] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 1.314422] max77693_get_health_state: Fail to get psy (battery)
[ 1.317077] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 1.318664] max77693_get_health_state: Fail to get psy (battery)
[ 1.321289] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 1.358367] mmc0: msmsdcc_execute_tuning: found good phase = 0
[ 1.358489] mmc0: msmsdcc_execute_tuning: found good phase = 1
[ 1.358703] mmc0: msmsdcc_execute_tuning: found good phase = 2
[ 1.358825] mmc0: msmsdcc_execute_tuning: found good phase = 3
[ 1.359008] mmc0: msmsdcc_execute_tuning: found good phase = 4
[ 1.359130] mmc0: msmsdcc_execute_tuning: found good phase = 5
[ 1.359313] mmc0: msmsdcc_execute_tuning: found good phase = 6
[ 1.359466] mmc0: msmsdcc_execute_tuning: found good phase = 7
[ 1.359649] mmc0: msmsdcc_execute_tuning: found good phase = 8
[ 1.359771] mmc0: msmsdcc_execute_tuning: found good phase = 9
[ 1.359954] mmc0: msmsdcc_execute_tuning: found good phase = 10
[ 1.360107] mmc0: msmsdcc_execute_tuning: found good phase = 11
[ 1.360290] mmc0: msmsdcc_execute_tuning: found good phase = 12
[ 1.360412] mmc0: msmsdcc_execute_tuning: found good phase = 13
[ 1.360595] mmc0: msmsdcc_execute_tuning: found good phase = 14
[ 1.360717] mmc0: msmsdcc_execute_tuning: found good phase = 15
[ 1.360839] mmc0: msmsdcc_execute_tuning: finally setting the tuning phase to 11
[ 1.540985] qup_i2c qup_i2c.2: QUP: I2C status flags :0x11143c8, irq:228
[ 1.541076] qup_i2c qup_i2c.2: I2C slave addr:0x26 not connected
[ 1.618560] msm_audio_init: Not the right machine type
[ 1.903472] sec-battery sec-battery: sec_battery_probe: Failed to Enable Wakeup Source(-6)
[ 1.908355] irda_device_init called!
[ 1.908782] barcode_emul_ice4: probe complete barcode_emul_probe
[ 1.909179] brcm_wlan_power: WL_REG_ON failed to pull up
[ 1.909271] brcm_wlan_power: WL_REG_ON failed to pull down
[ 3.720855] synaptics_rmi4_i2c 3-0020: synaptics_ta_cb: device is in suspend state or reflash.
[ 3.922607] brcm_wlan_power: WL_REG_ON failed to pull up
[ 3.922698] brcm_wlan_power: WL_REG_ON failed to pull down
[ 5.932617] brcm_wlan_power: WL_REG_ON failed to pull up
[ 5.932708] brcm_wlan_power: WL_REG_ON failed to pull down
[ 8.317565] mmc1: msmsdcc_execute_tuning: found good phase = 0
[ 8.317687] mmc1: msmsdcc_execute_tuning: found good phase = 1
[ 8.317871] mmc1: msmsdcc_execute_tuning: found good phase = 2
[ 8.318023] mmc1: msmsdcc_execute_tuning: found good phase = 3
[ 8.318206] mmc1: msmsdcc_execute_tuning: found good phase = 4
[ 8.318328] mmc1: msmsdcc_execute_tuning: found good phase = 5
[ 8.319091] mmc1: msmsdcc_execute_tuning: found good phase = 8
[ 8.319213] mmc1: msmsdcc_execute_tuning: found good phase = 9
[ 8.319396] mmc1: msmsdcc_execute_tuning: found good phase = 10
[ 8.319549] mmc1: msmsdcc_execute_tuning: found good phase = 11
[ 8.319702] mmc1: msmsdcc_execute_tuning: found good phase = 12
[ 8.319854] mmc1: msmsdcc_execute_tuning: found good phase = 13
[ 8.320037] mmc1: msmsdcc_execute_tuning: found good phase = 14
[ 8.320159] mmc1: msmsdcc_execute_tuning: found good phase = 15
[ 8.320281] mmc1: msmsdcc_execute_tuning: finally setting the tuning phase to 1
[ 9.098876] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 9.104797] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[B][ 9.240478] init: cannot find '/system/bin/sysinit', disabling 'sysinit'
[ 9.240692] init: Unable to open persistent property directory /data/property errno: 2
[ 9.245391] init: cannot find '/system/bin/logd', disabling 'logd'
[ 9.245880] init: cannot find '/system/bin/lmkd', disabling 'lmkd'
[ 9.246002] init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'
[ 9.246124] init: cannot find '/system/bin/vold', disabling 'vold'
[ 9.246276] init: cannot find '/system/bin/surfaceflinger', disabling 'surfaceflinger'
[ 9.246398] init: cannot find '/system/bin/sh', disabling 'config_bluetooth'
[ 9.256835] init: cannot find '/system/bin/sh', disabling 'console'
[ 9.256958] init: cannot find '/system/bin/rmt_storage', disabling 'rmt_storage'[/B]
[ 10.383392] synaptics_rmi4_i2c 3-0020: synaptics_ta_cb: device is in suspend state or reflash.
[ 38.952606] [TouchKey]press=1, code=0
[ 39.171752] [TouchKey]press=0, code=0
[ 45.726440] PMIC Initiated shutdown cpu_power_off cpu=0
[ 45.726440] PMIC Initiated shutdown cpu_power_off cpu=3
[ 45.726470] PMIC Initiated shutdown cpu_power_off cpu=1
[ 45.726470] PMIC Initiated shutdown cpu_power_off cpu=2
[ 45.726745] Powering off the SoC
[ 45.726867] Calling scm to disable arbiter
[ 45.726959] SCM returned even when asked to busy loop rc=-4
[ 45.727020] waiting on pmic to shut msm down

1 Corrected bytes, 0 unrecoverable blocks

First critical error is: [ 9.240478] init: cannot find '/system/bin/sysinit', disabling 'sysinit'

Seems like if /system partition isn't mounted, but fstab is okay. After flashing ZIP, those binaries are present in /system/bin. Device stays on Samsung bootsplash and ADB is working since I built with eng so ro.adb.secure is 0, but if I try to open shell I get /system/bin/sh: not found. Kernel source is CM11 one.

If anyone has an idea, any help would be appreciated.

EDIT: I modified init.rc and now last_kmsg:

[ 0.000000] Truncating memory at 0xc0000000 to fit in 32-bit physical address space
[ 0.000000] sec_tsp_mode: LCD_ID = 0x408047, val: 0X408047, ret1: 0x8
[ 0.031494] AXI: msm_bus_fabric_init_driver(): msm_bus_fabric_init_driver
[ 0.053710] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.053741] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.053741] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.053771] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.053802] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.053802] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.053833] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.053863] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.122497] sensor_power_on_vdd: done
[ 0.175933] i2c i2c-4: Failed to register i2c client imx135 at 0x10 (-16)
[ 0.176116] i2c i2c-4: Can't create device at 0x10
[ 0.176513] i2c i2c-4: Failed to register i2c client s5k3l1yx at 0x34 (-16)
[ 0.176696] i2c i2c-4: Can't create device at 0x34
[ 0.209106] ion_heap_create: Invalid heap type 3
[ 0.213653] msm_slim_ctrl msm_slim_ctrl.1: Slim-dev:3 report inf element:0x0
[ 0.213806] msm_slim_ctrl msm_slim_ctrl.1: offset:0x0:bit mask:8
[ 0.214172] msm_slim_ctrl msm_slim_ctrl.1: Slim-dev:4 report inf element:0x400
[ 0.214660] msm_slim_ctrl msm_slim_ctrl.1: offset:0x0:bit mask:8
[ 0.289825] Error-Bad Function Input
[ 0.290771] Error-Bad Function Input
[ 0.526214] smd_channel_probe_worker: allocation table not initialized
[ 0.535797] dma_test_init, minor number 37
[ 0.543884] mdm_modem_probe: registered mdm id 0
[ 0.544128] mdm_do_first_power_on:id 0: Powering on modem for the first time
[ 0.851287] cont_splash_clk_ctrl: dsi_esc_clk - clk_set_rate failed
[ 0.859802] [mdnie lite] start!
[ 0.859954] [mdnie lite] end!
[ 0.861450] hdmi_msm hdmi_msm.1: external_common_state_create: sysfs group df04cc08
[ 0.861816] Inside writeback_driver_init
[ 0.862030] Inside writeback_probe
[ 1.055023] wcd9xxx_slim_probe: failed to get slimbus tabla-slim logical address: -6
[ 1.123413] msm_otg msm_otg: failed to get phy_clk
[ 1.294342] couldn't get usb power supply
[ 1.314239] [jc_spi_init:336] Entered
[ 1.314331] [jc_spi_probe:301] Entered
[ 1.314422] [jc_spi_probe:311] jc_spi successfully probed
[ 1.314544] jc_config_isp_irq~~~~~~~~~~
[ 1.314666] msm_eeprom_probe probe_fail
[ 1.318389] msm_sensor_i2c_probe s5k6b2yx probe succeeded
[ 1.318481] msm_eeprom_probe probe_fail
[ 1.352172] mmc0: No card detect facilities available
[ 1.475433] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 1.475555] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 1.492126] max77693_get_health_state: Fail to get psy (battery)
[ 1.494750] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 1.496337] max77693_get_health_state: Fail to get psy (battery)
[ 1.498901] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 1.537536] mmc0: msmsdcc_execute_tuning: found good phase = 0
[ 1.537689] mmc0: msmsdcc_execute_tuning: found good phase = 1
[ 1.537841] mmc0: msmsdcc_execute_tuning: found good phase = 2
[ 1.537994] mmc0: msmsdcc_execute_tuning: found good phase = 3
[ 1.538146] mmc0: msmsdcc_execute_tuning: found good phase = 4
[ 1.538269] mmc0: msmsdcc_execute_tuning: found good phase = 5
[ 1.538452] mmc0: msmsdcc_execute_tuning: found good phase = 6
[ 1.538574] mmc0: msmsdcc_execute_tuning: found good phase = 7
[ 1.538757] mmc0: msmsdcc_execute_tuning: found good phase = 8
[ 1.538879] mmc0: msmsdcc_execute_tuning: found good phase = 9
[ 1.539062] mmc0: msmsdcc_execute_tuning: found good phase = 10
[ 1.539184] mmc0: msmsdcc_execute_tuning: found good phase = 11
[ 1.539642] mmc0: msmsdcc_execute_tuning: found good phase = 13
[ 1.539794] mmc0: msmsdcc_execute_tuning: found good phase = 14
[ 1.539947] mmc0: msmsdcc_execute_tuning: found good phase = 15
[ 1.540039] mmc0: msmsdcc_execute_tuning: finally setting the tuning phase to 7
[ 1.540802] qup_i2c qup_i2c.2: QUP: I2C status flags :0x11143c8, irq:228
[ 1.540924] qup_i2c qup_i2c.2: I2C slave addr:0x26 not connected
[ 1.617065] msm_audio_init: Not the right machine type
[ 1.922241] sec-battery sec-battery: sec_battery_probe: Failed to Enable Wakeup Source(-6)
[ 1.936584] irda_device_init called!
[ 1.937042] barcode_emul_ice4: probe complete barcode_emul_probe
[ 1.937377] brcm_wlan_power: WL_REG_ON failed to pull up
[ 1.937530] brcm_wlan_power: WL_REG_ON failed to pull down
[ 3.896179] synaptics_rmi4_i2c 3-0020: synaptics_ta_cb: device is in suspend state or reflash.
[ 3.951263] brcm_wlan_power: WL_REG_ON failed to pull up
[ 3.951416] brcm_wlan_power: WL_REG_ON failed to pull down
[ 5.961273] brcm_wlan_power: WL_REG_ON failed to pull up
[ 5.961364] brcm_wlan_power: WL_REG_ON failed to pull down
[ 8.018737] hostwake line change [BT]
[ 8.586364] mmc1: msmsdcc_execute_tuning: found good phase = 0
[ 8.586547] mmc1: msmsdcc_execute_tuning: found good phase = 1
[ 8.586669] mmc1: msmsdcc_execute_tuning: found good phase = 2
[ 8.586853] mmc1: msmsdcc_execute_tuning: found good phase = 3
[ 8.586975] mmc1: msmsdcc_execute_tuning: found good phase = 4
[ 8.587158] mmc1: msmsdcc_execute_tuning: found good phase = 5
[ 8.587860] mmc1: msmsdcc_execute_tuning: found good phase = 8
[ 8.588043] mmc1: msmsdcc_execute_tuning: found good phase = 9
[ 8.588165] mmc1: msmsdcc_execute_tuning: found good phase = 10
[ 8.588348] mmc1: msmsdcc_execute_tuning: found good phase = 11
[ 8.588470] mmc1: msmsdcc_execute_tuning: found good phase = 12
[ 8.588653] mmc1: msmsdcc_execute_tuning: found good phase = 13
[ 8.588836] mmc1: msmsdcc_execute_tuning: found good phase = 14
[ 8.588958] mmc1: msmsdcc_execute_tuning: found good phase = 15
[ 8.589080] mmc1: msmsdcc_execute_tuning: finally setting the tuning phase to 1
[ 10.129394] healthd: wakealarm_init: timerfd_create failed
[ 10.365814] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 10.370635] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 10.478942] init: property 'ro.product.model' doesn't exist while expanding '${ro.product.model}'
[ 10.479064] init: cannot expand '${ro.product.model}' while writing to '/sys/class/android_usb/android0/iProduct'
[ 10.479766] init: Unable to open persistent property directory /data/property errno: 2
[ 10.480194] init: Found bootloader id I9505XXUGNG8 setting build properties for jfltexx device
[ 10.482574] healthd: wakealarm_init: timerfd_create failed
[ 12.240692] [mdnie lite] is negative Mode On = 0
[ 12.240692] [mdnie lite] negative off when resume, tuning again!
[ 12.240722] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 12.240722] [mdnie lite] = UI MODE =
[ 12.240753] [mdnie lite] = STANDARD MODE =
[ 12.240753] [mdnie lite] send tuning cmd!!
[ 12.290435] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 12.962921] [mdnie lite] is negative Mode On = 0
[ 12.962921] [mdnie lite] negative off when resume, tuning again!
[ 12.962951] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 12.962951] [mdnie lite] = UI MODE =
[ 12.962982] [mdnie lite] = STANDARD MODE =
[ 12.962982] [mdnie lite] send tuning cmd!!
[ 13.012664] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 408.649932] [mdnie lite] is negative Mode On = 0
[ 408.649932] [mdnie lite] negative off when resume, tuning again!
[ 408.649963] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 408.649963] [mdnie lite] = UI MODE =
[ 408.649963] [mdnie lite] = STANDARD MODE =
[ 408.649993] [mdnie lite] send tuning cmd!!
[ 408.699676] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 1123.502899] [mdnie lite] is negative Mode On = 0
[ 1123.502929] [mdnie lite] negative off when resume, tuning again!
[ 1123.502929] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 1123.502960] [mdnie lite] = UI MODE =
[ 1123.502960] [mdnie lite] = STANDARD MODE =
[ 1123.502960] [mdnie lite] send tuning cmd!!
[ 1123.552642] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 1125.997711] SysRq : Emergency Remount R/O
[ 1126.825103] qup_i2c qup_i2c.2: QUP: I2C status flags :0x1343c8, irq:228
[ 1126.825164] qup_i2c qup_i2c.2: I2C slave addr:0x26 not connected
[ 1126.825317] MFD is Null
[ 1126.857635] Restarting system with command ''.

No errors detected