Hello ...,

I am trying to integrate a 4.3" resisitive touch screen (TT430A-04B , 
TInsharp) with A20 Hummingbird. 

*(1)*. I configured the sys_config.fex  and script.fex files as follows...
###########################################################################################
[rtp_para]
rtp_used = 1
rtp_screen_size = 5
rtp_regidity_level = 5
rtp_press_threshold_enable = 0
rtp_press_threshold = 0x1f40
rtp_sensitive_level = 0xf
rtp_exchange_x_y_flag = 0

;-------------------------------------------------------------------------------
;capacitor tp configuration
;external int function
;wakeup output function
;notice:
;   tp_int_port &  tp_io_port use the same port
;-------------------------------------------------------------------------------
[ctp_para]
ctp_used            = 0
ctp_name            = "sunxi-ts"
;ctp_twi_id          = 2
ctp_screen_max_x        = 480
ctp_screen_max_y        = 272
ctp_revert_x_flag       = 0
ctp_revert_y_flag       = 0
ctp_exchange_x_y_flag   = 0

ctp_int_port        = port:PH21<6><default><default><default>
;ctp_wakeup          = port:PB13<1><default><default><1>
;--------------------------------------------------------------------------------
; CTP automatic detection configuration
;ctp_detect_used  --- Whether startup automatic inspection function. 
1:used,0:unused
;Module name postposition 1 said detection, 0 means no detection. 
;--------------------------------------------------------------------------------
[ctp_list_para]
ctp_det_used              = 0
tp  = 0
ft5x_ts                   = 0
gt82x                     = 0
gslX680                   = 0
gt9xx_ts                  = 0
gt811                     = 0
zet622x                   = 0

##########################################################################################



*(2)*. I copied *sys_config.fex* and *sys_config.bin* files to* 
lichee/tools/pack/out*....,   *sys_config.fex* file to 

*lichee/tools/pack/chips/sun7i/configs/android/wing-k70       *and 

*lichee/boot/pack/chips/sun7i/configs/linux/qc*

Finally *script.bin* into *lichee/tools/pack/out/bootfs...........*




*(3).* Modified *wing_k70.mk *file @  *android4.2/device/softwinner/* as 
follows...



####################################################################


# for recovery

PRODUCT_COPY_FILES += \

    device/softwinner/wing-k70/recovery.fstab:recovery.fstab \

    device/softwinner/wing-k70/modules/modules/disp.ko:obj/disp.ko \

    device/softwinner/wing-k70/modules/modules/lcd.ko:obj/lcd.ko \

    device/softwinner/wing-k70/modules/modules/hdmi.ko:obj/hdmi.ko \

    device/softwinner/wing-k70/modules/modules/hdcp.ko:obj/hdcp.ko \

    device/softwinner/wing-k70/modules/modules/gt82x.ko:obj/gt82x.ko \

    device/softwinner/wing-k70/modules/modules/gt811.ko:obj/gt811.ko \

*    device/softwinner/wing-k70/modules/modules/sunxi-ts.ko:obj/sunxi-ts.ko 
\*

    device/softwinner/wing-k70/modules/modules/zet622x.ko:obj/zet622x.ko \

    device/softwinner/wing-k70/modules/modules/gslX680.ko:obj/gslX680.ko \

    device/softwinner/wing-k70/modules/modules/gt9xx_ts.ko:obj/gt9xx_ts.ko \

    
device/softwinner/wing-k70/modules/modules/sw_device.ko:obj/sw_device.ko 



PRODUCT_COPY_FILES += \

    device/softwinner/wing-k70/configs/camera.cfg:system/etc/camera.cfg \

    
device/softwinner/wing-k70/configs/cfg-Gallery2.xml:system/etc/cfg-Gallery2.xml 
\

    device/softwinner/wing-k70/configs/gsensor.cfg:system/usr/gsensor.cfg \

    
device/softwinner/wing-k70/configs/media_profiles.xml:system/etc/media_profiles.xml
 
\

    
device/softwinner/wing-k70/configs/sw-keyboard.kl:system/usr/keylayout/sw-keyboard.kl
 
\

    device/softwinner/wing-k70/configs/tp.idc:system/usr/idc/tp.idc \

    
device/softwinner/wing-k70/touch/libtouchscreenjni.so:system/lib/libtouchscreenjni.so
 
\

    
device/softwinner/wing-k70/touch/touchscreen_hal.default.so:system/lib/hw/touchscreen_hal.default.so
 
\

*    
device/softwinner/wing-k70/configs/sunxi-ts.idc:system/usr/idc/sunxi-ts.idc *

###########################################################################################################



*(4). * Modified init.sun7i.rc as follows...


############################################################################################################

#on boot

# use automatic detecttion insmod ctp & gsensor driver

    insmod /system/vendor/modules/sw_device.ko

*    insmod /system/vendor/modules/sunxi-ts.ko*


##################################################################################################################


*(ALL THE FILES ARE ATTACHED)*


*(5). Compiled as follows...*

*         i. *@ lichee folder *sudo ./build_kernel.sh*

*         II. *@ android 4.2 folder

*                                  source build/envsetup.sh*

*                                  lunch*

                                  *extract-bsp*

*                                  make*

*                                  pack* 



*RESULT*


The OS responds for every  touch. But it is not as expected. For each and 
every point of screen touch ,the touch detected as @ the Middle line of 
screen (in X -direction ) only... 




what will be the reason for the failure...?

Is there any mistake in my steps...?



Please help me... I'm stuck at this position for some weeks...



-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: init.sun7i.rc
Description: Binary data

Attachment: sys_config.fex
Description: Binary data

Attachment: wing_k70.mk
Description: Binary data

Reply via email to