modprobe ftdi_sio - nonfunctional for (some) devices

Bug #1595656 reported by Hannu E K N
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-lts-xenial (Ubuntu)
Expired
Medium
Unassigned

Bug Description

$ cat /proc/version_signature
Ubuntu 4.2.0-27.32~14.04.1-generic 4.2.8-ckt1
---

---
Some background:

I have recently acquired a Flashforge Creator Pro 2016, a FDM/FFF 3D-printer that came with the [Open source "Sailfish" firmware][1].

Now to use the advanced features of the firmware you need to use "[ReplicatorG][2]" (free software) and connect to the printer using the provided USB-cable.

This relies on FTDI-based communications with it's ATMega 2560 -based controller board (Mightyboard 2560)

I can currently run Windows in a virtual machine (Virtualbox) and use ReplicatorG for the full set of features, including firmware updates (did that yesterday).

BUT, this is not possible using Ubuntu (14.04.4 and 16.04 installed and used in attempts)

From what I can see I should use
<pre>
sudo modprobe ftdi-sio
sudo chmod 666 /sys/bus/usb-serial/drivers/ftdi_sio/new_id
sudo echo "23c1 d314" > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
</pre>
... then simply connect the cable.

This DOES set up /dev/ttyUSB0 and /dev/ttyUSB1 as expected, but these are nonfunctional

What I see is this, in dmesg
<pre>
[ 2832.712115] usb 1-7: USB disconnect, device number 10
[ 2832.712430] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 2832.712457] ftdi_sio 1-7:1.0: device disconnected
[ 2832.712775] ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1
[ 2832.712815] ftdi_sio 1-7:1.1: device disconnected
[ 2840.832455] usb 1-7: new full-speed USB device number 11 using xhci_hcd
[ 2840.962313] usb 1-7: New USB device found, idVendor=23c1, idProduct=d314
[ 2840.962317] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[ 2840.962319] usb 1-7: Product: The Replicator
[ 2840.962321] usb 1-7: Manufacturer: MakerBot Industries
[ 2840.962322] usb 1-7: SerialNumber: XXXXXXXXXXXXXXXXXXXX
[ 2840.962443] usb 1-7: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[ 2840.962871] ftdi_sio 1-7:1.0: FTDI USB Serial Device converter detected
[ 2840.962898] usb 1-7: Detected FT2232C
[ 2840.962984] ftdi_sio ttyUSB0: Unable to read latency timer: -32
[ 2840.963048] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2840.963119] usb 1-7: FTDI USB Serial Device converter now attached to ttyUSB0
[ 2840.963188] ftdi_sio 1-7:1.1: FTDI USB Serial Device converter detected
[ 2840.963210] usb 1-7: Detected FT2232C
[ 2840.963273] ftdi_sio ttyUSB1: Unable to read latency timer: -32
[ 2840.963365] ftdi_sio ttyUSB1: Unable to write latency timer: -32
[ 2840.963423] usb 1-7: FTDI USB Serial Device converter now attached to ttyUSB1
[ 2840.977742] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[ 2840.977838] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2840.977932] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2840.978117] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2840.978207] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2840.978301] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2840.978393] ftdi_sio ttyUSB0: ftdi_set_termios error from disable flowcontrol urb
[ 2840.978581] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2840.978914] ftdi_sio ttyUSB1: ftdi_set_termios FAILED to set databits/stopbits/parity
[ 2840.979006] ftdi_sio ttyUSB1: ftdi_set_termios urb failed to set baudrate
[ 2840.979099] ftdi_sio ttyUSB1: urb failed to clear flow control
[ 2840.979274] ftdi_sio ttyUSB1: ftdi_set_termios urb failed to set baudrate
[ 2840.979372] ftdi_sio ttyUSB1: urb failed to set to xon/xoff flow control
[ 2840.979470] ftdi_sio ttyUSB1: Unable to write latency timer: -32
[ 2840.979568] ftdi_sio ttyUSB1: ftdi_set_termios error from disable flowcontrol urb
[ 2840.979763] ftdi_sio ttyUSB1: urb failed to set to xon/xoff flow control
[ 2841.078912] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2841.079142] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.079309] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2841.079437] ftdi_sio ttyUSB0: failed to get modem status: -32
[ 2841.079697] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[ 2841.079761] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2841.079858] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.080070] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.080176] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2841.080279] ftdi_sio ttyUSB0: ftdi_set_termios error from disable flowcontrol urb
[ 2841.080471] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.080571] ftdi_sio ttyUSB1: ftdi_set_termios urb failed to set baudrate
[ 2841.080768] ftdi_sio ttyUSB1: urb failed to set to xon/xoff flow control
[ 2841.180973] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2841.181177] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.181379] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2841.181500] ftdi_sio ttyUSB0: failed to get modem status: -32
[ 2841.181798] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[ 2841.181952] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2841.182050] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.182244] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.182341] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2841.182440] ftdi_sio ttyUSB0: ftdi_set_termios error from disable flowcontrol urb
[ 2841.182634] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.282904] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2841.283102] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.283262] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2841.283385] ftdi_sio ttyUSB0: failed to get modem status: -32
[ 2841.283691] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[ 2841.283856] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2841.283953] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.284150] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.284244] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2841.284342] ftdi_sio ttyUSB0: ftdi_set_termios error from disable flowcontrol urb
[ 2841.284535] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.384745] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2841.384976] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.385333] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2841.385495] ftdi_sio ttyUSB0: failed to get modem status: -32
[ 2841.386017] ftdi_sio ttyUSB0: ftdi_set_termios FAILED to set databits/stopbits/parity
[ 2841.386111] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2841.386208] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.386401] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.386498] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2841.386607] ftdi_sio ttyUSB0: ftdi_set_termios error from disable flowcontrol urb
[ 2841.386827] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.487043] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[ 2841.487240] ftdi_sio ttyUSB0: urb failed to set to xon/xoff flow control
[ 2841.487561] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[ 2841.487693] ftdi_sio ttyUSB0: failed to get modem status: -32
[ 2851.003248] ftdi_sio ttyUSB1: Unable to write latency timer: -32
</pre>

