Re: [beagleboard] Re: Disabling/enabling the USB slave interface dynamically

2018-05-16 Thread Jon Lundstrom


I'm using my c-program that creates files. It uses the the USB-mass storage 
device that comes with the BBB which is created by 
/opt/scripts/boot/am335x_evm.sh (so, in that sense, you could say I use a 
script).
I've mounted the disc-image-file it uses, so my application simply writes 
its files to that device, for the host PC to copy.

The BBB with my application is a measuring device which produces result 
files (in the same way as a digital camera).
It would nice to be able to upload these files to a PC via USB. 

Scp could be a solution but I don't have control over the host PC, in the 
sence that I don't want to install programs on it. The PC usually belongs 
to somebody else. Simply put, I want to the ability to connect to any PC, 
have my application to create files on the BBB and then letting the owner 
of the PC to upload them to his domain.

Another solution is to unplug-reinsert the cable after every measurement. 
That's where I stand today  ...but it's not pretty. 
I feel I'm so close: I only need my application to toggle the USB device 
off/on, so the host will behave as if it was unplugged/reinserted, and 
update its file info.

But I don't know how. I have difficulties understanding the 
am335x_evm-script and it seems to be run once, at startup. Isn't there an 
easy way of turning the USB-mass- storage-device on and off from an 
application?

Yes, I have been thinking of buying a mechanical relay, controlled by a 
gpio, to unplug the cable from my application. That would probably do the 
job, but it feels awkward.





Den måndag 14 maj 2018 kl. 03:42:17 UTC+2 skrev Mala Dies:
>
> Hello,
>
> Are you using software to perform this action or a shell script?
>
> Seth
>
> P.S. I found that there are particular software, WinSCP, that transfers 
> files from bbb to host easily and vice versa. This may be something to look 
> into. 
>
> On Thursday, April 26, 2018 at 3:43:15 AM UTC-5, Jon Lundstrom wrote:
>>
>> Yes,
>>
>> But I haven't found the refresh option. Double-checking right now on 
>> Windows7 and Kubuntu... nope, no refresh available. However, I tried , 
>> but with no effect. I tried Windows10 before writing my question and no 
>> success there either. 
>>
>> Unplugging/reinserting the USB cable was the only remedy. 
>> It would be nice if I could do that from the SW that adds the files to 
>> the gadget.
>>
>>
>> 2018-04-25 14:49 GMT+02:00 Dennis Lee Bieber <wlf...@ix.netcom.com>:
>>
>>> On Wed, 25 Apr 2018 02:25:37 -0700 (PDT), Jon Lundstrom
>>> <j.b.lu...@gmail.com> declaimed the
>>> following:
>>>
>>> >I share files created on the BBB with a USB host (e.g. Windows PC) 
>>> using 
>>> >the USB mass storage device (almost like a digital camera). It works 
>>> fine 
>>> >except for one point: Whenever a new file is created by BBB, I need to 
>>> >unplug-reinsert the USB cable in order for the file to become visible 
>>> in 
>>> >the host (master).
>>>
>>> Just out of curiosity -- have you tried a Refresh 
>>> in the
>>> Windows FileExplorer that is opened on the "USB mass storage".
>>>
>>>
>>> -- 
>>> Wulfraed Dennis Lee Bieber AF6VN
>>> wlf...@ix.netcom.comHTTP://wlfraed.home.netcom.com/ 
>>>
>>> -- 
>>> 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/ppkuhZB0Z0M/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/dft0ed9qt6kdq2jgq7aums02guboro78qt%404ax.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/4e6f345a-f7b6-410c-9b0f-f0fde83562a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Disabling/enabling the USB slave interface dynamically

2018-04-26 Thread Jon Lundstrom
Yes,

But I haven't found the refresh option. Double-checking right now on
Windows7 and Kubuntu... nope, no refresh available. However, I tried ,
but with no effect. I tried Windows10 before writing my question and no
success there either.

Unplugging/reinserting the USB cable was the only remedy.
It would be nice if I could do that from the SW that adds the files to the
gadget.


2018-04-25 14:49 GMT+02:00 Dennis Lee Bieber <wlfr...@ix.netcom.com>:

