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 / !CockroachDB - web admin - fix big font.md
Last active May 11, 2018 02:51
CockroachDB - web admin - fix big font (forced min font size)
package main
import "fmt"
import "unicode/utf8"
import "regexp"
/*
#include <stdio.h>
#include <errno.h>
void cprint( _GoString_ s)
@hyphop
hyphop / readme.md
Created January 15, 2019 06:29
cedrus test

CEDRUS TEST

link: https://linux-sunxi.org/Sunxi-cedrus

Support for Sunxi-Cedrus is implemented through various components, either in kernel space or userspace:

  • the Cedrus V4L2 M2M kernel driver
  • the v4l2-request VAAPI backend

Additional userspace components are also available, for development purposes:

@hyphop
hyphop / Sunxi-cedrus.test.readme.md
Created January 19, 2019 07:07
Sunxi-cedrus test cedrus/4.18/requests-api-v18-merge

OK i have try to test again this kernel cedrus/4.18/requests-api-v18-merge and v4l2-request-test

manual source https://linux-sunxi.org/Sunxi-cedrus

i have make some small patch for my Orange pi Zero plus2 device kernel started and video/media node created!

but still NOT WORK !!!!

#import <Foundation/Foundation.h>
static const uint8_t huffman_table[] =
{
0xFF, 0xC4, 0x01, 0xA2, 0x00, 0x00, 0x01, 0x05, 0x01, 0x01, 0x01, 0x01,
0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02,
0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x01, 0x00, 0x03,
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
0x0A, 0x0B, 0x10, 0x00, 0x02, 0x01, 0x03, 0x03, 0x02, 0x04, 0x03, 0x05,
@hyphop
hyphop / scan.sh
Last active May 21, 2019 09:26
simple script to automate scan process via scanimage (SANE tools) for command line usage
#!/bin/sh
## hyphop ##
#
# simple script to automate scan process via scanimage (SANE tools)
# for command line usage
#
# USAGE
@hyphop
hyphop / vim_uboot_sd_mainline_krescue.log
Created August 12, 2019 09:46
vim_uboot_sd_mainline_krescue.log
GXM:BL1:dc8b51:76f1a5;FEAT:ADFC318C:80;POC:3;RCY:0;EMMC:0;READ:0;CHK:AA;SD:0;READ:0;0.0;CHK:0;
no sdio debug board detected
TE: 499372
BL2 Built : 14:59:36, Aug 9 2017.
gxl ge8c6a83 - xiaobo.gu@droid12
set vdd cpu_a to 1120 mv
set vdd cpu_b to 1050 mv
set vddee to 1000 mv
@hyphop
hyphop / vim2_linux_mainline_emmc_bug.md
Last active August 14, 2019 04:47
vim2_linux_mainline_emmc_bug.md

plz check my bug! for emmc read is fail but write is ok )))

uname -a
Linux Krescue 5.0.4 #2 SMP PREEMPT Tue Aug 13 13:21:42 MSK 2019 aarch64 GNU/Linux

VIM2 linux-mainline-5.0.4 + uboot legacy

sd works ok

vim2 spi legacy uboot

kvim2#GXM:BL1:dc8b51:76f1a5;FEAT:ADFC318C:80;POC:1;RCY:0;SPI:0;0.0;CHK:0;
TE: 36511

BL2 Built : 14:59:36, Aug  9 2017. 
gxl ge8c6a83 - xiaobo.gu@droid12

set vdd cpu_a to 1120 mv
set vdd cpu_b to 1050 mv
@hyphop
hyphop / bcmsdh_sdmmc.log
Created August 18, 2019 16:12
bcmsdh_sdmmc.log
[ 646.220913] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.11 (r)
[ 646.220928] ======== dhd_wlan_init_plat_data ========
[ 646.220937] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=-1, oob_irq_flags=0x414
[ 646.220940] dhd_wlan_init_gpio: WL_REG_ON=-1
[ 646.220943] dhd_wifi_platform_load: Enter
[ 646.220992] Power-up adapter 'DHD generic adapter'
[ 646.221709] wifi_platform_set_power = 1
[ 646.221718] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 646.530839] wifi_platform_bus_enumerate device present 1
[ 646.530877] ======== Card detection to detect SDIO card! ========