ev3dev / ev3dev

ev3dev meta - bug tracking, wiki and releases
http://www.ev3dev.org
GNU General Public License v2.0
639 stars 85 forks source link

motor attributes missing at kernel 3.16.1-3-ev3dev #160

Closed BertLindeman closed 10 years ago

BertLindeman commented 10 years ago

Cannot find the fields to control motor(s) on this kernel. Removed and re-plugged ev3 motor into port B and port D. dmesg shows:

ev3-output-port outD: Removed device 'outD:motor'
ev3-output-port outD: Added new device 'outD:motor'
ev3-output-port outB: Removed device 'outB:motor'
ev3-output-port outB: Added new device 'outB:motor'

So motor is recognized.

Looking with ls -l /sys/class/tacho-motor shows nothing.

Tried to find the fields like this: find /sys/ -name "duty_cycle*" and find /sys/ -name pulses_per_second_sp

Nothing . . .

No motor port has been disabled this time. Rebooted with output port 1 disabled to see if that makes a difference. Sep 28 21:32:43 ev3dev kernel: legoev3-ports legoev3-ports: Output port outA is disabled.

No difference...

These files are present:

 find /sys -name "*motor*"
/sys/bus/legoev3/devices/outD:motor
/sys/bus/legoev3/devices/outB:motor
/sys/bus/legoev3/devices/outC:motor
/sys/bus/legoev3/drivers/ev3-tacho-motor
/sys/devices/platform/legoev3-ports/outB/outB:motor
/sys/devices/platform/legoev3-ports/outC/outC:motor
/sys/devices/platform/legoev3-ports/outD/outD:motor
/sys/class/tacho-motor
/sys/module/ev3_tacho_motor
/sys/module/ev3_tacho_motor/drivers/legoev3:ev3-tacho-motor
/sys/module/tacho_motor_class
/sys/module/tacho_motor_class/holders/ev3_tacho_motor
/sys/module/legoev3_ports/holders/ev3_tacho_motor
dlech commented 10 years ago

Hmm... wonder if I broke the driver name matching with the changes I made for sensors. I'll look in to it.

dlech commented 10 years ago

Fix is released. Also apt-get dist-upgrade worked for me this time.

BertLindeman commented 10 years ago

For me too. Just do not understand the difference in processing of the two firmware pacakges. It maybe related to the install problems I had some weeks ago, I do not know. rtl8192cu-modules gets removed and a new version installed. rtl8188eu-modules just installs a new version.

Part of the apt-get dist-upgrade output:

The following packages will be REMOVED:
   rtl8192cu-modules-3.16.1-3-ev3dev (4.0.2-9000.20131029-0ev3dev1+4)
The following NEW packages will be installed:
   linux-image-3.16.1-4-ev3dev (1)
   rtl8188eu-modules-3.16.1-4-ev3dev (3+1)
   rtl8192cu-modules-3.16.1-4-ev3dev (4.0.2-9000.20131029-0ev3dev1+1)

Not important I assume.

Status @frbernat

Thanks @dlech

dlech commented 10 years ago

the difference in processing of the two firmware packages.

One package contains some files in /etc/. When upgrading the package names are actually different, not just the version, so apt sees this as a completely different package trying to write over the file of a different package. The other doesn't have extra files, so the new package can live side-by-side with the old one. I should probably change this so that if you roll back to an older kernel version, your wireless doesn't break.

BertLindeman commented 10 years ago

Ah, Thanks for the explanation. Would be nice to be able to roll back. Maybe. Personally I would go back to a previously saved backup image. Which reminds me: hi time for me to do the backup.