[Linux-zigbee-devel] MRF24J40 linux driver questions.

2012-10-25 Thread Randy Graham
Hello,

I am starting to play with the MRF24J40 driver on a custom i.mx28 board
running linux (thanks to Alan Ott for writing this driver).

I assume that the WAKEUP and RESET lines are not handled by the driver, is
this correct ?

Also, do I just need to specify modalias, mode, irq, bus_num and
chip_select in my board_info struct ? No platform_data ?

Thanks for any help.

-Randy
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


[Linux-zigbee-devel] 'Possible recursive locking detected' on 'ifconfig lowpan0 up' .

2012-11-18 Thread Randy Graham
Hello,

Hopefully this is the right list for this post, please let me know if not.

I am running linux 3.7.0-rc6 on a freescale imx28-evk dev board and am
seeing the following deadlock warning when I try to bring up the lowpan
interface via
'ifconfig lowpan0 up' . I am using the 802.15.4 radio module MRF24J40 with
corresponding driver.

Let me know if there are any fixes I can test on my board or if you need
any more info.

-Randy


dmesg output:

[  948.72] [ INFO: possible recursive locking detected ]
[  948.72] 3.7.0-rc6 #8 Not tainted
[  948.72] -
[  948.72] swapper/0 is trying to acquire lock:
[  948.72]  (_xmit_IEEE802154#2){+.-...}, at: []
sch_direct_xmit+0x9c/0x2e4
[  948.72]
[  948.72] but task is already holding lock:
[  948.72]  (_xmit_IEEE802154#2){+.-...}, at: []
dev_queue_xmit+0x374/0x54c
[  948.72]
[  948.72] other info that might help us debug this:
[  948.72]  Possible unsafe locking scenario:
[  948.72]
[  948.72]CPU0
[  948.72]
[  948.72]   lock(_xmit_IEEE802154#2);
[  948.72]   lock(_xmit_IEEE802154#2);
[  948.72]
[  948.72]  *** DEADLOCK ***
[  948.72]
[  948.72]  May be due to missing lock nesting notation
[  948.72]
[  948.72] 5 locks held by swapper/0:
[  948.72]  #0:  (((&idev->mc_ifc_timer))){+.-.+.}, at: []
call_timer_fn+0x0/0x160
[  948.72]  #1:  (rcu_read_lock){.+.+.+}, at: []
mld_sendpack+0x0/0x384
[  948.72]  #2:  (rcu_read_lock_bh){.+}, at: []
dev_queue_xmit+0x0/0x54c
[  948.72]  #3:  (_xmit_IEEE802154#2){+.-...}, at: []
dev_queue_xmit+0x374/0x54c
[  948.72]  #4:  (rcu_read_lock_bh){.+}, at: []
dev_queue_xmit+0x0/0x54c
[  948.72]
[  948.72] stack backtrace:
[  948.72] [] (unwind_backtrace+0x0/0xf4) from []
(validate_chain+0xcd8/0x1084)
[  948.72] [] (validate_chain+0xcd8/0x1084) from []
(__lock_acquire+0x608/0xbe4)
[  948.72] [] (__lock_acquire+0x608/0xbe4) from []
(lock_acquire+0xa0/0x108)
[  948.72] [] (lock_acquire+0xa0/0x108) from []
(_raw_spin_lock+0x2c/0x3c)
[  948.72] [] (_raw_spin_lock+0x2c/0x3c) from []
(sch_direct_xmit+0x9c/0x2e4)
[  948.72] [] (sch_direct_xmit+0x9c/0x2e4) from []
(dev_queue_xmit+0x184/0x54c)
[  948.72] [] (dev_queue_xmit+0x184/0x54c) from []
(lowpan_xmit+0x108/0x114)
[  948.72] [] (lowpan_xmit+0x108/0x114) from []
(dev_hard_start_xmit+0x28c/0x520)
[  948.72] [] (dev_hard_start_xmit+0x28c/0x520) from
[] (dev_queue_xmit+0x2e4/0x54c)
[  948.72] [] (dev_queue_xmit+0x2e4/0x54c) from []
(ip6_finish_output2+0xd0/0x3d4)
[  948.72] [] (ip6_finish_output2+0xd0/0x3d4) from
[] (mld_sendpack+0x194/0x384)
[  948.72] [] (mld_sendpack+0x194/0x384) from []
(mld_ifc_timer_expire+0x2b4/0x334)
[  948.72] [] (mld_ifc_timer_expire+0x2b4/0x334) from
[] (call_timer_fn+0x7c/0x160)
[  948.72] [] (call_timer_fn+0x7c/0x160) from []
(run_timer_softirq+0x1f0/0x260)
[  948.72] [] (run_timer_softirq+0x1f0/0x260) from
[] (__do_softirq+0xbc/0x220)
[  948.72] [] (__do_softirq+0xbc/0x220) from []
(irq_exit+0x8c/0x94)
[  948.72] [] (irq_exit+0x8c/0x94) from []
(handle_IRQ+0x34/0x84)
[  948.72] [] (handle_IRQ+0x34/0x84) from []
(icoll_handle_irq+0x30/0x44)
[  948.72] [] (icoll_handle_irq+0x30/0x44) from []
(__irq_svc+0x44/0x54)
[  948.72] Exception stack(0xc0591f68 to 0xc0591fb0)
[  948.72] 1f60:   0001 0001  2013
c059 c05ce6c8
[  948.72] 1f80: c059cac8 7fff 40004000 41069265 40586f74 
60d3 c0591fb0
[  948.72] 1fa0: c005d13c c00102bc 2013 
[  948.72] [] (__irq_svc+0x44/0x54) from []
(default_idle+0x40/0x48)
[  948.72] [] (default_idle+0x40/0x48) from []
(cpu_idle+0x68/0xd0)
[  948.72] [] (cpu_idle+0x68/0xd0) from []
(start_kernel+0x258/0x298)
[  949.33] BUG: scheduling while atomic: swapper/0/0x4100
[  949.35] INFO: lockdep is turned off.
[  949.36] Modules linked in:
[  949.37] [] (unwind_backtrace+0x0/0xf4) from []
(__schedule_bug+0x58/0x78)
[  949.38] [] (__schedule_bug+0x58/0x78) from []
(__schedule+0x4a4/0x570)
[  949.39] [] (__schedule+0x4a4/0x570) from []
(_cond_resched+0x40/0x54)
[  949.40] [] (_cond_resched+0x40/0x54) from []
(kmem_cache_alloc_trace+0xcc/0x158)
[  949.42] [] (kmem_cache_alloc_trace+0xcc/0x158) from
[] (lowpan_header_create+0x4c/0x638)
[  949.45] [] (lowpan_header_create+0x4c/0x638) from
[] (neigh_connected_output+0xa0/0xf8)
[  949.47] [] (neigh_connected_output+0xa0/0xf8) from
[] (ip6_finish_output2+0xd0/0x3d4)
[  949.49] [] (ip6_finish_output2+0xd0/0x3d4) from
[] (ndisc_send_skb+0x12c/0x260)
[  949.51] [] (ndisc_send_skb+0x12c/0x260) from []
(ndisc_send_ns+0x78/0xa8)
[  949.52] [] (ndisc_send_ns+0x78/0xa8) from []
(addrconf_dad_timer+0x148/0x160)
[  949.54] [] (addrconf_dad_timer+0x148/0x160) from
[] (call_timer_fn+0x7c/0x160)
[  949.57] [] (

Re: [Linux-zigbee-devel] 'Possible recursive locking detected' on 'ifconfig lowpan0 up' .

2012-11-21 Thread Randy Graham
On Tue, Nov 20, 2012 at 8:28 PM, Alan Ott  wrote:
> On 11/19/2012 12:12 AM, Randy Graham wrote:
>> Hopefully this is the right list for this post, please let me know if not.
>>
>> I am running linux 3.7.0-rc6 on a freescale imx28-evk dev board and am
>> seeing the following deadlock warning when I try to bring up the
>> lowpan interface via
>> 'ifconfig lowpan0 up' . I am using the 802.15.4 radio module MRF24J40
>> with corresponding driver.
>>
>
> Hi Randy,
>
> I've seen this too, and did a small amount of investigation which turned
> up nothing so far. I think this is the one that I only get on my
> embedded system, and not on the PC. Strange. One more thing for the
> TODO. That said, it doesn't seem to be actually hurting anything, which
> is why it hasn't risen to the top of my priority heap.
>
> Alan.
>

Ok, thanks Alan.

I am glad to hear that it doesn't prevent the interface from working.
I am still working on getting our radio up and running so it's good to
know that I can ignore this warning for now.

-Randy

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


[Linux-zigbee-devel] Where to pull latest source and patches.

2013-03-10 Thread Randy Graham
Hello,

I am new to 6lowpan and the list, so please forgive the rookie questions.

Where do I download the latest source and patches ?

Will this get me the latest ? I am git-challeneged but it looks like
the latest commit was last year and that this may not be the most
current..
git clone 
git://linux-zigbee.git.sourceforge.net/gitroot/linux-zigbee/linux-zigbee

I see individual patches posted to the list, where are they stored ?

FWIW, I am working on a custom freescale imx28 board with mrf24j40
radio and am trying to get 6lowpan running on it.

Thank you for your help and patience.

-Randy

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


[Linux-zigbee-devel] How often is net-next merged with the mainline kernel and how to manually merge?

2013-09-25 Thread Randy Graham
Hello,

I would like to better understand how patches here make it into the
mainline.

I understand that patches here go to Dave Millers net-next repo, but when
or how often do they get merged into the mainline ?

Also, suppose I want to use the latest patches in net-next, how do I go
about manually merging them myself into my own local kernel tree ?

Thanks for any insights.

-Randy
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


Re: [Linux-zigbee-devel] How often is net-next merged with the mainline kernel and how to manually merge?

2013-09-26 Thread Randy Graham
Thanks Alex, some day I hope to be able to contribute to this effort and
this info is very helpful.

Right now I have a 3.11 kernel that has been patched for the beaglebone
(which is not mainlined) and was wondering how to patch it with the latest
linux-zigbee-devel updates.

I really just want to catch updates to 802.15.4 and 6Lowpan and understand
how to merge and what to merge into my custom kernel tree.

-Randy





On Thu, Sep 26, 2013 at 4:59 AM, Alexander Aring wrote:

> Hi Randy,
>
> On Wed, Sep 25, 2013 at 08:06:33PM -0700, Randy Graham wrote:
> > Hello,
> >
> > I would like to better understand how patches here make it into the
> > mainline.
> >
> Ok.
>
> > I understand that patches here go to Dave Millers net-next repo, but when
> > or how often do they get merged into the mainline ?
> >
> First it's good to send the patches to this list, if somebody has
> improvements, fixes or other issues you need to change that.
>
> After this you can send it to net-next mailinglist and David Miller
> takes this patches and put it into his net-next repo(depends if all
> seems ok). Then David Miller sends a pull request to Linus and
> Linus merge it into mainline.
>
> I don't know the exact circle of this, visit kernel.org for more
> information.
>
> To make patches for linux-zigbee-devel:
>
> 1. Your patches MUST based on net-next branch, because David need to
>merge it.
>
> 2. You MUST create your patches with git. See git format-patch.
>
> 3. Before you send Patches you MUST run checkpatch on it. Checkpatch is
>a powerful perl script to check coding style issues. You can find it
>under scripts/checkpatch.pl in linux src tree.
>
> 3. The simplest way to send patches is the builtin mail-client into git.
>Checkout git send-email.
>
> > Also, suppose I want to use the latest patches in net-next, how do I go
> > about manually merging them myself into my own local kernel tree ?
> >
> Checkout [1] and create a branch on it with git.
>
> So that's a lot of git things, maybe just google it and take a git
> tutorial.
>
> [1] http://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git
>
> - Alex
>
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


Re: [Linux-zigbee-devel] How often is net-next merged with the mainline kernel and how to manually merge?

2013-09-26 Thread Randy Graham
Thank you Markus.

It really does seem that I need to get smarter about Git :)

Do all linux-zigbee-devel patches just affect 'net' and its subdirectories
or are other kernel source directories affected ?


On Thu, Sep 26, 2013 at 9:38 AM, Markus Becker 
wrote:

> On Thursday 26 September 2013 08:49:28 Randy Graham wrote:
> > Thanks Alex, some day I hope to be able to contribute to this effort and
> > this info is very helpful.
> >
> > Right now I have a 3.11 kernel that has been patched for the beaglebone
> > (which is not mainlined) and was wondering how to patch it with the
> latest
> > linux-zigbee-devel updates.
> Hi Randy,
>
> assuming you have a git checkout of the beaglebone-linux git repo, you
> could
> "git remote add davem-net-next
> git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git" Dave's
> net-
> next as an additional remote to your checkout.
>
> With "git merge-base  davem-net-next/master" you can
> find
> the last common commit.
>
> With "
> git log .. -- drivers/net/ieee802154/
> net/mac802154/ net/ieee802154/ | grep "^commit" >
> 154-commits-in-net-next-not-
> present-in-beaglebone
> "
> you could figure out the commits that touched 802154 relevant directories.
> From there:
> * reverse the lines in the file 154-commits-in-net-next-not-present-in-
> beaglebone
> * cherry pick those commits (and cross your fingers, that they apply
> cleanly)
>
> I'd love to hear about other easier ways of doing this.
>
> Markus
>
> > I really just want to catch updates to 802.15.4 and 6Lowpan and
> understand
> > how to merge and what to merge into my custom kernel tree.
> >
> > -Randy
> >
> > On Thu, Sep 26, 2013 at 4:59 AM, Alexander Aring
> wrote:
> > > Hi Randy,
> > >
> > > On Wed, Sep 25, 2013 at 08:06:33PM -0700, Randy Graham wrote:
> > > > Hello,
> > > >
> > > > I would like to better understand how patches here make it into the
> > > > mainline.
> > >
> > > Ok.
> > >
> > > > I understand that patches here go to Dave Millers net-next repo, but
> > > > when
> > > > or how often do they get merged into the mainline ?
> > >
> > > First it's good to send the patches to this list, if somebody has
> > > improvements, fixes or other issues you need to change that.
> > >
> > > After this you can send it to net-next mailinglist and David Miller
> > > takes this patches and put it into his net-next repo(depends if all
> > > seems ok). Then David Miller sends a pull request to Linus and
> > > Linus merge it into mainline.
> > >
> > > I don't know the exact circle of this, visit kernel.org for more
> > > information.
> > >
> > > To make patches for linux-zigbee-devel:
> > >
> > > 1. Your patches MUST based on net-next branch, because David need to
> > >
> > >merge it.
> > >
> > > 2. You MUST create your patches with git. See git format-patch.
> > >
> > > 3. Before you send Patches you MUST run checkpatch on it. Checkpatch is
> > >
> > >a powerful perl script to check coding style issues. You can find it
> > >under scripts/checkpatch.pl in linux src tree.
> > >
> > > 3. The simplest way to send patches is the builtin mail-client into
> git.
> > >
> > >Checkout git send-email.
> > > >
> > > > Also, suppose I want to use the latest patches in net-next, how do I
> go
> > > > about manually merging them myself into my own local kernel tree ?
> > >
> > > Checkout [1] and create a branch on it with git.
> > >
> > > So that's a lot of git things, maybe just google it and take a git
> > > tutorial.
> > >
> > > [1] http://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git
> > >
> > > - Alex
> 
> | Dipl.-Ing. Markus Becker
> | Communication Networks
> | TZI - Center for Computing Technologies
> | University Bremen
> | Germany
> 
> | web: http://www-user.uni-bremen.de/~beckerm/
> | mailto: m...@comnets.uni-bremen.de
> | telephone: +49 421 218 62379
> | building: NW1 room: N2260
> 
>
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


Re: [Linux-zigbee-devel] How often is net-next merged with the mainline kernel and how to manually merge?

2013-09-26 Thread Randy Graham
Thanks Alex, Markus.

I am clearer on this now, thanks.


On Thu, Sep 26, 2013 at 10:10 AM, Alexander Aring wrote:

> Hi Randy,
>
> On Thu, Sep 26, 2013 at 09:47:41AM -0700, Randy Graham wrote:
> > Thank you Markus.
> >
> > It really does seem that I need to get smarter about Git :)
> >
> > Do all linux-zigbee-devel patches just affect 'net' and its
> subdirectories
> > or are other kernel source directories affected ?
>
> I have a backported net-next on my beaglebone kernel, too.
>
> Check for directories net/ieee802154, net/mac802154 and
> drivers/net/ieee802154, which Markus already mentioned.
>
> Check for the "git cherry-pick" command to get commits from the net-next
> remote.
>
> - Alex
>
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


[Linux-zigbee-devel] How to build latest net-next kernel for Ubuntu or other distro.

2013-10-30 Thread Randy Graham
Hello,

Is there a preferred desktop linux distro for testing net-next kernels on a
amd64 desktop machine ?

Ideally, I would like to run the latest net-next kernel on my Ubuntu 13.10
amd64 dev box.

Are there any docs that show how to build a net-next kernel for use with
Ubuntu or other preferred distro ?

I tried the steps here,
http://blog.avirtualhome.com/compile-mainline-kernel-ubuntu/, with net-next
but compilation failed when building independent packages (fakeroot
debian/rules binary-indep).

Thanks for any help.

-Randy
--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


Re: [Linux-zigbee-devel] How to build latest net-next kernel for Ubuntu or other distro.

2013-10-31 Thread Randy Graham
Once again you have been very helpful, thanks Alan !

-Randy


On Thu, Oct 31, 2013 at 5:12 PM, Alan Ott  wrote:

> On 10/30/2013 11:01 PM, Randy Graham wrote:
>
>> Is there a preferred desktop linux distro for testing net-next kernels on
>> a amd64 desktop machine ?
>>
>>
> Most can build and run mainline kernels fine.
>
>
>  Ideally, I would like to run the latest net-next kernel on my Ubuntu
>> 13.10 amd64 dev box.
>>
>>
> Should be no problem.
>
>
>  Are there any docs that show how to build a net-next kernel for use with
>> Ubuntu or other preferred distro ?
>>
>>
> Linux Kernel in a nutshell:
> http://www.kroah.com/lkn/
>
>
>  I tried the steps here, http://blog.avirtualhome.com/**
>> compile-mainline-kernel-**ubuntu/<http://blog.avirtualhome.com/compile-mainline-kernel-ubuntu/>,
>> with net-next but compilation failed when building independent packages
>> (fakeroot debian/rules binary-indep).
>>
>>
> That's a lot of extra work and makes a deb package of a kernel. You don't
> need to do that.
>
> Basically:
> copy a config from /boot to .config
> cp /boot/config-$VERSION .config
> make oldconfig (optional)
> make menuconfig (optional)
> make
> make modules
> make modules_install
> make install
> update-grub
>
> Someone may say some of that is unnecessary or redundant. Whatever.
>
> Basically make install calls a distro hook which puts the kernel in the
> right place.
>
> Alan.
>
>
--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


[Linux-zigbee-devel] What hardware are folks here using to test 6Lowpan on Linux ?

2013-12-17 Thread Randy Graham
Hello,

I am curious to know what hardware folks here are using for 6lowpan, would
you mind sharing ?

I am trying to get a beaglebone with a mrf24j40 radio up and running with
6Lowpan and am having some difficulties.

Has anyone got this hardware combination to work with a recent kernel ?

I have created a DT fragment for my radio 'cape' as per
http://elinux.org/Capemgr and it loads and initializes fine with a 3.8
kernel, but when I try to use a more recent kernel, the DT fragment loads,
but the IRQ reported by the mrf24j40 driver is always zero. If I use the
3.8 kernel, the driver reports a correct IRQ.

Has anyone seen this issue ?

Thanks for any insights.

-Randy
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


Re: [Linux-zigbee-devel] What hardware are folks here using to test 6Lowpan on Linux ?

2013-12-20 Thread Randy Graham
Thanks Tony.

I have a couple of econotags so I'll give your driver and firmware a shot.

Ultimately I want to get this running on our custom freescale board with
mrf24j40 and have been using the beaglebone as a stepping stone, but
getting my econotags working would also be a good step.

I am running a very recent net-next kernel on my linux development machine,
so hopefully I am sufficiently up to date there.

Thanks again,

-Randy


On Fri, Dec 20, 2013 at 7:39 AM, Tony Cheneau wrote:

> Hi Randy,
>
> At work, I use some RedBee Econotags with a slightly modified version of
> the serial driver [1] and of the firmware [2]. It works reasonably well
> (I'm experiencing 5% packet loss maybe, but it might be due to some WiFi
> interferences).
>
> Regards,
> Tony
>
> [1]: https://gist.github.com/tcheneau/5752273
> [2]: https://github.com/nist-emntg/linux802154-serialdev
>
> Le 2013-12-17 17:55, Randy Graham a écrit :
>
>> Hello,
>>
>> I am curious to know what hardware folks here are using for 6lowpan,
>> would you mind sharing ?
>>
>> I am trying to get a beaglebone with a mrf24j40 radio up and running
>> with 6Lowpan and am having some difficulties.
>>
>> Has anyone got this hardware combination to work with a recent kernel ?
>>
>> I have created a DT fragment for my radio 'cape' as per
>> http://elinux.org/Capemgr [1] and it loads and initializes fine with a
>>
>> 3.8 kernel, but when I try to use a more recent kernel, the DT
>> fragment loads, but the IRQ reported by the mrf24j40 driver is always
>> zero. If I use the 3.8 kernel, the driver reports a correct IRQ.
>>
>> Has anyone seen this issue ?
>>
>> Thanks for any insights.
>>
>> -Randy
>>
>>
>>
>> Links:
>> --
>> [1] http://elinux.org/Capemgr
>>
>>
>> 
>> --
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=
>> /4140/ostg.clktrk
>>
>> ___
>> Linux-zigbee-devel mailing list
>> Linux-zigbee-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel
>>
>
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


Re: [Linux-zigbee-devel] What hardware are folks here using to test 6Lowpan on Linux ?

2013-12-20 Thread Randy Graham
Fantastic, thanks Tony.


I'll try it out this weekend.

-Randy


On Fri, Dec 20, 2013 at 10:17 AM, Tony Cheneau wrote:

> Hi Randy,
>
> It should work just fine with a recent net-next kernel. I tried it this
> week and it was working without modifications.
>
> If you are using my "code", you might also be interesting in using some
> recent linux-zigbee tools so that you can select an higher baudrate in the
> "izattach" tool. You'll have to ask the tool to work at 926000bps with my
> modified firmware.
>
> Also, you might be interested in [1] and [2] in order to set up a node (or
> to see how I set things up). This is some script I wrote some time ago in
> order to save some time when configuring my Econotags.
>
> Regards,
> Tony
>
> [1]: https://gist.github.com/tcheneau/5757352
> [2]: https://gist.github.com/tcheneau/8026274
>
> Le 2013-12-20 18:58, Randy Graham a écrit :
>
>> Thanks Tony.
>>
>> I have a couple of econotags so I'll give your driver and firmware a shot.
>>
>> Ultimately I want to get this running on our custom freescale board
>> with mrf24j40 and have been using the beaglebone as a stepping stone,
>> but getting my econotags working would also be a good step.
>>
>> I am running a very recent net-next kernel on my linux development
>> machine, so hopefully I am sufficiently up to date there.
>>
>> Thanks again,
>>
>> -Randy
>>
>> On Fri, Dec 20, 2013 at 7:39 AM, Tony Cheneau 
>> wrote:
>>
>>  Hi Randy,
>>>
>>> At work, I use some RedBee Econotags with a slightly modified version of
>>> the serial driver [1] and of the firmware [2]. It works reasonably well
>>> (I'm experiencing 5% packet loss maybe, but it might be due to some WiFi
>>> interferences).
>>>
>>> Regards,
>>> Tony
>>>
>>> [1]: https://gist.github.com/tcheneau/5752273 [4]
>>> [2]: https://github.com/nist-emntg/linux802154-serialdev [5]
>>>
>>>
>>> Le 2013-12-17 17:55, Randy Graham a écrit :
>>>
>>>  Hello,
>>>>
>>>> I am curious to know what hardware folks here are using for 6lowpan,
>>>> would you mind sharing ?
>>>>
>>>> I am trying to get a beaglebone with a mrf24j40 radio up and running
>>>> with 6Lowpan and am having some difficulties.
>>>>
>>>> Has anyone got this hardware combination to work with a recent kernel ?
>>>>
>>>> I have created a DT fragment for my radio 'cape' as per
>>>> http://elinux.org/Capemgr [1] [1] and it loads and initializes fine
>>>> with a
>>>>
>>>>
>>>> 3.8 kernel, but when I try to use a more recent kernel, the DT
>>>> fragment loads, but the IRQ reported by the mrf24j40 driver is always
>>>> zero. If I use the 3.8 kernel, the driver reports a correct IRQ.
>>>>
>>>> Has anyone seen this issue ?
>>>>
>>>> Thanks for any insights.
>>>>
>>>> -Randy
>>>>
>>>> Links:
>>>> --
>>>> [1] http://elinux.org/Capemgr [1]
>>>>
>>>>
>>>>
>>>> 
>>>> --
>>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>>> organizations don't have a clear picture of how application performance
>>>> affects their revenue. With AppDynamics, you get 100% visibility into
>>>> your
>>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
>>>> AppDynamics Pro!
>>>>
>>>>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=
>>>> /4140/ostg.clktrk [2]
>>>>
>>>>
>>>> ___
>>>> Linux-zigbee-devel mailing list
>>>> Linux-zigbee-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel [3]
>>>>
>>>
>>
>>
>> Links:
>> --
>> [1] http://elinux.org/Capemgr
>> [2]
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&;
>> amp;iu=/4140/ostg.clktrk<http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk>
>> [3] https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel
>> [4] https://gist.github.com/tcheneau/5752273
>> [5] https://github.com/nist-emntg/linux802154-serialdev
>>
>
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


Re: [Linux-zigbee-devel] What hardware are folks here using to test 6Lowpan on Linux ?

2013-12-21 Thread Randy Graham
Awesome, thanks Craig!

Yes, I had changed from gpio1 to gpio2 to get it to load without errors
with 3.8 .

Where in the kernel does the DTS get parsed ?
I'd like to look at it to understand it better.

Thanks again for your help, this is gold.

-Randy


On Sat, Dec 21, 2013 at 4:29 AM, Craig Peacock <
craig.peacock.2...@beyondlogic.org> wrote:

>
> Randy,
>
> Yes, I have seen the issue. In your device tree file
> (cape-bone-mrf24j40-00A0.dts) try changing :
>
> interrupt-parent = <&gpio2>;
> interrupts = <29>;
>
> to:
> #interrupt-cells = <2>;
> interrupt-parent = <&gpio1>;
> interrupts = <29 0x2>;
>
> and recompiling. I'm running 3.12.3 on the Beaglebone Black and it appears
> to be working - I can physically connect and disconnect the interrupt to
> see it working.
>
> This was my Christmas holiday job to work on this issue - I've only
> started a couple of hours ago, so I've yet to work out if its a bug or an
> intentional change, and when it occured. I'll do a little bit more digging
> and investigation in the next couple of days.
>
> The second interrupt parameter is flags specifying trigger and int levels
> (0x02 is -ve edge triggered) and is documented in:
> Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
>
> Regards,
>
> Craig
>
>
>
> On 18/12/2013 3:25 AM, Randy Graham wrote:
>
>  Hello,
>
>  I am curious to know what hardware folks here are using for 6lowpan,
> would you mind sharing ?
>
> I am trying to get a beaglebone with a mrf24j40 radio up and running with
> 6Lowpan and am having some difficulties.
>
>  Has anyone got this hardware combination to work with a recent kernel ?
>
> I have created a DT fragment for my radio 'cape' as per
> http://elinux.org/Capemgr and it loads and initializes fine with a 3.8
> kernel, but when I try to use a more recent kernel, the DT fragment loads,
> but the IRQ reported by the mrf24j40 driver is always zero. If I use the
> 3.8 kernel, the driver reports a correct IRQ.
>
>  Has anyone seen this issue ?
>
>  Thanks for any insights.
>
>  -Randy
>
>
>
>
> --
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics 
> Pro!http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>
>
>
> ___
> Linux-zigbee-devel mailing 
> listLinux-zigbee-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel
>
>
>
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


Re: [Linux-zigbee-devel] What hardware are folks here using to test 6Lowpan on Linux ?

2013-12-23 Thread Randy Graham
Hi Tony,

Thanks for your help, just one more question.

Exactly what firmware do I need to flash to the econotag for use with your
serial driver ?

There seem to be a few images that get built under linux802154_serialdev
that I could flash.

-Randy



On Fri, Dec 20, 2013 at 10:17 AM, Tony Cheneau wrote:

> Hi Randy,
>
> It should work just fine with a recent net-next kernel. I tried it this
> week and it was working without modifications.
>
> If you are using my "code", you might also be interesting in using some
> recent linux-zigbee tools so that you can select an higher baudrate in the
> "izattach" tool. You'll have to ask the tool to work at 926000bps with my
> modified firmware.
>
> Also, you might be interested in [1] and [2] in order to set up a node (or
> to see how I set things up). This is some script I wrote some time ago in
> order to save some time when configuring my Econotags.
>
> Regards,
> Tony
>
> [1]: https://gist.github.com/tcheneau/5757352
> [2]: https://gist.github.com/tcheneau/8026274
>
> Le 2013-12-20 18:58, Randy Graham a écrit :
>
>> Thanks Tony.
>>
>> I have a couple of econotags so I'll give your driver and firmware a shot.
>>
>> Ultimately I want to get this running on our custom freescale board
>> with mrf24j40 and have been using the beaglebone as a stepping stone,
>> but getting my econotags working would also be a good step.
>>
>> I am running a very recent net-next kernel on my linux development
>> machine, so hopefully I am sufficiently up to date there.
>>
>> Thanks again,
>>
>> -Randy
>>
>> On Fri, Dec 20, 2013 at 7:39 AM, Tony Cheneau 
>> wrote:
>>
>>  Hi Randy,
>>>
>>> At work, I use some RedBee Econotags with a slightly modified version of
>>> the serial driver [1] and of the firmware [2]. It works reasonably well
>>> (I'm experiencing 5% packet loss maybe, but it might be due to some WiFi
>>> interferences).
>>>
>>> Regards,
>>> Tony
>>>
>>> [1]: https://gist.github.com/tcheneau/5752273 [4]
>>> [2]: https://github.com/nist-emntg/linux802154-serialdev [5]
>>>
>>>
>>> Le 2013-12-17 17:55, Randy Graham a écrit :
>>>
>>>  Hello,
>>>>
>>>> I am curious to know what hardware folks here are using for 6lowpan,
>>>> would you mind sharing ?
>>>>
>>>> I am trying to get a beaglebone with a mrf24j40 radio up and running
>>>> with 6Lowpan and am having some difficulties.
>>>>
>>>> Has anyone got this hardware combination to work with a recent kernel ?
>>>>
>>>> I have created a DT fragment for my radio 'cape' as per
>>>> http://elinux.org/Capemgr [1] [1] and it loads and initializes fine
>>>> with a
>>>>
>>>>
>>>> 3.8 kernel, but when I try to use a more recent kernel, the DT
>>>> fragment loads, but the IRQ reported by the mrf24j40 driver is always
>>>> zero. If I use the 3.8 kernel, the driver reports a correct IRQ.
>>>>
>>>> Has anyone seen this issue ?
>>>>
>>>> Thanks for any insights.
>>>>
>>>> -Randy
>>>>
>>>> Links:
>>>> --
>>>> [1] http://elinux.org/Capemgr [1]
>>>>
>>>>
>>>>
>>>> 
>>>> --
>>>> Rapidly troubleshoot problems before they affect your business. Most IT
>>>> organizations don't have a clear picture of how application performance
>>>> affects their revenue. With AppDynamics, you get 100% visibility into
>>>> your
>>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
>>>> AppDynamics Pro!
>>>>
>>>>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=
>>>> /4140/ostg.clktrk [2]
>>>>
>>>>
>>>> ___
>>>> Linux-zigbee-devel mailing list
>>>> Linux-zigbee-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel [3]
>>>>
>>>
>>
>>
>> Links:
>> --
>> [1] http://elinux.org/Capemgr
>> [2]
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&;
>> amp;iu=/4140/ostg.clktrk<http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk>
>> [3] https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel
>> [4] https://gist.github.com/tcheneau/5752273
>> [5] https://github.com/nist-emntg/linux802154-serialdev
>>
>
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


Re: [Linux-zigbee-devel] What hardware are folks here using to test 6Lowpan on Linux ?

2013-12-30 Thread Randy Graham
Hi Tony,

I apologize if this is a repost, my previous post may have been rejected
due to excessive length, so I'll keep this short :)

I have flashed my econotag and patched and installed the serial driver per
this thread but am seeing this error when I run set-serial.sh.

Traceback (most recent call last):
  File "/sbin/set-econotag.py", line 75, in 
cn = DQ(sys.argv[1],baudrate=921600)
TypeError: __init__() got an unexpected keyword argument 'baudrate'


Hopefully this points to an obvious issue with my setup, do you have any
thoughts ?

I can attach logs of my terminal session and dmesg output if that helps.

Thanks for any insights you may have into this.

-Randy
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel


Re: [Linux-zigbee-devel] What hardware are folks here using to test 6Lowpan on Linux ?

2013-12-31 Thread Randy Graham
Hi Tony,

No problem and no apologies needed at all, I am just very grateful for the
help you have provided and the work you have done.

I'll give the patches a shot and let you know how it goes.

-Randy


On Tue, Dec 31, 2013 at 8:55 AM, Tony Cheneau wrote:

> Hi Randy,
>
> I'm sorry I wasted your time like this. The set-econotag.py script uses
> some modifications I made to the lowpan-tools-0.3.tar.gz a while ago (so
> long that I forgot about it).
> I attached my patches to this email.
>
> I haven't submitted these patches upstream for now is because they
> probably would need some cleanup (and as you can see very few people
> actually need them).
>
> Let me know if it fixes the issue for you.
>
> Regards,
> Tony
>
> Le 2013-12-30 18:33, Randy Graham a écrit :
>
>> Hi Tony,
>>
>>
>> I apologize if this is a repost, my previous post may have been
>> rejected due to excessive length, so I'll keep this short :)
>>
>> I have flashed my econotag and patched and installed the serial
>> driver per this thread but am seeing this error when I run
>> set-serial.sh.
>>
>> Traceback (most recent call last):
>>File "/sbin/set-econotag.py", line 75, in 
>> cn = DQ(sys.argv[1],baudrate=921600)
>> TypeError: __init__() got an unexpected keyword argument 'baudrate'
>>
>> Hopefully this points to an obvious issue with my setup, do you have
>> any thoughts ?
>>
>> I can attach logs of my terminal session and dmesg output if that helps.
>>
>> Thanks for any insights you may have into this.
>>
>> -Randy
>>
>
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel