[beagleboard] Confused between Device Tree and Device Tree Overlay.What to use for the new Driver?

2016-07-25 Thread Raul Piper
Hi Greg,
Thankyou for the elaborative post and the link you sent.My understanding is
mainly theoretical and inlined with what you wrote..

Yes,I have been scanning across many links on google and stack overflow but
not able to find single one convincing.

I came to conclusion that i will write a hello world gpio driver with lots
of printk and build it along with the dts file by placing it in
arch/arm/boot/dts and then loading that kernel image.According to
R.Nelson's link i will copy the dtb files as well.
Init--> probe-->register platform driver(.compatible string in the
platform_device structure ) should throw something to go ahead with then.

But still the loop holes in the understanding like why to copy all the dtb
files,how to build only that dtb file and copy it in the lib/firmware and
dynamically insmod the driver where does overlays come into the
picture...can the drivers without dtb implementation be accepted in
kernelmain line...

Really looking for some example code here.

On Monday 25 July 2016, Greg > wrote:

> I'm not sure there is a one-stop shop for understanding the Device Tree
> anywhere.
>
> There are at least 4 file types involved:
>
> 1.  dts-  This is the source code (text file) which is a data structure to
> describe hardware.
> 2.  dtsi-  A sub-chunk or "include" file which is used inside dts files.
> It's somewhat similar to an "include" or "import" in programming languages.
> 3.  dtb-  Device tree blob.  This is the compiled version of the dts.
> This is what gets loaded at boot time.  It's the foundation of the system
> used by the kernel.
> 4.  dtbo-  Device tree overlay.  This can be loaded after boot time.  This
> is how the Beaglebone adjusts itself when different "capes" are plugged
> in.  It does this by reading information stored in the EEPROM in the cape.
> These "overlays" can also be loaded at the command line using the "slots"
> in the sysfs virtual file system.  Look for a substantial collection of
> already done overlays in the directory /lib/firmware.  If you want to make
> your own overlay, /lib/firmware is where you want to place it.
>
> This topic is really confusing, and no doubt my notes above are full of
> flaws.
>
> You can work through and understand all of the above.  However, depending
> on the complexity of what you are trying to do, this may be sufficient:
>
> https://github.com/cdsteinkuehler/beaglebone-universal-io
>
> Using the config-pin -f option and a simple text file you can use your
> .profile or similar start-up configuration file to set the pins to your
> requirements.
> This is a relatively straight-forward solution to tacking the problem.
>
> In my opinion the device tree is a major hurdle to making progress with
> the Beaglebones.  If you google you will get a bunch of out-dated
> information, so be careful what you read on the net.  Perhaps someone will
> suggest single source of accurate information on this topic.
>
> Regards,
> Greg
>
> --
> 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/cLDC6Le0Z4A/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/2a565144-1715-4bc2-ae74-b6415a30dea1%40googlegroups.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/CAEwN%2BMB16im1R%2BtCPjpSk86sQ-2Lr4207yRU9Y_OrCBZfqeOEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Building drivers without source on BBB

2016-07-19 Thread Raul Piper
No It did not work.I just replaced the name of my module in your
example Makefile .Did you follow any pre-steps before this?
Rp

On Tue, Jul 19, 2016 at 9:55 PM, ZeekHuge <me.zube...@gmail.com> wrote:
> Hi Raul Piper,
>
> You should probably not worry about the /lib/modules/4.1.22-bone21/ files.
>
> But there might be a problem in your Makefile. You should try adding 'all'
> and 'clean' as PHONY targets in your makefile.
> You can see this Makefile for reference :
> https://github.com/ZeekHuge/BeagleScope/blob/port_to_4.4.12-ti-r31%2B/examples/kernel_examples/n-blinky/module/Makefile
>
> Good Luck
>
> On Tuesday, 19 July 2016 17:06:00 UTC+5:30, Raul Piper wrote:
>>
>>
>> HI,
>> I am using this Makefile to build the kernel driver on the BBB
>> itself(already apt-get installed build-essenatials on it).
>> obj-m += myDrvr.o
>>
>> all:
>> make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
>>
>> clean:
>> make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
>>
>>
>> But I am getting this error :
>> make -C /lib/modules/4.1.22-bone21/build
>> M=/home/ubuntu/bb/exploringBB/chp06/GPIO/tests/hello-linux-module modules
>> Makefile:4: recipe for target 'all' failed
>>
>>
>> I checked that inside ls -l /lib/modules/  there is 4.1.22-bone21 folder
>> is present which is symbolically linked with the build pointing to
>> /path_to_kernel_sources_on_pc_WHERE_I_BUILT_MY_KERNEL
>>
>> Is this some error I did while building the image for BBB.How can I
>> compile my kernel module?
>>
>> Thanks and Rgds,
>> Rp
>
> --
> 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/j30OiI9DWMg/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/daa95f3f-8c1c-44f3-92c8-536db1a0f134%40googlegroups.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/CAEwN%2BMADg3aVby8Te67cRHsP_7ZxP-KfncHAOsPar%3D9vXMvktQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Building drivers without source on BBB

2016-07-19 Thread Raul Piper

