[beagleboard] Re: Ubunru Saucy 13.10 Image Updated: 2014-02-16 is halting the BBB

2014-04-05 Thread neckTwi
the bug persists in Ubuntu Trusty 14.04(experimental). I reverted to Ubuntu 
13.04 and now its working good.

-- 
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: generation of square wave form beagle board

2014-04-05 Thread Przemek Klosowski
Is it possible that your pwm is an array of ints, and you're indexing
it by byte offsets?
I think pwm[OFFSET] is referring to pwm+4*OFFSET, whereas you need pwm+OFFSET

On Sun, Apr 6, 2014 at 1:50 AM, milkyway  wrote:
> I am using GPTIMER_PWM_9 to generate a square wave. Following is my code
>
> #include 
> #include 
> #include 
> #include 
> #include 
> #include 
> #include 
>
> #define MEMORY_BASE_ADDRESS 0x4800
> #define GPTIMER9_BASE_ADDRESS   0x4904
> #define GPTIMER9_PADCONF_REGISTER   0x2174/4
> #define GPTIMER9_RELOAD_REGISTER0x002c/4
> #define GPTIMER9_COMAPARATOR_REGISTER   0x0038/4
> #define GPTIMER9_CONTROL_REGISTER   0x0024/4
> #define GPTIMER9_COUNTER_REGISTER   0x0028/4
>
>
> int main(void)
> {
>
> int config_fd, j, pwm_fd;
> volatile unsigned int *config, *pwm;;
> config_fd = open("/dev/mem", O_RDWR | O_SYNC);
> printf ("Open file descriptor for PADCONFIG\n");
> if (config_fd < 0)
> {
>   printf("Could not open PADCONFIG memory fd\n");
>   return 0;
> }
>
> // Pad configuration
> printf ("Setting PAD configuration register\n");
> config = (unsigned int*) mmap(NULL, 0x1, PROT_READ | PROT_WRITE,
> MAP_SHARED, config_fd, MEMORY_BASE_ADDRESS);
> if (config == MAP_FAILED)
> {
>   printf("Pinconfig Mapping failed\n");
>   close(config_fd);
>   return 1;
> }
>
> printf ("Setting padconf register for PWM\n");
> config[GPTIMER9_PADCONF_REGISTER] = config[GPTIMER9_PADCONF_REGISTER] &
> 0x | 0x0002; // setting 0x48002714 as gpt9_pwm_evt
> printf("The pin has been succesfully selected as gpt9_pwm_evt\n");
> close(config_fd);
> printf ("Opening file descriptor for PWM\n");
> pwm_fd = open("/dev/mem", O_RDWR | O_SYNC);
> if (pwm_fd < 0)
> {
>   printf("Could not open GPIO memory fd\n");
>   return 2;
> }
> printf ("Memory opened for pwm settings\n");
> pwm = (unsigned int*) mmap(NULL, 0x1000, PROT_READ | PROT_WRITE,
> MAP_SHARED, pwm_fd, GPTIMER9_BASE_ADDRESS);
> if (pwm == MAP_FAILED)
> {
>   printf ("PWM Mapping failed\n");
>   close(pwm_fd);
>   return 3;
> }
> printf ("Setting up PWM\n");
> pwm[GPTIMER9_CONTROL_REGISTER] = 0;
> pwm[GPTIMER9_RELOAD_REGISTER] = 0xff; // initial value of pwm
> during overflow
> pwm[GPTIMER9_COUNTER_REGISTER] = 0xff; // initial value of pwm
> during overflow
> pwm[GPTIMER9_COMAPARATOR_REGISTER] = 0x0f; // overflow value
> pwm[GPTIMER9_CONTROL_REGISTER] = 0x18c3;  //timer control register
> printf ("PWM Started\n");
> close(pwm_fd);
> return 0;
> }
>
>
> But I am getting an error as follows
>
> root@localhost:/home/dell/sample_programs# ./a.out
> open file descriptor for PADCONFIG
> map PINCONFIG
> Setting padconf register for PWM
> The pin has been succesfully selected as gpt9_pwm_evt
> opening file descriptor for PWM
> Memory opened for pwm settings
> setting up pwm
> Bus error
>
> Can anybody help me to fix this issue?
>
> On Sunday, 13 February 2011 22:11:36 UTC+5:30, mohit hada wrote:
>>
>> Hi to all
>>
>> Thanks a lot Ben for your help in your last mail
>>
>> Now I have been able to generate PWM but on beagle board xM, I have been
>> able to generate maximum 4.34 MHz... The code modified is given
>> below, my added parts are indicated separately. But Now My doubt is why I
>> get so low value of 4.34 MHz with 26MHz system clock. Is it that I am not
>> able to use 26 MHz or ??? Please help. Thanks
>>
>> omap3530-pwm-demo.c :
>>
>> #include 
>> #include 
>> #include 
>> #include 
>>
>>
>> #include 
>> #include 
>> #include 
>> #include 
>> #include 
>>
>>
>>
>> #include "omap3530-pwm.h"
>>
>> int
>> main(int argc, char **argv)
>> {
>> int mem_fd;
>> int i;
>>
>>
>>
>>  /* New addition written by mohit */
>> volatile ulong *pinconf, *clk_selec;
>>
>>   mem_fd = open("/dev/mem", O_RDWR | O_SYNC);
>>   pinconf = (ulong*)mmap(NULL, 0x1, PROT_READ | PROT_WRITE,
>> MAP_SHARED, mem_fd, 0x4800);
>>   if (pinconf == MAP_FAILED) {
>> printf("Pinconf Mapping failed\n");
>> close(mem_fd);
>> return 0;
>>   }
>>
>>  pinconf[0x2174/4] = 0x011A011A; //PIN CONFIGURED AS BIDIRECTIONAL
>>  pinconf[0x2178/4] = 0x011A011A; //PIN CONFIGURED AS BIDIRECTIONAL
>>  close(mem_fd);
>>
>>
>>mem_fd = pwm_open_devmem();
>>
>> if (mem_fd == -1) {
>> //g_error("Unable to open /dev/mem, are you root?: %s",
>> g_strerror(errno));
>> }
>>
>>pwm_clkfreq_sel(mem_fd, TRUE, TRUE);
>>pwm_close_devmem(mem_fd);
>>
>>
>> /*program end by mohit*/
>>
>>
>> mem_fd = pwm_open_devmem();
>>
>> if (mem_fd == -1) {
>> //g_error("Unable to open /dev/mem, are you root?: %s",
>> g_strerror(errno));
>> }
>>
>>
>> INCLUSION OF ADDITIONAL FUNCTION CA

