[Galaxy S 5 Q&A, Help & Troubleshooting] moham_96:
Looks like no one wants to help :D:D

if i used the standard tools or any other tools in the internet to unpack boot.img and get information i get no cmdline from the stock image although when i open /proc/last_kmsg i get content in ATAG_CMDLINE . . . . so there is definitely a difference between the standard boot.img and the s5's

this is the content of my last_kmsg file i hope someone can use the information to help my modify the tools

MUIC rev = MAX77804K(157)
MON: 0x0(0)
MON[0] = (0)[0x00, 0x00]
MON[1] = (1)[0x00, 0x00]
MON[2] = (2)[0x00, 0x00]
MON[3] = (3)[0x00, 0x00]
init_microusb_ic: MUIC: CDETCTRL:0x2d
init_microusb_ic: MUIC: CONTROL1:0x00
init_microusb_ic: MUIC: CONTROL2:0x33
init_microusb_ic: MUIC: CONTROL4:0xb2
cardtype: 0x00000007
SB_MMC_HS_52MHZ_1_8V_3V_IO
mmc->card_caps: 0x00000f11
mmc->host_caps: 0x00000f11
!!!Enter 8 Bit DDR mode.!!!
[mmc] capacity = 30777344
Current SBOOT version : VERSION_-+A1

Samsung S-Boot 4.0 for SM-G900H (Jul 9 2014 - 15:38:24)

EXYNOS5422 EVT 0.1 (Base on ARM CortexA7)
2026MB / 15028MB / Rev 10 / G900HXXU1ANG3 /(PKG_ID 0x310c8328)

BOOTLOADER VERSION : G900HXXU1ANG3
- read_bl1
pit_check_signature (PIT) valid.
initialize_ddi_data: usable! (50:0x3)
[RPMB] emmc_rpmb_open:
Get DATA success.

[RPMB] emmc_rpmb_close:
initialize_rpmb_data: usable! (SM-G900H:VERSION_-+A1)
PARAM ENV VERSION: v1.0..
DDR SIZE: 2G (0x0004)
[RPMB] emmc_rpmb_open:
Get DATA success.

[RPMB] emmc_rpmb_close:
init react lock flag

muic_api_print_init_regs: INTMASK[1:0x00, 2:0x00]
muic_api_print_init_regs: MUIC: CDETCTRL:0x2d
muic_api_print_init_regs: MUIC: CONTROL1:0x00
muic_api_print_init_regs: MUIC: CONTROL2:0x3a
muic_api_print_init_regs: MUIC: CONTROL3:0x00
muic_api_print_init_regs: MUIC: CONTROL4:0xb2
set_charger_state: buck(1), chg(1), reg(0x05)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x00
muic_get_chg_typ: CHGTYP:0x00
set_auto_current: get_charger_status(0)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x00
muic_get_chg_typ: CHGTYP:0x00
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x00
muic_get_chg_typ: CHGTYP:0x00
get_wireless_charger_detect: wireless check 0
get_wireless_charger_detect : CHG_DTLS(0x00)
set_auto_current: unknown_state, curr(475)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x00
muic_get_chg_typ: CHGTYP:0x00
get_wireless_charger_detect: wireless check 0
get_wireless_charger_detect : CHG_DTLS(0x00)
set_charger_current: chg curr(12), in curr(0)
fuelgauge_read_i2c_word : 0x0, 0x0
fuelguage : mode=0x0
fuelgauge_read_i2c_word : 0x0, 0x0
fuelguage : hibrt(0000) == 0x0
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x00
muic_get_chg_typ: CHGTYP:0x00
get_wireless_charger_detect: wireless check 0
get_wireless_charger_detect : CHG_DTLS(0x00)
fuelguage : wpc_status(0)
muic_api_interrupt_reg_clear: INTR[1:0x00, 2:0x03]
AP_PMIC_SDA = 1
PMIC_ID = 0x83
PMIC_STATUS1 = 0x07
PMIC_STATUS2 = 0x11
PMIC_OFFSRC = 0x00
PMIC_PWRON = 0x01
PMIC_IRQ1 = 0x02
PMIC_IRQ2 = 0x11
PMIC_IRQ3 = 0x00
PMIC_RTC_INT1 = 0x22
PMIC_RTC_INT2 = 0x10
PMIC_RTC_INT3 = 0x00
PMIC_RTC_OFFSRC = 0x80
PMIC_RTC_SMPL = 0x03
s5p_check_keypad: 0x1110000
s5p_check_keypad: download mode
s5p_reset_reboot_mode
set_usb_vbus_out: MUIC: CONTROL1: 0x09
set_usb_vbus_out: SAFEOUTLDO: [0x75] + [0x75] -> [0x75]