HI, 
I am using this Makefile to build the kernel driver on the BBB 
itself(already apt-get installed build-essenatials on it).
obj-m += myDrvr.o

all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean


But I am getting this error : 
make -C /lib/modules/4.1.22-bone21/build 
M=/home/ubuntu/bb/exploringBB/chp06/GPIO/tests/hello-linux-module modules
Makefile:4: recipe for target 'all' failed


I checked that inside ls -l /lib/modules/  there is 4.1.22-bone21 folder is 
present which is symbolically linked with the build pointing to 
/path_to_kernel_sources_on_pc_WHERE_I_BUILT_MY_KERNEL

Is this some error I did while building the image for BBB.How can I compile 
my kernel module?

Thanks and Rgds,
Rp

-- 
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/e984d80c-106d-46a3-b1b6-0c96ff5cab09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Weird Problem using GPIOs on BBB

2016-07-14 Thread Raul Piper
Hello William,
Thankyou very much for jotting down all the relevant example amidst your 
busy schedule.I am really grateful to you.I will check this.This example 
looks far simpler to me.
Rgds,
Rp

On Friday, July 15, 2016 at 2:26:00 AM UTC+5:30, William Hermans wrote:
>
> By the way. I'm not familiar with the C++ fstream object. But this person 
> is not doing any error checking . . .
>
> On Thu, Jul 14, 2016 at 1:48 PM, William Hermans <yyr...@gmail.com 
> > wrote:
>
>> Ok turns out I do not have to write an example. After a quick google 
>> search I found a very good simple example on stackoverflow: 
>> http://stackoverflow.com/questions/21198933/how-to-control-beaglebone-gpio-pins
>>
>> So. . .  this is a very good example that shows how one would, or could 
>> wrap the gpio sysfs files. This:
>>
>> fs.open("/sys/kernel/debug/omap_mux/gpmc_ad4");
>>>fs << "7";
>>>
>>> May be incorrect for current kernel / file system structure, but I can 
>> tell you what this bit of code is going. It's simply muxing the pin he / 
>> she want to control in code. 0x7 == pin mux for GPIO mode. So you( we ) can 
>> either figure how do do this with modern debian images, or "we" could 
>> simply mu our pins with config-pin( universal IO ) or  device tree overlay.
>>
>> Personally, since I've been experimenting with Charles' universal-io 
>> overlays and config-pin recently, and in my spare time. I'm favoring that 
>> lately. Also, that script is very easily wrapped in code as well. Anyway, 
>> once the pin it muxed for the correct mode, the rest of that code would( 
>> should ) simply work. 
>>
>>fs.open("/sys/class/gpio/export");
>>>fs << "32";
>>>fs.close();
>>>
>>
>>  This is exactly as if you echo "32" into /sys/class/gpio/export. Which 
>> exports the pin.
>>
>>fs.open("/sys/class/gpio/gpio32/direction");
>>>fs << "out";
>>>fs.close();
>>
>>
>> Exactly like echoing "out" into /sys/class/gpio/gpio32/direction. Which 
>> configures the pin as output.
>>
>>fs.open("/sys/class/gpio/gpio32/value");
>>>fs << "1"; 
>>>fs.close();
>>>
>>>
>> Exactly the same as echoing "1" into /sys/class/gpio/gpio32/value. Which 
>> makes the pin output, and high. 
>>
>> Any further questions ?
>>
>> On Thu, Jul 14, 2016 at 11:20 AM, William Hermans <yyr...@gmail.com 
>> > wrote:
>>
>>> OK, I'm still a little busy, but I should have something example wise in 
>>> a couple hours.
>>>
>>> On Thu, Jul 14, 2016 at 1:00 AM, William Hermans <yyr...@gmail.com 
>>> > wrote:
>>>
>>>> You only need to toggle gpio ? How fast do you need it to be ? That 
>>>> code is far to complex, and uses threading, as well as callbacks for some 
>>>> odd reason. Threaded code can have performance overhead, and callbacks can 
>>>> cause problems on the stack if you're not careful.
>>>>
>>>> You would be better off writing your own wrapper code. You could either 
>>>> wrap the sysfs gpio files directly. Or if you wished you could wrap 
>>>> config-pin from universal io.
>>>>
>>>> Anyway, it's getting late here so perhaps tomorrow I'll write up a 
>>>> quick example, that is far less code than D.R. Molloy's  . . . uh . 
>>>> ..library ? The thing is, the sysfs directory / file structure is already 
>>>> there and functional. Why would anyone need to write so much code to 
>>>> encapsulate it ? *shrug*
>>>>
>>>> On Wed, Jul 13, 2016 at 10:02 PM, Raul Piper <raulpb...@gmail.com 
>>>> > wrote:
>>>>
>>>>> Attached.
>>>>> One is the cpp code and other is the bash script.
>>>>> cpp code uses the GPIO class from the attached GPIO.7z .
>>>>>
>>>>>
>>>>> On Thursday, July 14, 2016 at 9:50:45 AM UTC+5:30, William Hermans 
>>>>> wrote:
>>>>>>
>>>>>> Let's put it this way. No code, no help . . .
>>>>>>
>>>>>> On Wed, Jul 13, 2016 at 9:19 PM, William Hermans <yyr...@gmail.com> 
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>> #code2
>>>>>>> //create an ins

