[Galaxy Grand Prime Android Development] kentone:
Hey [MENTION=7569388]vince2678[/MENTION]

I am researching on the camera problem, looking at the logcats, and I found this:

E/mm-camera-sensor( 318): parse_module_xml:134 Could not find or parse file system/etc/G08QU_etc_module_info.xml

And the full part here:

E/mm-camera( 318): server_process_module_init:59, int mods
E/mm-camera-sensor( 318): module_sensor_init:4835 module_sensor_init Enter
E/mm-camera-sensor( 318): sensor_init_probe:353 sensor_init_probe
E/mm-camera-sensor( 318): sensor_init_probe:389 Done enumerating media entities
E/mm-camera-sensor( 318): sensor_init_probe:364 Done enumerating media devices
E/mm-camera-sensor( 318): sensor_init_probe:404 subdev_name /dev/v4l-subdev7
E/mm-camera-sensor( 318): sensor_init_probe:412 Open subdev
E/mm-camera-sensor( 318): check_all_eeprom_dev:293 found eeprom : /dev/v4l-subdev6 cam_position: 0
E/Diag_Lib( 324): Diag_LSM_Init: Failed to open handle to diag driver, error = 13
E/mm-camera-sensor( 318): [mm]write_sysfs_latest_module_check:775 [FW_DBG][/sys/class/camera/rear/rear_checkfw_user] OK
E/mm-camera-sensor( 318): [mm]write_sysfs_latest_module_check:775 [FW_DBG][/sys/class/camera/rear/rear_checkfw_factory] OK
E/mm-camera-sensor( 318): [mm]read_EEPROM_header_version:445 EEPROM HEADER: core_version(0x47) resolution(0x30 0x38) isp(0x51) sensor_maker(0x55)
E/mm-camera-sensor( 318): [mm]read_EEPROM_header_version:447 EEPROM HEADER: year(0x48) month(0x45) iter(0x30 0x31)
E/mm-camera-sensor( 318): [mm]read_EEPROM_header_version:453 [FW_DBG] EEPROM HEADER: G 08 Q U H E 01 S M
E/mm-camera-sensor( 318): read_eeprom:147 eeprom header version : sensor maker : 0x55
E/mm-camera-sensor( 318): read_eeprom:211 [read_eeprom] ETC
E/mm-camera-sensor( 318): read_eeprom:214 firmware sensor name etc
E/mm-camera-sensor( 318): read_eeprom:220 version_xml_name G08QU_etc
E/mm-camera-sensor( 318): [mm]check_version:653 firmware version file system/etc/G08QU_etc_module_info.xml
E/mm-camera-sensor( 318): parse_module_xml:134 Could not find or parse file system/etc/G08QU_etc_module_info.xml
E/mm-camera-sensor( 318): [mm]check_version:657 camera F/W on F-ROM is loading because there is no xml in the phone
E/mm-camera-sensor( 318): [mm]read_eeprom_sensor_lib_info:883 firmware version file system/etc/G08QU_etc_module_info.xml
E/mm-camera-sensor( 318): parse_module_xml:134 Could not find or parse file system/etc/G08QU_etc_module_info.xml
E/mm-camera-sensor( 318): [mm]read_eeprom_sensor_lib_info:886 parsing version error
E/mm-camera-sensor( 318): [mm]write_sysfs_firmware_version:762 [FW_DBG][/sys/class/camera/rear/rear_camfw] G08QUHE01SM NULL
E/mm-camera-sensor( 318):
E/mm-camera-sensor( 318): [mm]read_eeprom_sensor_lib_info:926 check F/W header size : 140249439
E/mm-camera-sensor( 318): [mm]read_eeprom_sensor_lib_info:928 check F/W header size : 140249439 is not matched!
E/mm-camera-sensor( 318): check_all_eeprom_dev:261 Done enumerating media devices
E/mm-camera-sensor( 318): check_all_eeprom_dev:305 EEPROM device found count: 1

Despite the file system/etc/G08QU_etc_module_info.xml does not exist on my phone (12-08-16 ROM) looking at the original phone rom (mounting it on linux) the file is called system/etc/G08QU_imx219_module_info.xml

