[General Questions and Answers] Annabelle82:
Hi,

I have a Estar Mid 7108 Tablet with the camera not working, gives the error of camera stopped working if I try to use it.

The tablet had the rom corrupted, support sent me a japanese rom to try that didn't work neither on the tablet or to open with DragonFace.

Over the last weeks I learned how to recover roms, found a rom that booted and managed to root it, put it working in my language (Portuguese), with touchscreen right and everything except the camera... I disassembled it and found that its a Allwinner based with A10 CPU, 512Mb Ram, 8Gb Storage, Mali 400 GPU and a camera with this written on the ribbon - 0838C, I found out its a superpix sp0838.

I tried to edit files with Dragonface but I don't know the values to put there, all the roms that I tried have the values for a gc0308 and although I managed to load the sp0838 module still doesn't work, I used the Zeus Toolkit to read the tablet and shows this on loaded modules: sp0838 14909 0 Live 0xbf069000 . I believe the reason why it loads the sp0838 module is because I made a copy of the sp0838.ko file and pasted it with the name of the gc0308.ko file, opened the firmware with Dragonface and made that modification.

I looked for info in other threads but not for android 4.0.3 that is what I have running now, found info about sp0838 in Allwinners A13 with Cyanogenmods but didn't solved.

Here are the actual values on the sysconfig.lhs file:

[csi0_para]

csi_used =1

csi_mode = 0

csi_dev_qty = 1

csi_stby_mode = 0

csi_mname = "gc0308"

csi_twi_id = 1

csi_twi_addr =0x42

csi_if = 0

csi_vflip = 0

csi_hflip = 0

csi_iovdd = ""

csi_avdd = ""

csi_dvdd = ""

csi_flash_pol = 1

csi_mname_b = ""

csi_twi_id_b = 1

csi_twi_addr_b = 0x78

csi_if_b = 0

csi_vflip_b = 1

csi_hflip_b = 0

csi_iovdd_b = ""

csi_avdd_b = ""

csi_dvdd_b = ""

csi_flash_pol_b = 1

csi_pck = port:PE00<3><default><default><default>

csi_ck = port:PE01<3><default><default><default>

csi_hsync = port:PE02<3><default><default><default>

csi_vsync = port:PE03<3><default><default><default>

csi_d0 = port:PE04<3><default><default><default>

csi_d1 = port:PE05<3><default><default><default>

csi_d2 = port:PE06<3><default><default><default>

csi_d3 = port:PE07<3><default><default><default>

csi_d4 = port:PE08<3><default><default><default>

csi_d5 = port:PE09<3><default><default><default>

csi_d6 = port:PE10<3><default><default><default>

csi_d7 = port:PE11<3><default><default><default>

csi_d8 =

csi_d9 =

csi_d10 =

csi_d11 =

csi_d12 =

csi_d13 =

csi_d14 =

csi_d15 =

csi_reset = port:PH13<1><default><default><0>

csi_power_en =

csi_stby = port:PH16<1><default><default><0>

csi_flash =

csi_af_en =

csi_reset_b =

csi_power_en_b =

csi_stby_b =

csi_flash_b =

csi_af_en_b =

And this is the actual Init.rc file:

import init.sun4i.usb.rc

on early-init

export EXTERNAL_STORAGE /mnt/sdcard

mkdir /mnt/sdcard 0000 system system

# for backwards compatibility

symlink /mnt/sdcard /sdcard

mkdir /mnt/extsd 0000 system system

mkdir /mnt/usbhost1 0000 system system

on fs

mount ext4 /dev/block/nandd /system wait noatime nodev barrier=0

# try to mount /data

wait /dev/block/nande

mount ext4 /dev/block/nande /data wait noatime nosuid nodev barrier=0

setupfs /dev/block/nande

umount /data

exec /system/bin/logwrapper /system/bin/e2fsck -y /dev/block/nande

