Hello list,

I've been struggling to get the RTNet + RTIPv4 part to work on a Zynq 7000 
board. Using source code from stable Xenomai 3.0.9 tarball, and patching a 
vanilla 4.4.189 linux.
I consistently had the kernel crash (0 pointer dereference error) at startup 
when enabling either RTIPv4, RTCFG or RTMAC.

I finally found that there "might" be a problem with the Makefile in 
kernel/drivers/net/stack.
It turns out that (on my system at least), the order in which the protocol 
stacks appear in the Makefile is wrong because (I running a kernel with 
everything builtin, no modules) the protocols are loaded in that order, and 
thus, (in my case) RTIPv4 gets initialized before stack_mgr does which cause it 
to fail while registering (calling __rtdev_add_pack with a not initialized 
rt_packets array).

When I reorder the protocols in the Makefile, everything works flawlessly.

I can provide a patch if this needs to be fixed.

Thanks

François

Reply via email to