I also see
<pre>
$ ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 jun 23 19:13 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 jun 23 19:13 /dev/ttyUSB1

$ lsusb
...
Bus 001 Device 011: ID 23c1:d314
...

$ sudo modprobe -r ftdi_sio
[sudo] password for hannu:

$ lsusb -v -d 23c1:d314

Bus 001 Device 012: ID 23c1:d314
Couldn't open device, some information will be missing
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 2 Communications
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor 0x23c1
  idProduct 0xd314
  bcdDevice 0.01
  iManufacturer 1
  iProduct 2
  iSerial 220
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 62
    bNumInterfaces 2
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 100mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 2 Communications
      bInterfaceSubClass 2 Abstract (modem)
      bInterfaceProtocol 1 AT-commands (v.25ter)
      iInterface 0
      CDC Header:
        bcdCDC 10.01
      CDC ACM:
        bmCapabilities 0x06
          sends break
          line coding and serial state
      CDC Union:
        bMasterInterface 0
        bSlaveInterface 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 255
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 10 CDC Data
      bInterfaceSubClass 0 Unused
      bInterfaceProtocol 0
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x04 EP 4 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 1
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x83 EP 3 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0040 1x 64 bytes
        bInterval 1

</pre>

Now, this failure seems to fairly general, in googling I have come across a number of devices with very similar (if not the same) failure on all of them.

So it seems to be some sort of shortcoming of the `ftdi_sio` module.

HELP!?

  [1]: https://github.com/jetty840/Sailfish-MightyBoardFirmware
  [2]: http://www.sailfishfirmware.com/doc/install-software-reqs.html#x33-820006.2

Revision history for this message
Hannu E K N (hannu-n) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1595656

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.7 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7-rc4-yakkety/

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Hannu E K N (hannu-n) wrote :

linux-image-extra-3.13.0-24-generic ==> and all versions after it? Probably a few before it too.
It sure exists in the current 4.4 too (current for Ubuntu 16.04)

