2013年10月14日月曜日

An installation Debian-arnhf into BeagleBone Black, To use analog input function on Linux 3.8 kernel.

The BeagleBone Black has many functions ,ADC, PWM, , , ,

But ArchLinuxArm kernel of BeagleBone Black doesn't support BONE-CAPE.

So I decided installing Debian-armhf into BBB.


My instillation is below

1) download

I used ubutu machine to make a boot micro SD card.

wget http://s3.armhf.com/boards/bbb/uboot-bone.tar.xz

wget http://s3.armhf.com/debian/wheezy/bone/debian-wheezy-7.0.0-armhf-3.8.13-bone20.img.xz

2) install

Please refer BeagleBone official site.

3) enable AIN

user change from debian to root

# echo cape-bone-iio > /sys/devices/bone_capemgr.*/slots

# cat /sys/devices/ocp.2/helper.14/AIN0 


drwxr-xr-x  3 root root    0 Oct 14 04:42 .

drwxr-xr-x 36 root root    0 Oct 14 04:07 ..
-r--r--r--  1 root root 4096 Oct 14 04:43 AIN0
-r--r--r--  1 root root 4096 Oct 14 04:43 AIN1
-r--r--r--  1 root root 4096 Oct 14 04:43 AIN2
-r--r--r--  1 root root 4096 Oct 14 04:43 AIN3
-r--r--r--  1 root root 4096 Oct 14 04:43 AIN4
-r--r--r--  1 root root 4096 Oct 14 04:43 AIN5
-r--r--r--  1 root root 4096 Oct 14 04:43 AIN6
-r--r--r--  1 root root 4096 Oct 14 04:43 AIN7
lrwxrwxrwx  1 root root    0 Oct 14 04:43 driver -> ../../../bus/platform/drivers/bone-iio-helper
-r--r--r--  1 root root 4096 Oct 14 04:43 modalias
drwxr-xr-x  2 root root    0 Oct 14 04:43 power
lrwxrwxrwx  1 root root    0 Oct 14 04:42 subsystem -> ../../../bus/platform
-rw-r--r--  1 root root 4096 Oct 14 04:42 uevent

Completed!


Peace!!

0 件のコメント:

コメントを投稿