> On Wed, 25 Apr 2018 02:25:37 -0700 (PDT), Jon Lundstrom
> <j.b.lundst...@gmail.com> declaimed the
> following:
>
> >I share files created on the BBB with a USB host (e.g. Windows PC) using
> >the USB mass storage device (almost like a digital camera). It works fine
> >except for one point: Whenever a new file is created by BBB, I need to
> >unplug-reinsert the USB cable in order for the file to become visible in
> >the host (master).
>
> Just out of curiosity -- have you tried a Refresh in
> the
> Windows FileExplorer that is opened on the "USB mass storage".
>
>
> --
> Wulfraed Dennis Lee Bieber AF6VN
> wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
> --
> 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/ppkuhZB0Z0M/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beagleboard/dft0ed9qt6kdq2jgq7aums02guboro78qt%404ax.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAO-Fnw_Asqv6go%3D-mty6xqBEDPkz%2BxXfP9Pv3E%3Dx3ucPqHaRag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Disabling/enabling the USB slave interface dynamically

2018-04-26 Thread Jon Lundstrom
Yes,

But I haven't found the refresh option. Double-checking right now on
Windows7 and Kubuntu... nope, no refresh available. However, I tried ,
but with no effect. I tried Windows10 before writing my question and no
success there either.

Unplugging/reinserting the USB cable was the only remedy.
It would be nice if I could do that from the SW that adds the files to the
gadget.


2018-04-25 14:49 GMT+02:00 Dennis Lee Bieber <wlfr...@ix.netcom.com>:

> On Wed, 25 Apr 2018 02:25:37 -0700 (PDT), Jon Lundstrom
> <j.b.lundst...@gmail.com> declaimed the
> following:
>
> >I share files created on the BBB with a USB host (e.g. Windows PC) using
> >the USB mass storage device (almost like a digital camera). It works fine
> >except for one point: Whenever a new file is created by BBB, I need to
> >unplug-reinsert the USB cable in order for the file to become visible in
> >the host (master).
>
> Just out of curiosity -- have you tried a Refresh in
> the
> Windows FileExplorer that is opened on the "USB mass storage".
>
>
> --
> Wulfraed Dennis Lee Bieber AF6VN
> wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
> --
> 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/ppkuhZB0Z0M/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beagleboard/dft0ed9qt6kdq2jgq7aums02guboro78qt%404ax.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAO-Fnw9dy%3DmiYaDTdw%3DFbY6MtymTaAyzjYGE7NW0DVbVig09xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Getting started: Step #2 and #3 just dont work on Windows 10 (or 8, or 7)

2018-02-07 Thread Jon Lundstrom
Well, the web sever on my BBB wasn't responding to 192.168.7.2 before I 
installed the drivers according  to step #2. My Windows 10 should be 
up-to-date.

Thank you guys, for the attention.

Den torsdag 8 februari 2018 kl. 03:43:30 UTC+1 skrev Jason Kridner:
>
> This should be the case, but some folks have reported a regression with 
> the 1709 update around the first of the year. 
> On Wed, Feb 7, 2018 at 10:57 AM Dennis Lee Bieber <wlf...@ix.netcom.com 
> > wrote:
>
>> On Wed, 7 Feb 2018 07:42:23 -0800 (PST), Jon Lundstrom
>> <j.b.lu...@gmail.com > declaimed the
>> following:
>>
>> >
>> >Ther must be more rookies having this problem out there: Try
>> >google https://youtu.be/71YAIw7_-kg to disable this feature.
>> >
>> >Or, BBB: Get this signature from MS. It seems to be a matter of $99 to 
>> get
>> >it.
>> >The 5 minutes needed to get up and started (according to your purchase
>> >text) has grown to more than 5 hrs...
>> >
>> As I recall, the newest BBB images no longer require custom 
>> drivers on
>> Win10 -- they are supposed to work using M$ distributed rndis (or 
>> whatever)
>> drivers, which are found by Win10 automatically.
>>
>> --
>> Wulfraed Dennis Lee Bieber AF6VN
>> wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/3b8m7dpp4jrojmn09inc7dd3ul3jmkf81m%404ax.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> https://beagleboard.org/about
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/9d9c2700-19e1-4691-97a2-fd724a7d6046%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Getting started: Step #2 and #3 just dont work on Windows 10 (or 8, or 7)

2018-02-07 Thread Jon Lundstrom

I just unpacked a Beaglebone Black board and try to get it started as 
tethered to a PC via USB. I can find and read START.HTM from the BBB.
When it comes to Step #2, Install drivers, I start getting problems: 4 of 
the drivers fail to install on my Windows10 host:
Linux Developer Community (usbser) Ports
BeagleBone CDM Driver Package - Bus/D2XX Driver
BeagleBone CDM Driver Package - VCP Driver
Linux Developer Community Net

After that step #3 fails, probably as a consequense of above. My web 
browser (either Firefox or Chrome) will not find http://192.168.7.2.