affects: linux (Ubuntu) → linux-lts-xenial (Ubuntu)
Revision history for this message
Hannu E K N (hannu-n) wrote :

Is there a VERY hands on guide on how to install the very latest kernel?

I know this is a question about installing .deb packages...
But which ones do I need? amd64 for sure, but there are several to choose from.
And how do I install them in a manner that makes then easily removable?

I'm sorry, but I'm not ready to gobble through pages of text to accomplish this.

Revision history for this message
Hannu E K N (hannu-n) wrote :

May I suggest that any mention of the link in #3 (above) be presented, like this.

QUOTE
 https://wiki.ubuntu.com/KernelMainlineBuilds at "Installing upstream kernels (manually)" ("uninstalling" is just slightly down from there)

UNQUOTE

Revision history for this message
Hannu E K N (hannu-n) wrote :
Download full text (3.6 KiB)

$ wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7-rc4-yakkety/{linux-headers-4.7.0-040700rc4-generic_4.7.0-040700rc4.201606201235_amd64.deb,linux-image-4.7.0-040700rc4-generic_4.7.0-040700rc4.201606201235_amd64.deb,linux-headers-4.7.0-040700rc4_4.7.0-040700rc4.201606201235_all.deb}
Downloaded: 3 files, 67M in 31s (2,19 MB/s)
$ sudo dpkg -i *.deb
[sudo] password for hannu:
Selecting previously unselected package linux-headers-4.7.0-040700rc4.
(Reading database ... 204098 files and directories currently installed.)
Preparing to unpack linux-headers-4.7.0-040700rc4_4.7.0-040700rc4.201606201235_all.deb ...
Unpacking linux-headers-4.7.0-040700rc4 (4.7.0-040700rc4.201606201235) ...
Selecting previously unselected package linux-headers-4.7.0-040700rc4-generic.
Preparing to unpack linux-headers-4.7.0-040700rc4-generic_4.7.0-040700rc4.201606201235_amd64.deb ...
Unpacking linux-headers-4.7.0-040700rc4-generic (4.7.0-040700rc4.201606201235) ...
Selecting previously unselected package linux-image-4.7.0-040700rc4-generic.
Preparing to unpack linux-image-4.7.0-040700rc4-generic_4.7.0-040700rc4.201606201235_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
Done.
Unpacking linux-image-4.7.0-040700rc4-generic (4.7.0-040700rc4.201606201235) ...
Setting up linux-headers-4.7.0-040700rc4 (4.7.0-040700rc4.201606201235) ...
Setting up linux-headers-4.7.0-040700rc4-generic (4.7.0-040700rc4.201606201235) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
Error! Bad return status for module build on kernel: 4.7.0-040700rc4-generic (x86_64)
Consult /var/lib/dkms/nvidia-361/361.42/build/make.log for more information.
Setting up linux-image-4.7.0-040700rc4-generic (4.7.0-040700rc4.201606201235) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-361.0.crash'
Error! Bad return status for module build on kernel: 4.7.0-040700rc4-generic (x86_64)
Consult /var/lib/dkms/nvidia-361/361.42/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
update-initramfs: Generating /boot/initrd.img-4.7.0-040700rc4-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4...

Read more...

Revision history for this message
Hannu E K N (hannu-n) wrote :
Download full text (5.2 KiB)

$ cat /var/lib/dkms/nvidia-361/361.42/build/make.log
...
In file included from ./arch/x86/include/asm/processor.h:15:0,
                 from ./arch/x86/include/asm/cpufeature.h:4,
                 from ./arch/x86/include/asm/thread_info.h:52,
                 from include/linux/thread_info.h:54,
                 from ./arch/x86/include/asm/preempt.h:6,
                 from include/linux/preempt.h:59,
                 from include/linux/spinlock.h:50,
                 from include/linux/mmzone.h:7,
                 from include/linux/gfp.h:5,
                 from include/linux/mm.h:9,
                 from /var/lib/dkms/nvidia-361/361.42/build/common/inc/nv-pgprot.h:17,
                 from /var/lib/dkms/nvidia-361/361.42/build/common/inc/nv-linux.h:17,
                 from /var/lib/dkms/nvidia-361/361.42/build/nvidia/os-mlock.c:15:
