Re: [beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-19 Thread DLF

>
>
>
>
> Good point, we can't do that: 
>
>
> https://github.com/beagleboard/bb.org-overlays/commit/cc5c45529402f5e8cea86b703c6e148cf10c0ffc
>  
>
> use "bone_eqep2b" for the one that doesn't conflict with hdmi.. 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

Hi - is this important ??  not really sure myself, I'm a noob

root@beaglebone:~/bb.org-overlays# grep 'part-number = 
"cape-bone-universal"' src/arm/*.dts
src/arm/cape-univ-emmc-00A0.dts:part-number = "cape-bone-universal";
src/arm/cape-universal-00A0.dts:part-number = "cape-bone-universal";
src/arm/cape-universaln-00A0.dts:part-number = "cape-bone-universal";

uname -a
Linux beaglebone 4.4.1-bone5 #1 Fri Feb 5 21:57:55 UTC 2016 armv7l GNU/Linux



 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-16 Thread kevinlang . ca
Thank you Robert!
Found the issue, my ex-colleague made the BBB reload it in a system service 

Regards,
Kevin


On Tuesday, February 16, 2016 at 3:12:47 PM UTC-7, RobertCNelson wrote:
>
> On Tue, Feb 16, 2016 at 4:04 PM,   
> wrote: 
> > Thanks Robert, 
> > 
> > But seems like BBB memorized the previous setting, how can it be erase 
> it by 
> > adding a eeprom? 
>
> There is no memorization... 
>
> Either it has an eeprom, or somewhere you setup the kernel to autoload 
> it.. 
>
> start with: 
>
> cat /proc/cmdline 
>
> and look in /boot/uEnv.txt 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-16 Thread Robert Nelson
On Tue, Feb 16, 2016 at 4:04 PM,   wrote:
> Thanks Robert,
>
> But seems like BBB memorized the previous setting, how can it be erase it by
> adding a eeprom?

There is no memorization...

Either it has an eeprom, or somewhere you setup the kernel to autoload it..

start with:

cat /proc/cmdline

and look in /boot/uEnv.txt

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-16 Thread kevinlang . ca
Thanks Robert,

But seems like BBB memorized the previous setting, how can it be erase it 
by adding a eeprom?

Regards,
Kevin

On Tuesday, February 16, 2016 at 2:00:10 PM UTC-7, RobertCNelson wrote:
>
> On Tue, Feb 16, 2016 at 2:39 PM,   
> wrote: 
> > 
> > I had used : sh -c "echo 'RMS-BBBCAPE> 
> > /sys/devices/platform/bone_capemgr/slots" 
> > Now I want to get rid of it from eeprom override, how can I do that? 
>
> Simple, solder an i2c eeprom to your board.. 
>
> See the step by step here: 
>
> http://papermint-designs.com/community/node/331 
>
> Regards, 
>
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-16 Thread Robert Nelson
On Tue, Feb 16, 2016 at 2:39 PM,   wrote:
>
> I had used : sh -c "echo 'RMS-BBBCAPE>
> /sys/devices/platform/bone_capemgr/slots"
> Now I want to get rid of it from eeprom override, how can I do that?

Simple, solder an i2c eeprom to your board..

See the step by step here:

http://papermint-designs.com/community/node/331

Regards,


-- 
Robert Nelson
https://rcn-ee.com/

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-16 Thread kevinlang . ca

I had used : sh -c "echo 'RMS-BBBCAPE> /sys/devices/platform/bone_capemgr/
slots"
Now I want to get rid of it from eeprom override, how can I do that?

Best regards,
Kevin


 

> 4.015061] bone_capemgr bone_capemgr: initialized OK.
>
> [4.019732] bone_capemgr bone_capemgr: slot #4: dtbo 
>> 'BB-CAN1-00A0.dtbo' loaded; overlay id #1
>
> [4.033313] bone_capemgr bone_capemgr: slot #5: dtbo 
>> 'BB-UART2-00A0.dtbo' loaded; overlay id #0
>
> [4.037920] bone_capemgr bone_capemgr: slot #7: dtbo 
>> 'BB-UART4-00A0.dtbo' loaded; overlay id #3
>
> [4.048810] bone_capemgr bone_capemgr: slot #6: dtbo 
>> 'BB-RTC-01-00A0.dtbo' loaded; overlay id #2
>
> [   10.602864] systemd[1]: Configuration file 
>> /lib/systemd/system/bonescript.socket is marked world-inaccessible. This 
>> has no effe.
>
> [   10.604371] systemd[1]: Configuration file 
>> /lib/systemd/system/bonescript.service is marked world-inaccessible. This 
>> has no eff.
>
> [   10.683399] systemd[1]: Configuration file 
>> /lib/systemd/system/bonescript-autorun.service is marked 
>> world-inaccessible. This ha.
>
> [   22.159935] bone_capemgr bone_capemgr: part_number 'RMS-BBBCAPE', 
>> version '00A0'
>
> [   22.159975] bone_capemgr bone_capemgr: slot #8: override
>
> *[   22.159993] bone_capemgr bone_capemgr: Using override eeprom data at 
>> slot 8*
>
> *[   22.160012] bone_capemgr bone_capemgr: slot #8: 'Override Board 
>> Name,00A0,Override Manuf,RMS-BBBCAPE'*
>
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-02 Thread Robert Nelson
On Tue, Feb 2, 2016 at 12:55 PM, Maksim Surov  wrote:
> I tried to run another devices, and I found that all the encoders conflict
> with somewhat. So, I add encoder 1:
>
> root@arm: # echo bone_eqep1 > /sys/devices/platform/bone_capemgr/slots
> root@arm: # 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_eqep1
>
>
> There is no error, but actually eqep1 doesn't work. I looked at syslog:
>
> root@arm: # dmesg
> [   73.259486] bone_capemgr bone_capemgr: part_number 'bone_eqep1', version
> 'N/A'
> [   73.259580] bone_capemgr bone_capemgr: slot #4: override
> [   73.259632] bone_capemgr bone_capemgr: Using override eeprom data at slot
> 4
> [   73.259687] bone_capemgr bone_capemgr: slot #4: 'Override Board
> Name,00A0,Override Manuf,bone_eqep1'
> [   73.283359] bone_capemgr bone_capemgr: slot #4: dtbo
> 'bone_eqep1-00A0.dtbo' loaded; overlay id #0
> [   73.340888] pinctrl-single 44e10800.pinmux: pin 44e108d0.0 already
> requested by 0-0070; cannot claim for 48302180.eqep
> [   73.359630] pinctrl-single 44e10800.pinmux: pin-52 (48302180.eqep) status
> -22
> [   73.378359] pinctrl-single 44e10800.pinmux: could not request pin 52
> (44e108d0.0) from group pinctrl_eqep1_pins  on device pinctrl-single
> [   73.392369] eqep 48302180.eqep: Error applying setting, reverse things
> back
> [   73.400930] eqep 48302180.eqep: ver. 1.0
> [   73.401220] pinctrl-single 44e10800.pinmux: pin 44e108d0.0 already
> requested by 0-0070; cannot claim for 48302180.eqep
> [   73.416060] pinctrl-single 44e10800.pinmux: pin-52 (48302180.eqep) status
> -22
> [   73.424119] pinctrl-single 44e10800.pinmux: could not request pin 52
> (44e108d0.0) from group pinctrl_eqep1_pins  on device pinctrl-single
> [   73.437039] eqep 48302180.eqep: Error applying setting, reverse things
> back
> [   73.444534] eqep 48302180.eqep: unable to select pin group
>
> The same happens with eqep2.

