Skip to content

Instantly share code, notes, and snippets.

View hak8or's full-sized avatar

hak8or hak8or

View GitHub Profile
@hak8or
hak8or / Rakefile
Created April 19, 2015 17:45
Del me, temporary rake file working on
# Handle dependancies required by the app.
namespace :setup do
desc "Starts redis using a preconfigured docker image."
task :start_redis_server do
sh "docker start some-redis"
end
# Find a way for this to run if some-redis doesn't exist yet.
desc "Fetches and starts an initial redis docker image."
task :make_redis_server do
@hak8or
hak8or / sadasda
Last active August 29, 2015 14:19
Damian Email
Dear Ms. Gooch,
My name is Damian Glinojecki, I am a friend of Marcin Ziemianowicz whom has recently been employed by Sendyne. I have come to know that your company is looking for individuals with skill-sets similar to those of Marcins, such as PCB design (I primarly use KiCad), C/C++ based embedded software and firmware, and of course primarily digital circuit design. Over the years, I have worked on a variety of projects for which I have made custom PCBs and written my own software.
I have heard nothing but good things about your company from Marcin, and as I understand you might be interested in hiring individuals such as myself. If possible, I would be interested in being considered for an internship position at Sendyne.
I also have a home lab similar to Marcin's, albiet not in a baseement.
Thank you for your time,
Damien Glinojecki
@hak8or
hak8or / gist:a11baa267f64a16840a5
Created March 24, 2015 20:43
Boosh, gcc compiles on my board
RomBOOT
==============================
Using Dataflash!
ba_offset = 0xb ...
AT91Bootstrap 3.7.1-00054-gef803bb-dirty (Sun Mar 15 19:00:41 PDT 2015)
Edited by hak8or!
@hak8or
hak8or / gist:e461a6a878b4c793979e
Created March 23, 2015 03:08
GCC on ARM using Canadian build of crosstools-ng. Just needed to put arm-unknown-linux-gnueabi (cross compiler) in host system tuple in ct-ng menuconfig
RomBOOT
==============================
Using Dataflash!
ba_offset = 0xb ...
AT91Bootstrap 3.7.1-00054-gef803bb-dirty (Sun Mar 15 19:00:41 PDT 2015)
Edited by hak8or!
@hak8or
hak8or / gist:92da23731327946b7478
Created March 22, 2015 21:37
Crosstools-ng build
hak8or@ubuntu:~/Desktop/toolchain_setup/crosstool-ng-crosstool-ng-1.20.0$ ./ct-ng build
[INFO ] Performing some trivial sanity checks
[INFO ] Build started 20150322.140851
[INFO ] Building environment variables
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[INFO ] Retrieving needed toolchain components' tarballs: done in 90.31s (at 01:43)
[INFO ] =================================================================
[INFO ] Extracting and patching toolchain components
[INFO ] Extracting and patching toolchain components: done in 54.14s (at 02:37)
@hak8or
hak8or / gist:fb788b9f2d992579acfe
Created March 21, 2015 22:34
Sodoku on my system, the joy!
U-Boot> ▒▒▒▒▒RomBOOT
==============================
Using Dataflash!
ba_offset = 0xb ...
AT91Bootstrap 3.7.1-00054-gef803bb-dirty (Sun Mar 15 19:00:41 PDT 2015)
@hak8or
hak8or / setup_copy_fs.sh
Last active August 29, 2015 14:17
Compiles busybox and copies the contents plus generates a few over to a flash drive
#!/bin/bash
# Resources:
# http://pietrushnic.github.io/blog/2013/06/07/root-file-system-for-embedded-system/
# https://gist.github.com/eepp/6056325
# Arguments:
# none Compile busybox, make a rootfs from busybox and rootfs_additions, and get an ext2 fs from rootfs.
# make_ext2 Just make an ext2 from the rootfs folder.
# write_usb Same as none but also write the rootfs to a flash drive.
RomBOOT
==============================
Using Dataflash!
ba_offset = 0xb ...
AT91Bootstrap 3.7.1-00054-gef803bb-dirty (Sun Mar 15 19:00:41 PDT 2015)
Edited by hak8or!
RomBOOT
==============================
Using Dataflash!
ba_offset = 0xb ...
AT91Bootstrap 3.7.1-00054-gef803bb-dirty (Sun Mar 15 19:00:41 PDT 2015)
Edited by hak8or!
@hak8or
hak8or / gist:17539df300ba1189e2a0
Created March 16, 2015 11:29
Kernel TTY muckup somewhere
==============================
Using Dataflash!
ba_offset = 0xb ...
AT91Bootstrap 3.7.1-00054-gef803bb-dirty (Sun Mar 15 19:00:41 PDT 2015)
Edited by hak8or!
Yey custom code execution and toolchain verification! :D
======--======--======--======
MASTER_CLOCK (MCLK): 0x5f5e100
SPI clock rate requested: 0xa1220