/var/lib/dkms/nvidia-361/361.42/build/nvidia/os-mlock.c: In function ‘os_lock_user_pages’:
./arch/x86/include/asm/current.h:17:17: warning: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
 #define current get_current()
                 ^
/var/lib/dkms/nvidia-361/361.42/build/nvidia/os-mlock.c:119:26: note: in expansion of macro ‘current’
     ret = get_user_pages(current, mm, (unsigned long)address,
                          ^
In file included from /var/lib/dkms/nvidia-361/361.42/build/common/inc/nv-pgprot.h:17:0,
                 from /var/lib/dkms/nvidia-361/361.42/build/common/inc/nv-linux.h:17,
                 from /var/lib/dkms/nvidia-361/361.42/build/nvidia/os-mlock.c:15:
include/linux/mm.h:1254:6: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
/var/lib/dkms/nvidia-361/361.42/build/nvidia/os-mlock.c:119:35: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Wint-conversion]
     ret = get_user_pages(current, mm, (unsigned long)address,
                                   ^
In file included from /var/lib/dkms/nvidia-361/361.42/build/common/inc/nv-pgprot.h:17:0,
                 from /var/lib/dkms/nvidia-361/361.42/build/common/inc/nv-linux.h:17,
                 from /var/lib/dkms/nvidia-361/361.42/build/nvidia/os-mlock.c:15:
include/linux/mm.h:1254:6: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
/var/lib/dkms/nvidia-361/361.42/build/nvidia/os-mlock.c:120:25: warning: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Wint-conversion]
             page_count, write, force, user_pages, NULL);
                         ^
In file included from /var/lib/dkms/nvidia-361/361.42/build/common/inc/nv-pgprot.h:17:0,
                 from /var/lib/dkms/nvidia-361/361.42/build/common/inc/nv-linux.h:17,
                 from /var/lib/dkms/nvidia-361/361.42/build/nvidia/os-mlock.c:15:
include/linux/mm.h:1254:6: note: expected ‘struct page **’ but argument is of type ‘NvBool {aka unsigned char}’
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
/var/lib/dkms/n...

Read more...

Revision history for this message
Hannu E K N (hannu-n) wrote :
Revision history for this message
Hannu E K N (hannu-n) wrote :

$ sudo dpkg-reconfigure nvidia-361
[sudo] password for hannu:
Stopping nvidia-persistenced
nvidia-persistenced: no process found
Done.
Removing all DKMS Modules
Done.
update-initramfs: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-4.4.0-22-generic
INFO:Enable nvidia-361
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Loading new nvidia-361-361.42 DKMS files...
Building for 4.4.0-22-generic and 4.7.0-040700rc4-generic
Building for architecture x86_64
Building initial module for 4.4.0-22-generic
Done.

nvidia_361:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-22-generic/updates/dkms/

nvidia_361_modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-22-generic/updates/dkms/

nvidia_361_uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-22-generic/updates/dkms/

depmod....

DKMS: install completed.
Building initial module for 4.7.0-040700rc4-generic
ERROR (dkms apport): kernel package linux-headers-4.7.0-040700rc4-generic is not supported
Error! Bad return status for module build on kernel: 4.7.0-040700rc4-generic (x86_64)
Consult /var/lib/dkms/nvidia-361/361.42/build/make.log for more information.
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-4.7.0-040700rc4-generic

Revision history for this message
Hannu E K N (hannu-n) wrote :

