ncsw_config.mk missing from linux-lowlatency kernel

Bug #1299878 reported by Forest
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Studio
Won't Fix
Undecided
Unassigned
linux-lowlatency (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm on Ubuntu Studio 14.04 Beta 2 (upgraded through apt-get from Beta 1,) and I'm trying to compile my own low-latency kernel with make-kpkg. I just want to remove xhci-hda and ehci-hda from the kernel so my USB Audio Interface will work correctly. I modify the config file via make menuconfig, but then when I run

sudo make-kpkg clean

I get the following output:

exec make kpkg_version=12.036+nmu3 -f /usr/share/kernel-package/ruleset/minimal.mk clean
====== making target minimal_clean [new prereqs: ]======
This is kernel package version 12.036+nmu3.
test ! -f .config || cp -pf .config config.precious
test ! -e stamp-building || rm -f stamp-building
test ! -f Makefile || \
            make ARCH=i386 distclean
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-12-lowlatency'
  CLEAN .
/usr/src/linux-headers-3.13.0-12-lowlatency/drivers/net/dpa/Makefile:7: /usr/src/linux-headers-3.13.0-12-lowlatency/drivers/net/dpa/NetCommSw/ncsw_config.mk: No such file or directory
make[4]: *** No rule to make target `/usr/src/linux-headers-3.13.0-12-lowlatency/drivers/net/dpa/NetCommSw/ncsw_config.mk'. Stop.
make[3]: *** [drivers/net/dpa] Error 2
make[2]: *** [drivers/net] Error 2
make[1]: *** [_clean_drivers] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-12-lowlatency'
make: *** [minimal_clean] Error 2

The same thing happens with 3.13.0-20-lowlatency as well. I have the build-essential package installed as well as linux-headers-lowlatency and linux-headers-generic. I think the device driver is just missing.

Revision history for this message
Forest (fori-fisher) wrote :
Download full text (3.4 KiB)

Perhaps this is relevant to this bug. I just ran

sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f dist-upgrade

and thereby installed the new linux-headers-3.13.0-22-lowlatency. In the process, I get these errors:

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 3.13.0-22-lowlatency /boot/vmlinuz-3.13.0-22-lowlatency
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-22-lowlatency /boot/vmlinuz-3.13.0-22-lowlatency
Error! Bad return status for module build on kernel: 3.13.0-22-lowlatency (i686)
Consult /var/lib/dkms/openvswitch/2.0.1+git20140120/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-22-lowlatency /boot/vmlinuz-3.13.0-22-lowlatency
update-initramfs: Generating /boot/initrd.img-3.13.0-22-lowlatency
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-22-lowlatency /boot/vmlinuz-3.13.0-22-lowlatency
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-22-lowlatency /boot/vmlinuz-3.13.0-22-lowlatency
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.13.0-22-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-22-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-22-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-22-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-20-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-20-lowlatency
Found linux image: /boot/vmlinuz-3.13.0-12-lowlatency
Found initrd image: /boot/initrd.img-3.13.0-12-lowlatency
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Setting up libsystemd-journal0:i386 (204-5ubuntu16) ...
Setting up python3-cairo (1.10.0+dfsg-3ubuntu2) ...
Setting up python3-gi-cairo (3.12.0-1) ...
Setting up python3-pexpect (3.1-1) ...
Setting up catfish (1.0.2-2) ...
Setting up libbaloocore4 (4:4.12.97-0ubuntu1) ...
Setting up libbalooxapian4 (4:4.12.97-0ubuntu1) ...
Setting up libbaloofiles4 (4:4.12.97-0ubuntu1) ...
Setting up linux-headers-3.13.0-22 (3.13.0-22.44) ...
Setting up linux-headers-3.13.0-22-generic (3.13.0-22.44) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.13.0-22-generic /boot/vmlinuz-3.13.0-22-generic
Error! Bad return status for module build on kernel: 3.13.0-22-generic (i686)
Consult /var/lib/dkms/openvswitch/2.0.1+git20140120/build/make.log for more information.
Setting up linux-headers-3.13.0-22-lowlatency (3.13.0-22.44) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.13.0-22-lowlatency /boot/vmlinuz-3.13.0-22-lowlatency
Error! Bad return status for module build on kernel: 3.13.0-22-lowlatency (i686)
Consult /var/lib/dkms/openvswitch/2.0.1+git20140120/build/make.log for more information.
Setting up linux-headers-generic (3.13.0.22.26) ...
Setting up linux-image-lowlatency (3.13.0.22.26) ...
Setting up linux-headers-lowlatency (3.13.0.22.26) ...
Setting up linux-lowlaten...

Read more...

Revision history for this message
Forest (fori-fisher) wrote :
Download full text (4.3 KiB)

Two weeks later and this problem persists. It basically makes my computer unusable for the purpose I bought it, which is making me really angry at Ubuntu. What kind of distribution ships a buggy usb3.0 driver built into the kernel (rather than as a module)??

I got desperate today and tried making a fake ncsw_config.mk file. I just went to that directory, opened a blank file in ncsw_config.mk in vi, and then saved it. When I ran make-kpkg clean, it accepted the fake file, but then told me

/usr/src/linux-headers-3.13.0-24-lowlatency/ubuntu/aufs/Makefile:2: ubuntu/aufs/magic.mk: No such file or directory

so I went to /usr/src/linux-headers-3.13.0-24-lowlatency/ubuntu/aufs/ and again made a fake magic.mk file.

Now I was able to run make-kpkg clean without any errors. I have to run it with sudo though because with fakeroot I get errors because various permissions are denied. Then I tried running

sudo make-kpkg --initrd --append-to-version=.041514 kernel_image kernel_headers

and I get the following output:

exec make kpkg_version=12.036+nmu3 -f /usr/share/kernel-package/ruleset/minimal.mk debian APPEND_TO_VERSION=.041514 INITRD=YES
====== making target debian/stamp/conf/minimal_debian [new prereqs: ]======
This is kernel package version 12.036+nmu3.
test -d debian || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog Control Control.bin86 config templates.in rules; do \
            cp -f /usr/share/kernel-package/$file ./debian/; \
        done
for dir in Config docs examples ruleset scripts pkg po; do \
          cp -af /usr/share/kernel-package/$dir ./debian/; \
        done
test -f debian/control || sed -e 's/=V/3.13.9.041514/g' \
                -e 's/=D/3.13.9.041514-10.00.Custom/g' -e 's/=A/i386/g' \
  -e 's/=SA//g' \
  -e 's/=I//g' \
  -e 's/=CV/3.13/g' \
  -e 's/=M/Unknown Kernel Package Maintainer <email address hidden>/g' \
  -e 's/=ST/linux/g' -e 's/=B/i386/g' \
                  /usr/share/kernel-package/Control > debian/control
test -f debian/changelog || sed -e 's/=V/3.13.9.041514/g' \
            -e 's/=D/3.13.9.041514-10.00.Custom/g' -e 's/=A/i386/g' \
            -e 's/=ST/linux/g' -e 's/=B/i386/g' \
            -e 's/=M/Unknown Kernel Package Maintainer <email address hidden>/g' \
             /usr/share/kernel-package/changelog > debian/changelog
chmod 0644 debian/control debian/changelog
test -d ./debian/stamp || mkdir debian/stamp
make -f debian/rules debian/stamp/conf/kernel-conf
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-24-lowlatency'
====== making target debian/stamp/conf/kernel-conf [new prereqs: ]======
make EXTRAVERSION=.041514 ARCH=i386 \
                    oldconfig;
make[2]: Entering directory `/usr/src/linux-headers-3.13.0-24-lowlatency'
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration w...

Read more...

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-lowlatency (Ubuntu):
status: New → Confirmed
Revision history for this message
Martin Brláž (brmato) wrote : Nový mail

Ahoj,
tento mail je starý, teda neaktívny a nekontrolujem ho takmer nikdy. Môj nový mail je <email address hidden>.

Ďakujem,
Martin Brláž.

Changed in ubuntustudio:
status: New → Invalid
status: Invalid → Won't Fix
Revision history for this message
Forest (fori-fisher) wrote : Re: [Bug 1299878] Re: ncsw_config.mk missing from linux-lowlatency kernel

Hey, a bug I filed 4 years ago has been marked as "won't fix". This is
precisely why I don't use Linux anymore...

On Wed, Mar 6, 2019, 11:59 PM Erich Eickmeyer <email address hidden>
wrote:

> ** Changed in: ubuntustudio
> Status: New => Invalid
>
> ** Changed in: ubuntustudio
> Status: Invalid => Won't Fix
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1299878
>
> Title:
> ncsw_config.mk missing from linux-lowlatency kernel
>
> Status in Ubuntu Studio:
> Won't Fix
> Status in linux-lowlatency package in Ubuntu:
> Confirmed
>
> Bug description:
> I'm on Ubuntu Studio 14.04 Beta 2 (upgraded through apt-get from Beta
> 1,) and I'm trying to compile my own low-latency kernel with make-
> kpkg. I just want to remove xhci-hda and ehci-hda from the kernel so
> my USB Audio Interface will work correctly. I modify the config file
> via make menuconfig, but then when I run
>
> sudo make-kpkg clean
>
> I get the following output:
>
> exec make kpkg_version=12.036+nmu3 -f /usr/share/kernel-package/ruleset/
> minimal.mk clean
> ====== making target minimal_clean [new prereqs: ]======
> This is kernel package version 12.036+nmu3.
> test ! -f .config || cp -pf .config config.precious
> test ! -e stamp-building || rm -f stamp-building
> test ! -f Makefile || \
> make ARCH=i386 distclean
> make[1]: Entering directory `/usr/src/linux-headers-3.13.0-12-lowlatency'
> CLEAN .
> /usr/src/linux-headers-3.13.0-12-lowlatency/drivers/net/dpa/Makefile:7:
> /usr/src/linux-headers-3.13.0-12-lowlatency/drivers/net/dpa/NetCommSw/
> ncsw_config.mk: No such file or directory
> make[4]: *** No rule to make target
> `/usr/src/linux-headers-3.13.0-12-lowlatency/drivers/net/dpa/NetCommSw/
> ncsw_config.mk'. Stop.
> make[3]: *** [drivers/net/dpa] Error 2
> make[2]: *** [drivers/net] Error 2
> make[1]: *** [_clean_drivers] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-12-lowlatency'
> make: *** [minimal_clean] Error 2
>
> The same thing happens with 3.13.0-20-lowlatency as well. I have the
> build-essential package installed as well as linux-headers-lowlatency
> and linux-headers-generic. I think the device driver is just missing.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntustudio/+bug/1299878/+subscriptions
>

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

The bug was marked as "Won't Fix" because the bug is based on a version of Ubuntu Studio that is long-since past it's End-Of-Life date (For 14.04, that would've put it EOL in April of 2017). If this is still a problem in current, supported versions (16.04 until next month, 18.04, and 18.10), please file a new bug report.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Additionally, the bug is still open in the kernel, but the kernel is no longer maintained directly by the Ubuntu Studio team and hasn't been for years.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

The original bug had to do with self-compilation, which isn't even valid against an already compiled kernel. Appears to be a support question more than anything, and per rules, marking as "Invalid."

Changed in linux-lowlatency (Ubuntu):
status: Confirmed → Invalid
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.