eQEP Quadrature detector

116 views
Skip to first unread message

Wim Hellenthal

unread,
May 19, 2016, 8:57:17 AM5/19/16
to BeagleBoard

Please help,

 

I've already posted a mail before but got no reaction. I'm desperately looking for support. I have a running quadrature detector using pin P8_12 and P8_11 (eqep2), see the attached dts file. The code I’m using is based on accessing the eQEP register using memory mapped IO (mmio).

 

I’ve have used the detector without any problems on a BBB board running the following debian version:

Linux beaglebone 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l GNU/Linux

 

Now I’m trying to run exactly the same code on a newer debian version. This is not working anymore!!!!!  I managed to download and install the following debian version (among some other versions):

                Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l GNU/Linux

 

Note that I installed the bone50 version on a different BBB board. I don’t want to mess up the correct working bone47 board. Both board have 4G eMMC memory (revision - C)

What I notice is that the folder structure for both version is different:

               

                For Bone47 it is:  /sys/devices/ocp.3/48304000.epwmss

                For Bone50 it is:  /sys/devices/ocp.3/48304000.epwmss/48304180.eqep


Bone47; No means to read the position and the like.

Bone50; Reading the position using cat position alway return zero, this is also what I see running the mmio code.


So what could be the cause that the quadrature detector is no longer working on debian version higher than 3.8.13-bone47? At least the folder structure is different. Is this a kernel driver issue? Do I have to redefine the .dts file? Any help would be highly appreciated.

 

Best regards,

Wim

bone_eqep2-00A0.dts

evilwulfie

unread,
May 19, 2016, 9:29:22 AM5/19/16
to beagl...@googlegroups.com

if you have it working why upgrade ?
do you need a feature on bone 50 ?
--
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/5bcb57fb-0cc5-42a2-b861-2ed059a5970f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Wim Hellenthal

unread,
May 19, 2016, 1:04:51 PM5/19/16
to BeagleBoard
I understand your question. But unfortunatly all New puchased boards carry a version higher then bone47 that don't work either

Regards Wim

Rick Mann

unread,
May 19, 2016, 4:19:03 PM5/19/16
to beagl...@googlegroups.com

> On May 19, 2016, at 10:04 , Wim Hellenthal <whell...@gmail.com> wrote:
>
> I understand your question. But unfortunatly all New puchased boards carry a version higher then bone47 that don't work either

You should be able to install the bone47 kernel on those new boards without issue. It's a simple apt-get command:

sudo apt-get update
apt-cache search linux-image
sudo apt-get install <the image you found above that you want>
sudo reboot



--
Rick Mann
rm...@latencyzero.com


J.W. Hellenthal

unread,
May 20, 2016, 9:19:05 AM5/20/16
to beagl...@googlegroups.com
OK I will try that. 

Thanks, Wim

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/vpBD2T138lg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/30637994-E55E-481B-9E94-7FFDC4D06E8A%40latencyzero.com.

J.W. Hellenthal

unread,
May 20, 2016, 9:38:02 AM5/20/16
to beagl...@googlegroups.com
/root>apt-cache search linux-image
alsa-base - ALSA driver configuration files
linux-headers-3.2.0-4-iop32x - Header files for Linux 3.2.0-4-iop32x
linux-headers-3.2.0-4-ixp4xx - Header files for Linux 3.2.0-4-ixp4xx
linux-headers-3.2.0-4-kirkwood - Header files for Linux 3.2.0-4-kirkwood
linux-headers-3.2.0-4-mv78xx0 - Header files for Linux 3.2.0-4-mv78xx0
linux-headers-3.2.0-4-mx5 - Header files for Linux 3.2.0-4-mx5
linux-headers-3.2.0-4-omap - Header files for Linux 3.2.0-4-omap
linux-headers-3.2.0-4-orion5x - Header files for Linux 3.2.0-4-orion5x
linux-headers-3.2.0-4-versatile - Header files for Linux 3.2.0-4-versatile
linux-headers-3.2.0-4-vexpress - Header files for Linux 3.2.0-4-vexpress
linux-image-3.2.0-4-iop32x - Linux 3.2 for IOP32x
linux-image-3.2.0-4-ixp4xx - Linux 3.2 for IXP4xx
linux-image-3.2.0-4-kirkwood - Linux 3.2 for Marvell Kirkwood
linux-image-3.2.0-4-mv78xx0 - Linux 3.2 for Marvell 78xx0
linux-image-3.2.0-4-mx5 - Linux 3.2 for Freescale i.MX51/53
linux-image-3.2.0-4-omap - Linux 3.2 for TI OMAP3+
linux-image-3.2.0-4-orion5x - Linux 3.2 for Marvell Orion
linux-image-3.2.0-4-versatile - Linux 3.2 for Versatile
linux-image-3.2.0-4-vexpress - Linux 3.2 for ARM Ltd. Versatile Express
linux-image-2.6-iop32x - Linux for IOP32x (dummy package)
linux-image-2.6-ixp4xx - Linux for IXP4xx (dummy package)
linux-image-2.6-kirkwood - Linux for Marvell Kirkwood (dummy package)
linux-image-2.6-mx5 - Linux for Freescale MXC/iMX-based (dummy package)
linux-image-2.6-omap - Linux for TI OMAP3+ (dummy package)
linux-image-2.6-orion5x - Linux for Marvell Orion (dummy package)
linux-image-2.6-versatile - Linux for Versatile (dummy package)
linux-image-iop32x - Linux for IOP32x (meta-package)
linux-image-ixp4xx - Linux for IXP4xx (meta-package)
linux-image-kirkwood - Linux for Marvell Kirkwood (meta-package)
linux-image-mv78xx0 - Linux for Marvell 78xx0 (meta-package)
linux-image-mx5 - Linux for Freescale i.MX51 (meta-package)
linux-image-omap - Linux for TI OMAP3+ (meta-package)
linux-image-orion5x - Linux for Marvell Orion (meta-package)
linux-image-versatile - Linux for Versatile (meta-package)
linux-image-vexpress - Linux for ARM Ltd. Versatile Express (meta-package)
/root>

How do I match one of the above images to the one I need? That is 
Linux beaglebone 3.8.13-bone47 


Regards,
Wim


On Thu, May 19, 2016 at 10:18 PM, Rick Mann <rm...@latencyzero.com> wrote:
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/vpBD2T138lg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/30637994-E55E-481B-9E94-7FFDC4D06E8A%40latencyzero.com.

Robert Nelson

unread,
May 20, 2016, 2:04:08 PM5/20/16
to Beagle Board

None of those match it..

Your rootfs is to old, this was before we introduced the apt repo.

Regards,

J.W. Hellenthal

unread,
May 23, 2016, 3:43:35 AM5/23/16
to beagl...@googlegroups.com
Dear all,

Is there a newer version that definitely works using the eQEP2.  For me there is no need to stick to 3.8.13-bone47 but I haven't found a newer version that is working. 
Furthermore I'm worried about the reason why the mmio code is not working anymore selecting a different Debian  version. 


Regards,

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/vpBD2T138lg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

abhilash h

unread,
Jun 22, 2016, 7:21:33 AM6/22/16
to BeagleBoard
Hi,

I have tried Linux beaglebone 4.1.18-ti-r53 and its eqep is not working.
Reply all
Reply to author
Forward
0 new messages