[Galaxy S 4 i9505 Original Android Development] qpop:
Good morning invisiblek, hopefully I have some good news for you.

I flashed 1906 without /system format (this I believe is what triggers the error) and have recovery.log output along with last_kmsg output.

Hopefully this will help.

Logs were taken this morning using Koush's CWM 6.0.3.2 downloaded and flashed through ROM Manager (when I finally worked out how to!)

Recovery.log snip:

-- Installing: /external_sd/cm-10.1-20130619-NIGHTLY-jfltexx.zip

Finding update package...

I:Update location: /external_sd/cm-10.1-20130619-NIGHTLY-jfltexx.zip

Opening update package...

Installing update...

Warning: No file_contexts

about to run program [/tmp/backuptool.sh] with 2 args

Creating filesystem with parameters:

Size: 2894069760

Block size: 4096

Blocks per group: 32768

Inodes per group: 8032

Inode size: 256

Journal blocks: 11040

Label:

Blocks: 706560

Block groups: 22

Reserved block group size: 175

Created filesystem with 11/176704 inodes and 23193/706560 blocks

Full file: http://pastebin.com/gg8jf8QR

last_kmsg snip:

[ 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.032470] AXI: msm_bus_fabric_init_driver(): msm_bus_fabric_init_driver
[ 0.032897] MSM_DCVS: msm_dcvs_early_init: Unable to initialize DCVS err=4
[ 0.057708] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.057708] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.057739] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.057739] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.057739] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.057769] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.057769] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.057769] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.121551] sensor_power_on_vdd: done
[ 0.175659] i2c i2c-4: Failed to register i2c client s5k3l1yx at 0x34 (-16)
[ 0.175811] i2c i2c-4: Can't create device at 0x34
[ 0.211456] msm_slim_ctrl msm_slim_ctrl.1: Slim-dev:3 report inf element:0x0
[ 0.211700] msm_slim_ctrl msm_slim_ctrl.1: offset:0x0:bit mask:8
[ 0.211944] msm_slim_ctrl msm_slim_ctrl.1: Slim-dev:4 report inf element:0x400
[ 0.212371] msm_slim_ctrl msm_slim_ctrl.1: offset:0x0:bit mask:8
[ 0.288391] Error-Bad Function Input
[ 0.289306] Error-Bad Function Input
[ 0.456451] smd_channel_probe_worker: allocation table not initialized
[ 0.472106] mdm_do_first_power_on: Powering on modem for the first time
[ 0.764129] [mdnie lite] start!
[ 0.764343] [mdnie lite] end!
[ 0.767395] hdmi_msm hdmi_msm.1: external_common_state_create: sysfs group dda80008
[ 0.768188] Inside writeback_driver_init
[ 0.768676] Inside writeback_probe
[ 1.162963] wcd9xxx_slim_probe: failed to get slimbus tabla-slim logical address: -6
[ 1.256744] msm_otg msm_otg: failed to get phy_clk
[ 1.432586] couldn't get usb power supply
[ 1.468322] [jc_spi_init:336] Entered
[ 1.471160] [jc_spi_probe:301] Entered
[ 1.474853] [jc_spi_probe:311] jc_spi successfully probed
[ 1.480194] jc_config_isp_irq~~~~~~~~~~
[ 1.484130] msm_eeprom_probe probe_fail
[ 1.492767] msm_sensor_i2c_probe s5k6b2yx probe succeeded
[ 1.497283] msm_eeprom_probe probe_fail
[ 1.539855] mmc0: No card detect facilities available
[ 1.683563] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 1.691497] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 1.726257] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 1.730285] mmc0: msmsdcc_execute_tuning: found good phase = 0
[ 1.730377] mmc0: msmsdcc_execute_tuning: found good phase = 1
[ 1.730468] mmc0: msmsdcc_execute_tuning: found good phase = 2
[ 1.730560] mmc0: msmsdcc_execute_tuning: found good phase = 3
[ 1.730651] mmc0: msmsdcc_execute_tuning: found good phase = 4
[ 1.730743] mmc0: msmsdcc_execute_tuning: found good phase = 5
[ 1.730834] mmc0: msmsdcc_execute_tuning: found good phase = 6
[ 1.730926] mmc0: msmsdcc_execute_tuning: found good phase = 7
[ 1.731018] mmc0: msmsdcc_execute_tuning: found good phase = 8
[ 1.731109] mmc0: msmsdcc_execute_tuning: found good phase = 9
[ 1.731201] mmc0: msmsdcc_execute_tuning: found good phase = 10
[ 1.731323] mmc0: msmsdcc_execute_tuning: found good phase = 11
[ 1.731414] mmc0: msmsdcc_execute_tuning: found good phase = 12
[ 1.732299] mmc0: msmsdcc_execute_tuning: found good phase = 15
[ 1.732330] mmc0: msmsdcc_execute_tuning: finally setting the tuning phase to 8
[ 1.828338] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 1.869110] msm8930_audio_init: Not the right machine type
[ 1.873962] msm_audio_init: Not the right machine type
[ 2.318756] sec-battery sec-battery: sec_battery_probe: Failed to Enable Wakeup Source(-6)
[ 2.341125] irda_device_init called!
[ 2.346588] barcode_emul_ice4: probe complete barcode_emul_probe
[ 2.356475] init: invalid uid 'fm_radio'
[ 2.359558] init: invalid uid 'fm_radio'
[ 2.520721] power_supply sec-fuelgauge: driver failed to report `status' property: 4294967274
[ 2.532012] power_supply sec-charger: driver failed to report `power_now' property: 4294967274
[ 2.560913] init: Unable to open persistent property directory /data/property errno: 2
[ 3.019439] [mdnie lite] is negative Mode On = 0
[ 3.019439] [mdnie lite] negative off when resume, tuning again!
[ 3.019439] [mdnie lite] mDNIe_Set_Mode start , mode(0), background(1)
[ 3.019439] [mdnie lite] = UI MODE =
[ 3.019439] [mdnie lite] = STANDARD MODE =
[ 3.019439] [mdnie lite] send tuning cmd!!
[ 3.052642] [mdnie lite] mDNIe_Set_Mode end , mode(0), background(1)
[ 4.019195] synaptics_rmi4_i2c 3-0020: synaptics_ta_cb: device is in suspend state or reflash.
[ 113.329711] [TouchKey]press=1, code=0
[ 113.820098] [TouchKey]press=0, code=0
[ 115.599884] [TouchKey]press=1, code=0
[ 115.695587] [TouchKey]press=0, code=0
[ 116.156127] [TouchKey]press=1, code=0
[ 116.228454] [TouchKey]press=0, code=0
[ 1245.753051] mmc0: SDCC PWR is ON
[ 1245.755310] mmc0: SDCC clks are ON, MCLK rate=192000000
[ 1245.760498] mmc0: SDCC irq is enabled
[ 1245.764190] ===== SDCC-CORE: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0x12400000, [MENTION=3357318]virt_[/MENTION]base=0xe31f8000 =====
[ 1245.772735] Reg=0x00: 0x00000001, 0x01211f00, 0x03a50101, 0x00000c46
[ 1245.779113] Reg=0x10: 0x00000006, 0x00000900, 0x00000000, 0x00000000
[ 1245.785461] Reg=0x20: 0x00000000, 0x1b775f40, 0x00001000, 0x00000000
[ 1245.791748] Reg=0x30: 0x00000000, 0x000c0400, 0x00000000, 0x408001ff
[ 1245.798126] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 1245.804412] Reg=0x50: 0x06000018, 0x00000000, 0x00000000, 0x00000000
[ 1245.810791] Reg=0x60: 0x07c56400, 0x00000000, 0x000000e4, 0x00000000
[ 1245.817108] ===== SDCC-DML: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0x12400800, [MENTION=3357318]virt_[/MENTION]base=0xe3334800 =====
[ 1245.825653] Reg=0x00: 0x00000004, 0x00010001, 0x00000000, 0x00000000
[ 1245.831970] Reg=0x10: 0x00000000, 0x00001000, 0x00001000, 0x00020001
[ 1245.838287] Reg=0x20: 0x00000000, 0x00000000, 0x00001000, 0x00000000
[ 1245.844665] Reg=0x30: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 1245.850952] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 1245.857330] ===== SDCC-BAM: Register Dumps [MENTION=2063076]Phys[/MENTION]_base=0x12402000, [MENTION=3357318]virt_[/MENTION]base=0xe31fc000 =====
[ 1245.865844] Reg=0x00: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 1245.872131] Reg=0x10: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 1245.878509] Reg=0x20: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 1245.884796] Reg=0x30: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 1245.891174] Reg=0x40: 0x00000000, 0x00000000, 0x00000000, 0x00000000
[ 1245.897521] mmc0: MCI_TEST_INPUT = 0x000003fc
[ 1245.901824] mmc0: got_dataend=0, prog_enable=1, wait_for_auto_prog_done=0, got_auto_prog_done=0, req_tout_ms=10000
[ 1245.912200] mmc0: PM: sdcc_suspended=0, pending_resume=0, sdcc_suspending=0
[ 1245.919097] mmc0: RPM: runtime_status=0, usage_count=1, is_suspended=0, disable_depth=0, runtime_error=0, request_pending=0, request=0
[ 1245.951599] end_request: I/O error, dev mmcblk0, sector 225864
[ 1245.961547] mmc_erase: group start error -110, status 0x0
[ 1245.966003] end_request: I/O error, dev mmcblk0, sector 225864
[ 1246.013458] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.020233] mmcblk0: command error, retrying timeout
[ 1246.050262] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.072570] mmcblk0: command error, retrying timeout
[ 1246.076904] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.091857] mmcblk0: command error, retrying timeout
[ 1246.096191] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.123168] mmcblk0: command error, retrying timeout
[ 1246.127502] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.134887] mmcblk0: command error, retrying timeout
[ 1246.140075] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.147613] mmcblk0: command error, retrying timeout
[ 1246.152526] end_request: I/O error, dev mmcblk0, sector 5894728
[ 1246.158386] Buffer I/O error on device mmcblk0p18, logical block 0
[ 1246.172119] end_request: I/O error, dev mmcblk0, sector 5894736
[ 1246.179382] Buffer I/O error on device mmcblk0p18, logical block 1
[ 1246.187133] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.196014] mmcblk0: command error, retrying timeout
[ 1246.200256] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.209716] mmcblk0: command error, retrying timeout
[ 1246.215850] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.222625] mmcblk0: command error, retrying timeout
[ 1246.229583] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.238067] mmcblk0: command error, retrying timeout
[ 1246.242279] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.251403] mmcblk0: command error, retrying timeout
[ 1246.257476] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.266662] mmcblk0: command error, retrying timeout
[ 1246.270690] end_request: I/O error, dev mmcblk0, sector 5895784
[ 1246.277832] Buffer I/O error on device mmcblk0p18, logical block 132
[ 1246.284790] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.291564] mmcblk0: command error, retrying timeout
[ 1246.297943] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.315887] mmcblk0: command error, retrying timeout
[ 1246.320251] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.345184] mmcblk0: command error, retrying timeout
[ 1246.349517] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.379882] mmcblk0: command error, retrying timeout
[ 1246.391998] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.398803] mmcblk0: command error, retrying timeout
[ 1246.403961] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.411499] mmcblk0: command error, retrying timeout
[ 1246.416442] end_request: I/O error, dev mmcblk0, sector 5896032
[ 1246.422271] Buffer I/O error on device mmcblk0p18, logical block 163
[ 1246.428985] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.436370] mmcblk0: command error, retrying timeout
[ 1246.441619] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.449005] mmcblk0: command error, retrying timeout
[ 1246.454284] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.461730] mmcblk0: command error, retrying timeout
[ 1246.466918] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.474395] mmcblk0: command error, retrying timeout
[ 1246.479583] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.487609] mmcblk0: command error, retrying timeout
[ 1246.492279] mmcblk0: timed out sending SET_BLOCK_COUNT command, card status 0x400e00
[ 1246.499786] mmcblk0: command error, retrying timeout
[ 1246.504669] end_request: I/O error, dev mmcblk0, sector 225864
[ 1246.510498] Buffer I/O error on device mmcblk0p16, logical block 0
[ 1246.516693] end_request: I/O error, dev mmcblk0, sector 225872
[ 1246.522491] Buffer I/O error on device mmcblk0p16, logical block 1
[ 1246.528656] end_request: I/O error, dev mmcblk0, sector 225880
[ 1246.534484] Buffer I/O error on device mmcblk0p16, logical block 2
[ 1246.540649] end_request: I/O error, dev mmcblk0, sector 225888
[ 1246.546447] Buffer I/O error on device mmcblk0p16, logical block 3
[ 1246.552642] end_request: I/O error, dev mmcblk0, sector 225896
[ 1246.558380] Buffer I/O error on device mmcblk0p16, logical block 4
[ 1246.564636] end_request: I/O error, dev mmcblk0, sector 225904
[ 1246.570373] Buffer I/O error on device mmcblk0p16, logical block 5
[ 1246.576599] end_request: I/O error, dev mmcblk0, sector 225912

This repeats the errors through all the blocks and sectors

Full file here: https://www.dropbox.com/s/wznimf2lpymlu84/last_kmsg.txt

I really hope this helps :)

edit: It is worth mentioning that once the error 7 occurs I had serious issues with getting the phone working again. Following a hard reboot into recovery a CWM restore failed and recovery stopped working. I rebooted into recovery again and tried to wipe to a factory reset and that also crashed (on wiping cache).

I ended up flashing philz recovery through Download mode using Odin, and formatted the various partitions before restoring; this worked and the OS is now restored.