[beagleboard] Re: problems with webcams

2014-04-05 Thread Anh Tung Vu
I have successfully followed Michael Darling's guide. And I make an updated 
one http://vuanhtung.blogspot.com/2014/04/and-updated-guide-to-get-hardware.html

Full credit to Michael Darling and Lemoneer :). My guide is only intended 
to update the steps.

-- 
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: Ubunru Saucy 13.10 Image Updated: 2014-02-16 is halting the BBB

2014-04-05 Thread neckTwi
the bug persists in Ubuntu Trusty 14.04(experimental). It reverted to 
Ubuntu 13.04 and now its working good.

-- 
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] Beaglebone Cross Compilation Development Tools

2014-04-05 Thread Walter Schilling
I see your Linux on Arm page has been updated VERY recently (i.e. last day 
or so...) I'mn assuming that set of instructions also will match with what 
is above.


On Saturday, April 5, 2014 4:37:27 PM UTC-5, RobertCNelson wrote:
>
>
> On Apr 5, 2014 4:27 PM, "Walter Schilling" > 
> wrote:
> >
> > Now that the Debian image has been released, has anyone placed the tools 
> that build that particular version into an archive somewhere so that others 
> can use them for building projects.  I'm trying to do cross compilation of 
> projects (which really is a much better way to go) when developing embedded 
> systems.  I've got a XUbuntu VM, but the armlinuxgnueabi tools are already 
> newer than the ones used to build the production image, and some of the 
> libraries are not compatible.  With Angstrom, the tools used to be 
> available on their site, but that has disappeared as well.
> >
> > Good CM practices would have both the source and the tools available.
>
> Well Ubuntu is not Debian...
>
> Goto debian.org
>
> Download wheezy iso, install armhf multiarch, bam same version of libs 
> found on the official image.
>  

-- 
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] Beaglebone Cross Compilation Development Tools

2014-04-05 Thread Walter Schilling
That makes me feel better. Didn't realize Debian was being used to build 
the Debian image (though it makes perfect sense.)  SO much of the material 
out there talks about Angstrom only.


