Skip to content

Instantly share code, notes, and snippets.

View hyphop's full-sized avatar
😁
be happy

Art Nikpal hyphop

😁
be happy
View GitHub Profile
@hyphop
hyphop / freebsd.nvme.boot.log
Created July 12, 2021 07:03
freebsd.nvme.boot.log
growfs: /: cannot reload filesystem: Input/output error
Setting hostuuid: 33613334-3230-3237-6336-643030633930.
Setting hostid: 0x8aff0c18.
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Starting file system checks:
Cannot find file system superblock
Cannot find file system superblock
Warning! Some of the devices might not be available; retrying
Restarting file system checks:
root@Khadas:/boot# file initrd.img-5.12.0
initrd.img-5.12.0: LZ4 compressed data (v0.1-v0.9)
root@Khadas:/boot# file uInitrd
uInitrd: u-boot legacy uImage, uInitrd, Linux/ARM 64-bit, RAMDisk Image (Not compressed), 39022725 bytes, Thu Jun 3 02:05:32 2021, Load Address: 0x00000000, Entry Point: 0x00000000, Header CRC: 0xACF3EFC5, Data CRC: 0x261ED017
root@Khadas:/boot# uname -a
Linux Khadas 5.12.0 #1.0.6 SMP Thu Jun 3 08:59:05 CST 2021 aarch64 aarch64 aarch64 GNU/Linux
root@Khadas:/boot# lsmod
Module Size Used by
zram 40960 8
snd_soc_hdmi_codec 24576 1
@hyphop
hyphop / upgrade_mcu.sh
Last active April 29, 2021 01:48
upgrade_mcu.sh
#!/bin/bash
# one-line usage
# /bin/bash -c "$(curl -jkL https://gist.githubusercontent.com/hyphop/e0f61b9368b22c9dc806171af3346e2b/raw/777fce5586d8921e719f382f8ac3b1da55cb2204/upgrade_mcu.sh)"
echo "[i] Tone Board MCU upgrade (online script) - PRESS ANY KEY or Escape by Ctrl+C"
read l
cd ~
mkdir tone_upgrade
@hyphop
hyphop / tone2usb.txt
Created March 29, 2021 03:07
tone 2 usb
lsusb -v -d3353:a002
Bus 003 Device 009: ID 3353:a002 Khadas Tone2 Pro
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2
@hyphop
hyphop / meson-ee-pwrc.c.patch
Created February 6, 2021 05:45
meson-ee-pwrc testing
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 6eb4c7a90..37c85414b 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -4216,17 +4216,17 @@ void device_shutdown(void)
pm_runtime_barrier(dev);
if (dev->class && dev->class->shutdown_pre) {
- if (initcall_debug)
dev_info(dev, "shutdown_pre\n");
@hyphop
hyphop / aml_freeze_vim3.log
Created January 21, 2021 08:27
amlogic freeze
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.7.7 (master@universe) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)), GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #16 SMP PREEMPT Wed Jan 20 02:22:51 CST 2021
[ 0.000000] Machine model: Khadas VIM3
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000c4800000, size 768 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
@hyphop
hyphop / test_reboot.sh
Created January 21, 2021 07:54
test_reboot
#!/bin/sh
## hyphop ##
#= reboot test script
(
exit 0
N=xxx
cpu_freq_fix 1200000
@hyphop
hyphop / VIM3 kernel crash 577
Created July 13, 2020 04:20
VIM3 kernel crash 5.7.7
[ 0.586359] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000020
[ 0.589734] Mem abort info:
[ 0.592457] ESR = 0x96000004
[ 0.595464] EC = 0x25: DABT (current EL), IL = 32 bits
[ 0.600722] SET = 0, FnV = 0
[ 0.603740] EA = 0, S1PTW = 0
[ 0.606846] Data abort info:
[ 0.609689] ISV = 0, ISS = 0x00000004
[ 0.613486] CM = 0, WnR = 0
[ 0.616419] [0000000000000020] user address but active_mm is swapper
@hyphop
hyphop / VIM3 u-boot mainline test.log
Created April 28, 2020 13:52
VIM3 u-boot mainline test.log
U-Boot 2020.04 (Apr 28 2020 - 22:47:52 +0900) khadas-vim3
Model: Khadas VIM3
SoC: Amlogic Meson G12B (A311D) Revision 29:b (10:2)
DRAM: video_reserve: Reserving 1ff0000 bytes at 7e000000 for video device 'vpu@ff900000'
Video frame buffers from 7e000000 to 7fff0000
2 GiB
video_post_bind: Claiming 1ff0000 bytes at 7e000000 for video device 'vpu@ff900000'
MMC: sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from FAT... detect... booted from emmc...