I've also tried on other computers, running Windows 8 and Windows 7, with 
no further success.



-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/f3c83e68-63eb-4529-a84f-27fbc23f3faa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Getting started: Step #2 and #3 just dont work on Windows 10 (or 8, or 7)

2018-02-07 Thread Jon Lundstrom


Den onsdag 7 februari 2018 kl. 16:06:01 UTC+1 skrev Jeff Andich:
>
> Do you still get the same driver install problems on the Windows 7 PC as 
> you see on your Windows 10 host or is that primarily a problem with 
> accessing the URL in your web browser?
>
>
> On Wednesday, February 7, 2018 at 8:19:41 AM UTC-6, Jon Lundstrom wrote:
>>
>>
>> I just unpacked a Beaglebone Black board and try to get it started as 
>> tethered to a PC via USB. I can find and read START.HTM from the BBB.
>> When it comes to Step #2, Install drivers, I start getting problems: 4 of 
>> the drivers fail to install on my Windows10 host:
>> Linux Developer Community (usbser) Ports
>> BeagleBone CDM Driver Package - Bus/D2XX Driver
>> BeagleBone CDM Driver Package - VCP Driver
>> Linux Developer Community Net
>>
>> After that step #3 fails, probably as a consequense of above. My web 
>> browser (either Firefox or Chrome) will not find http://192.168.7.2.
>>
>> I've also tried on other computers, running Windows 8 and Windows 7, with 
>> no further success.
>>
>>
>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/a3ff2a4d-e457-4ced-ad89-ba6fe378e987%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Getting started: Step #2 and #3 just dont work on Windows 10 (or 8, or 7)

2018-02-07 Thread Jon Lundstrom
Actually, on the Windows 7 the symptoms were a bit different. It was an old 
machine with only 4GB RAM and the PC seemed to be overloaded during the 
installation with locked screen for most of the time. 
So the only similarity I can be sure of is the URL not responding.

Anyhow, I think I've found problem on Window 10: It won't install drivers 
lacking valid MS-signature. It doesn't tell you that, it simply tells you 
that installlation failed (thank you Microsoft).

