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 / 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...
@hyphop
hyphop / VIM3 u-boot mainline test.log
Created April 28, 2020 11:26
VIM3 u-boot mainline test
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...
** No partition table - mmc 2 **
power_domain_get_by_index(dev=000000007bf30970, power_domain=000000007bf04618)
@hyphop
hyphop / VIM2 u-boot mainline video test.log
Created April 28, 2020 11:20
VIM2 u-boot mainline video test.log
U-Boot 2020.04 (Apr 28 2020 - 20:17:41 +0900) khadas-vim2
Model: Khadas VIM2
SoC: Amlogic Meson GXM (S912) Revision 22:a (82:2)
DRAM: video_reserve: Reserving 1ff0000 bytes at be000000 for video device 'vpu@d0100000'
Video frame buffers from be000000 to bfff0000
3 GiB
video_post_bind: Claiming 1ff0000 bytes at be000000 for video device 'vpu@d0100000'
MMC: mmc@70000: 0, mmc@72000: 1, mmc@74000: 2
Loading Environment from FAT... detect... booted from emmc...
@hyphop
hyphop / mainline_usb_storage_problem.md
Created April 21, 2020 04:13
mainline usb starage problem

PROBLEM

we can get any USB pcie nvm or msata adapter and check (uas module) and plug to USB3 socket need wait about 100s before we can get real access to block dev /dev/sda


root@Khadas:~# uname -a
@hyphop
hyphop / Krescue mega install.md
Last active December 30, 2019 10:57
Krescue mega install

Krescue mega install

check images list

curl -s https://dl.khadas.com/.mega | sh -s - --list

download and write one image

curl -s https://dl.khadas.com/.mega | sh -s - VIM3 VIM3x.EmuElec.ng.3.2.pre.emmc.kresq > /dev/mmcblk0

@hyphop
hyphop / VIMx_WIFI.log
Created December 23, 2019 09:08
VIMx_WIFI_log
## VIM1
[ 10.967663] brcmfmac: brcmf_sdiod_sgtable_alloc: !!!! WIFI DEBUG khadas,vim: host->max_segs: 256
host->max_seg_size: 511 host->max_blk_count: 261632 sdiodev->max_request_size: 261632
sdiodev->max_segment_count: 128 max_blocks: 511 host->max_req_size: 261632
[ 10.967927] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 10.988538] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.khadas,vim.txt failed with error -2
[ 11.124254] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 11.124535] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 11.128464] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Aug 25 2015 18:58:57 version 7.45.69 (r581703) FWID 01-24037f6e