Skip to content

Instantly share code, notes, and snippets.

@amazingfate
amazingfate / listen1_aha_playlist.md
Last active November 2, 2018 15:25
updated by Listen1(http://listen1.github.io/listen1/) at 2018/11/2 下午11:25:43

本歌单由Listen1创建, 歌曲数:1060,歌单数:2,点击查看更多

FROM opensuse/tumbleweed
COPY . /srv/wineappimage
WORKDIR /srv/wineappimage
RUN /srv/wineappimage/deployscript/opensuse-winedeploy.sh
@amazingfate
amazingfate / gw_flash.py
Created March 30, 2021 09:20 — forked from SciresM/gw_flash.py
utility for interacting with gateway modchip updates
import sys
from struct import pack as pk, unpack as up
def u32(x):
return x & 0xFFFFFFFF
def tea_update_custom_mac(mac, v, k):
v0, v1 = v[0], v[1]
cur_sum = 0xC6EF3720
k0, k1, k2, k3 = k[0], k[1], k[2], k[3]
[ 3.358557] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[ 3.358581] Linux version 5.10.66-rk35xx-gb902fb9b8f5e-dirty (root@b1d456bd5f33) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #trunk SMP Thu Jul 7 13:11:06 UTC 2022
[ 3.369319] Machine model: Radxa ROCK 5B
[ 3.369472] efi: UEFI not found.
[ 3.373097] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[ 3.373115] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@00000000': base 0x0000000000000000, size 0 MiB
[ 3.373171] Reserved memory: created CMA memory pool at 0x0000000010000000, size 256 MiB
[ 3.373176] OF: reserved mem: initialized node cma, compatible id shared-dma-pool
[ 3.514060] Zone ranges:
[ 3.514068] DMA [mem 0x0000000000200000-0x00000000ffffffff
@amazingfate
amazingfate / rk3588-pd-definations.dts
Last active July 12, 2022 12:01
rk3588-pd-definations.dts: PDO sink definations with 5V3A, 9V3A, 12V3A, 15V3A, 20V2.25A; rk3588-typec-dp.dts: make typec output dp0
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&i2c4>;
__overlay__ {
usbc0: fusb302@22 {
usb_con: connector {
sink-pdos = <0x401912c 0x402d12c 0x403c12c 0x404b12c 0x40640e1>;
};
@amazingfate
amazingfate / fusb302.log
Last active July 21, 2022 14:11
kernel log before pd power down
[ 5.638283] typec_fusb302 4-0022: sw reset
[ 5.642035] typec_fusb302 4-0022: fusb302 device ID: 0x91
[ 5.643766] rk-pcie fe150000.pc[ 5.646683] typec_fusb302 4-0022: pd := off
[ 5.646695] ts already Off
[ 5.646702] typec_fusb302 4-0022: charge is already Off
[ 5.646709] typec_fusb302 4-0022: vconn is already
[ 5.647547] typec_fusb302 4-0022: pd header := Sink, Device
[ 5.647591] typec_fusb302 4-[ 5.650163] rtc-hym8563 6-0051: rtc information is valid
[ 5.652240] typec_fusb302 4-0022: pd := off
[ 5.652252] typec_fusb302 4-0022: vbus is already Off
[ 2.213318] typec_fusb302 4-0022: Looking up vbus-supply from device tree
[ 2.214157] typec_fusb302 4-0022: sw reset
[ 2.217911] typec_fusb302 4-0022: fusb302 device ID: 0x91
[ 2.217923] typec_fusb302 4-0022: Setting usb_comm capable false
[ 2.222564] typec_fusb302 4-0022: pd := off
[ 2.222574] typec_fusb302 4-0022: vbus is already Off
[ 2.222581] typec_fusb302 4-0022: charge is already Off
[ 2.222589] typec_fusb302 4-0022: vconn is already Off
[ 2.222596] typec_fusb302 4-0022: Setting voltage/current limit 0 mV 0 mA
[ 2.222607] typec_fusb302 4-0022: polarity 0
@amazingfate
amazingfate / tf-reboot-no-power-down
Created July 25, 2022 10:27
tf-reboot-no-power-down
[ 3.813795] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[ 3.813818] Linux version 5.10.66-rk35xx-g55f540ce97a3-dirty (root@f5001c1626de) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #trunk SMP Mon Jul 25 09:36:14 UTC 2022
[ 3.824542] Machine model: Radxa ROCK 5B
[ 3.824693] efi: UEFI not found.
[ 3.828317] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[ 3.828339] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@00000000': base 0x0000000000000000, size 0 MiB
[ 3.828396] Reserved memory: created CMA memory pool at 0x0000000010000000, size 256 MiB
[ 3.828403] OF: reserved mem: initialized node cma, compatible id shared-dma-pool
[ 3.969114] Zone ranges:
[ 3.969125] DMA [mem 0x0000000000200000-0x00000000fffffff
@amazingfate
amazingfate / tf-boot-loop
Created July 25, 2022 10:29
tf-boot-loop
[ 3.810266] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[ 3.810289] Linux version 5.10.66-rk35xx-g55f540ce97a3-dirty (root@f5001c1626de) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #trunk SMP Mon Jul 25 09:36:14 UTC 2022
[ 3.821015] Machine model: Radxa ROCK 5B
[ 3.821165] efi: UEFI not found.
[ 3.824791] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[ 3.824812] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@00000000': base 0x0000000000000000, size 0 MiB
[ 3.824870] Reserved memory: created CMA memory pool at 0x0000000010000000, size 256 MiB
[ 3.824877] OF: reserved mem: initialized node cma, compatible id shared-dma-pool
[ 3.965628] Zone ranges:
[ 3.965639] DMA [mem 0x0000000000200000-0x00000000fffffff
[ 3.232643] typec_fusb302 4-0022: Looking up vbus-supply from device tree
[ 3.233490] typec_fusb302 4-0022: sw reset
[ 3.239292] typec_fusb302 4-0022: fusb302 device ID: 0x91
[ 3.241330] typec_fusb302 4-0022: Setting usb_comm capable false
[ 3.254603] typec_fusb302 4-0022: pd := off
[ 3.258591] typec_fusb302 4-0022: vbus is already Off
[ 3.267031] typec_fusb302 4-0022: charge is already Off
[ 3.267034] typec_fusb302 4-0022: vconn is already Off
[ 3.267037] typec_fusb302 4-0022: Setting voltage/current limit 5000 mV 3000 mA
[ 3.267043] typec_fusb302 4-0022: polarity 0