Re: [beagleboard] Weird Problem using GPIOs on BBB

2016-07-13 Thread Raul Piper
Attached.
One is the cpp code and other is the bash script.
cpp code uses the GPIO class from the attached GPIO.7z .


On Thursday, July 14, 2016 at 9:50:45 AM UTC+5:30, William Hermans wrote:
>
> Let's put it this way. No code, no help . . .
>
> On Wed, Jul 13, 2016 at 9:19 PM, William Hermans  > wrote:
>
>>
>> #code2
>> //create an instance of gpio41
>>  //set direction as OUT
>> //set value as 1
>> usleep(10);
>> //set value 0
>>
>> Output : Toggle doesnt happens
>>
>> Whats this ? This is not code. At best it's comments, and usleep().
>>
>>
>> On Wed, Jul 13, 2016 at 9:02 PM, Raulp > > wrote:
>>
>>> OK let em explain a bit more : 
>>> #code 1
>>> sudo echo 41 > export
>>> cd gpio41
>>> sudo chmod 666 direction
>>> sudo chmod 666 value
>>> sudo echo out > direction
>>> sudo echo 1 > value
>>> sleep 1
>>> sudo echo 0 > value 
>>>
>>> Output : Toggle on the GPIO 41
>>>
>>>
>>> #code2
>>> //create an instance of gpio41
>>>  //set direction as OUT
>>> //set value as 1
>>> usleep(10);
>>> //set value 0
>>>
>>> Output : Toggle doesnt happens
>>>
>>>
>>> Now the output I am referring to is the functioning of the hardware I 
>>> have used.(ignore toggling , it happens anyway using the code#2)
>>>
>>>
>>>  Or does your code simply open, and use  the file descriptors without 
>>> any error checking what so ever ?
>>> >> I dont use error codes to check , but I have seen in the oscilloscope 
>>> that the signal transition is happening according to my code.
>>>
>>> -Rp
>>>
>>>
>>> On Wednesday, July 13, 2016 at 8:52:30 PM UTC+5:30, William Hermans 
>>> wrote:

 When I try to do the same using a user space C application I dont get 
> the expected response.I am running this app as sudo'er and I have 
> oscilloscope'd the timings of HIGH/LOW levels of the GPIOs and compared 
> it 
> with that of the manually writing procedure of GPIOS. The waveform and 
> the 
> timing diagrams almost matches (95%)
>

 I'm not exactly sure what you saying here . . . However, in code are 
 you actually checking for errors, and error codes. Or does your code 
 simply 
 open, and use  the file descriptors without any error checking what so 
 ever 
 ?

 Seeing the code would probably help a lot.

 On Wed, Jul 13, 2016 at 2:41 AM, Raulp  wrote:

> I have interfaced a hardware using the 5 Gpios on BBB.I can talk to 
> this device using GPIOs by manually (echoing 0 and 1 to the GPIOS) 
> writing 
> to it in the sys/class/gpio directory by first exporting the Gpios and 
> configuring their directions and value.It works perfectly fine.
> But,
> When I try to do the same using a user space C application I dont get 
> the expected response.I am running this app as sudo'er and I have 
> oscilloscope'd the timings of HIGH/LOW levels of the GPIOs and compared 
> it 
> with that of the manually writing procedure of GPIOS. The waveform and 
> the 
> timing diagrams almost matches (95%)
> So,
> What could mysteriously be missing here.?I can go deep into analyzing 
> the wave-forms and timing diagrams as well if there is an issue in the 
> timings of the Signals.
> Please advice.Thanks in advance !
> -Rp
>
> -- 
> 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/cb65b710-203e-4579-8c08-e2b817dc7a03%40googlegroups.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...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/beagleboard/521956ed-983d-49b9-85f2-62e269dcf7fa%40googlegroups.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] Re: GPIO in C/C++ on the Beaglebone Black?

2016-06-13 Thread Raul Piper
I modified the app a bit and  tried running this code on the BBB  under 
sudo mode :

gpio_export(gpio);
//  gpio_set_dir(gpio, 0);
gpio_set_dir(gpio, 1);
gpio_set_edge(gpio, "rising");
gpio_fd = gpio_fd_open(gpio);
printf("debug_1 \n");
gpio_set_value(gpio,1);
sleep(1000);
gpio_set_value(gpio,0);
printf("debug_2 \n");

but I see App stuck @debug_1 and getting this error : 
*gpio-49(sysfs):_gpiod_direction_output_raw:tried to set a  GPIO tied to an 
IRQ as output.*

I even tried this : 

 gpio_set_dir(gpio, 0);
  //  gpio_set_dir(gpio, 1);

in this I don't get the error but again the App hangs at the same point.

What I am doign wrong here?My intent is to Set -reset the GPIO1_17 ( that 
is p9 header pin P9_23) that  is GPIO 17 of 32 (0–31) on the second GPIO 
chip of four (0–3).
Am I choosing the wrong GPIO.?
 