$ sudo apt-get purge nvidia-361 nvidia-opencl-icd-361 nvidia-prime nvidia-settings
[sudo] password for hannu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  nvidia-361* nvidia-opencl-icd-361* nvidia-prime* nvidia-settings*
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 339 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 237085 files and directories currently installed.)
Removing nvidia-361 (361.42-0ubuntu2) ...
Stopping nvidia-persistenced
nvidia-persistenced: no process found
Done.
Removing all DKMS Modules
Done.
update-alternatives: using /usr/lib/nvidia-361-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-361-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-361-prime/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-361-prime/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf (i386-linux-gnu_egl_conf) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa-egl/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) in auto mode
INFO:Disable nvidia-361
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
update-initramfs: deferring update (trigger activated)
Purging configuration files for nvidia-361 (361.42-0ubuntu2) ...
update-initramfs: deferring update (trigger activated)
Removing nvidia-opencl-icd-361 (361.42-0ubuntu2) ...
Purging configuration files for nvidia-opencl-icd-361 (361.42-0ubuntu2) ...
Removing nvidia-prime (0.8.2) ...
Purging configuration files for nvidia-prime (0.8.2) ...
Removing nvidia-settings (361.42-0ubuntu1) ...
Purging configuration files for nvidia-settings (361.42-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-4.7.0-040700rc4-generic
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160523-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...

$ sudo reboot

Revision history for this message
Hannu E K N (hannu-n) wrote :
Download full text (13.6 KiB)

$ sudo apt-get purge linux-headers-4.7.0-040700rc4 linux-headers-4.7.0-040700rc4-generic linux-image-4.7.0-040700rc4-generic
...

$ cat ../inst.sh
sudo dpkg -i *.deb
sudo update-initramfs -u
sudo update-grub2

$ . ../inst.sh
Selecting previously unselected package linux-headers-4.7.0-040700rc4.
(Reading database ... 203148 files and directories currently installed.)
Preparing to unpack linux-headers-4.7.0-040700rc4_4.7.0-040700rc4.201606201235_all.deb ...
Unpacking linux-headers-4.7.0-040700rc4 (4.7.0-040700rc4.201606201235) ...
Selecting previously unselected package linux-headers-4.7.0-040700rc4-generic.
Preparing to unpack linux-headers-4.7.0-040700rc4-generic_4.7.0-040700rc4.201606201235_amd64.deb ...
Unpacking linux-headers-4.7.0-040700rc4-generic (4.7.0-040700rc4.201606201235) ...
Selecting previously unselected package linux-image-4.7.0-040700rc4-generic.
Preparing to unpack linux-image-4.7.0-040700rc4-generic_4.7.0-040700rc4.201606201235_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
Done.
Unpacking linux-image-4.7.0-040700rc4-generic (4.7.0-040700rc4.201606201235) ...
Setting up linux-headers-4.7.0-040700rc4 (4.7.0-040700rc4.201606201235) ...
Setting up linux-headers-4.7.0-040700rc4-generic (4.7.0-040700rc4.201606201235) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
Setting up linux-image-4.7.0-040700rc4-generic (4.7.0-040700rc4.201606201235) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.7.0-040700rc4-generic /boot/vmlinuz-4.7.0-040700rc4-generic
update-initramfs: Generating /boot/initrd.img-4.7.0-040700rc4-generic
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/sw_method_init.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/sw_bundle_init.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/sw_nonctx.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/sw_ctx.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/gpccs_sig.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/gpccs_data.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/gpccs_inst.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/gpccs_bl.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/fecs_sig.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/fecs_data.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gm206/gr/fecs_inst.bin for module nouveau
W: Possible missing ...

Revision history for this message
Hannu E K N (hannu-n) wrote :

I get no entry for 4.7 in the grub boot menu.

All attempts to get to 4.7 was done on 16.04.

End of tries for now.
I have other things to do.

Revision history for this message
Hannu E K N (hannu-n) wrote :

$ apport-collect 1595656
/usr/share/apport/apport-gtk:16: PyGIWarning: Wnck was imported without specifying a version first. Use gi.require_version('Wnck', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GLib, Wnck, GdkX11, Gdk
The authorization page:
 (https://launchpad.net/+authorize-token?oauth_token=wfwD64wHlJgZ2nJxKf50&allow_permission=DESKTOP_INTEGRATION)
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Waiting to hear from Launchpad about your decision...
Package linux-lts-xenial not installed and no hook available, ignoring
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux-lts-xenial (Ubuntu) because there has been no activity for 60 days.]

Changed in linux-lts-xenial (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.