Walt


On Saturday, April 5, 2014 4:37:27 PM UTC-5, RobertCNelson wrote:
>
>
> On Apr 5, 2014 4:27 PM, "Walter Schilling" > 
> wrote:
> >
> > Now that the Debian image has been released, has anyone placed the tools 
> that build that particular version into an archive somewhere so that others 
> can use them for building projects.  I'm trying to do cross compilation of 
> projects (which really is a much better way to go) when developing embedded 
> systems.  I've got a XUbuntu VM, but the armlinuxgnueabi tools are already 
> newer than the ones used to build the production image, and some of the 
> libraries are not compatible.  With Angstrom, the tools used to be 
> available on their site, but that has disappeared as well.
> >
> > Good CM practices would have both the source and the tools available.
>
> Well Ubuntu is not Debian...
>
> Goto debian.org
>
> Download wheezy iso, install armhf multiarch, bam same version of libs 
> found on the official image.
>  

-- 
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] Beaglebone Cross Compilation Development Tools

2014-04-05 Thread Robert Nelson
On Apr 5, 2014 4:27 PM, "Walter Schilling"  wrote:
>
> Now that the Debian image has been released, has anyone placed the tools
that build that particular version into an archive somewhere so that others
can use them for building projects.  I'm trying to do cross compilation of
projects (which really is a much better way to go) when developing embedded
systems.  I've got a XUbuntu VM, but the armlinuxgnueabi tools are already
newer than the ones used to build the production image, and some of the
libraries are not compatible.  With Angstrom, the tools used to be
available on their site, but that has disappeared as well.
>
> Good CM practices would have both the source and the tools available.

Well Ubuntu is not Debian...

Goto debian.org

Download wheezy iso, install armhf multiarch, bam same version of libs
found on the official image.

-- 
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] Beaglebone Cross Compilation Development Tools

2014-04-05 Thread Walter Schilling
Now that the Debian image has been released, has anyone placed the tools 
that build that particular version into an archive somewhere so that others 
can use them for building projects.  I'm trying to do cross compilation of 
projects (which really is a much better way to go) when developing embedded 
systems.  I've got a XUbuntu VM, but the armlinuxgnueabi tools are already 
newer than the ones used to build the production image, and some of the 
libraries are not compatible.  With Angstrom, the tools used to be 
available on their site, but that has disappeared as well.

Good CM practices would have both the source and the tools available.

Walt

-- 
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: BeagleBone Black LinuxCNC No Cape Import Error

2014-04-05 Thread Chris Williamson
I managed to get make to work by running autogen and it is currently 
compiling. Hopefully this will get me through the errors on loading.

On Saturday, April 5, 2014 10:58:10 AM UTC-4, Chris Williamson wrote:
>
> Hey guys, I've successfully loaded MachineKit on my BBB (Thanks Charles!). 
> Though I have no capes, I am just trying to fiddle around with LinuxCNC as 
> I have no real experience with it. Trying to load the BeBoPr-Bridge, or any 
> simulator (AXIS) gives me the same error:
>
> Starting LinuxCNC...
> io started
> halcmd loadusr io started
> emcTaskInit: using builtin interpreter
> Traceback (most recent call last):
> File "/home/linuxcnc/linuxcnc/bin/axis", line 3254, in 
> from rs274.icon import icon
> ImportError: No module named icon
> Shutting down and cleaning up LinuxCNC...
> Cleanup done
>
> My linuxcnc_debug.txt file includes:
> Can not find -sec MOT -var MOT -num 1
> Can not find -sec IO -var IO -num 1
> Can not find -sec LINUXCNC -var NML_FILE -num 1
> Can not find -sec EMC -var NML_FILE -num 1
> 4333
> PID TTY STAT TIME COMMAND
> 4401
> PID TTY STAT TIME COMMAND
> 4401 pts/0 S 0:04 milltask -ini 
> /home/linuxcnc/linuxcnc/configs/sim/axis/axis.ini
> PID TTY STAT TIME COMMAND
> Stopping realtime threads
> Unloading hal components
>
> Seems to be nothing out of the ordinary in my linuxcnc_print.txt either. 
> Seems I'm just missing a module somehow. 
>
> I've tried to also update everything. 
>
> git pull origin downloads all files, but when I make, I get the following 
> error:
> Done reading dependencies
> make: Entering directory '/home/linuxcnc/linuxcnc/src'
> *** configure.in has changed ***
> Not rnning autoconf to avoid tainting universal build
> Please investigate or start from scratch:
> ./autogen.sh && ./configure --your-configure-args...
> make: *** [configure] Error 1
> make: Leaving directory
>
> At this point, I'm pretty confused and I'm not sure where to go next. Any 
> help would greatly be appreciated so I can start tinkering with settings.
>
> Thanks to all those involved so far to get this far!
>