On Monday, June 13, 2016 at 9:41:34 AM UTC+5:30, Raul Piper wrote:
>
> CEB, 
> On which platform you tested this?Did you get any issue?Set/Reset of any 
> GPIO works fine on any kernel?4.x+?
> Rp
>
> On Friday, June 14, 2013 at 2:01:51 AM UTC+5:30, CEB wrote:
>>
>> Take a look at 
>> https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c
>>
>> Worked for me.
>>
>> CEB
>>
>> On Wednesday, June 12, 2013 12:46:04 AM UTC-4, MH wrote:
>>>
>>> Just want to start a discussion.  Who all is working or maybe even found 
>>> a means of controlling the GPIO in C for Beaglebone Black?  I have been 
>>> hunting for a while and haven't found anything reliable. 
>>>
>>

-- 
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/c6abe7ba-c08d-42de-8d9a-685a24a4a810%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Capemanager Not found

2016-06-12 Thread Raul Piper

git clone https://github.com/beagleboard/bb.org-overlays
cd ./bb.org-overlays/

Update dtc:
*~/bb.org-overlays*
./dtc-overlay.sh

Install *.dtbo:
*~/bb.org-overlays*
./install.sh

BBB compatibility issues:
*/boot/uEnv.txt*
dtb=am335x-boneblack-overlay.dtb


I followed the above instructions and rebooted, Now I can see the slots .

On Friday, June 3, 2016 at 10:20:16 PM UTC+5:30, john3909 wrote:
>
> /sys/devices/platform/bone_capemgr/slots
>
>
> Regards,
> John
>
>
>
>
> On Jun 3, 2016, at 3:37 AM, Raul Piper <raulpb...@gmail.com > 
> wrote:
>
> I build the kernel as per instructions on -> 
> https://eewiki.net/display/linuxonarm/BeagleBone+Black
> uname -a gives : linux_arm 4.6.0-bone2
>
>
> On Friday, June 3, 2016 at 3:41:27 PM UTC+5:30, Raul Piper wrote:
>>
>> i cant find any  /sys/devices/bone_capemgr.9 on my BBB
>>
>> how to configure it or enable/disable it if already enabled?
>> -Rp
>>
>
> -- 
> 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/b252d033-ff7a-4b76-abd3-672d606d9cee%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/beagleboard/b252d033-ff7a-4b76-abd3-672d606d9cee%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/2ff17377-18a5-4686-b6f1-3c251ec27bc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Writing a GPIO Driver on BBB

2016-06-12 Thread Raul Piper
I am writing a GPIO driver to control a hardware.For this I need to 
set/reset certain GPIOS on the BBB as per certain pattern of 
commands(GPIOX->ON,GPIOY->OFF,GPIOZ->ON and so on).I can do this using 
sysfs interface as well from the user space application but I am looking 
via driver way.
I have read that I can do this from the Device Tree concept but I am not 
aware how .Though I have read that I have to modify the *dts* file using 
*dtc* compiler and so on .But I don't know the full process.How and what 
will be the type of the structure of the user space application to interact 
with the driver done this way?
Kindly celar my understanding if I am assuming correct and provide a link 
to any hello world Device Tree Gpio prpgramme.
Regards - RP

-- 
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/0e878d23-092c-4887-8ae0-bfd1e068c706%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: GPIO in C/C++ on the Beaglebone Black?

2016-06-12 Thread Raul Piper
CEB, 
On which platform you tested this?Did you get any issue?Set/Reset of any 
GPIO works fine on any kernel?4.x+?
Rp

On Friday, June 14, 2013 at 2:01:51 AM UTC+5:30, CEB wrote:
>
> Take a look at 
> https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c
>
> Worked for me.
>
> CEB
>
> On Wednesday, June 12, 2013 12:46:04 AM UTC-4, MH wrote:
>>
>> Just want to start a discussion.  Who all is working or maybe even found 
>> a means of controlling the GPIO in C for Beaglebone Black?  I have been 
>> hunting for a while and haven't found anything reliable. 
>>
>

-- 
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/a7afd6ca-ce1a-4fe8-8ad6-f727cdd9b6a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Capemanager Not found

2016-06-03 Thread Raul Piper
I build the kernel as per instructions on -> 
https://eewiki.net/display/linuxonarm/BeagleBone+Black
uname -a gives : linux_arm 4.6.0-bone2


On Friday, June 3, 2016 at 3:41:27 PM UTC+5:30, Raul Piper wrote:
>
> i cant find any  /sys/devices/bone_capemgr.9 on my BBB
>
> how to configure it or enable/disable it if already enabled?
> -Rp
>

-- 
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/b252d033-ff7a-4b76-abd3-672d606d9cee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Capemanager Not found

2016-06-03 Thread Raul Piper
i cant find any  /sys/devices/bone_capemgr.9 on my BBB

how to configure it or enable/disable it if already enabled?
-Rp

-- 
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/eae8aa95-371b-4b61-b6cc-fc0bfe47e691%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Not able to run the website outside the company network

2016-06-03 Thread Raul Piper
if you are able to login to your BB Device

put this in your ~/.bashrc 

