[Linux-zigbee-devel] Unbalanced enable for IRQ problem in driver

2014-01-06 Thread Varka Bhadram
hai.. I got the following error while doing reception of the packets What is the reason how can i overcome ? [ 50.826638] [ cut here ] [ 50.826690] WARNING: CPU: 0 PID: 136 at kernel/irq/manage.c:437 enable_irq+0x50/0x6c() [ 50.826705] Unbalanced enable for IRQ

Re: [Linux-zigbee-devel] Latest linux-zigbee sources

2014-01-06 Thread Alexander Aring
On Mon, Jan 06, 2014 at 06:47:35PM +0100, Cristiano wrote: > On 01/06/2014 06:10 PM, Alexander Aring wrote: > >On Mon, Jan 06, 2014 at 06:00:11PM +0100, Cristiano wrote: > >>On 01/06/2014 05:39 PM, Alexander Aring wrote: > >>Hi, > >> In my kernel configuration I have only the option to build 6low

Re: [Linux-zigbee-devel] Latest linux-zigbee sources

2014-01-06 Thread Cristiano
On 01/06/2014 06:10 PM, Alexander Aring wrote: > On Mon, Jan 06, 2014 at 06:00:11PM +0100, Cristiano wrote: >> On 01/06/2014 05:39 PM, Alexander Aring wrote: >> Hi, >>In my kernel configuration I have only the option to build 6lowpan >> as a module (and this also builds reassembly as a module).

Re: [Linux-zigbee-devel] Latest linux-zigbee sources

2014-01-06 Thread Alexander Aring
Hi, another issue is the lot of skb_clones in the code. I tried to remove it but I got some NULL pointer dereferencing afterwards. I need to figure out more how the memory management with skb works. This is another issue, but the current code do this also and I don't wanna touch this right now, w

Re: [Linux-zigbee-devel] Latest linux-zigbee sources

2014-01-06 Thread Alexander Aring
On Mon, Jan 06, 2014 at 05:20:24PM +0100, Cristiano wrote: > Hi, > The kernel oops can be fixed by removing/commenting the __inline > qualifier in the signature of: > > int /* __init */ lowpan_net_frag_init(void) > Thanks, I will check this. I must confess that I never build it as module. :-)

Re: [Linux-zigbee-devel] Latest linux-zigbee sources

2014-01-06 Thread Alexander Aring
On Mon, Jan 06, 2014 at 06:00:11PM +0100, Cristiano wrote: > On 01/06/2014 05:39 PM, Alexander Aring wrote: > Hi, > In my kernel configuration I have only the option to build 6lowpan > as a module (and this also builds reassembly as a module). I don't > have an option to compile them in the kerne

Re: [Linux-zigbee-devel] Latest linux-zigbee sources

2014-01-06 Thread Cristiano
On 01/06/2014 05:39 PM, Alexander Aring wrote: Hi, In my kernel configuration I have only the option to build 6lowpan as a module (and this also builds reassembly as a module). I don't have an option to compile them in the kernel. About testing the reassembly, do you have any suggestion/test c

Re: [Linux-zigbee-devel] Latest linux-zigbee sources

2014-01-06 Thread Cristiano
Hi, The kernel oops can be fixed by removing/commenting the __inline qualifier in the signature of: int /* __init */ lowpan_net_frag_init(void) in reassembly.c. I'm finally able to complete the steps described in: http://sourceforge.net/apps/trac/linux-zigbee/wiki/GettingStarted-0.2 About

Re: [Linux-zigbee-devel] How to enable the LoWPAN interface in linux ?

2014-01-06 Thread Christophe Aeschlimann
Le 06.01.2014 11:04, Varka Bhadram a écrit : > hai... > I used the following commands to enable the wpan and lowpan interface... > # iz add wpan-phy0 > # ip link set wpan0 address a0:0:0:0:0:0:0:1 > # ifconfig wpan0 up > # iz set wpan0 abcd 8001 11 > # ip link add link wpan0 name lowpan0 type lowpa

Re: [Linux-zigbee-devel] How to enable the LoWPAN interface in linux ?

2014-01-06 Thread Varka Bhadram
small correction : Link encap for both lowpan and wpan intefaces is UNSPEC. 8 packets are: 41 c8 dd 22 00 ff ff 01 00 00 00 00 00 00 a0 79 4b 00 16 3a 00 05 02 00 00 01 00 8f 00 6f 89 00 00 00 01 04 00 00 00 ff 02 00 00 00 00 00 00 00 00 00 01 ff 00 00 01 [ 56.020564] 41 c8 de 22 00 ff ff 01

Re: [Linux-zigbee-devel] How to enable the LoWPAN interface in linux ?

2014-01-06 Thread Varka Bhadram
hai... I used the following commands to enable the wpan and lowpan interface... # iz add wpan-phy0 # ip link set wpan0 address a0:0:0:0:0:0:0:1 # ifconfig wpan0 up # iz set wpan0 abcd 8001 11 # ip link add link wpan0 name lowpan0 type lowpan # ip link set lowpan0 address a0:0:0:0:0:0:0:1 # ip link

Re: [Linux-zigbee-devel] Latest linux-zigbee sources

2014-01-06 Thread Cristiano
Hi, I've applied the linux-zigbee patches at: https://github.com/linux-wpan/linux-net-next/commits/6lowpan_pending_patches to the Raspberry Pi kernel 3.10.y and 3.12.y When I try to load the 6lowpan kernel I get this kernel oops: pi@raspberrypi:~$ sudo modprobe 6lowpan [ 48.761157] Unable