I turned off this signature checking and now it work (even step #3). So I'm 
back on track again.

Ther must be more rookies having this problem out there: Try 
google https://youtu.be/71YAIw7_-kg to disable this feature.

Or, BBB: Get this signature from MS. It seems to be a matter of $99 to get 
it. 
The 5 minutes needed to get up and started (according to your purchase 
text) has grown to more than 5 hrs...


Den onsdag 7 februari 2018 kl. 16:06:01 UTC+1 skrev Jeff Andich:
>
> Do you still get the same driver install problems on the Windows 7 PC as 
> you see on your Windows 10 host or is that primarily a problem with 
> accessing the URL in your web browser?
>
>
> On Wednesday, February 7, 2018 at 8:19:41 AM UTC-6, Jon Lundstrom wrote:
>>
>>
>> I just unpacked a Beaglebone Black board and try to get it started as 
>> tethered to a PC via USB. I can find and read START.HTM from the BBB.
>> When it comes to Step #2, Install drivers, I start getting problems: 4 of 
>> the drivers fail to install on my Windows10 host:
>> Linux Developer Community (usbser) Ports
>> BeagleBone CDM Driver Package - Bus/D2XX Driver
>> BeagleBone CDM Driver Package - VCP Driver
>> Linux Developer Community Net
>>
>> After that step #3 fails, probably as a consequense of above. My web 
>> browser (either Firefox or Chrome) will not find http://192.168.7.2.
>>
>> I've also tried on other computers, running Windows 8 and Windows 7, with 
>> no further success.
>>
>>
>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/abddb2d7-6d72-40e2-b4d0-823c51d1c6b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Disabling/enabling the USB slave interface dynamically

2018-04-25 Thread Jon Lundstrom
I share files created on the BBB with a USB host (e.g. Windows PC) using 
the USB mass storage device (almost like a digital camera). It works fine 
except for one point: Whenever a new file is created by BBB, I need to 
unplug-reinsert the USB cable in order for the file to become visible in 
the host (master).

It would be nice if I could have my BBB-application to "unplug" the USB 
whenever it creates new files, and then reenable it again, forcing the host 
to update its file info.

But how do I do that? Is it possible to easily disable/enable the slave USB 
interface on the go? Or even better, only the mass storage device, leaving 
the other USB functions running.

Googling the issue I find a lot of solutions on how to disable it 
permanently, editing the am335x_evm.sh, but that's not what I want.

I'm running a recent Debian Stretch from the BBB distribution web page.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/e27e9cd2-9280-40bd-a356-81a538460260%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Enabling SPI in BBB, Debian Stretch

2018-04-03 Thread Jon Lundstrom

Thank you Robert,

That did the trick.

However, it has the side-effect of turning my display all black.
I use a Newhaven display cape and according to its User Guide, there should 
be no conflict for these SPI-pins.
(http://www.newhavendisplay.com/userguides/NHD-7.0CTP-CAPE_User_Guide.pdf)

So I had a look at the assigned pins in 
/sys/kernel/debug/pinctrl/44e10800.pinmux/pingroups and see that following 
group is added (using diff):

> group: pinmux_bb_spi0_pins
> pin 84 (PIN84)
> pin 85 (PIN85)
> pin 86 (PIN86)
> pin 87 (PIN87)

which seems in order, but following groups were removed:

< group: pinmux_bb_lcd_pwm_backlight_pins
< pin 18 (PIN18)

< group: pinmux_bb_lcd_lcd_pins
< pin 40 (PIN40)
< pin 41 (PIN41)
< pin 42 (PIN42)
< pin 43 (PIN43)
< pin 44 (PIN44)
< pin 45 (PIN45)
< pin 46 (PIN46)
< pin 47 (PIN47)
< pin 48 (PIN48)
< pin 49 (PIN49)
< pin 50 (PIN50)
< pin 51 (PIN51)
< pin 52 (PIN52)
< pin 53 (PIN53)
< pin 54 (PIN54)
< pin 55 (PIN55)
< pin 15 (PIN15)
< pin 14 (PIN14)
< pin 13 (PIN13)
< pin 12 (PIN12)
< pin 11 (PIN11)
< pin 10 (PIN10)
< pin 9 (PIN9)
< pin 8 (PIN8)
< pin 56 (PIN56)
< pin 57 (PIN57)
< pin 58 (PIN58)
< pin 59 (PIN59)
< pin 35 (PIN35)

< group: pinmux_edt_ft5x06_pins
< pin 105 (PIN105)

I don't know about the last group (PIN105) but the other two groups most 
certainly affect the display function.

I haven't seen the corresponding .dts-file for BB-SPIDEV0-00A0.dtbo, but I 
tried making my own that should not touch these pins: Still, the same 
result (same pin groups are removed). 

There seems to be some mechanism that disables the display pins when adding 
an overlay to the uEnv.txt. 

Robert, as an expert in BBB, do you have answer to this?

Best regards,
Jon Lundström.



Den torsdag 29 mars 2018 kl. 17:40:43 UTC+2 skrev RobertCNelson:
>
> On Thu, Mar 29, 2018 at 10:35 AM, Jon Lundstrom <j.b.lu...@gmail.com 
> > wrote: 
> > I'm trying to enable SPI on my BBB but constantly fail following the 
> advises 
> > I find in the forums. 
> > 
> > It seems like echoing anything into 
> /sys/devices/platform/bone_capemgr/slots 
> > is obsolete. Instead I should set up in /boot/uEnv.txt, but how? What 
> should 
> > I add in that file? 
> > 
> > I've tried: 
> > cape_enable=bone_capemgr.enable_partno=BB-SPIDEV0 
> > or: 
> > optargs=quiet drm.debug=7 capemgr.enable_partno=BB-SPI0-01 
>
> https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays 
>
> uboot_overlay_addr0=/lib/firmware/BB-SPIDEV0-00A0.dtbo 
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/c4eca54b-eb07-4e04-9eee-4d1389aff13e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Enabling SPI in BBB, Debian Stretch

2018-03-29 Thread Jon Lundstrom
I'm trying to enable SPI on my BBB but constantly fail following the 
advises I find in the forums.

It seems like echoing anything into 
/sys/devices/platform/bone_capemgr/slots is obsolete. Instead I should set 
up in /boot/uEnv.txt, but how? What should I add in that file?

I've tried:
cape_enable=bone_capemgr.enable_partno=BB-SPIDEV0
or:
optargs=quiet drm.debug=7 capemgr.enable_partno=BB-SPI0-01

...but I still don't get anything named spi* under /dev/ (yes, I've 
rebooted)

ls -l /dev/spi*
ls: cannot access '/dev/spi*': No such file or directory

I would be happy with only one SPI, like SPI0 so I wouldn't have to bother 
with disabling HDMI.

This is the state of my setup: sudo /opt/scripts/tools/version.sh
git:/opt/scripts/:[ea6ea9fca05f36f5044398884375b0231348d6e2]
eeprom:[A335BNLT000C1750BBBG0574]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Image 2018-01-28]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 
2018.01-2-g9aa111a004]
kernel:[4.9.78-ti-r94]
nodejs:[v6.12.3]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg:[bb-cape-overlays]:[4.4.20180126.0-0rcnee0~stretch+20180126]
pkg:[bb-wl18xx-firmware]:[1.20170829-0rcnee2~stretch+20180104]
pkg:[firmware-ti-connectivity]:[20170823-1rcnee0~stretch+20170830]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video 
plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep 
admin spi tisdk weston-launch xenomai]
dmesg | grep pinctrl-single
[1.380806] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 
568
END