export http_proxy="http://*username*:*password*@*hostname*:*port*;
export https_proxy="https://*username*:*password*@*hostname*:*port*;
export ftp_proxy="ftp://*username*:*password*@*hostname*:*port*;
export socks_proxy="socks://*username*:*password*@*hostname*:*port*"

and put this in your /etc/apt/apt.conf

Acquire::http::proxy "http://*username*:*password*@*hostname*:*port*/;;
Acquire::https::proxy "https://*username*:*password*@*hostname*:*port*/;;
Acquire::ftp::proxy "ftp://*username*:*password*@*hostname*:*port*/;;
Acquire::socks::proxy "socks://*username*:*password*@*hostname*:*port*/";

 replace the *bold* items with their actual value
~   
 

~   
 

~  


On Wednesday, June 1, 2016 at 9:00:37 PM UTC+5:30, Anshul Gupta wrote:
>
> Hi,
>
> How we can set proxy on the beagleBone device to connect to the internet. 
>
> Thanks,
> Anshul 
>
>

-- 
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/f80a9d6b-f826-4d67-924f-9981033b33e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: C Code to Access GPIOs-Getting permission denied when using open() to access /sys/class/gpio/export

2016-06-03 Thread Raul Piper

you can write to gpios by first chmod'ing 666 to the folders and then to 
individual attributes.

On Wednesday, July 1, 2015 at 8:32:48 PM UTC+5:30, Brendan Merna wrote:
>
>
> I'm trying to manipulate my GPIOs using C code and running into 
> "Permission Denied" when running my code and opening the file 
> /sys/class/gpio/export. I'm using nano editor, compiling on the Beaglebone 
> with gcc, and I'm under root user.
>
> I would like to do this, so I can set directions and values for the GPIOs 
> with my code. I've heard this might be a problem with user and kernel space 
> conflicting. I know there are library calls in python and other languages 
> to do this that work. Does anyone know what this problem might be and our 
> their alternate calls I can do in C?
>
> I tried to just include the necessary parts of the code.
> Code:
> #include
> static const char *GPIO_PATH = "/sys/class/gpio/export";
> int main(){
>  int file;
>  if ((file = open(GPIO_PATH, O_RDWR))<0){
>perror("GPIO: Can't open the device.");
>return -1;
>  }
>  return 0;
> }
>

-- 
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/fe241815-54f6-4905-a871-e65746420ae4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Flashing only the Kernel Image on BBB

2016-05-26 Thread Raul Piper
Missed the link to the Page in previous post  -> 
https://eewiki.net/display/linuxonarm/BeagleBone+Black

