Debian 4.4.9, Encoder doesn't work.

122 views
Skip to first unread message

Maksim Surov

unread,
Jun 4, 2016, 8:06:33 AM6/4/16
to BeagleBoard
Hello. I have installed Debian 4.4.9 on my BeagleBone Green. The debian already has all the neccessary overlays, so i tried to load the device bone_eqep2b by typing

echo bone_eqep2b > /sys/devices/platform/bone_capemgr/slots

everything looks well, and my device is in the slots:
# cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1 
 1: PF----  -1 
 2: PF----  -1 
 3: PF----  -1 
 4: P-O-L-   0 Override Board Name,00A0,Override Manuf,bone_eqep2b

but actually device doesn't work. The dmesg shows the error
#dmesg 

[   55.645375] bone_capemgr bone_capemgr: part_number 'bone_eqep2b', version 'N/A'
[   55.645448] bone_capemgr bone_capemgr: slot #4: override
[   55.645490] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[   55.645537] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,bone_eqep2b'
[   55.666985] platform 48304180.eqep: Cannot lookup hwmod 'eqep2'
[   55.687194] bone_capemgr bone_capemgr: slot #4: dtbo 'bone_eqep2b-00A0.dtbo' loaded; overlay id #0
[   55.722085] eqep 48304180.eqep: ver. 1.0
[   55.722218] eqep 48304180.eqep: failed to get clock
[   55.740179] eqep: probe of 48304180.eqep failed with error -2

What is the reason, and how to repair this?

William Hermans

unread,
Jun 4, 2016, 11:44:03 AM6/4/16
to beagl...@googlegroups.com
You're doing something wrong.

$ sudo sh -c "echo 'eqep2b' > /sys/devices/platform/bone_capemgr/slots"
[sudo] password for william:
sh: echo: I/O error

$ sudo su

# echo bone_eqep2b > /sys/devices/platform/bone_capemgr/slots


# cat /sys/devices/platform/bone_capemgr/slots
 0: PF----  -1
 1: PF----  -1
 2: PF----  -1
 3: PF----  -1
 5: P-O-L-   0 Override Board Name,00A0,Override Manuf,bone_eqep2b

# dmesg | grep eqep2b
[45229.947577] bone_capemgr bone_capemgr: part_number 'eqep2b', version 'N/A'
[45229.968472] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,eqep2b'
[45263.895787] bone_capemgr bone_capemgr: part_number 'bone_eqep2b', version 'N/A'
[45263.916737] bone_capemgr bone_capemgr: slot #5: 'Override Board Name,00A0,Override Manuf,bone_eqep2b'
[45263.937869] bone_capemgr bone_capemgr: slot #5: dtbo 'bone_eqep2b-00A0.dtbo' loaded; overlay id #0




--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/58339cc5-b86c-49d0-a549-4fbe15e47110%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

William Hermans

unread,
Jun 4, 2016, 11:45:51 AM6/4/16
to beagl...@googlegroups.com
Well, actually I suppose it could be the kernel version you're using:

$ uname -r
4.4.9-bone-rt-r10
$ cat /etc/dogtag
BeagleBoard.org Debian Image 2016-05-01

Reply all
Reply to author
Forward
0 new messages