-- 
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] BeagleBone Black LinuxCNC No Cape Import Error

2014-04-05 Thread Chris Williamson
Hey guys, I've successfully loaded MachineKit on my BBB (Thanks Charles!). 
Though I have no capes, I am just trying to fiddle around with LinuxCNC as 
I have no real experience with it. Trying to load the BeBoPr-Bridge, or any 
simulator (AXIS) gives me the same error:

Starting LinuxCNC...
io started
halcmd loadusr io started
emcTaskInit: using builtin interpreter
Traceback (most recent call last):
File "/home/linuxcnc/linuxcnc/bin/axis", line 3254, in 
from rs274.icon import icon
ImportError: No module named icon
Shutting down and cleaning up LinuxCNC...
Cleanup done

My linuxcnc_debug.txt file includes:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
4333
PID TTY STAT TIME COMMAND
4401
PID TTY STAT TIME COMMAND
4401 pts/0 S 0:04 milltask -ini 
/home/linuxcnc/linuxcnc/configs/sim/axis/axis.ini
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Seems to be nothing out of the ordinary in my linuxcnc_print.txt either. 
Seems I'm just missing a module somehow. 

I've tried to also update everything. 

git pull origin downloads all files, but when I make, I get the following 
error:
Done reading dependencies
make: Entering directory '/home/linuxcnc/linuxcnc/src'
*** configure.in has changed ***
Not rnning autoconf to avoid tainting universal build
Please investigate or start from scratch:
./autogen.sh && ./configure --your-configure-args...
make: *** [configure] Error 1
make: Leaving directory

At this point, I'm pretty confused and I'm not sure where to go next. Any 
help would greatly be appreciated so I can start tinkering with settings.

Thanks to all those involved so far to get this far!

-- 
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] HDMI to VGA, on boot the board displays its logo, but then ceases to display anything. Please Help

2014-04-05 Thread Scott Force
I had issues getting my HDMI output to work as well. My issue was
definitely different than yours but this is the best resource that I found:

http://elinux.org/Beagleboard:BeagleBoneBlack_HDMI

What is happening is that the uEnv.txt file on your BBB, specifies a
resolution which seems to be working as you see the splash screen. After
that the BBB changes the resolution to the best that it can based on the
EDID info that your monitor\TV is sending back.

The best place to start (after reading through the wiki page linked above)
is to try SSH'ing into BBB and see what, if any EDID info is coming through:

   - connect to BBB via SSH  (process can be altered to do it over ethernet)
  - http://learn.adafruit.com/ssh-to-beaglebone-black-over-usb/overview
   - get EDID info (ignore serial stuff)
  -
  
http://elinux.org/Beagleboard:BeagleBoneBlack_HDMI#EDID_Information_via_Serial_Port


I also had found a list of other things to try but cannot seem to locate it
now. Here is what I recall:

   - turn on monitor\TV first, boot BBB & if it doesn't work try restarting
   your BBB (sometimes it will pick up the EDID after that)
   - ensure that the video output isn't sleeping --> hook up a
   mouse\keyboard & move the mouse\hit a key

There is also info on the BBB HDMI wiki page about how to force a
resolution that you could try. I never had to goto that extent.



On 3 April 2014 11:19,  wrote:

> I have the exact same problem with my BBB and VGA-Display.
> Sam, did you get your display to work yet or find out what the problem is
> exactly?
>
>  --
> 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.


[beagleboard] Beagle Board Black not booting up

2014-04-05 Thread Madhukar kumar
I was working with BBB with angstrom distribution booting from eMMC. Then i 
powered down the board and inserted a blank 2GB uSD and then when all my 
problems started. I as not able to get the system. Then i tried removing 
the uSD and booting but things did not work out. I rewrite the flash as 
shown in http://derekmolloy.ie/write-a-new-image-to-the-beaglebone-black/ 
and the process is getting completed but BBB is not booting up. Please help 
me...

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