Re: Re[2]: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-26 Thread Dean
I found a great source of information on SPI ... https://www.kernel.org/doc/Documentation/spi/ -- 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

Re: Re[2]: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-26 Thread William Hermans
> > *That sounds like some very handy code. Is it in open source space > anywhere? * > No. On Tue, Jan 26, 2016 at 9:24 AM, Dean wrote: > I found a great source of information on SPI ... > > https://www.kernel.org/doc/Documentation/spi/ > > > > -- > For more options, visit

Re[2]: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-26 Thread Marius
4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12 Dean, By the way, I think it's great that you seem to be using a virtual machine for test development. This is something I do myself too. In fact I wrote a smallish web server like app in C to display CANBUS data out over a

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread William Hermans
I'm a programmer, and not an electronics engineer. However, I've already done bare metal LCD with an MSP430, so I doubt the BBB would present much of a challenge . . . On Mon, Jan 25, 2016 at 9:09 PM, Dean wrote: > Interesting. Just reloaded with an updated kernel and this

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread Dean
He is also using an accompanying 74HC595 8 bit serial shift register in a 4 bit (interface DB4-DB7 configuration). -- 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

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread Dean
Interesting. Just reloaded with an updated kernel and this time it did not crash. All the same similar problems remain. William all things equal if you found the book remedial I would like to challenge you on that. Buy yourself an LCD and see if you can replicate what Derek Molloy did there in

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread Dean
Newhaven Model: NHD-0216K1Z-NSB-FBW-L. -- 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

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread Robert Nelson
On Mon, Jan 25, 2016 at 10:09 PM, Dean wrote: > Interesting. Just reloaded with an updated kernel and this time it did not > crash. All the same similar problems remain. William all things equal if you > found the book remedial I would like to challenge you on that. Buy

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread Robert Nelson
On Mon, Jan 25, 2016 at 6:57 PM, Dean wrote: > apt-get install build-essential > > > In 3.8.x spidev2.0 could be used on spi1, but with 4.1.x+ the "first" > is spidev1 (even if spi1 over spi0..) > > > > SPIDevice *busDevice = new SPIDevice(2,0); //Using second SPI bus (both >

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread Dean
The code came from Derek Molloy's Exploring Beaglebone -Tools and Techniques Chapter 9 page 362 Listing 9-10. Regarding a decent book on how to spidev have you any recommendations? I am the first to admit I am a novice and it goes without saying that we all started somewhere as frustrating as

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread William Hermans
Ok, so without seeing any code no one can really answer a question related to your problem. However, I will say that errors in the realm of "invalid argument" or "file not found" are development 101 type problems. Also, if your code is not exiting with an error on these problems I will say that

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread Dean
*apt-get install build-essential * *In 3.8.x spidev2.0 could be used on spi1, but with 4.1.x+ the "first" is spidev1 (even if spi1 over spi0..) > * * SPIDevice *busDevice = new SPIDevice(2,0); //Using second SPI bus (both loaded)* *The code is trying to open /dev/spidev2.0, but it's

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread Dean
*pt-get install build-essential * *In 3.8.x spidev2.0 could be used on spi1, but with 4.1.x+ the "first" is spidev1 (even if spi1 over spi0..) > * * SPIDevice *busDevice = new SPIDevice(2,0); //Using second SPI bus (both loaded)* *The code is trying to open /dev/spidev2.0, but it's not

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread Dean
Thanks Robert. I will give it another whirl. -- 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

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-25 Thread William Hermans
Dean, By the way, I think it's great that you seem to be using a virtual machine for test development. This is something I do myself too. In fact I wrote a smallish web server like app in C to display CANBUS data out over a websocket. Initially this code was developed on an i386 virtual machine,

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread William Hermans
Anyway, Debian Wheezy would be gcc 4.7.2 I believe( don't recall the minor version ), not sure abotu Ubuntu, but 4.9.x does not seem unreasonable. On Sun, Jan 24, 2016 at 4:54 PM, William Hermans wrote: > wait a minute . . . > > What was posted was running on my *BBB.* That

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread William Hermans
Dean, This should be your first worry-> open("/dev/spidev2.0", O_RDWR) = -1 ENOENT (No such file or directory) Find out why your system thinks this file does not exist. As in perhaps it doesn't because you need to load a device tree file as mike mentioned above. But also as stated above, there

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Dean
Natively I am running 4.9.2 ... cat /proc/version Linux version 4.1.12-ti-r29 (root@a5-imx6q-wandboard-2gb) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP PREEMPT Mon Nov 9 22:46:19 UTC 2015 That said I also have a VM of Debian 8.2 which I have used on occasion for cross compilation and

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread William Hermans
> > > *The onboard (pcie) RTL8168g/8111g has a nasty lockup bug. So you have to use a 10/100 or force 100Mb mode, as it randomly locks up 1 Gb with heavy cpu load (build farm)..* Silicon bug ? *What a waste of the pcie channels for 100Mb mode. ;)* > Well, at least there wouldn't be any

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Robert Nelson
On Sun, Jan 24, 2016 at 6:00 PM, William Hermans wrote: > O jetsons . . . will have to query you on that sometime. Those boards > seem pretty nice, aside from not having lots of external peripheral I/O. IN > the context of embedded . . . > and they were 'half' price about

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread William Hermans
O jetsons . . . will have to query you on that sometime. Those boards seem pretty nice, aside from not having lots of external peripheral I/O. IN the context of embedded . . . On Sun, Jan 24, 2016 at 4:57 PM, Robert Nelson wrote: > > > On Sun, Jan 24, 2016 at 5:54

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Robert Nelson
On Sun, Jan 24, 2016 at 6:03 PM, Dean wrote: > > Natively I am running 4.9.2 ... > > cat /proc/version > Linux version 4.1.12-ti-r29 (root@a5-imx6q-wandboard-2gb) (gcc version 4.9.2 > (Debian 4.9.2-10) ) #1 SMP PREEMPT Mon Nov 9 22:46:19 UTC 2015 > > > That said I also have a

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Robert Nelson
On Sun, Jan 24, 2016 at 6:09 PM, William Hermans wrote: >> > The onboard (pcie) RTL8168g/8111g has a nasty lockup bug. So you have to use > a 10/100 or force 100Mb mode, as it randomly locks up 1 Gb with heavy cpu > load (build farm).. > > > Silicon bug ? Might be a

[beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Dean
I am trying to decipher my strace. My setup is Linux beaglebone 4.1.12-ti-r29 #1 SMP PREEMPT Mon Nov 9 22:46:19 UTC 2015 armv7l GNU/Linux BeagleBoard.org Debian Image 2015-11-12. I am not sure on how to interpet my findings. In particular of the files that are missing is that because I need

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread William Hermans
>From this man page: http://man7.org/linux/man-pages/man8/ld.so.8.html FILES */lib/ld.so* a.out dynamic linker/loader */lib/ld-linux.so.*{*1*,*2*} ELF dynamic linker/loader */etc/ld.so.cache* File containing a compiled list of

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread William Hermans
Which version of gcc are you running, and is this native, or cross compile ? On Sun, Jan 24, 2016 at 4:25 PM, William Hermans wrote: > From this man page: http://man7.org/linux/man-pages/man8/ld.so.8.html > > FILES > >*/lib/ld.so* > a.out dynamic

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Dean
Thanks for getting back to me. I am running gcc version 4.9.2 crico@crico-X555LAB:~$ cat /proc/version Linux version 3.19.0-47-generic (buildd@lgw01-56) (gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13) ) #53-Ubuntu SMP Mon Jan 18 14:02:48 UTC 2016 -- For more options, visit

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread William Hermans
Anyway, here is the short "skinny": /etc/ld.so.nohwcap /etc/ld.so.preload These two files are not found. Quite honestly I have no idea how important these files are. Probably not very important, so let's not worry about them just yet. Your library you were worried about in your other post

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Robert Nelson
On Sun, Jan 24, 2016 at 5:42 PM, William Hermans wrote: > Anyway, here is the short "skinny": > > /etc/ld.so.nohwcap > > /etc/ld.so.preload > These two files are not found. Quite honestly I have no idea how important > these files are. Probably not very important, so let's not

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Dean
4.9.2 cat /proc/version Linux version 4.1.12-ti-r29 (root@a5-imx6q-wandboard-2gb) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP PREEMPT Mon Nov 9 22:46:19 UTC 2015 -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Mike
On 01/24/2016 06:04 PM, Dean wrote: I am trying to decipher my strace. My setup is Linux beaglebone 4.1.12-ti-r29 #1 SMP PREEMPT Mon Nov 9 22:46:19 UTC 2015 armv7l GNU/Linux BeagleBoard.org Debian Image 2015-11-12. I am not sure on how to interpet my findings. In particular of the files that

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread William Hermans
> > *Dean,* > > * Looks like you found where to put libEBBLibrary.so...* > > * open("/lib/arm-linux-gnueabihf/libEBBLibrary.so", O_RDONLY|O_CLOEXEC) = > 3* > > * Apparently the LCD is attached via SPI? The code is trying to open > /dev/spidev2.0, but it's not there.* > > * open("/dev/spidev2.0",

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Dean
What was posted was running on my BBB. That said I also have a VM of Debian 8.2 which I did some cross compiling. At any rate my GCC is 4.9.2 cat /proc/version Linux version 4.1.12-ti-r29 (root@a5-imx6q-wandboard-2gb) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP PREEMPT Mon Nov 9 22:46:19 UTC

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread William Hermans
wait a minute . . . What was posted was running on my *BBB.* That said I also have a VM of Debian 8.2 which I did some cross compiling. At any rate my GCC is 4.9.2 cat /proc/version > Linux version 4.1.12-ti-r29 (root@a5-*imx6q-wandboard-2gb*) (gcc version > 4.9.2 (Debian 4.9.2-10) ) #1 SMP

Re: [beagleboard] strace question on Linux beaglebone 4.1.12-ti-r29 UTC 2015 armv7l GNU/Linux Debian Image 2015-11-12

2016-01-24 Thread Robert Nelson
On Sun, Jan 24, 2016 at 5:54 PM, William Hermans wrote: > wait a minute . . . > > What was posted was running on my *BBB.* That said I also have a VM of > Debian 8.2 which I did some cross compiling. At any rate my GCC is 4.9.2 > > cat /proc/version > >> Linux version