Maybe a typo on the source code or something?

I tryed to push the original G08QU_imx219_module_info.xml to the phone and rename it to G08QU_etc_module_info.xml, the phone found the file but keeps complaining about not loading the firmware on this lines:

E/mm-camera-sensor( 321): sensor_probe:180 LOAD from Phone
E/mm-camera-sensor( 321): sensor_load_library:79 etc : load from phone
E/mm-camera-sensor( 321): sensor_load_library:85 failed
E/mm-camera-sensor( 321): sensor_probe:184 failed: to load etc
E/mm-camera-sensor( 321): sensor_init_probe:516 sensor_probe ret =0
E/mm-camera-sensor( 321): sensor_init_probe:518 sensor_probe_list[i].sensor_name = etc
E/mm-camera-sensor( 321): sensor_init_probe:526 , hw version info G08QU
E/mm-camera-sensor( 321): sensor_init_probe:529 failed: to load etc

And here is the full part

E/mm-camera( 321): server_process_module_init:59, int mods
E/mm-camera-sensor( 321): module_sensor_init:4835 module_sensor_init Enter
E/mm-camera-sensor( 321): sensor_init_probe:353 sensor_init_probe
E/mm-camera-sensor( 321): sensor_init_probe:389 Done enumerating media entities
E/mm-camera-sensor( 321): sensor_init_probe:364 Done enumerating media devices
E/mm-camera-sensor( 321): sensor_init_probe:404 subdev_name /dev/v4l-subdev7
E/mm-camera-sensor( 321): sensor_init_probe:412 Open subdev
E/mm-camera-sensor( 321): check_all_eeprom_dev:293 found eeprom : /dev/v4l-subdev6 cam_position: 0
E/Diag_Lib( 330): Diag_LSM_Init: Failed to open handle to diag driver, error = 13
E/mm-camera-sensor( 321): [mm]write_sysfs_latest_module_check:775 [FW_DBG][/sys/class/camera/rear/rear_checkfw_user] OK
E/mm-camera-sensor( 321): [mm]write_sysfs_latest_module_check:775 [FW_DBG][/sys/class/camera/rear/rear_checkfw_factory] OK
E/mm-camera-sensor( 321): [mm]read_EEPROM_header_version:445 EEPROM HEADER: core_version(0x47) resolution(0x30 0x38) isp(0x51) sensor_maker(0x55)
E/mm-camera-sensor( 321): [mm]read_EEPROM_header_version:447 EEPROM HEADER: year(0x48) month(0x45) iter(0x30 0x31)
E/mm-camera-sensor( 321): [mm]read_EEPROM_header_version:453 [FW_DBG] EEPROM HEADER: G 08 Q U H E 01 S M
E/mm-camera-sensor( 321): read_eeprom:147 eeprom header version : sensor maker : 0x55
E/mm-camera-sensor( 321): read_eeprom:211 [read_eeprom] ETC
E/mm-camera-sensor( 321): read_eeprom:214 firmware sensor name etc
E/mm-camera-sensor( 321): read_eeprom:220 version_xml_name G08QU_etc
E/mm-camera-sensor( 321): [mm]check_version:653 firmware version file system/etc/G08QU_etc_module_info.xml
E/mm-camera-sensor( 321): parse_module_xml:151 freeing doc
E/mm-camera-sensor( 321): [mm]check_version:689 FIRMWARE: core_version(0x47) resolution(0x30 0x38) isp(0x51) sensor_maker(0x55)
E/mm-camera-sensor( 321): [mm]check_version:692 EEPROM: core_version(0x47) resolution(0x30 0x38) isp(0x51) sensor_maker(0x55)
E/mm-camera-sensor( 321): [mm]check_version:698 [FW_DBG] FIRMWARE: G 08 Q U H I 01 A Z
E/mm-camera-sensor( 321): [mm]check_version:703 [FW_DBG] EEPROM: G 08 Q U H E 01 S M
E/mm-camera-sensor( 321): [mm]check_version:714 EEPROM has the same sensor module with firmware
E/mm-camera-sensor( 321): [mm]check_version:718 FIRMWARE: year(0x48) month(0x49) iter(0x30 0x31)
E/mm-camera-sensor( 321): [mm]check_version:720 EEPROM: year(0x48) month(0x45) iter(0x30 0x31)
E/mm-camera-sensor( 321): [mm]read_eeprom_sensor_lib_info:883 firmware version file system/etc/G08QU_etc_module_info.xml
E/mm-camera-sensor( 321): parse_module_xml:151 freeing doc
E/mm-camera-sensor( 321): read_eeprom_sensor_lib_info:900 [FW_DBG] PHONE cl_number : 1421759
E/mm-camera-sensor( 321): [mm]write_sysfs_firmware_version:762 [FW_DBG][/sys/class/camera/rear/rear_camfw] G08QUHE01SM G08QUHI01AZ
E/mm-camera-sensor( 321):