On Friday, May 27, 2016 at 12:24:26 AM UTC+5:30, Raul Piper wrote:
>
> HI 
> I am following Robert Nelson's page - >
> I have changed the kernel and I have built only kernel now using the 
> rebuild.sh script and want to flash it on the BBB.Do I need to copy only 
> the image or do I have to copy the device tree along with modules?
>
>
> Basically these steps below ONLY?
>
> Copy Kernel Image
>
> Kernel Image:
> *~/*
> *?* <https://eewiki.net/display/linuxonarm/BeagleBone+Black#>
> sudo cp -v ./bb-kernel/deploy/${kernel_version}.zImage 
> /media/rootfs/boot/vmlinuz-${kernel_version}
> Copy Kernel Device Tree Binaries
> *~/*
> *?* <https://eewiki.net/display/linuxonarm/BeagleBone+Black#>
> sudo mkdir -p /media/rootfs/boot/dtbs/${kernel_version}/
> sudo tar xfv ./bb-kernel/deploy/${kernel_version}-dtbs.tar.gz -C 
> /media/rootfs/boot/dtbs/${kernel_version}/
> Copy Kernel Modules
> *~/*
> *?* <https://eewiki.net/display/linuxonarm/BeagleBone+Black#>
> sudo tar xfv ./bb-kernel/deploy/${kernel_version}-modules.tar.gz -C 
> /media/rootfs/
>
>
> Any quick script for this?Can they be flashed over the USB instead of 
> taking out the SD card and then copying into it Just like in Android we can 
> use fastboot to flashonly the new kernel image (boot.img)
>
> Thanks in advance !
>
> Rp
>
>

-- 
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/16fd533a-aaa0-4bc7-86e0-e4a32af66c02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Using GPIO in BBB.Is it necessary to use Device Overlay?

2016-05-26 Thread Raul Piper
Hi Vincent,William, 
Yes I am using Kernel > 3.8 (4.1) and trying to simulate the SPI signals on 
the GPIOs.(CLK,Data,CS)
I don't want to use the host SPI driver and want to implement evrythign via 
GPIO.
any comments !
Rgds,
Rp

On Thursday, May 26, 2016 at 8:32:15 PM UTC+5:30, Vincent lc wrote:

> Hi, 
>
> If you want to use a kernel version >= 3.8, you are obliged to use a DTS 
> (Device tree source) in order ton configured the GPIO.
> And I advised you to use one because It's important to be on page :-)
>
> I like lots of microcontroller, you always need to configured pins before 
> using them, here, the way is to use the overlay (mean that they are load 
> when the board is steal running) ;-).
> The video that you posted is a good example, you can also check the 
> associate website : http://exploringbeaglebone.com/chapter6/  where you 
> can download source code and so on ^_^.
>
> Have a lovely day !
> Enjoy 
> Vincent
>
>
>
> Le jeudi 26 mai 2016 15:46:20 UTC+2, Raul Piper a écrit :
>>
>> HI ,  
>> I am new to BBB.I am trying to create a user app to access GPIO in BBB.I 
>> came across this video - > https://www.youtube.com/watch?v=wui_wU1AeQc 
>>  .Is it really necessary to use Device overlay to access the GPIOs?
>> Can some one please post a link to how to get started with  GPIOS on BBB.
>> Rgds,
>> Rp
>>
>

-- 
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/b1715dc6-176f-41bd-bb32-8250ed74de76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Flashing only the Kernel Image on BBB

2016-05-26 Thread Raul Piper
HI 
I am following Robert Nelson's page - >
I have changed the kernel and I have built only kernel now using the 
rebuild.sh script and want to flash it on the BBB.Do I need to copy only 
the image or do I have to copy the device tree along with modules?


Basically these steps below ONLY?

Copy Kernel Image

Kernel Image:
*~/*
*?* 
sudo cp -v ./bb-kernel/deploy/${kernel_version}.zImage 
/media/rootfs/boot/vmlinuz-${kernel_version}
Copy Kernel Device Tree Binaries
*~/*
*?* 
sudo mkdir -p /media/rootfs/boot/dtbs/${kernel_version}/
sudo tar xfv ./bb-kernel/deploy/${kernel_version}-dtbs.tar.gz -C 
/media/rootfs/boot/dtbs/${kernel_version}/
Copy Kernel Modules
*~/*
*?* 
sudo tar xfv ./bb-kernel/deploy/${kernel_version}-modules.tar.gz -C 
/media/rootfs/


Any quick script for this?Can they be flashed over the USB instead of 
taking out the SD card and then copying into it Just like in Android we can 
use fastboot to flashonly the new kernel image (boot.img)

Thanks in advance !

Rp

-- 
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/88c1b68a-33f8-4e76-aec0-37aa65662850%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Using GPIO in BBB.Is it necessary to use Device Overlay?

2016-05-26 Thread Raul Piper
HI ,  
I am new to BBB.I am trying to create a user app to access GPIO in BBB.I 
came across this video - > https://www.youtube.com/watch?v=wui_wU1AeQc  .Is 
it really necessary to use Device overlay to access the GPIOs?
Can some one please post a link to how to get started with  GPIOS on BBB.
Rgds,
Rp

-- 
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/61ea6235-f99f-4749-aed0-41095623732e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Driver Development : SPI or 4 wire Interface on BBB

2016-05-25 Thread Raul Piper
What is PRU?Can you post a link or keywords related to it.?

On Tuesday, May 24, 2016 at 11:43:09 PM UTC+5:30, john3909 wrote:
>
> Best to use the PRU and control the I/O with software.
>
> Regards,
> John
>
>
>
>
> On May 24, 2016, at 6:25 AM, Raul Piper <raulpb...@gmail.com > 
> wrote:
>
>
> *My Question was Can CS be selectively made High or Low at nth or pth 
> Clock Pulse while using/writing the SPI driver?*
> On Monday, May 23, 2016 at 9:59:14 PM UTC+5:30, john3909 wrote:
>>
>> Here are the possible solutions:
>>
>> 1) Use spidev which allows a user space application to communicate with a 
>> device over SPI
>> 2) Use PRU to communicate with device over SPI
>> 3) Develop a device driver to communicate with device over SPI
>> 4) Adapt an IIO driver that is similar to your device
>>
>> Regards,
>> John
>>
>>
>>
>>
>> On May 23, 2016, at 4:34 AM, Raul Piper <raulpb...@gmail.com> wrote:
>>
>> I am developing a driver for a hardware whose datasheet says it has a 4 
>> wire Serial interface .DataIN/OUT,Clock,CS .Does it means I can develop a 
>> full fledged SPI driver on Linux to use it.
>> To add more when the CLK has n-n+1(say 3-4) rising edge with LE = 1 
>> certain control register will be written .Value of n depends on the type of 
>> control register.
>> Will it be good to develop a SPI driver for this or this can be achieved 
>> better by using the GPIOs(setting/resetting the CLK,Data Lines) .
>>
>> experts comments required.
>> Rp
>>
>>
>> -- 
>> 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/9eef480f-0293-4b4d-99d9-e4527bac1d25%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/beagleboard/9eef480f-0293-4b4d-99d9-e4527bac1d25%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/0019f98b-3575-495a-af41-77136c618e96%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/beagleboard/0019f98b-3575-495a-af41-77136c618e96%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/b03fe5ed-c377-4522-b8ed-55bdc2bc235d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Driver Development : SPI or 4 wire Interface on BBB

2016-05-24 Thread Raul Piper

*My Question was Can CS be selectively made High or Low at nth or pth Clock 
Pulse while using/writing the SPI driver?*
On Monday, May 23, 2016 at 9:59:14 PM UTC+5:30, john3909 wrote:
>
> Here are the possible solutions:
>
> 1) Use spidev which allows a user space application to communicate with a 
> device over SPI
> 2) Use PRU to communicate with device over SPI
> 3) Develop a device driver to communicate with device over SPI
> 4) Adapt an IIO driver that is similar to your device
>
> Regards,
> John
>
>
>
>
> On May 23, 2016, at 4:34 AM, Raul Piper <raulpb...@gmail.com > 
> wrote:
>
> I am developing a driver for a hardware whose datasheet says it has a 4 
> wire Serial interface .DataIN/OUT,Clock,CS .Does it means I can develop a 
> full fledged SPI driver on Linux to use it.
> To add more when the CLK has n-n+1(say 3-4) rising edge with LE = 1 
> certain control register will be written .Value of n depends on the type of 
> control register.
> Will it be good to develop a SPI driver for this or this can be achieved 
> better by using the GPIOs(setting/resetting the CLK,Data Lines) .
>
> experts comments required.
> Rp
>
>
> -- 
> 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/9eef480f-0293-4b4d-99d9-e4527bac1d25%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/beagleboard/9eef480f-0293-4b4d-99d9-e4527bac1d25%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/0019f98b-3575-495a-af41-77136c618e96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: BeagleBoneBlack is not booting from UART

2016-05-24 Thread Raul Piper
Did you try pressing the Switch S2 while you boot from your own image via 
xmodem.
Be default I think it is booting frmo the emmc !

On Tuesday, May 24, 2016 at 3:57:54 PM UTC+5:30, Venky Venkatesh wrote:
>
> Hi,
> I am new beagle bone black, currently working on u-boot. I compiled 
> the u-boot by using cross compilation, and i got MLO, u-boot.img and 
> several other files as well.
> And i was loading the MLO, u-boot,img files to the bbb through xmodem, but 
> once the transfer get completes, its waiting for 8-10 seconds, later its 
> started booting, but its not booting from the files which i have loaded, it 
> is booting from some other partitions. How can i boot the bbb from xmodem, 
> please share me your valuable suggestions.
>
> Thanks
> Venkatesh
>

-- 
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/95319ad8-5a95-4f96-9f44-4145735d94c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Driver Development : SPI or 4 wire Interface on BBB

2016-05-23 Thread Raul Piper
I am developing a driver for a hardware whose datasheet says it has a 4 
wire Serial interface .DataIN/OUT,Clock,CS .Does it means I can develop a 
full fledged SPI driver on Linux to use it.
To add more when the CLK has n-n+1(say 3-4) rising edge with LE = 1 certain 
control register will be written .Value of n depends on the type of control 
register.
Will it be good to develop a SPI driver for this or this can be achieved 
better by using the GPIOs(setting/resetting the CLK,Data Lines) .

experts comments required.
Rp

-- 
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/9eef480f-0293-4b4d-99d9-e4527bac1d25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Getting Bootlogs on BeagleBone Black using USB Cable.Possible?

2016-05-05 Thread Raul Piper
Thanks for the Prompt response.
I dont have that cable i mentioned above  right now.
But I tried the below two Hardware .

1. USB to RS-232 Converter 
<http://www.amazon.in/RS-232-Serial-Converter-Cable-Technotech/dp/B017H1SD9E?tag=googinhydr18418-21=googinkenshoo-21=058e6ce6-5e13-4457-bf0e-61473874f9b4>
 and 
connected DB9 connector pins GND,TX and RX with that of the BBB J1(cross 
fashion - TX-RX and vice versa) connector. My settings are 115200 8N1 @ 
/dev/ttyUSB0 .
I can see logs on minicom but they are all garbled.Are my Serial Port 
Settings correct.

2.Tin Flyswatter CAN 2  <http://www.tincantools.com/JTAG/Flyswatter2.html>
Same settings and Hardware connections with it and getting the same result.

Or Do I need only the h.w I mentioned in my first post.

I believe the 1 , 2 h/w already have TTL 3v3 converter inside them?isn it?
On Thursday, May 5, 2016 at 10:25:15 AM UTC+5:30, RobertCNelson wrote:
>
>
> On May 4, 2016 11:50 PM, "Raul Piper" <raulpb...@gmail.com > 
> wrote:
> >
> > HI,
> > I am new to this group.I am trying to boot a custom kernel which I have 
> built using this link .I hard pressed the Button S2 while the board was 
> booting from the MicroSD CARD (not the EMMC) but I see no display on HDMI 
> connected TV and neither any LED is glowing except the Power LED(PWR).I 
> want to see the boot logs and opened the minicom by connecting the USB 
> cable to the BBB but can't see any boot logs on the minicom (@115200).Is it 
> possible to get the boot logs using the USB cable or do I have to purchase
>
> No, is not possible.. That interface you are using is created by the 
> kernel itself.. Way after it started booting...
>
> "Serial Debug cable : for this like Standard FTDI Cable or Adafruit 4 Pin 
> Cable (PL2303) or (USB to serial adapter) TTL-232R-3V3 at Digi-Key.
>
> Correct, that's the cable you need.. 3.3v...
>
> Regards,
>

-- 
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/5bedc12d-b1db-41f5-a1e5-4afd46dd29ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Tools to debug the driver .

2016-05-04 Thread Raul Piper
Is TIN FlysWatter2  a 
better tool for debugging the kernel driver in BBB.Can some one please post 
thier experience?
-Rp

-- 
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/ea576ae1-cb10-4ebc-8ae6-a17f6c694970%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Getting Bootlogs on BeagleBone Black using USB Cable.Possible?

2016-05-04 Thread Raul Piper
HI,
I am new to this group.I am trying to boot a custom kernel which I have 
built using this link 
 .I hard pressed 
the Button S2 while the board was booting from the MicroSD CARD (not the 
EMMC) but I see no display on HDMI connected TV and neither any LED is 
glowing except the Power LED(PWR).I want to see the boot logs and opened 
the minicom by connecting the USB cable to the BBB but can't see any boot 
logs on the minicom (@115200).Is it possible to get the boot logs using the 
USB cable or do I have to purchase "Serial Debug cable : for this like Standard 
FTDI Cable or Adafruit 4 Pin Cable (PL2303) or (USB to serial adapter) 
TTL-232R-3V3 
 
at 
Digi-Key.
Please suggest.
-Rp


-- 
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/9b5ea421-c890-4ca9-a04a-f323bc73610f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Device tree concept

2015-07-24 Thread Raul Piper
Thanks for the linfo.Is it same for all the beagleboards?Beagleboard-xm as
well?

On Fri, Jul 24, 2015 at 12:42 AM, Graham gra...@flex-radio.com wrote:

 Google is your friend.

 Google Beaglebone Black Device Tree and see what you find.

 Good articles in Adafruit Learning System.

 Purchase Derek Molloy's book:
 Exploring BeagleBone: Tools and Techniques for Building with Embedded
 Linux


 --- Graham


 ==

 ==

 On Thursday, July 23, 2015 at 2:03:25 AM UTC-5, Raul Piper wrote:

 Hi
 I wanted to know the device tree concept in beagleboard family.Till now i
 was using Pandaboard(with ubuntu, Debian and Android) and there is no
 concept of device tree in that.Kernels used = 3.0.1.
 I wanted to know what changes needs to be done and in which files if we
 wanted to interface any hardware via i2c or SPI.In panda-board  we used to
 modify the board config file (board_omap4panda.c) but I tihnk for
 Beagleboard some thign more is to be done?
 Kindly let me know on this.
 Rgds
 Rp



-- 
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 Boards I2C Lines working Voltage

2015-07-24 Thread Raul Piper

Hi, 
what is the working voltage of the I2C lines on the beagloeboard-xm? 1.8v 
or 3.3v?
Is this is same for all the I/Os (GPIOs).
How can I configure a particular GPIO :  In the board-config 
file(arch/arm/mach-omap2/board-omap3beagle.c) for Beagleboard-xm or device 
tree file?
Please advice , I am newbie to beaglebone and just got pumped up by booting 
it up with a linux distro.

Thanks in advance
Rgds,
Rp

-- 
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: Device tree concept

2015-07-24 Thread Raul Piper
Thanks for the confirmation.
Rgds
Rp

On Fri, Jul 24, 2015 at 8:23 PM, Graham gra...@flex-radio.com wrote:

 The device tree concept is the same.
 The specific implementation, pin numbers, pin-mux controls, are different
 for each different piece of hardware.

 --- Graham

 ==

 On Friday, July 24, 2015 at 5:40:32 AM UTC-5, Raul Piper wrote:

 Thanks for the linfo.Is it same for all the beagleboards?Beagleboard-xm
 as well?

 On Fri, Jul 24, 2015 at 12:42 AM, Graham gra...@flex-radio.com wrote:

 Google is your friend.

 Google Beaglebone Black Device Tree and see what you find.

 Good articles in Adafruit Learning System.

 Purchase Derek Molloy's book:
 Exploring BeagleBone: Tools and Techniques for Building with Embedded
 Linux


 --- Graham


 ==

 ==

 On Thursday, July 23, 2015 at 2:03:25 AM UTC-5, Raul Piper wrote:

 Hi
 I wanted to know the device tree concept in beagleboard family.Till now
 i was using Pandaboard(with ubuntu, Debian and Android) and there is no
 concept of device tree in that.Kernels used = 3.0.1.
 I wanted to know what changes needs to be done and in which files if we
 wanted to interface any hardware via i2c or SPI.In panda-board  we used to
 modify the board config file (board_omap4panda.c) but I tihnk for
 Beagleboard some thign more is to be done?
 Kindly let me know on this.
 Rgds
 Rp




-- 
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] Device tree concept

2015-07-23 Thread Raul Piper
Hi 
I wanted to know the device tree concept in beagleboard family.Till now i 
was using Pandaboard(with ubuntu, Debian and Android) and there is no 
concept of device tree in that.Kernels used = 3.0.1.
I wanted to know what changes needs to be done and in which files if we 
wanted to interface any hardware via i2c or SPI.In panda-board  we used to 
modify the board config file (board_omap4panda.c) but I tihnk for 
Beagleboard some thign more is to be done?
Kindly let me know on this.
Rgds
Rp

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