Advertisement
z3ntu

mediatek.txt

Sep 29th, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.15 KB | None | 0 0
  1. # SCREEN BRIGHTNESS
  2. sudo true
  3. echo 1 | sudo tee /sys/devices/platform/leds-mt65xx/leds/lcd-backlight/brightness
  4. echo 0 | sudo tee /sys/devices/platform/leds-mt65xx/leds/lcd-backlight/brightness
  5.  
  6. # DMESG (NO DEBUG)
  7. dmesg -l emerg,alert,crit,err,warn,notice,info
  8.  
  9. # WIFI FIRMWARE
  10. scp etc/firmware/mt6628_ant_m1.cfg pmos:/system/etc/firmware/
  11. scp etc/firmware/mt6628_patch_e1_hdr.bin pmos:/system/etc/firmware/
  12. scp etc/firmware/mt6628_patch_e2_0_hdr.bin pmos:/system/etc/firmware/
  13. scp etc/firmware/mt6628_patch_e2_1_hdr.bin pmos:/system/etc/firmware/
  14. scp etc/firmware/WIFI_RAM_CODE_MT6628 pmos:/system/etc/firmware/
  15. scp etc/firmware/WMT.cfg pmos:/system/etc/firmware/
  16.  
  17. # WIFI
  18.  
  19. insmod mtk_hif_sdio.ko
  20. insmod mtk_stp_wmt.ko
  21. insmod mtk_stp_uart.ko
  22. insmod mtk_stp_gps.ko
  23. insmod mtk_wmt_wifi.ko
  24.  
  25. mknod /dev/stpwmt c 190 0
  26.  
  27. mknod /dev/stpgps c 191 0
  28.  
  29. mknod /dev/wmtWifi c 153 0
  30. insmod wlan_mt6628.ko
  31.  
  32. #6620_launcher -p /system/etc/firmware/
  33. ./6620_launcher_src/a.out -p /system/etc/firmware/
  34.  
  35. echo 1 > /dev/wmtWifi
  36.  
  37. (mediadeb:
  38. wifi_loader.service: runs mt6620_loader.sh -> mknod & runs wifi_loader bin
  39. mt6620_launcher.service: runs 6620_launcher
  40. wifi.service: runs echo 1)
  41.  
  42. # LOGLEVEL
  43. Why does the loglevel not take effect?
  44. kernel/signal.c contains printk(KERN_DEBUG
  45.  
  46.  
  47. [ 1516.879554] (0)[1293:mtk_wmtd][WMT-CONF][E]wmt_conf_read_file(468):empty Wmtcfg name
  48.  
  49. mediatek/kernel/drivers/combo/common/core/wmt_conf.c line 468
  50. if (!osal_strlen(&(gDevWmt.cWmtcfgName[0])))
  51.  
  52. gets set in wmt_conf_set_cfg_file (same file)
  53.  
  54. that gets used in mediatek/kernel/drivers/combo/common/linux/pri/wmt_dev.c L1583
  55.  
  56. # CMDLINE
  57. boot because charging cable:
  58. console=tty0 console=ttyMT3,921600n1 root=/dev/ram vmalloc=530M slub_max_order=0 slub_debug=O lcm=1-nt35516_qhd_dsi_cmd fps=6540 lcm_type=1 pl_t=3989 lk_t=1981 printk.disable_uart=1 boot_reason=4 androidboot.serialno=4101732565
  59. boot because of power button:
  60. console=tty0 console=ttyMT3,921600n1 root=/dev/ram vmalloc=530M slub_max_order=0 slub_debug=O lcm=1-nt35516_qhd_dsi_cmd fps=6540 lcm_type=1 pl_t=444 lk_t=1932 printk.disable_uart=1 boot_reason=0 androidboot.serialno=4101732565 ?
  61.  
  62. # BOOT REASON
  63. 0: power button
  64. 4: charger
  65.  
  66.  
  67. # OSK SDL
  68. /dev/input/event3 touchscreen
  69.  
  70. sudo su
  71. export DFBARGS="system=fbdev,no-cursor,linux-input-grab"
  72. export TSLIB_TSDEVICE=/dev/input/event3
  73. osk-sdl -d a -n a -c /etc/osk.conf -v
  74.  
  75. kernel panic: https://pastebin.com/wtuW13ft
  76.  
  77. # TOUCH SCREEN
  78.  
  79. evtest /dev/input/event3
  80.  
  81. libinput debug-events
  82. event3 TOUCH_DOWN +2.10s 0 (0) 54.16/51.61 (293.00/496.00mm)
  83. event3 TOUCH_FRAME +2.10s
  84. event3 TOUCH_MOTION +2.32s 0 (0) 53.79/51.51 (291.00/495.00mm)
  85. no TOUCH_UP event
  86.  
  87. Event: time 1529183042.190017, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
  88. Event: time 1529183042.190040, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 1
  89. Event: time 1529183042.190062, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 266
  90. Event: time 1529183042.190085, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 490
  91. Event: time 1529183042.190106, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0
  92. Event: time 1529183042.190123, ++++++++++++++ SYN_MT_REPORT ++++++++++++
  93. Event: time 1529183042.190142, -------------- SYN_REPORT ------------
  94. Event: time 1529183042.208825, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 1
  95. Event: time 1529183042.208850, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 266
  96. Event: time 1529183042.208872, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 490
  97. Event: time 1529183042.208893, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0
  98. Event: time 1529183042.208910, ++++++++++++++ SYN_MT_REPORT ++++++++++++
  99. Event: time 1529183042.208928, -------------- SYN_REPORT ------------
  100. Event: time 1529183042.226740, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
  101. Event: time 1529183042.226761, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 0
  102. Event: time 1529183042.227062, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 266
  103. Event: time 1529183042.227087, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 490
  104. Event: time 1529183042.227110, ++++++++++++++ SYN_MT_REPORT ++++++++++++
  105.  
  106. Touchscreen driver: mediatek/custom/common/kernel/touchpanel/ft5316/ft5316_driver.c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement