Skip to content

Instantly share code, notes, and snippets.

View 0312birdzhang's full-sized avatar
:shipit:

BirdZhang 0312birdzhang

:shipit:
View GitHub Profile
De-Brick Redmi Note 8 And Unlock Bootloader From EDL
After Flashing Wrong FW (Screen Flashing) Or Whatever Gives You HardBrick
From Linux .....
Install QDL >
https://www.96boards.org/documentation/consumer/guides/qdl.md.html
git clone https://git.linaro.org/landing-teams/working/qualcomm/qdl.git QDL-ENG-Ginkgo
cd QDL-ENG-Ginkgo ; make ; cd -
execve("/usr/bin/gst-inspect-1.0", ["gst-inspect-1.0", "--gst-disable-segtrap", "--gst-disable-registry-fork", "droidcamsrc"], 0x7fdfd9f788 /* 46 vars */) = 0
brk(NULL) = 0x13278000
faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (没有那个文件或目录)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=54856, ...}) = 0
mmap(NULL, 54856, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7bb2bbd000
close(3) = 0
openat(AT_FDCWD, "/usr/lib64/libgstreamer-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1453008, ...}) = 0
--------- beginning of main
08-20 13:24:26.773 1509 1509 D QSEECOMD: : qseecom listener services process entry PPID = 1392
08-20 13:24:26.773 1509 1509 E QSEECOMD: : Listener: index = 0, hierarchy = 0
08-20 13:24:26.778 1509 1509 D QSEECOMD: : Init dlopen(librpmb.so, RTLD_NOW) succeeds
08-20 13:24:26.778 1509 1509 D QSEECOMD: : Init::Init dlsym(g_FSHandle rpmb_init_service) succeeds
08-20 13:24:26.778 1509 1509 I rpmb_emmc: RPMB Mult (512-bytes sector) = 32768, Rel_sec_cnt = 32
08-20 13:24:26.778 1509 1509 E DrmLibRpmb: rpmb_init succeeded! with ret = 0
08-20 13:24:26.778 1509 1509 D QSEECOMD: : Init rpmb_init_service ret = 0
08-20 13:24:26.778 1509 1509 D QSEECOMD: : RPMB system services: init (Listener ID = 8192)
08-20 13:24:26.778 1509 1509 E QSEECOMD: : Listener: index = 1, hierarchy = 0
[root@RedmiNote8 defaultuser]# journalctl -fa
-- Logs begin at Tue 2024-08-20 21:17:43 CST. --
8月 20 21:18:00 RedmiNote8 systemd-logind[1511]: New session c2 of user defaultuser.
8月 20 21:18:00 RedmiNote8 sshd[4305]: pam_unix(sshd:session): session opened for user defaultuser by (uid=0)
8月 20 21:18:01 RedmiNote8 mce[1342]: modules/proximity.c: mp_datapipe_set_proximity_sensor_actual(): state: OPEN -> UNDEF
8月 20 21:18:06 RedmiNote8 encsfa-fpd[1510]: Device /dev/sailfish/home does not exist or access denied.
8月 20 21:18:06 RedmiNote8 encsfa-fpd[1510]: Device /dev/sailfish/home does not exist or access denied.
8月 20 21:18:07 RedmiNote8 mce[1342]: tklock.c: tklock_dbus_notification_end_cb(): notification end from name=:1.59 owner=:1.59 pid=3209 uid=100000 gid=996 priv=1 cmd=/usr/bin/lipstick -plugin evdevtouch -plugin evdevkeyboard:keym
8月 20 21:18:11 RedmiNote8 kernel: [kworker/u16:9][0x37157b83][13:18:10.997385] wlan: [342:E:HDD] __hdd_validate_adapter: 868: bad adapter magic (via __wlan_hdd_ipv6_changed)
8月 2
$ strace -Ff -s1024 -e file -o gst-inspect.strace gst-inspect-1.0 --gst-disable-segtrap --gst-disable-registry-fork droidcamsrc
4764 execve("/usr/bin/gst-inspect-1.0", ["gst-inspect-1.0", "--gst-disable-segtrap", "--gst-disable-registry-fork", "droidcamsrc"], 0x7fcddd2278 /* 46 vars */) = 0
4764 faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
4764 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
4764 openat(AT_FDCWD, "/usr/lib64/libgstreamer-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
4764 openat(AT_FDCWD, "/usr/lib64/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
4764 openat(AT_FDCWD, "/usr/lib64/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
4764 openat(AT_FDCWD, "/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
4764 openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
4764 openat(AT_FDCWD, "/usr/lib64/libgmodule-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
I NPUTransfer: Starting NPU Transfer Client, Transfer version 2.1.0 (b5861e7@2020-11-23T11:50:36)
D RKNNAPI: ==============================================
D RKNNAPI: RKNN VERSION:
D RKNNAPI: API: 1.6.0 (535b468 build@2023-12-11T09:05:46)
D RKNNAPI: DRV: rknn_server: 1.6.0 (535b468 build@2023-12-11T17:05:07)
D RKNNAPI: DRV: rknnrt: 1.6.0 (585b3edcf@2023-12-11T15:30:19)
D RKNNAPI: ==============================================
D RKNNAPI: Input tensors:
D RKNNAPI: index=0, name=input_imgs, n_dims=4, dims=[1, 128, 256, 12], n_elems=393216, size=786432, w_stride = 0, size_with_stride = 0, fmt=NHWC, type=FP16, qnt_type=NONE, zp=0, scale=1.000000
D RKNNAPI: index=1, name=big_input_imgs, n_dims=4, dims=[1, 128, 256, 12], n_elems=393216, size=786432, w_stride = 0, size_with_stride = 0, fmt=NHWC, type=FP16, qnt_type=NONE, zp=0, scale=1.000000
@0312birdzhang
0312birdzhang / test_cl_performance
Created October 15, 2023 15:51 — forked from jnewb1/test_cl_performance
opencl vs opencv
import cv2
import numpy as np
import os
import pyopencl as cl
import pyopencl.array as cl_array
import time
from openpilot.common.basedir import BASEDIR
@0312birdzhang
0312birdzhang / panel-innolux-afj101-ba2131.c.diff
Created June 30, 2023 09:27
panel-innolux-afj101-ba2131.c.diff
diff --git a/drivers/gpu/drm/panel/panel-innolux-afj101-ba2131.c b/drivers/gpu/drm/panel/panel-innolux-afj101-ba2131.c
index 4464741b1..9e1bdc4a7 100644
--- a/drivers/gpu/drm/panel/panel-innolux-afj101-ba2131.c
+++ b/drivers/gpu/drm/panel/panel-innolux-afj101-ba2131.c
@@ -54,23 +54,22 @@ static inline struct afj101_ba2131 *panel_to_sl101_pn27d1665(struct drm_panel *p
*/
static const struct panel_init_cmd afj101_ba2131_init_cmds[] = {
{ .dtype = 0x39, .wait = 0x00, .dlen = 0x04, .data = (char[]){ 0xFF, 0x98, 0x81, 0x03 }},
-
{ .dtype = 0x15, .wait = 0x00, .dlen = 0x02, .data = (char[]){ 0x01, 0x00 }},
@0312birdzhang
0312birdzhang / gist:3aa5a33476cf580e076d51b150ed3681
Created May 10, 2022 13:33 — forked from geohot/gist:569e9e4b20fd41203d8da71c6022be15
instructions to install openpilot on a pixel 3 running android 9
# instructions to install openpilot on a pixel 3
# enter fastboot with power + volume down
# make sure bootloader is unlocked
# make sure modern version of android platform tools is installed
mkdir pixel
wget https://dl.google.com/dl/android/aosp/blueline-pq3a.190801.002-factory-f3d66c49.zip
unzip blueline-pq3a.190801.002-factory-f3d66c49.zip
cd blueline-pq3a.190801.002/
./flash-all.sh

兑换游戏代码教程

1.准备一台win10电脑

在设置-时间和语言-区域,改成香港特别行政区

在win上搜索 xbox,会有一个"Xbox主机小帮手", 没有的话在商店中安装,注意登录的账号跟xbox上的是同一个账号.

2.准备一个香港的梯子

如使用v2ray,开启全局代理