Welcome, Guest

Author Topic: switching off ethernet leads to Internal Kernel Error  (Read 1591 times)

MichaelA

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
switching off ethernet leads to Internal Kernel Error
« on: May 16, 2014, 04:53:25 PM »
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

  • Hero Member
  • *****
  • Posts: 1725
  • Karma: +33/-48
Re: switching off ethernet leads to Internal Kernel Error
« Reply #1 on: May 16, 2014, 08:02:23 PM »
Probably a driver bug.  Could be worth reporting on linux-sunxi.

John

MichaelA

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: switching off ethernet leads to Internal Kernel Error
« Reply #2 on: May 19, 2014, 12:58:41 PM »
I tested this also with thecurrent kernel version 3.4.90+ -> is the same behavior -> so I will report a bug

Michael