[beagleboard] Alternate Hardware Drivers and Device Tree

2015-03-30 Thread Charles Steinkuehler
I would like to be able to make use of some internal hardware on the
AM335x (like PWM, SPI, and CAN) for hard real-time operations.  In order
to get these pieces of hardware powered on with clocks and out of reset,
it's necessary to include them in the device tree bindings.  But this
loads the kernel-mode device driver which will typically conflict with
my code (executing in a real-time thread on the ARM or in the PRU).

There's an old LWN article about using bind/unbind to disable a driver
and allow the underlying hardware to be controlled by something else:

https://lwn.net/Articles/143397/

Is this still how I should handle replacing the kernel driver for a
chunk of hardware, or is there an alternate means to do this with a
recent 3.x kernel?

The article references kernel 2.6.13, which is pretty long in the tooth
these days!  :)

-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
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] Best node performance for an expressjs app

2015-03-30 Thread Matthew Karas
The log I'm getting from this example app shows a minimum response time of 
4 - 17 ms.   The route itself is doing nothing. Is this the quickest 
response node can do on the bbb?  The board is only running the example 
server.

GET / 200 16.876 ms - 0
GET / 200 4.474 ms - 0
GET / 200 4.592 ms - 0
GET / 200 4.375 ms - 0
GET / 200 4.858 ms - 0
GET / 200 4.613 ms - 0
GET / 200 4.588 ms - 0
GET / 200 4.397 ms - 0
GET / 200 4.667 ms - 0
GET / 200 4.406 ms - 0


Current experiment code

var express = require('express');
var app = express();

app.configure(function() {
app.use(express.logger('dev'));  
});

app.get('/', function (req, res) {
  res.send('')
})

var server = app.listen(3000, '0.0.0.0', function () {

  var host = server.address().address
  var port = server.address().port

  console.log('Example app listening at http://%s:%s', host, port)

})



-- 
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] I need to reverse the changes made by installing PAE.

2015-03-30 Thread datamacriver
Unfortunately, I performed an install of PAE but actually didn't need it as 
to my computer is 64-bit Ubuntu 14.04.  Now it only runs from the livecd.  
I need a step-by-step guide to reverse the install settings.

-- 
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: Load and execute PRU code from bare-metal application

2015-03-30 Thread Karl Karpfen
Am Donnerstag, 26. März 2015 08:38:50 UTC+1 schrieb BryanB:

  Did you ever make any progress with your questions?



I'd suggest to have a look into this 
thread: 
https://groups.google.com/forum/#!category-topic/beagleboard/pru/rCO-2nKynVE

 

-- 
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] BBB not accessible

2015-03-30 Thread ifmx4ever
Hello, 

I am looking for some help. Appreciate any input. 

I have a BBB running Ubuntu 14.04. I also have TP-Link TL-725N wifi dongle. 
I did follow instructions from this site to 
http://coremega.tumblr.com/post/78194792401/install-tp-link-wireless-n-adapter-tl-wn725n-on
 
to build the required drivers for the wifi dongle to work. After compiling 
the wifi dongle works. 

I am using the BBB along with OpenSprinkler h/w to irrigate my landscape. 
The BBB is powered by the OpenSprinkler h/w. 

The issue I have is that approximately 36 hrs to 48 hrs after a boot up, 
the BBB becomes inaccessible. I have to go and unplug the power and put it 
back in to restart it. I keep pinging it all the time from my computer at 
home so that I am convinced I can access it. But when the board is not 
accessible, ping comes back saying Request timeout for icmp_seq 44990 
ping: sendto: Host is down. I cannot ssh as ssh times out. I can see that 
the heartbeat led is not on. Only the power led is lit and stays on as it 
does always. 

Since the h/w is mounted on a case out side my home right by my irrigation 
valves, I cannot run a network cable directly to it. I am dependent on the 
wifi dongle to get access to the BBB. 

I have been struggling the past couple of weeks when I purchased the BBB. 

I did look at the syslog file in /var/log and at the time of failure, the 
syslog has a bunch of ^@ symbols for a couple of lines. 

I am not sure what else I could do to make this board stay up. FWIW, the 
board is pretty much inactive on times when there is nothing to do. The 
irrigation program is used on demand once every 3 days or so. Much depends 
on how hot it gets and how the soil gets dry etc... 

Any suggestions as to what might be happening here and if I should try some 
thing? 

Ram

-- 
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] BBB not accessible

