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 / 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 / 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 / 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 / README.txt
Created November 7, 2014 11:27
VAB-600 flashing instructions
1. Prepare a SD card at least 2GB, and format the SD card with FAT partition.
2. Uncompressed the "Update_Package_EMMC_VAB-600_Linux_BSP_V1.0.2.210.1.zip."
There are two files inside, which is named "bspinst/" and "scriptcmd."
3. Copy the two files "bspinst/" and "scriptcmd" to the SD card.
4. Plug in the SD card to the VAB-600 SD card slot, and start up the VAB-600.
@imrehg
imrehg / vab-600-i2c.patch
Created December 20, 2014 08:43
VIA VAB-600 Springboard patch to enable the board and i2c for the upstream kernel
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index b8c5cd3..3dd7c79 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -460,7 +460,8 @@ dtb-$(CONFIG_ARCH_VT8500) += vt8500-bv07.dtb \
wm8505-ref.dtb \
wm8650-mid.dtb \
wm8750-apc8750.dtb \
- wm8850-w70v2.dtb
+ wm8850-w70v2.dtb \
@imrehg
imrehg / config-buildroot
Created December 31, 2014 06:27
Kernel and Buildroot configuration for the VIA VAB-820
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2015.02-git-00539-g6ecbce2 Configuration
#
BR2_HAVE_DOT_CONFIG=y
#
# Target options
#
# BR2_arcle is not set
@imrehg
imrehg / ssba_share_link.patch
Created January 21, 2015 14:05
Simple Share Button Adder patch
@imrehg
imrehg / querywinning.sh
Last active August 29, 2015 14:19
Example query and results from the Taiwanese electronic invoice API
# API from this doc: https://www.einvoice.nat.gov.tw/home/DownLoad%3Bjsessionid%3DjMPySdkKYmK77tnL1pPVr7NKsL1Mnb0NnQz24yccnMMQTTfLc1ll!814221976%3FfileName%3Df1371195138997.pdf
# using credentials from the EasyWallet Android app
# note: date is in Taiwanese years (ie. Year 104 is equal to 2015, 103 would be 2014, and so on)
# for invTerm the full date is yyyMM format, where MM is the even month of the period: eg. for 2015 Jan-Feb it is 10402
curl -k -i "https://www.einvoice.nat.gov.tw/PB2CAPIVAN/invapp/InvApp?version=0.2&action=QryWinningList&invTerm=10402&uuid=UFm4wEDPmJq73JQPR9qvLM6lV3F114rj&appID=EINV2201306253437"
@imrehg
imrehg / cldebug.log
Created June 15, 2015 15:27
OpenCL compilation debug on Parallella
coprthr-1.6.2 (Freewill)
[16048] clmesg debug: ocl_platform.c(62): clGetPlatformIDs
[16048] clmesg debug: ocl_device.c(528): __do_discover_devices (nil)
[16048] clmesg debug: device.c(99): __do_discover_devices_1 (nil)
[16048] clmesg debug: device.c(117): h=0x30d7b8 init_device=0xb688a1c0
[16048] clmesg debug: device_x86_64.c(90): init_device_x86_64
[16048] clmesg debug: device.c(128): h=0x2a0020 init_device=0xb684c5d8
[16048] clmesg debug: device_e32.c(113): init_device_e32
[16048] clmesg debug: device_e32.c(128): e_init() returned 0
[16048] clmesg debug: device_e32.c(150): e_alloc using &e_dram 0xb685c364
@imrehg
imrehg / pymontage_roadmap.txt
Created June 7, 2009 12:13
Pymontage roadmap
PyMontage Roadmap:
0.1.0 release
* command line operation
* fragment pictures: fitting R/G/B/(R+G+B/3=BW) channels
* subdivision and fitting mosaic pictures
* finding best fitting fragments to build mosaic
* build mosaic (montage)
* handle jpeg files