Skip to content

Instantly share code, notes, and snippets.

View 0312birdzhang's full-sized avatar
🎯
Focusing

BirdZhang 0312birdzhang

🎯
Focusing
View GitHub Profile
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,开启全局代理

@0312birdzhang
0312birdzhang / gist:03364b1dbf5fd4fd9f196ae7831f669f
Created September 4, 2020 10:08
设置第三方桌面为启动器

adb shell pm set-home-activity "com.volla.launcher/activity"

09-15 21:16:06.901 4493 4542 D audio_hw_primary: start_output_stream: enter: stream(0x23ec48)usecase(0: deep-buffer-playback) devices(0x2)
09-15 21:16:06.901 4493 4542 D audio_hw_primary: select_devices for use case (deep-buffer-playback)
09-15 21:16:06.901 4493 4542 V msm8916_platform: platform_get_native_support:napb: ui Prop enabled(0) version(0)
09-15 21:16:06.901 2869 3093 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
09-15 21:16:06.901 4493 4542 V msm8916_platform: platform_get_output_snd_device: enter: output devices(0x2)
09-15 21:16:06.901 4493 4542 V msm8916_platform: platform_get_output_snd_device: exit: snd_device(speaker)
09-15 21:16:06.901 4493 4542 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
09-15 21:16:06.901 4493 4542 V msm8916_platform: platform_get_backend_index:napb: backend port - 0 device - 2
09-15 21:16:06.901 4493 4542 I msm8916_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate
@0312birdzhang
0312birdzhang / dmesg.log
Created June 20, 2019 07:27
hybris 15.1 UI crash log
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.18.137-Genom-MIUI-f2fs-vince-gf6ae507 (root@ubuntu1) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #4 SMP PREEMPT Wed Jun 19 07:33:23 UTC 2019
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] Powerup reason=0x40021
[ 0.000000] Machine: Qualcomm Technologies, Inc. E7 QRD SKU3
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: reserved region for node 'other_ext_region@0': base 0x0000000084a00000, size 30 MiB
.jolla-startupwizard-done
.jolla-startupwizard-sfos2-tutorial
.jolla-startupwizard-usersession-done
alsa/asoundlib.h' file not found
apt install libasound2-dev
/data/spurv/external/alsa-lib/include# cp -R /usr/include/alsa .