: Entering usb mode for SM-G900H (1)..
scr_draw_image: draw 'warning.jpg'...
read 'warning.jpg'(185976) completed.
fimd_set_div: sclk=532000000, vclk=128404800, cmu_div=4, div=1
mic_init
60, 28, 13, 0x602813
ODIN MODE
ODIN MODE
PRODUCT NAME: SM-G900H
PRODUCT NAME: SM-G900H
CURRENT BINARY: Custom
CURRENT BINARY: Custom
SYSTEM STATUS: Custom
SYSTEM STATUS: Custom
REACTIVATION LOCK(KK): OFF
REACTIVATION LOCK(KK): OFF
KNOX WARRANTY VOID: 1
KNOX WARRANTY VOID: 1
RP SWREV: A1
RP SWREV: A1
board_set_dev_pm: hello! I'm USB.(1)
usb: read original PHYPARAM0 : 0x24d466e4
usb: modified PHYPARAM0 : 0x26d4e6e4
process_packet: id=100, data=0
checksum_enable write complete value : 0
NeedChecksum clear
get_storage_capacity 30777344 15028 14
process_packet: id=100, data=5
packet data size is changed to 1048576.
process_packet: id=100, data=2
process_packet: id=101, data=1
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=2
process_packet: id=101, data=3
process_packet: id=102, data=0
process_packet: id=102, data=2
process_packet: id=102, data=3
pit_check_signature (BOOT) valid.
if_ddi_data: succeeded. (50:0x0)
START: 114688 BLOCK: 26624
wait for erase done.
it can take serveral second.
.
pit_flash_binary: 'BOOT' is flashed fully.
process_packet: id=103, data=0
process_packet: id=103, data=1
s5p_restart_handler ('N':null)

MUIC rev = MAX77804K(157)
MON: 0x13(1)
MON[0] = (1)[0x0b, 0x17]
MON[1] = (2)[0xe0, 0x50]
MON[2] = (3)[0x55, 0xd4]
MON[3] = (0)[0x58, 0xec]
init_microusb_ic: MUIC: CDETCTRL:0x2d
init_microusb_ic: MUIC: CONTROL1:0x09
init_microusb_ic: MUIC: CONTROL2:0x3a
init_microusb_ic: MUIC: CONTROL4:0xb2
set_muic_uart_early: MUIC: CONTROL1: 0x00
cardtype: 0x00000007
SB_MMC_HS_52MHZ_1_8V_3V_IO
mmc->card_caps: 0x00000f11
mmc->host_caps: 0x00000f11
!!!Enter 8 Bit DDR mode.!!!
[mmc] capacity = 30777344
Current SBOOT version : VERSION_-+A1

Samsung S-Boot 4.0 for SM-G900H (Jul 9 2014 - 15:38:24)

EXYNOS5422 EVT 0.1 (Base on ARM CortexA7)
2026MB / 15028MB / Rev 10 / G900HXXU1ANG3 /(PKG_ID 0x310c8328)

