Skip to content

Instantly share code, notes, and snippets.

Avatar
😁
be happy

Art Nikpal hyphop

😁
be happy
View GitHub Profile
View meson-ee-pwrc.c.patch
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");
View aml_freeze_vim3.log
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
View test_reboot.sh
#!/bin/sh
## hyphop ##
#= reboot test script
(
exit 0
N=xxx
cpu_freq_fix 1200000
@hyphop
hyphop / VIM3 kernel crash 577
Created Jul 13, 2020
VIM3 kernel crash 5.7.7
View VIM3 kernel crash 577
[ 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 Apr 28, 2020
VIM3 u-boot mainline test.log
View 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...
View VIM3 u-boot mainline test.log
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 Apr 28, 2020
VIM2 u-boot mainline video test.log
View 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 Apr 21, 2020
mainline usb starage problem
View mainline_usb_storage_problem.md

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 Dec 30, 2019
Krescue mega install
View Krescue mega install.md

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