Skip to content

Instantly share code, notes, and snippets.

View imrehg's full-sized avatar
🐒
Chaos Monkey

Gergely Imreh imrehg

🐒
Chaos Monkey
View GitHub Profile
@imrehg
imrehg / vab820-uboot.patch
Created October 23, 2014 01:19
vab820-uboot.patch
diff --git a/board/freescale/mx6q_sabrelite/flash_header.S b/board/freescale/mx6q_sabrelite/flash_header.S
index ee6298f..27488de 100644
--- a/board/freescale/mx6q_sabrelite/flash_header.S
+++ b/board/freescale/mx6q_sabrelite/flash_header.S
@@ -25,6 +25,13 @@
# error "Must define the offset of flash header"
#endif
+// steven: use flash plug_in
+#define CONFIG_FLASH_PLUG_IN
@imrehg
imrehg / vab820-kernel.patch
Created October 9, 2014 06:52
Kernel patch for VAB-820
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index f818b4e..efe9b13 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -240,7 +240,10 @@ void machine_shutdown(void)
void machine_halt(void)
{
machine_shutdown();
- while (1);
+ //while (1);
@imrehg
imrehg / keybase.md
Created September 24, 2014 04:07
Keybase / Github identity

Keybase proof

I hereby claim:

  • I am imrehg on github.
  • I am imrehg (https://keybase.io/imrehg) on keybase.
  • I have a public key whose fingerprint is B82F C4C2 213C 7CAC EB17 E59C 5CF8 E50C 793D 209B

To claim this, I am signing this object:

@imrehg
imrehg / kraken.patch
Created August 6, 2014 16:19
Enabling kraken ticker on lamassu admin
diff --git a/client/code/app/Models/User.js b/client/code/app/Models/User.js
index 2caaeb3..88df457 100644
--- a/client/code/app/Models/User.js
+++ b/client/code/app/Models/User.js
@@ -4,7 +4,7 @@ var PriceData = Backbone.Model.extend({ //this model keeps a current record of p
var self = this
- self.sources = ['bitstamp', 'bitpay', 'coindesk', 'bitcoinaverage']
+ self.sources = ['bitstamp', 'bitpay', 'coindesk', 'bitcoinaverage', 'kraken']
@imrehg
imrehg / gist:baccd7e38f9fd089e4f4
Created July 25, 2014 15:15
Coinbase User Agreement
Last updated: June 10, 2014
This User Agreement ("Agreement") is a contract between you ("you," "your" or "user") and Coinbase, Inc. ("Coinbase," "we", "us" or "our") and applies to your use of: (a) the Coinbase website located at coinbase.com, the Coinbase API, and any associated Coinbase-hosted websites or mobile applications (collectively the "Coinbase Site"), and (b) any of the services provided to you by Coinbase (together with the Coinbase Site, the "Coinbase Services").
By accessing or using the Coinbase Services, printing or downloading materials from the Coinbase Site, or otherwise using the Coinbase Site, you agree to comply with and be legally bound by this Agreement. If you do not agree to any of the terms set forth in this Agreement, you may not access or use any of the Coinbase Services.
We may amend or modify this Agreement at any time by posting a revised User Agreement on the Coinbase Site and such changes or modifications shall be effective at such time. By continuing to access or use the
@imrehg
imrehg / vab820-kernel.patch
Created July 15, 2014 07:47
VIA VAB-820 patches to apply to the Freescale L3.0.35_4.1.0_130816 kernel
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index f818b4e..efe9b13 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -240,7 +240,10 @@ void machine_shutdown(void)
void machine_halt(void)
{
machine_shutdown();
- while (1);
+ //while (1);
@imrehg
imrehg / uboot-sdcard.patch
Last active August 29, 2015 14:02
Enabling SD-card booting on the VIA Springboard u-boot
--- bspinst/bspinst.cfg 2013-09-04 18:45:54.000000000 +0800
+++ bspinst/bspinst.cfg 2014-06-17 16:18:27.000000000 +0800
@@ -192,6 +192,13 @@
${bootargs-common} \
${bootargs-extra}
+# Set rootfs on the SD card
+setenv set-rfs-sd \
+ setenv bootargs mem=${memtotal} root=/dev/mmcblk0p2 rw \
+ rootfstype=ext4 noinitrd mbtotal=${mbsize} \
@imrehg
imrehg / RFID.pde
Created May 11, 2014 06:04
Copy of Arduino test code for RFID reader http://forum.arduino.cc/index.php/topic,210809.0.html
/*
* Name:RFID.pde
* Create:www.electrodragon.com
* Create date:2011.09.19
* Function:Mifare1 searching card →prevent conflict→ select card →read write pins
*/
// the sensor communicates using SPI, so include the library:
#include <SPI.h>
#define uchar unsigned char
@imrehg
imrehg / .config
Created April 28, 2014 09:08
Kernel config config for VIA VAB-600 Springboard
#
# Automatically generated make config: don't edit
# Linux/arm 3.0.8 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_KTIME_SCALAR=y
@imrehg
imrehg / gp-58iv-lsusb.txt
Created April 17, 2014 03:09
ICT GP-58IV thermal printer `lsusb -v` output
Bus 001 Device 006: ID 0483:5740 STMicroelectronics STM32F407
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0483 STMicroelectronics