Skip to content

Instantly share code, notes, and snippets.

@agners
agners / main.c
Last active May 24, 2017 04:42 — forked from mlubin/newton.jl
i.MX 7 Cortex-M4 FreeRTOS C micro benchmark
#include <math.h>
#include "FreeRTOS.h"
#include "task.h"
#include "board.h"
#include "debug_console_imx.h"
double squareroot(double x)
{
double it = x;
while (fabs(it*it - x) > 1e-13) {
@agners
agners / container.go
Last active March 12, 2017 23:03 — forked from 17twenty/container.go
Containerisation in 100 Lines of Go Code
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
@agners
agners / gist:5785663
Last active August 17, 2022 19:44 — forked from anonymous/gist:5785661
TS-7250 Reflash root
See
http://wiki.embeddedarm.com/wiki/Getting%20Started%20with%20TS-Linux%20ARM
http://wiki.embeddedarm.com/wiki/Linux_for_ARM_on_TS-72XX_User%27s_Guide
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7250-linux/
# apt-get install nfs-kernel-server tftpd xinetd
Setup TFTP
# vi /etc/xinetd.d/tftp