2015-03-30 Thread Robert Nelson
On Mon, Mar 30, 2015 at 12:34 PM,  ifmx4e...@gmail.com wrote:
 Hello,

 I am looking for some help. Appreciate any input.

 I have a BBB running Ubuntu 14.04. I also have TP-Link TL-725N wifi dongle.
 I did follow instructions from this site to
 http://coremega.tumblr.com/post/78194792401/install-tp-link-wireless-n-adapter-tl-wn725n-on
 to build the required drivers for the wifi dongle to work. After compiling
 the wifi dongle works.

 I am using the BBB along with OpenSprinkler h/w to irrigate my landscape.
 The BBB is powered by the OpenSprinkler h/w.

 The issue I have is that approximately 36 hrs to 48 hrs after a boot up, the
 BBB becomes inaccessible. I have to go and unplug the power and put it back
 in to restart it. I keep pinging it all the time from my computer at home so
 that I am convinced I can access it. But when the board is not accessible,
 ping comes back saying Request timeout for icmp_seq 44990 ping: sendto:
 Host is down. I cannot ssh as ssh times out. I can see that the heartbeat
 led is not on. Only the power led is lit and stays on as it does always.

 Since the h/w is mounted on a case out side my home right by my irrigation
 valves, I cannot run a network cable directly to it. I am dependent on the
 wifi dongle to get access to the BBB.

 I have been struggling the past couple of weeks when I purchased the BBB.

 I did look at the syslog file in /var/log and at the time of failure, the
 syslog has a bunch of ^@ symbols for a couple of lines.

 I am not sure what else I could do to make this board stay up. FWIW, the
 board is pretty much inactive on times when there is nothing to do. The
 irrigation program is used on demand once every 3 days or so. Much depends
 on how hot it gets and how the soil gets dry etc...

 Any suggestions as to what might be happening here and if I should try some
 thing?

What kernel are you actually running?

uname -r

other thoughts..

and did you disable hdmi?
have you disable wifi pm?

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.


[beagleboard] PRUSPEAK now supports uS delays

2015-03-30 Thread Shubhangi Gupta
Hey all,

You can now send uS delays to PRU using WAIT instructions.

https://github.com/shubhi1407/pruspeak  ( pull request pending )

https://github.com/deepakkarki/pruspeak/pull/7 ( pull request. Explains 
additions which have been done )

Thanks
Shubhangi

-- 
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] 8 port 1-wire cape

2015-03-30 Thread fcampaigne
I have a project that will use more than 8 1-wire sensors.  Since the 
1-wire networks is sensor addressable, I was wondering if it is possible to 
use one of the 8 port cape RJ11 jacks for more than one 1-wire sensor?

-- 
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: Android running on BBB with Linux 3.8

2015-03-30 Thread vanerjm
I've downloaded the image and using DD I have applied in my microSD. 
After DD finished, my microSD mounted 3 partitions. 
I've put it my BeagleBone Black but the android did not start (even with 
the boot button pressed). 

I don't know what was wrong.



Em segunda-feira, 17 de junho de 2013 21:00:07 UTC-3, Andrew Henderson 
escreveu:

 Hello all.  I posted this information over at the Google+ group for 
 BeagleBoard.org, but I wanted to post it here as well.  I have Android 
 running on the BBB using the Jellybean (4.2.2) source from arowboat.org 
 and the Linux 3.8.13 kernel from my BeagleSNES project (www.beaglesnes.org).  
 I just added the Android drivers (Drivers - Staging Drivers - Android) 
 into the same kernel configuration that I use for BeagleSNES.  This kernel 
 is really just a stripped down configuration (a 1.9 meg zImage) using 
 Robert Nelson's 3.8.x kernel source tree.  Instead of using the GCC 
 cross-compiler that comes in Rowboat's current prebuilt tools, I use the 
 3.7 GCC that comes with Robert's kernel tree to build the entire system.  I 
 also updated the u-boot to v2013.04.

 Here is a video of it running: https://www.youtube.com/watch?v=yeSt1Y7FhEs
 Here is the download of a working Android image that can be written onto a 
 4GB microSD card using dd: 
 http://icculus.org/~hendersa/BBB_JB_Android_3_8_13.img.bz2

 There is no hardware accelerated video in this version, since SGX support 
 isn't ready for the 3.8 kernel.  To shut off hardware accelerated video, I 
 pass qemu=1 as a kernel command line argument in uEnv.txt and I add 
 debug.egl.hw=0 to the /system/build.prop file in the root file system.  
 To get rid of that blinking cursor on the framebuffer (which I accidentally 
 left on in the image that I made), add this to the uEnv.txt kernel command 
 line arguments: vt.global_cursor_default=0

 This build will be of interest to Android experimenters who want to use 
 HDMI for audio and video output (rather than using an LCD cape) and who 
 want to experiment with using the device tree.  My kernel is pretty 
 stripped down, so feel free to fetch Robert's latest kernel source for the 
 3.8.x branch and rebuild your own kernel to drop into the image that I have 
 supplied.  That way, you can include whatever drivers you would like in 
 your kernel.  Use a USB mouse (and a keyboard, too, if you want) to 
 interact with the system.

 Thanks, and enjoy!

 Andrew


-- 
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] Beagleboard XM and Leopard Imaging LM-5M03

2015-03-30 Thread Michael Lefsky


I have an XM board and LI-5M03 camera board from Leopard Imaging that I am 
selling on ebay, should anyone be interested in purchasing this hardware. 


You are bidding on an unopened Beagleboard XM and an opened but never used 
LI-5M03 camera board that can be plugged into the camera port on the XM 
board. The Beagleboard is $149 at Newark and the Camera is $75 at Leopard 
Imaging but both are available only by special order, whereas you can have 
both as soon as I can ship them to you. 