Anyone out there, who knows what to do?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/681dd7f2-4c17-487a-913d-f0049b843479%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Enabling SPI in BBB, Debian Stretch

2018-04-04 Thread Jon Lundstrom

Thanks again, Robert,

The display now works and I've been able to loop the SPI back to the BBB.

I'm grateful for your help,
/Jon.

Den tisdag 3 april 2018 kl. 17:32:17 UTC+2 skrev RobertCNelson:
>
> On Tue, Apr 3, 2018 at 10:26 AM, Jon Lundstrom <j.b.lu...@gmail.com 
> > wrote: 
> > 
> > Thank you Robert, 
> > 
> > That did the trick. 
> > 
> > However, it has the side-effect of turning my display all black. 
> > I use a Newhaven display cape and according to its User Guide, there 
> should 
> > be no conflict for these SPI-pins. 
> > (
> http://www.newhavendisplay.com/userguides/NHD-7.0CTP-CAPE_User_Guide.pdf) 
> > 
> > So I had a look at the assigned pins in 
> > /sys/kernel/debug/pinctrl/44e10800.pinmux/pingroups and see that 
> following 
> > group is added (using diff): 
> > 
> >> group: pinmux_bb_spi0_pins 
> >> pin 84 (PIN84) 
> >> pin 85 (PIN85) 
> >> pin 86 (PIN86) 
> >> pin 87 (PIN87) 
> > 
> > which seems in order, but following groups were removed: 
> > 
> > < group: pinmux_bb_lcd_pwm_backlight_pins 
> > < pin 18 (PIN18) 
> > 
> > < group: pinmux_bb_lcd_lcd_pins 
> > < pin 40 (PIN40) 
> > < pin 41 (PIN41) 
> > < pin 42 (PIN42) 
> > < pin 43 (PIN43) 
> > < pin 44 (PIN44) 
> > < pin 45 (PIN45) 
> > < pin 46 (PIN46) 
> > < pin 47 (PIN47) 
> > < pin 48 (PIN48) 
> > < pin 49 (PIN49) 
> > < pin 50 (PIN50) 
> > < pin 51 (PIN51) 
> > < pin 52 (PIN52) 
> > < pin 53 (PIN53) 
> > < pin 54 (PIN54) 
> > < pin 55 (PIN55) 
> > < pin 15 (PIN15) 
> > < pin 14 (PIN14) 
> > < pin 13 (PIN13) 
> > < pin 12 (PIN12) 
> > < pin 11 (PIN11) 
> > < pin 10 (PIN10) 
> > < pin 9 (PIN9) 
> > < pin 8 (PIN8) 
> > < pin 56 (PIN56) 
> > < pin 57 (PIN57) 
> > < pin 58 (PIN58) 
> > < pin 59 (PIN59) 
> > < pin 35 (PIN35) 
> > 
> > < group: pinmux_edt_ft5x06_pins 
> > < pin 105 (PIN105) 
> > 
> > I don't know about the last group (PIN105) but the other two groups most 
> > certainly affect the display function. 
> > 
> > I haven't seen the corresponding .dts-file for BB-SPIDEV0-00A0.dtbo, but 
> I 
> > tried making my own that should not touch these pins: Still, the same 
> result 
> > (same pin groups are removed). 
> > 
> > There seems to be some mechanism that disables the display pins when 
> adding 
> > an overlay to the uEnv.txt. 
> > 
> > Robert, as an expert in BBB, do you have answer to this? 
>
> Well, addr0 -> addr3 is for eeprom detected capes, so change: 
>
> uboot_overlay_addr0=/lib/firmware/BB-SPIDEV0-00A0.dtbo 
>
> to 
>
> uboot_overlay_addr4=/lib/firmware/BB-SPIDEV0-00A0.dtbo 
>
> https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays 
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/d5721165-7051-4370-ae86-f0ddc0644191%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.