BOOTLOADER VERSION : G900HXXU1ANG3
- read_bl1
pit_check_signature (PIT) valid.
initialize_ddi_data: usable! (50:0x0)
[RPMB] emmc_rpmb_open:
Get DATA success.

[RPMB] emmc_rpmb_close:
initialize_rpmb_data: usable! (SM-G900H:VERSION_-+A1)
PARAM ENV VERSION: v1.0..
DDR SIZE: 2G (0x0004)
[RPMB] emmc_rpmb_open:
Get DATA success.

[RPMB] emmc_rpmb_close:
init react lock flag

muic_api_print_init_regs: INTMASK[1:0x00, 2:0x00]
muic_api_print_init_regs: MUIC: CDETCTRL:0x2d
muic_api_print_init_regs: MUIC: CONTROL1:0x00
muic_api_print_init_regs: MUIC: CONTROL2:0x3a
muic_api_print_init_regs: MUIC: CONTROL3:0x00
muic_api_print_init_regs: MUIC: CONTROL4:0xb2
set_charger_state: buck(1), chg(1), reg(0x05)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
set_auto_current: get_charger_status(1)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
set_auto_current: usb_state(1), curr(475)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
set_charger_current: chg curr(12), in curr(19)
fuelgauge_read_i2c_word : 0x0, 0x0
fuelguage : mode=0x0
fuelgauge_read_i2c_word : 0x0, 0x0
fuelguage : hibrt(0000) == 0x0
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
fuelguage : wpc_status(0)
muic_api_interrupt_reg_clear: INTR[1:0x00, 2:0x13]
AP_PMIC_SDA = 1
PMIC_ID = 0x83
PMIC_STATUS1 = 0x3a
PMIC_STATUS2 = 0x10
PMIC_OFFSRC = 0x00
PMIC_PWRON = 0x01
PMIC_IRQ1 = 0x51
PMIC_IRQ2 = 0x10
PMIC_IRQ3 = 0x00
PMIC_RTC_INT1 = 0x51
PMIC_RTC_INT2 = 0x10
PMIC_RTC_INT3 = 0x00
PMIC_RTC_OFFSRC = 0x80
PMIC_RTC_SMPL = 0x03
s5p_check_keypad: 0x0
s5p_check_reboot_mode: INFORM3 = 0 ... skip
board_get_clock_info :
CLK_SRC_TOP3 (0x1002020c) = 0x11111111
CLK_SRC_TOP2 (0x10020208) = 0x11102010
CLK_SRC_TOP1 (0x10020204) = 0x00200000
CLK_SRC_TOP0 (0x10020200) = 0x10021100
CLK_SRC_FSYS (0x10020244) = 0x00044400
CLK_DIV_CPU0 (0x10010500) = 0x03550020
CLK_DIV_TOP0 (0x10020500) = 0x22504200
CLK_DIV_KFC (0x10038500) = 0x03500720
CLK_DIV_FSYS1 (0x1002054c) = 0x00102801
CLK_DIV_FSYS2 (0x10020550) = 0x04000000
MPLL_CON0 (0x10020180) = 0xa10a0302(532 MHz)
BPLL_CON0 (0x10030110) = 0xa1130401(825 MHz)
CPLL_CON0 (0x10020120) = 0xa06f0201(666 MHz)
KPLL_CON0 (0x10038100) = 0xa0c80301(800 MHz)
SPLL_CON0 (0x10020160) = 0xa0c80301(800 MHz)
DPLL_CON0 (0x10020128) = 0xa0c80202
DIV_FSYS1 (0x1002054c) = 0x00102801
mmc0 sclk_mmc : 400000KHz
mmc2 sclk_mmc : 400000KHz
board_get_clock_info : time = 0
s5p_check_upload: MAGIC(0x0), RST_STAT(0x800)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
s5p_check_upload: debug level is LO! (mask: 0x0)
s5p_check_download: 0
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
check_pm_status: normal reset, do not enter LPM mode.
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
fuelguage : wpc_status(0)
set_charger_state: buck(1), chg(0), reg(0x04)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
set_auto_current: get_charger_status(1)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
set_auto_current: usb_state(1), curr(475)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
set_charger_current: chg curr(12), in curr(19)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
[fuelgauge] start set model data for max17048
[fuelguage] : OriginRCOMP = 0x97, OriginAlert = 0x1c
fuelguage : OCV_DATA1 = 0xbd, OCV_DATA2 = 0x30
[BATT]fuelguage : re-write RCOMPseg data
fuelguage : SOC_DATA1 = 0xf3, SOC_DATA2 = 0x4d
fuelguage : model was loaded successful
fuelguage : RCOMP(0x5d)
fuelguage : OCV_DATA1 = 0xbd, OCV_DATA2 = 0x30
[max17048] hibrt, vart, vreset setting
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
fuelgauge_read_i2c_word : 0x0, 0x0
fuelgauge_read_i2c_word : 0x0, 0xff
fuelgauge_read_i2c_word : 0x7d, 0x0
fuelgauge_read_i2c_word : 0x3f, 0xc5
fuelgauge_read_i2c_word : 0xbd, 0x0
fuelgauge_read_i2c_word : 0xbd, 0x0
fuelgauge_read_i2c_word : 0xbd, 0x0
fuelgauge_read_i2c_word : 0xbd, 0x0
fuelgauge_read_i2c_word : 0xbd, 0x0
fuelgauge_read_i2c_word : 0xbd, 0x2f
init_fuel_gauge: is reset case, skip soc-cal.
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
[BATT] Charging table soc
[BATT]3165 = ( 378000 - 370815 ) *100 / 227
[fuelgauge]soc(31), table_soc(31), vcell(378000)
fuelgauge : fg_reset_soc (0)
set_charger_state: buck(1), chg(1), reg(0x05)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
set_auto_current: get_charger_status(1)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
set_auto_current: usb_state(1), curr(475)
muic_get_adc_value: STATUS1:0x3f
muic_get_adc_value: ADC:0x1f
muic_get_chg_typ: STATUS2:0x41
muic_get_chg_typ: CHGTYP:0x01
set_charger_current: chg curr(12), in curr(19)
fuelgauge_read_i2c_word : 0x1, 0xff
fuelguage : REG_VCELL = 0xbd, 0xa0
fuelguage : REG_SOC = 0x3f, 0xc5
fuelguage : REG_MODE = 0x0, 0x0
fuelguage : REG_VERSION = 0x0, 0x12
fuelguage : REG_HIBRT = 0x0, 0x0
fuelguage : REG_RCOMP = 0x5d, 0x1e
fuelguage : REG_VART = 0x0, 0xff
fuelguage : REG_CRATE = 0xe, 0xc0
fuelguage : REG_VRESET = 0x7d, 0x0
fuelguage : REG_STATUS = 0x0, 0xff
fuelguage : REG_RCOMP = 0x5d, 0x1e
scr_draw_image: draw 'logo.jpg'...
read 'logo.jpg'(104016) completed.
[TMU] 49, 51, 54, 47, 45
fimd_set_div: sclk=532000000, vclk=128404800, cmu_div=4, div=1
mic_init
60, 28, 13, 0x602813
<start_checksum:481>CHECKSUM_HEADER_SECTOR :4096
<start_checksum:483>offset:50, size:6296
<start_checksum:485>CHECKSUM_HEADER_INFO : NeedChecksum:0 PartNo:0
Not Need Movinand Checksum
Movinand Checksum Confirmation Pass
[mobi_drv] add: 0x43e53d10, size: 13229
MobiCore INIT response = 0
MobiCore RTM has initialized!
MobiCore IDLE flag = 0
MobiCore driver address 43e53d10, size = 13229
MobiCore RTM Notified back!
MobiCore Driver loaded and RTM IDLE!
MobiCore RTM has been uninitialized!
load_kernel: loading boot image from 114688..
dt_size:561152, dt_actual:561152
pit_check_signature (BOOT) valid.
No need to update kernel type.