E/mm-camera-sensor( 321): [mm]read_eeprom_sensor_lib_info:926 check F/W header size : 140249439
E/mm-camera-sensor( 321): [mm]read_eeprom_sensor_lib_info:928 check F/W header size : 140249439 is not matched!
E/mm-camera-sensor( 321): check_all_eeprom_dev:261 Done enumerating media devices
E/mm-camera-sensor( 321): check_all_eeprom_dev:305 EEPROM device found count: 1
E/mm-camera-sensor( 321): sensor_init_probe:507 Load the sensor module from file system =0 ,etc,
E/mm-camera-sensor( 321): sensor_init_probe:510 sensor_probe_list[0] = etc,
E/mm-camera-sensor( 321): sensor_init_probe:513 Load the sensor module from file system =0 ,etc,
E/mm-camera-sensor( 321): sensor_probe:180 LOAD from Phone
E/mm-camera-sensor( 321): sensor_load_library:79 etc : load from phone
E/mm-camera-sensor( 321): sensor_load_library:85 failed
E/mm-camera-sensor( 321): sensor_probe:184 failed: to load etc
E/mm-camera-sensor( 321): sensor_init_probe:516 sensor_probe ret =0
E/mm-camera-sensor( 321): sensor_init_probe:518 sensor_probe_list[i].sensor_name = etc
E/mm-camera-sensor( 321): sensor_init_probe:526 , hw version info G08QU
E/mm-camera-sensor( 321): sensor_init_probe:529 failed: to load etc
E/mm-camera-sensor( 321): update_sysfs_fw_version:827 [FW_DBG] update_fw_ver: NULL, update_fw_index: 3
E/mm-camera-sensor( 321): [mm]write_sysfs_firmware_version:762 [FW_DBG][/sys/class/camera/rear/rear_camfw] G08QUHE01SM NULL
E/mm-camera-sensor( 321):
E/mm-camera-sensor( 321): [mm]write_sysfs_firmware_version:762 [FW_DBG][/sys/class/camera/rear/rear_camfw_full] G08QUHE01SM G08QUHI01AZ NULL
E/mm-camera-sensor( 321):
E/mm-camera-sensor( 321): [mm]write_sysfs_firmware_version:762 [FW_DBG][/sys/class/camera/rear/rear_camfw_load] NULL
E/mm-camera-sensor( 321): sensor_init_probe:444 Loading from EEPROM(new or higher version), but no actual F/W bin at F-ROM
E/mm-camera-sensor( 321): sensor_probe:180 LOAD from Phone
E/mm-camera-sensor( 321): sensor_load_library:79 s5k5e3yx : load from phone
E/ ( 321): open lib s5k5e3yx_open_lib
E/mm-camera-sensor( 321): sensor_probe:204 actuator name is : NULL
E/mm-camera-sensor( 321):
E/mm-camera-sensor( 321): sensor_probe:211 eeprom name is : lsi_s5k5e3yx
E/mm-camera-sensor( 321):
E/mm-camera-sensor( 321): sensor_probe:218 func sensor_probe line 218 sensor_id = 24112
E/mm-camera-sensor( 321):

Hope it helps :laugh::good:

And thanks, this phone with the original rom sucks, it hangs all the time when you have no time. Now it's butter smooth e.e!