2013年10月17日木曜日

Resolved the issue that can't enable ADC port on BeagleBone Black ArchLinux.

When  I tried to enable the GPIO(ADC) following operation on BeagleBone Black Archlinux,

 I had an error message below.

#  echo cape-bone-iio > /sys/devices/bone_capemgr.4/slots
-bash: /sys/devices/bone_capemgr.4/slots: No such file or directory

I have resolved the error below.

(1) Kernel 3.8 download

I downloaded 2 files from www.archlinuxarm.org

*  linux-am33x-legacy-3.8.13-11-armv7h.pkg.tar.xz

*  linux-headers-am33x-legacy-3.8.13-11-armv7h.pkg.tar.xz

(2) Downgrade

# pacman -U linux-am33x-legacy-3.8.13-11-armv7h.pkg.tar.xz linux-headers-am33x-legacy-3.8.13-11-armv7h.pkg.tar.xz

(3) reboot

(4) enable ADC

# echo cape-bone-iio > /sys/devices/bone_capemgr.6/slots
# ls -al /sys/devices/ocp.3/helper.15
drwxr-xr-x  3 root root    0 Oct 17 21:55 .
drwxr-xr-x 37 root root    0 Oct 17 21:54 ..
-r--r--r--  1 root root 4096 Oct 17 21:56 AIN0
-r--r--r--  1 root root 4096 Oct 17 21:56 AIN1
-r--r--r--  1 root root 4096 Oct 17 21:56 AIN2
-r--r--r--  1 root root 4096 Oct 17 21:56 AIN3
-r--r--r--  1 root root 4096 Oct 17 21:56 AIN4
-r--r--r--  1 root root 4096 Oct 17 21:56 AIN5
-r--r--r--  1 root root 4096 Oct 17 21:56 AIN6
-r--r--r--  1 root root 4096 Oct 17 21:56 AIN7
lrwxrwxrwx  1 root root    0 Oct 17 22:09 driver -> ../../../bus/platform/drivers/bone-iio-helper
-r--r--r--  1 root root 4096 Oct 17 21:56 modalias
drwxr-xr-x  2 root root    0 Oct 17 21:56 power
lrwxrwxrwx  1 root root    0 Oct 17 21:55 subsystem -> ../../../bus/platform
-rw-r--r--  1 root root 4096 Oct 17 21:55 uevent

I expect to come out with patches or a newer version.

Peace!!

0 件のコメント:

コメントを投稿