비글본시작하기
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 비글본시작하기 [2012/01/04 07:44] – created 147.46.167.37 | 비글본시작하기 [2018/07/18 14:10] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== 패키지 설치 ====== | ====== 패키지 설치 ====== | ||
| + | opkg | ||
| opkg update | opkg update | ||
| opkg upgrade | opkg upgrade | ||
| opkg install python-serial | opkg install python-serial | ||
| | | ||
| + | |||
| + | arduino를 위한 패키지 | ||
| + | opkg install kernel-module-cdc-acm | ||
| + | | ||
| + | |||
| + | |||
| + | 커널 모듈 만들기 | ||
| + | |||
| + | |||
| + | #include < | ||
| + | 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(" | ||
| + | MODULE_DESCRIPTION(" | ||
| + | MODULE_LICENSE(" | ||
| + | |||
| + | |||
| + | |||
| + | obj-m := hello.o | ||
| + | |||
| + | |||
| + | #!/bin/bash | ||
| + | export SYSROOTS=${HOME}/ | ||
| + | export PATH=${PATH}: | ||
| + | export ARCH=arm | ||
| + | export CROSS_COMPILE=arm-angstrom-linux-gnueabi- | ||
| + | export KERNELDIR=${SYSROOTS}/ | ||
| + | make -C ${KERNELDIR} M=$(pwd) modules | ||
| + | |||
| + | |||
| + | insmod hello.ko | ||
| + | |||
| + | http:// | ||
| + | |||
비글본시작하기.1325663072.txt.gz · Last modified: 2018/07/18 14:09 (external edit)