- Poky
git clone git://git.yoctoproject.org/poky && cd poky
- OE metadata layers
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) |
import serial | |
import time | |
from messaging.sms import SmsDeliver | |
ser=serial.Serial('/dev/ttyACM0', baudrate=9600, timeout=.1, rtscts=0) | |
def sendCommand(com): | |
ser.write(com+"\r\n") | |
time.sleep(2) | |
ret = [] |
Simply run: | |
python -m SimpleHTTPServer |
/* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
*/ | |
#include <arpa/inet.h> | |
#include <linux/if_packet.h> | |
#include <stdio.h> |
UBI issues | |
modprobe mtd | |
modprobe mtdblock | |
modprobe mtdram total_size=200000 erase_size=128 | |
modprobe ubi | |
ubiformat /dev/mtd0 | |
ubiattach /dev/ubi_ctrl -m 0 | |
ubimkvol /dev/ubi0 -N VOLUME -s 192MiB |
# UBI mount | |
# source: | |
# http://mytechrants.wordpress.com/2010/01/20/ubiubifs-on-nandsim/ | |
# http://www.plugcomputer.org/plugwiki/index.php/Enabling_UBIFS | |
modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15 | |
cat /proc/mtd | |
ubiformat /dev/mtd0 -f system.ubi | |
modprobe ubi mtd=0 |
set mailserver localhost | |
set daemon 120 with start delay 240 | |
set logfile syslog facility log_daemon | |
set httpd port 2812 | |
allow localhost | |
set alert noreply@example.com | |
check host internet with address 80.254.111.254 | |
if failed icmp type echo count 5 with timeout 30 seconds |
#!/bin/bash | |
ADB="/home/mrenouf/bin/adb" | |
# We need root on the host to mess with networking | |
if [[ $(whoami) != "root" ]]; then | |
echo "You must be root to run this script!" | |
exit 1 | |
fi; |
#require "bundler/capistrano" | |
require "rvm/capistrano" | |
# General | |
set :application, "test_capistrano" | |
set :domain, "test_capistrano.mxt.com.br" | |
set :user, "mxt" | |
set :runner, "mxt" | |
set :use_sudo, false | |
set :deploy_to, "/home/mxt/rails/#{application}" |