exec /system/bin/busybox mount -t ext4 -o noatime,nosuid,nodev,barrier=0,journal_checksum,noauto_da_alloc /dev/block/nande /data

# try to mount /cache

mount ext4 /dev/block/nandh /cache wait noatime nosuid nodev barrier=0

setupfs /dev/block/nandh

umount /cache

exec /system/bin/logwrapper /system/bin/e2fsck -y /dev/block/nandh

exec /system/bin/busybox mount -t ext4 -o noatime,nosuid,nodev,barrier=0,journal_checksum,noauto_da_alloc /dev/block/nandh /cache

format_userdata /dev/block/nandi crane-evb

on boot

# preinstall pdf ebook

#	mkdir /system/Ebook0777 system system

#insmod key & tp driver

#insmod /system/vendor/modules/sun4i-ts.ko

insmod /system/vendor/modules/ft5x_ts.ko

insmod /system/vendor/modules/sun4i-keyboard.ko

# touch key

#insmod /system/vendor/modules/hv2605.ko

# insmod mali driver

insmod /system/vendor/modules/ump.ko

insmod /system/vendor/modules/mali.ko

#insmod gsensor driver

#insmod /system/vendor/modules/mma7660.ko

# mxc622x

insmod /system/vendor/modules/mecs.ko

insmod /system/vendor/modules/mxc622x.ko

mkdir /data/misc/sensors 0777 system system

# insmod vibrator

insmod /system/vendor/modules/sun4i-vibrator.ko

chmod 777 /sys/class/timed_output/sun4i-vibrator/enable

#csi module

insmod /system/vendor/modules/videobuf-core.ko

insmod /system/vendor/modules/videobuf-dma-contig.ko

insmod /system/vendor/modules/gc0308.ko

insmod /system/vendor/modules/sun4i_csi0.ko

#network module

insmod /system/vendor/modules/usbnet.ko

insmod /system/vendor/modules/asix.ko

insmod /system/vendor/modules/qf9700.ko

insmod /system/vendor/modules/mcs7830.ko

insmod /system/vendor/modules/rtl8150.ko

# wifi related service

service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 \

-c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin

class main

socket wpa_wlan0 dgram 660 wifi wifi

group system wifi inet

disabled

oneshot

#Gsensor mxc622x service

service memsicd /system/bin/logwrapper /system/bin/memsicd

class main

# -------- bluetooth related services ----------

#chmod 0666 /dev/ttyS1

#chmod 0777 /system/bin/hciattach

#change rfkill permissions for bluetooth power management

# chown system system /sys/class/rfkill/rfkill0/state

# chmod 0660 /sys/class/rfkill/rfkill0/state

# write /sys/class/rfkill/rfkill0/state 0

# setprop rw.bluetooth.status "0"

# --- used for usi bm01a 3in1 module's bluetooth attach

#service hciattach /system/bin/hciattach -n -s 115200 /dev/ttyS1 bcm4329 1500000

# user root

# group bluetooth net_bt_admin

# disabled

# oneshot

# --- used for huawei mw269v2 3in1 module's bluetooth attach

#service hciattach /system/bin/brcm_patchram_plus --enable_hci \

# --baudrate 1500000 \

# --patchram /system/vendor/modules/bcm4330.hcd \

# --enable_lpm /dev/ttyS1

# user root

# group bluetooth net_bt_admin

# disabled

# --- used for samsung swb-a31 2in1 module's bluetooth attach

#service bccmd /system/bin/bccmd -t bcsp -b 115200 -d /dev/ttyS1 psload -r /system/vendor/modules/ath6k/AR6003/A31_Script.psr

# user root

# group bluetooth net_bt_admin

# disabled

# oneshot

#

#service hciattach /system/bin/hciattach -s 1500000 /dev/ttyS1 bcsp 1500000 flow

# user root

# group bluetooth net_bt_admin

# disabled

# oneshot

#service abtfilt /system/bin/abtfilt -d -z -n -v -b -s

# disabled

# oneshot

# -------- bluetooth related services end ----------

And this is the actual PropFile:

# begin build properties

# autogenerated by buildinfo.sh

ro.build.id=IML74K

ro.build.display.id=crane_evb-eng 4.0.3 IML74K 20120328 test-keys

ro.build.version.incremental=20120328

ro.build.version.sdk=15

ro.build.version.codename=REL

ro.build.version.release=4.0.3

ro.build.date=2012? 03? 28? ??? 14:38:16 CST

ro.build.date.utc=1332916696

ro.build.type=eng

ro.build.user=ryj

ro.build.host=EKEN

ro.build.tags=test-keys

ro.product.model=T02A Modded

ro.product.brand=WhoKnows

ro.product.name=crane_evb

ro.product.device=crane-evb

ro.product.board=crane

ro.product.cpu.abi=armeabi-v7a

ro.product.cpu.abi2=armeabi

ro.product.manufacturer=unknown

ro.product.locale.language=en

ro.product.locale.region=US

ro.wifi.channels=

ro.board.platform=exDroid

# ro.build.product is obsolete; use ro.product.device

ro.build.product=crane-evb

# Do not try to parse ro.build.description or .fingerprint

ro.build.description=crane_evb-eng 4.0.3 IML74K 20120328 test-keys

ro.build.fingerprint=softwinners/crane_evb/crane-evb:4.0.3/IML74K/20120328:eng/test-keys

ro.build.characteristics=tablet

# end build properties

#

# ADDITIONAL_BUILD_PROPERTIES

#

ro.com.android.dateformat=MM-dd-yyyy

ro.config.ringtone=Ring_Synth_04.ogg

ro.config.notification_sound=pixiedust.ogg

ro.config.alarm_alert=Alarm_Classic.ogg

dalvik.vm.heapstartsize=5m

dalvik.vm.heapgrowthlimit=48m

dalvik.vm.heapsize=256m

ro.kernel.android.checkjni=0

persist.sys.timezone=Europe/London

persist.sys.language=en

persist.sys.country=US

wifi.interface=wlan0

wifi.supplicant_scan_interval=15

debug.egl.hw=1

ro.display.switch=1

ro.opengles.version=131072

persist.sys.strictmode.visual=0

persist.sys.strictmode.disable=1

hwui.render_dirty_regions=false

persist.sampling_profiler=0

persist.service.adb.enable=0

persist.sys.usb.config=mass_storage,adb

ro.sf.lcd_density=120

ro.product.firmware=1.0.1

ro.setupwizard.mode=OPTIONAL

net.bt.name=Android

dalvik.vm.stack-trace-file=/data/anr/traces.txt

And the actual cameraconfig file:

;-------------------------------------------------------------------------------

; ÓÃÓÚcameraµÄÅäÖÃ

;

; ²ÉÓÃ¸ñÊ½:

; key = key_value

; ×¢Òâ: Ã¿¸ökeyÐèÒª¶¥¸ñÐ´;

;	key_value½ô¸ú×ÅkeyºóÃæµÄµÈºÅºóÃæ, Î»ÓÚÍ¬Ò»ÐÐÖÐ;

;	key_valueÏÞÖÆ´óÐ¡Îª256×Ö½ÚÒÔÄÚ;

;

;-------------------------------------------------------------------------------

;-------------------------------------------------------------------------------

; 1 for single camera, 2 for double camera

;-------------------------------------------------------------------------------

number_of_camera = 1

;-------------------------------------------------------------------------------

; CAMERA_FACING_BACK

; gc0308

;-------------------------------------------------------------------------------

camera_id = 0

;-------------------------------------------------------------------------------

; 1 for CAMERA_FACING_FRONT

; 0 for CAMERA_FACING_BACK

;-------------------------------------------------------------------------------

camera_facing = 1

