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 / 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 / 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 / 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 / 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 <fantom@xmaker.mx>
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 <fantom@xmaker.mx>
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 / openjfx8-armv7hf-beagleboard.patch
Last active December 30, 2015 07:39
Beagleboard(armv7hf) build patch for OpenJFX8 (b118)
diff -r 25d3cad95e8b build.gradle
--- a/build.gradle Thu Nov 28 08:49:58 2013 -0800
+++ b/build.gradle Wed Dec 04 15:35:16 2013 -0800
@@ -1128,8 +1128,8 @@
if (IS_COMPILE_PANGO) {
// TODO: embedded support
- addNative(project, "fontFreetype", ["linux"])
- addNative(project, "fontPango", ["linux"])
+ addNative(project, "fontFreetype", ["linux", "armv7hf"])
@FantomJAC
FantomJAC / update-jfx.sh
Created December 4, 2013 23:40
A rootfs tool for OpenJFX8 custom sdk build.
#!/bin/bash
#
# Copyright (c) 2013 Shotaro Uchida <fantom@xmaker.mx>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@FantomJAC
FantomJAC / gist:6007794
Created July 16, 2013 11:07
適当JSON
import java.nio.CharBuffer;
import java.util.HashMap;
import java.util.Map;
public class Parser {
public static final char START_OBJECT = '{';
public static final char KEY = ':';
public static final char VALUE = ',';
public static final char END_OBJECT = '}';
@FantomJAC
FantomJAC / oatuh2-dev-note
Created September 1, 2012 10:42
Restlet OAuth2.0 draft30 extension development note.
OAuth 2.0 draft30 Note.
1.7. HTTP Redirections
* We use '307 Temporary Redirect' via #redirectTemporary method generally.
1.8. Interoperability
* TBD: Client implementations.
2. Client Registration
* ClientStore has 2 methods to specify client type(confidential/public).
@FantomJAC
FantomJAC / gist:fb6ccccb34fa3dd8289e
Last active August 29, 2015 14:10
オープン家系
/*
 * ----------------------------------------------------------------------------
 * "THE BEER-WARE LICENSE" (Revision 42):
 * <fantom@xmaker.mx> 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.
 * ----------------------------------------------------------------------------
 */