switching off ethernet leads to Internal Kernel Error

Started by MichaelA, May 16, 2014, 04:53:25 PM

Previous topic - Next topic

MichaelA

For some software tests on my a10-Lime board I need to disconnect the ethernet device from the driver. (OS: debian and sunxi-kernel Linux-3.4.67+)
I do this by using the bind/unbind interface. Unbinding the ethernet device does the job - no eth0 available anymore - but leads to a kernel error. A hole lot of kernel-messages appear from syslogd.
I used the following command to unbind:
  # echo sunxi_emac.0 > /sys/bus/platform/drivers/sunxi_emac/unbind

Rebinding does not work. The command
  # echo sunxi_emac.0 > /sys/bus/platform/drivers/sunxi_emac/bind
responds with
  echo: write error: No such device

Is this a sunxi-linux problem or has this to do with the a10-Lime hardware?

BTW: on a raspberry pi this action works as expected

JohnS

Probably a driver bug.  Could be worth reporting on linux-sunxi.

John

MichaelA

I tested this also with thecurrent kernel version 3.4.90+ -> is the same behavior -> so I will report a bug

Michael