Skip to content

Instantly share code, notes, and snippets.

@tjhayasaka
tjhayasaka / README-machinekit-terasic-de0.md
Last active June 5, 2019 16:14 — forked from mhaberler/README-machinekit-terasic-de0.md
Installing the Machinekit Altera CycloneV test image

Contents

This SD image is a debian jessie console image with:

  • a 4.1.22-ltsi-rt kernel with RT-PREEMPT patches applied
  • tested on Terasic DE0-Nano-SoC Kit, other SoCKit platforms should work with appropriate dtb
  • machinekit RIP-build under /home/machinekit/machinekit, all build artefacts are in place (no need to run make)
  • machinekit packages are NOT installed and you do not have to!
  • all machinekit build- and runtime required packages ARE installed.
  • /home/machinekit/.bashrc already set up to run machinekit from the RIP build directory.
  • one known-to-work configuration with hostmot2/onboard FPGA support is: machinekit/configs/hm2-soc-stepper/5i25-socfpga.ini
@tjhayasaka
tjhayasaka / 99_length_validator_patch.rb
Created November 17, 2011 01:41
modify Rails 3.0 LengthValidator to accept Proc objects as length-limit and message options
#
# modify LengthValidator to accept Proc objects as length-limit and message options
module ActiveModel
# == Active Model Length Validator
module Validations
class LengthValidator