;-------------------------------------------------------------------------------

; driver device name

;-------------------------------------------------------------------------------

camera_device = /dev/video0

;-------------------------------------------------------------------------------

; device id

; for two camera devices with one CSI

;-------------------------------------------------------------------------------

device_id = 0

used_preview_size = 1

key_support_preview_size = 640x480

key_default_preview_size = 640x480

used_picture_size = 1

key_support_picture_size = 640x480,320x240

key_default_picture_size = 640x480

used_flash_mode = 0

key_support_flash_mode = on,off,auto

key_default_flash_mode = on

used_color_effect=1

key_support_color_effect = none,mono,negative,sepia,aqua

key_default_color_effect = none

used_frame_rate = 1

key_support_frame_rate = 25

key_default_frame_rate = 25

used_focus_mode = 0

key_support_focus_mode = auto,infinity,macro,fixed

key_default_focus_mode = auto

used_scene_mode = 0

key_support_scene_mode = auto,auto,portrait,landscape,night,night-portrait,theatre,beach,snow,sunset,steadyphoto,fireworks,sports,party,candlelight,barcode

key_default_scene_mode = auto

used_white_balance = 1

key_support_white_balance = auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight

key_default_white_balance = auto

used_exposure_compensation = 1

key_max_exposure_compensation = 4

key_min_exposure_compensation = -4

key_step_exposure_compensation = 1

key_default_exposure_compensation = 0

; only for facing back camera

used_zoom = 1

key_zoom_supported = true

key_smooth_zoom_supported = false

key_zoom_ratios = 100,120,150,200,230,250,300

key_max_zoom = 6

key_default_zoom = 0

;-------------------------------------------------------------------------------

; CAMERA_FACING_FRONT

; sp0838

;-------------------------------------------------------------------------------

camera_id = 1

;-------------------------------------------------------------------------------

; 1 for CAMERA_FACING_FRONT

; 0 for CAMERA_FACING_BACK

;-------------------------------------------------------------------------------

camera_facing = 1

;-------------------------------------------------------------------------------

; driver device name

;-------------------------------------------------------------------------------

camera_device = /dev/video0

;-------------------------------------------------------------------------------

; device id

; for two camera devices with one CSI

;-------------------------------------------------------------------------------

device_id = 1

used_preview_size = 1

key_support_preview_size = 640x480

key_default_preview_size = 640x480

used_picture_size = 1

key_support_picture_size = 1280x1024,640x480,320x240

key_default_picture_size = 640x480

used_flash_mode = 0

key_support_flash_mode = on,off,auto

key_default_flash_mode = on

used_color_effect= 1

key_support_color_effect = none,mono,negative,sepia,aqua

key_default_color_effect = none

used_frame_rate = 1

key_support_frame_rate = 20

key_default_frame_rate = 20

used_focus_mode = 0

key_support_focus_mode = auto,infinity,macro,fixed

key_default_focus_mode = auto

used_scene_mode = 0

key_support_scene_mode = auto,auto,portrait,landscape,night,night-portrait,theatre,beach,snow,sunset,steadyphoto,fireworks,sports,party,candlelight,barcode

key_default_scene_mode = auto

used_white_balance = 1

key_support_white_balance = auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight

key_default_white_balance = auto

used_exposure_compensation = 1

key_max_exposure_compensation = 4

key_min_exposure_compensation = -4

key_step_exposure_compensation = 1

key_default_exposure_compensation = 0

; only for facing back camera

used_zoom = 0

key_zoom_supported = true

key_smooth_zoom_supported = false

key_zoom_ratios = 100,120,150,200,230,250,300

key_max_zoom = 6

key_default_zoom = 0

The camera was very important for me and tried over the last weeks to do it in my spare time (its 5:20am here) but I need help, does anyone knows the values that should be changed?

If I missed giving some info please ask, it's late and my mind is almost shutting down:eek:.

Thanks