Skip to content

Instantly share code, notes, and snippets.

View bkrepo's full-sized avatar

Brian Kim bkrepo

View GitHub Profile
@bkrepo
bkrepo / meson64_odroidc2.dts
Last active January 31, 2017 04:41
ODROID-C2 dts file for UART_A, UART_Band UART_C ports
/*
* AMLogic's S905 based ODROID-C2 board device tree source
*
* Copyright (c) 2015 Hardkernel Co., Ltd.
* http://www.hardkernel.com
*
* Device tree source file for Hardkernel's ODROID-C2 board based on AMLogic's
* S905 SoC.
*
* This program is free software; you can redistribute it and/or modify
@bkrepo
bkrepo / imgget.py
Created January 25, 2017 02:10
Get all files in URL
#!/usr/bin/python
import re
import os
import sys
import urllib2
if len(sys.argv) != 2:
print "Usage: imgget.py <Download URL>"
sys.exit(1)
@bkrepo
bkrepo / remove-disabling-advertise1000
Created December 20, 2016 01:51
Remove the disabling advertise patch
From 60cf7ed36b9f29a6595cf5c3d4b39dd0ae36e31b Mon Sep 17 00:00:00 2001
From: Brian Kim <[email protected]>
Date: Fri, 4 Nov 2016 15:41:17 +0900
Subject: [PATCH] ODROID-C2: eth: phy: Remove the disabling advertise
1000baseT/Full
ODROID-C2 supports the gigabit ethernet. So. this is generating the
potential error which is wrong ethernet link speed detection.
Change-Id: I825caa4877abbda3c152d208d2131736342a54e8
@bkrepo
bkrepo / odlight.ino
Created October 13, 2016 09:10
odlight: Ambilight for ODROID
/*----------------------------------------------------------------------------*/
/*
Ambilight Project : Arduino Uno Board with WS2801/WS2812B LED Strip
Arduino Pin Connection
- Mode 0 (1 wire) :
Data Out Pin 6
- Mode 1 (3 wire : spi mode = 0, clk = 2Mhz) :
Data Out Pin 11
Clock Out Pin 13
@bkrepo
bkrepo / hyperion.config.json
Last active October 14, 2016 09:10
Hyperion configuration file for ODROID-C2
// Automatically generated configuration file for Hyperion ambilight daemon
// Notice: All values are explained with comments at our wiki: wiki.hyperion-project.org (config area)
// Generated by: HyperCon (The Hyperion deamon configuration file builder)
// Created with HyperCon V1.03.1 (11.06.2016)
{
// DEVICE CONFIGURATION
"device" :
{
"name" : "odroidc2",
@bkrepo
bkrepo / hyperion.patch
Created October 12, 2016 01:15
ODROID-C2 kernel patch for hyperion(Ambilight)
diff --git a/arch/arm64/configs/odroidc2_defconfig b/arch/arm64/configs/odroidc2_defconfig
index fd4f69f..5c4df94 100644
--- a/arch/arm64/configs/odroidc2_defconfig
+++ b/arch/arm64/configs/odroidc2_defconfig
@@ -1227,7 +1227,7 @@ CONFIG_AM_VDEC_AVS=y
CONFIG_AM_TIMESYNC=y
CONFIG_AM_STREAMING=y
CONFIG_AM_SUBTITLE=y
-# CONFIG_AM_VIDEOCAPTURE is not set
+CONFIG_AM_VIDEOCAPTURE=y
ODROID-HDMI.pcm.default {
@args [ CARD ]
@args.CARD { type string }
type plug
slave.pcm {
@func concat
strings [ "dmix:" $CARD ]
}
}
@bkrepo
bkrepo / support_api_for_arm64.patch
Created September 8, 2016 06:18
examples: api: support arm64 target
diff --git a/examples/api/crt0.S b/examples/api/crt0.S
index df2b542..d9313d0 100644
--- a/examples/api/crt0.S
+++ b/examples/api/crt0.S
@@ -26,7 +26,21 @@ syscall:
bctr
#elif defined(CONFIG_ARM)
+#ifdef CONFIG_ARM64
+ .text
@bkrepo
bkrepo / swap_test.c
Created June 8, 2016 09:16
Swap test program
// $ gcc swap_test.c -o swap_test
// $ sudo sysctl vm.swappiness=100
// $ ./swap_test
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char** argv) {
int max = -1;
int mb = 0;
@bkrepo
bkrepo / gist:66aaa7208bed719f6bc21098bb8b12bb
Created May 31, 2016 09:59
dmesg for Kodi CEC debugging
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.14.65+ (brian@brian-desktop) (gcc version 5.3.1 20160413 (Ubuntu/Linaro 5.3.1-14ubuntu2) ) #7 SMP PREEMPT Tue May 31 18:54:07 KST 2016
[ 0.000000] CPU: AArch64 Processor [410fd034] revision 4
[ 0.000000] secmon: share mem setup
[ 0.000000] Reserved memory: initialized node linux,secmon, compatible id aml_secmon_memory
[ 0.000000] __reserved_mem_alloc_size: linux,meson-fb
[ 0.000000] fb: Reserved memory: created fb at 0x0000000078000000, size 128 MiB
[ 0.000000] Reserved memory: initialized node linux,meson-fb, compatible id amlogic, fb-memory