-- 
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] 8 port 1-wire cape

2015-03-30 Thread liyaoshi
not tested
but

http://lxr.free-electrons.com/source/drivers/w1/masters/w1-gpio.c?v=3.14

http://www.raspberrypi.org/forums/viewtopic.php?f=44t=65137

might be its possible

2015-03-31 4:20 GMT+08:00 fcampai...@gmail.com:

 I have a project that will use more than 8 1-wire sensors.  Since the
 1-wire networks is sensor addressable, I was wondering if it is possible to
 use one of the 8 port cape RJ11 jacks for more than one 1-wire sensor?

 --
 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.


-- 
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: Having to manually start Wifi

2015-03-30 Thread Graham Haddock
Brian:

Thanks for the pointers.
I will go read up on it.

Thanks,
--- Graham

==

On Fri, Mar 27, 2015 at 7:06 PM, Brian Anderson b...@nwlink.com wrote:

 Since you are using Jessie images, have you tried using ConnMan to manage
 the WiFi connection rather than resorting to all of this systemd and
 ifup/ifdown stuff?

 You can configure ConnMan using the connmanctl command line utility, or
 via the cmst GUI utility. to setup your link (ssid, credentials).  Or,
 you can create a config file and put it in
 /var/lib/connman/my_config.config.  There is documentation in the ConnMan
 source tree on this format.  I've also attached a template for reference.
 You might also consider adding '/etc/connman/main.conf' and specify
 PreferredTechnologies in the order that you want.  Again, there is
 documentation in the ConnMan source tree on this file, and also the Google
 will help.

 Note that if you use this method, you should NOT do any wifi configuration
 in /etc/network/interfaces as ConnMan will override these.  If you would
 rather use /etc/network/interfaces, then be careful that you don't also
 have conflicting configuration setup with ConnMan, as ConnMan will override
 configuration in /etc/network/interfaces.

 I use the ConnMan method all the time for my work and have no problem
 getting a WiFi connection after boot using my TP-Link TL-WN-722N (uses an
 Atheros chipset), Jessie snapshot images, and 3.19.x kernels.

 ba

 --
 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/rRHUR8mltmg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 beagleboard+unsubscr...@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Issue with CAN cape

2015-03-30 Thread Robert Nelson
On Mon, Mar 30, 2015 at 10:44 AM,  frudak.chors...@gmail.com wrote:
 Hi there!

 I don't know how to get BBB's DCAN1 working, though I've been striving for
 quite a long time.

 I installed the OS from a Debian image available at http://beagleboard.org/
 and followed the guide
 http://dev.ardupilot.com/wiki/building-the-code/building-for-beaglebone-black-on-linux/
 to make the kernel RT-Preempt:

 root@beaglebone:~# uname -a
 Linux beaglebone 3.8.13-rt9-00899-g3d8f2b1 #1 SMP PREEMPT Sat Jan 31
 12:22:12 CET 2015 armv7l GNU/Linux

 To work with DCAN1, I also followed the guide
 http://www.embedded-things.com/bbb/enable-canbus-on-the-beaglebone-black/
 using the suggested device tree overlay:

 root@beaglebone:~# modprobe can
 root@beaglebone:~# modprobe can-dev
 root@beaglebone:~# modprobe can-raw
 root@beaglebone:~# echo BB-DCAN1  $SLOTS
 root@beaglebone:~# cat $SLOTS
  0: 54:PF---
  1: 55:PF---
  2: 56:PF---
  3: 57:PF---
  4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
  5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
  6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
  7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-DCAN1

 root@beaglebone:~# /sbin/ip link set can0 up type can bitrate 50
 root@beaglebone:~# ifconfig can0 up
 root@beaglebone:~# ifconfig can0
 can0  Link encap:UNSPEC  HWaddr
 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
   UP NOARP  MTU:16  Metric:1
   RX packets:3 errors:0 dropped:0 overruns:0 frame:0
   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:10
   RX bytes:24 (24.0 B)  TX bytes:0 (0.0 B)
   Interrupt:71

 Pins seem to be muxed correctly:

 root@beaglebone:~# cat $PINS | grep 984
 pin 97 (44e10984) 0032 pinctrl-single
 root@beaglebone:~# cat $PINS | grep 980
 pin 96 (44e10980) 0012 pinctrl-single

 Now, as I run a simple cansend-candump test on can0, candump doesn't get
 anything. Is there anyone who can help me out?

 Thank you

Well that 3.8.13 RT kernel isn't maintained anymore.  Other then
Can0 what else do you need?

As you could just grab the latest image: http://beagleboard.org/latest-images

then install the 3.14.x RT kernel:

sudo apt-get update ; sudo apt-get install
linux-image-3.14.35-ti-rt-r56 ; sudo reboot

(right now i only have can1 built by default:

dtb=am335x-boneblack-can1.dtb

You can use dtb-rebuilder to enable can0..

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.