Skip to content

Instantly share code, notes, and snippets.

Shotaro Uchida FantomJAC

Block or report user

Report or block FantomJAC

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@FantomJAC
FantomJAC / README.md
Last active Aug 22, 2019
RDK README
View README.md

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 Feb 23, 2017
Zephyr RTOS Patch for GCC ARM Embedded support (Tested on macOS)
View 0001-gccarmemb-Needs-arm-specific-flags-at-linkage.patch
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(-)
View 0001-printk-vprintk.patch
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 / mt7610u-rpi-crosscompile.md
Created Nov 14, 2016
Cross Compile MT7610U Driver for RPi2/3
View mt7610u-rpi-crosscompile.md

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 Feb 3, 2016
Enable SPI CS0 (spidev5.0) on Intel Edison
View edison-force-spidev.patch
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"
View gist:fb6ccccb34fa3dd8289e
/*
 * ----------------------------------------------------------------------------
 * "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.
 * ----------------------------------------------------------------------------
 */
View gist:f80d0014f4fed3fe016c
[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
View gist:45ff7d15b01cfee1db19
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;
}
View gist:8dca0f47d72dab098274

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 Feb 20, 2014
OMAP4/5(armv7hf) build patch for OpenJFX8 (b129) based on https://github.com/robclark/kmscube
View armv7hf-pandaboard.patch
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"])
You can’t perform that action at this time.