That would be expected...

It shares pins are already muxed with the hdmi output..

So use one of the dtb= overrides in /boot/uEnv.txt

dtb=am335x-boneblack-emmc-overlay.dtb

or

dtb=am335x-boneblack-overlay.dtb


BBB compatibility issues:

https://github.com/beagleboard/bb.org-overlays/blob/master/readme.md

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-01 Thread Robert Nelson
On Mon, Feb 1, 2016 at 12:56 PM, Robert Nelson  wrote:
> On Mon, Feb 1, 2016 at 12:37 PM, Soapy Smith  wrote:
>> # grep part-number bone_eqep2-00A0.dts
>> part-number = "bone_eqep2";
>> # grep part-number bone_eqep2b.dts
>> part-number = "bone_eqep2";
>>
>> The source files for eqep2 and eqep2b both have the same part number?
>> The dts files are in
>>
>> /opt/source/bb.org-overlays/src/arm
>
> Good point, we can't do that:
>
> https://github.com/beagleboard/bb.org-overlays/commit/cc5c45529402f5e8cea86b703c6e148cf10c0ffc
>
> use "bone_eqep2b" for the one that doesn't conflict with hdmi..

much better:

[   75.725122] bone_capemgr bone_capemgr: part_number 'bone_eqep2b',
version 'N/A'
[   75.725174] bone_capemgr bone_capemgr: slot #5: override
[   75.725200] bone_capemgr bone_capemgr: Using override eeprom data at slot 5
[   75.725229] bone_capemgr bone_capemgr: slot #5: 'Override Board
Name,00A0,Override Manuf,bone_eqep2b'
[   75.744587] bone_capemgr bone_capemgr: slot #5: dtbo
'bone_eqep2b-00A0.dtbo' loaded; overlay id #1
[   75.770147] eqep 48304180.eqep: ver. 1.0

and we want to see eqep loaded too..

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-01 Thread Robert Nelson
On Mon, Feb 1, 2016 at 12:37 PM, Soapy Smith  wrote:
> # grep part-number bone_eqep2-00A0.dts
> part-number = "bone_eqep2";
> # grep part-number bone_eqep2b.dts
> part-number = "bone_eqep2";
>
> The source files for eqep2 and eqep2b both have the same part number?
> The dts files are in
>
> /opt/source/bb.org-overlays/src/arm

Good point, we can't do that:

https://github.com/beagleboard/bb.org-overlays/commit/cc5c45529402f5e8cea86b703c6e148cf10c0ffc

use "bone_eqep2b" for the one that doesn't conflict with hdmi..

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-01 Thread Maksim Surov
Robert, thank so much.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Cape manager on linux 4.1: can't load bone_eqep2b cape

2016-02-01 Thread Soapy Smith
# grep part-number bone_eqep2-00A0.dts
part-number = "bone_eqep2";
# grep part-number bone_eqep2b.dts
part-number = "bone_eqep2";

The source files for eqep2 and eqep2b both have the same part number?
The dts files are in 

/opt/source/bb.org-overlays/src/arm



>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.