Skip to content

Instantly share code, notes, and snippets.

View FantomJAC's full-sized avatar

Shotaro Uchida FantomJAC

  • SF Bay Area, California
View GitHub Profile
@FantomJAC
FantomJAC / README.md
Last active August 22, 2019 15:22
RDK README

Niboshi Shoyu Ramen-development-kit

DIY the true Niboshi-shoyu ramen at your home.

本物の煮干醤油ラーメン、2人前があなたのお家で簡単に作れる。

Dependencies

The following ingredients are included within this kit. (for 2 servings)

@FantomJAC
FantomJAC / 0001-gccarmemb-Needs-arm-specific-flags-at-linkage.patch
Created February 23, 2017 15:07
Zephyr RTOS Patch for GCC ARM Embedded support (Tested on macOS)
From 011c702c39baa392beef9457f22fc7eb29285f11 Mon Sep 17 00:00:00 2001
From: Shotaro Uchida <[email protected]>
Date: Thu, 23 Feb 2017 23:56:50 +0900
Subject: [PATCH] gccarmemb: Needs arm specific flags at linkage
---
Makefile | 6 +++++-
arch/arm/Makefile | 3 +++
2 files changed, 8 insertions(+), 1 deletion(-)
@FantomJAC
FantomJAC / 0001-printk-vprintk.patch
Created January 23, 2017 17:45
vprintk for zephyr
From 84330d4ad6b4b699819f5677fa6cb36a72b95088 Mon Sep 17 00:00:00 2001
From: Shotaro Uchida <[email protected]>
Date: Fri, 13 Jan 2017 14:55:08 +0900
Subject: [PATCH] printk: vprintk
---
include/misc/printk.h | 1 +
misc/printk.c | 7 +++++++
2 files changed, 8 insertions(+)
@FantomJAC
FantomJAC / mt7610u-rpi-crosscompile.md
Created November 14, 2016 15:30
Cross Compile MT7610U Driver for RPi2/3

Cross Compile MT7610U Driver for RPi2/3

$ mkdir bcm-staging
$ export WORK=`pwd`/bcm-staging

RPi2/3 Kernel

Setup toolchain

$ cd ${WORK}
$ git clone https://github.com/raspberrypi/tools
@FantomJAC
FantomJAC / edison-force-spidev.patch
Created February 3, 2016 21:21
Enable SPI CS0 (spidev5.0) on Intel Edison
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 82b8dca..e1a4789 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -457,6 +457,9 @@ config X86_INTEL_MID
nor standard legacy replacement devices/features. e.g. It does not
contain i8259, i8254, HPET, legacy BIOS, most of the io ports.
+config INTEL_MID_FORCE_SPIDEV
+ bool "Force spidev"
@FantomJAC
FantomJAC / gist:fb6ccccb34fa3dd8289e
Last active August 29, 2015 14:10
オープン家系
/*
 * ----------------------------------------------------------------------------
 * "THE BEER-WARE LICENSE" (Revision 42):
 * <[email protected]> wrote this file. As long as you retain this notice you
 * can do whatever you want with this stuff. If we meet some day, and you think
 * this stuff is worth it, you can buy me a beer in return.
 * ----------------------------------------------------------------------------
 */
@FantomJAC
FantomJAC / gist:f80d0014f4fed3fe016c
Created July 22, 2014 10:57
objfw Ubuntu 14.04 error
[OFThread] -[start]: testing...
Runtime error: Unhandled exception:
Starting a thread of type TestThread failed!
Backtrace:
0x2af66ab9fcc8 <??> at ./libobjfw.so.7
0x2af66aba3a0e <??> at ./libobjfw.so.7
0x2af66aba3942 <??> at ./libobjfw.so.7
0x2af66ab62ca1 <??> at ./libobjfw.so.7
0x425a80 <??> at ./tests
public static int bitReverse(int i, int bit) {
if (bit == 1) return i;
int s = bit / 2;
int mask = 0xFFFFFFFF >>> (32 - s);
return bitReverse(i >> s, s) | bitReverse(i & mask, s) << s;
}
@FantomJAC
FantomJAC / gist:8dca0f47d72dab098274
Last active August 29, 2015 14:01
OpenNakamoto

Common

Ingredients of Miso Base

  • 1 cup aka-miso
  • 1 cup shiro-miso
  • Red pepper powder
  • Curry powder
  • Lard (for stir frying)
@FantomJAC
FantomJAC / armv7hf-pandaboard.patch
Created February 20, 2014 23:58
OMAP4/5(armv7hf) build patch for OpenJFX8 (b129) based on https://github.com/robclark/kmscube
diff -r b8d6295f4672 build.gradle
--- a/build.gradle Fri Feb 07 13:27:40 2014 -0800
+++ b/build.gradle Thu Feb 20 15:57:51 2014 -0800
@@ -1146,8 +1146,8 @@
if (IS_COMPILE_PANGO) {
// TODO: embedded support
- addNative(project, "fontFreetype", ["linux"])
- addNative(project, "fontPango", ["linux"])
+ addNative(project, "fontFreetype", ["linux", "armv7hf"])