패키지 설치

opkg

opkg update
opkg upgrade
opkg install python-serial

arduino를 위한 패키지

opkg install kernel-module-cdc-acm

커널 모듈 만들기

#include <linux/module.h> static int init hello_init(void) { printk(KERN_INFO “Hello Example Init\n”); return 0; } static void exit hello_exit(void) {

  printk(KERN_INFO "Hello Example Exit\n");

} module_init(hello_init); module_exit(hello_exit); MODULE_AUTHOR(“Chris Hallinan”); MODULE_DESCRIPTION(“Hello World Example”); MODULE_LICENSE(“GPL”);

obj-m := hello.o

#!/bin/bash export SYSROOTS=${HOME}/angstrom-setup-scripts/build/tmp-angstrom_2008_1/sysroots export PATH=${PATH}:${SYSROOTS}/i686-linux/usr/armv7a/bin export ARCH=arm export CROSS_COMPILE=arm-angstrom-linux-gnueabi- export KERNELDIR=${SYSROOTS}/beagleboard-angstrom-linux-gnueabi/kernel make -C ${KERNELDIR} M=$(pwd) modules

insmod hello.ko

http://en.wikipedia.org/wiki/User:WillWare/Angstrom_and_Beagleboard