SMC Num = 0x83000001

mobismc success!!! [ret = 0]
Pass. DTBH size is smaller than a page.

<dtbh_header Info>
magic:0x48425444, version:0x00000002, num_entries:0x00000005

<device info>
chip_id: 0x0000152e
platform_id: 0x00001e92
subtype_id: 0x7d64f612
hw_rev: 0x0000000a

dt_entry[00]
chip_id: 0x0000152e
platform_id: 0x00001e92
subtype_id: 0x7d64f612
hw_rev: 0x00000002
hw_rev_end: 0x00000002
offset: 0x00000800
dtb size: 0x0001b000
dt_entry[01]
chip_id: 0x0000152e
platform_id: 0x00001e92
subtype_id: 0x7d64f612
hw_rev: 0x00000003
hw_rev_end: 0x00000003
offset: 0x0001b800
dtb size: 0x0001b800
dt_entry[02]
chip_id: 0x0000152e
platform_id: 0x00001e92
subtype_id: 0x7d64f612
hw_rev: 0x00000004
hw_rev_end: 0x00000004
offset: 0x00037000
dtb size: 0x0001b000
dt_entry[03]
chip_id: 0x0000152e
platform_id: 0x00001e92
subtype_id: 0x7d64f612
hw_rev: 0x00000005
hw_rev_end: 0x00000009
offset: 0x00052000
dtb size: 0x0001b800
dt_entry[04]
chip_id: 0x0000152e
platform_id: 0x00001e92
subtype_id: 0x7d64f612
hw_rev: 0x0000000a
hw_rev_end: 0x000000ff
offset: 0x0006d800
dtb size: 0x0001b800
Selected entry hw_ver : 10
dt_entry of hw_rev 10 is loaded at 0x41f00000.(112640 Bytes)
[s5p_check_sboot_version_rpmb]cur_version:VERSION_-+A1, rpmb_version:VERSION_-+A1
rpmb_version:49, cur_version:49
DDI value :0x00000000
ATAG_CORE: 5 54410001 0 0 0
ATAG_MEM: 4 54410002 20000000 40000000
ATAG_MEM: 4 54410002 20000000 60000000
ATAG_MEM: 4 54410002 20000000 80000000
ATAG_MEM: 4 54410002 1EA00000 A0000000
ATAG_SERIAL: 4 54410006 3208df64 106e5127
ATAG_INITRD2: 4 54420005 42000000 1576a8
ATAG_REVISION: 3 54410007 a
ATAG_CMDLINE: b3 54410009 'console=ram loglevel=4 sec_debug.level=0 sec_watchdog.sec_pet=5 printk.core_num=1 androidboot.debug_level=0x4f4c sec_log=0x200000@0x46000000 sec_tima_log=0x200000@0x46202000 sec_avc_log=0x40000@0x46404000 s3cfb.bootloaderfb=0x87000000 lcdtype=6301715 consoleblank=0 lpj=3977216 vmalloc=256m sec_debug.reset_reason=7 noexec=off oops=panic pmic_info=2515 cordon=9ae968e9bf369aa72d0c1c9b54ff83c3 connie=SM-G900H_OPEN_EUR_ed2a5acfd0ccaca2ddabdb9a73333535 androidboot.emmc_checksum=3 androidboot.odin_download=1 androidboot.bootloader=G900HXXU1ANG3 androidboot.selinux=enforcing androidboot.warranty_bit=1 androidboot.sec_atd.tty=/dev/ttySAC2 androidboot.serialno=3208df64106e5127 snd_soc_core.pmdown_time=1000'
ATAG_NONE: 0 0
Updating device tree @0x41f00000: done

Starting kernel at 0x40008000...

SWITCH_SEL(3)