Announcement

Collapse
No announcement yet.

5.14.0-1032-oem failed to compile with rtl8821ce

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    5.14.0-1032-oem failed to compile with rtl8821ce

    And the reason is: [Makefile:1870: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build] Error 2
    My rtl8821ce wifi chip strikes again!

    This problem arose after my 04/02/2022 snapshot, which I reverted to because attempts to fix this problem led to a grub failure to boot and other problems. Instead of booting I got a grub> prompt. I used the standard procedures to make the -1032-oem the desired kernel and booted into it even though it didn't have the rtl8821ce kernel mod activated. My wifi ran fine, but I could no longer run the apt command without constantly running into

    $ sudo dpkg --configure -a
    Setting up grub-pc (2.04-1ubuntu26.15) ...
    Sourcing file `/etc/default/grub'
    Sourcing file `/etc/default/grub.d/99_breeze-grub.cfg'
    Sourcing file `/etc/default/grub.d/init-select.cfg'
    Generating grub configuration file ...
    Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing
    Syntax errors are detected in generated GRUB config file.
    Ensure that there are no errors in /etc/default/grub
    and /etc/grub.d/* files or please file a bug report with
    /boot/grub/grub.cfg.new file attached.

    dpkg: error processing package grub-pc (--configure):
    installed grub-pc package post-installation script subprocess returned error exit status 1
    Processing triggers for linux-image-5.14.0-1032-oem (5.14.0-1032.35) ...
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-5.14.0-1032-oem
    /etc/kernel/postinst.d/zz-update-grub:
    Sourcing file `/etc/default/grub'
    Sourcing file `/etc/default/grub.d/99_breeze-grub.cfg'
    Sourcing file `/etc/default/grub.d/init-select.cfg'
    Generating grub configuration file ...
    Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing
    Syntax errors are detected in generated GRUB config file.
    Ensure that there are no errors in /etc/default/grub
    and /etc/grub.d/* files or please file a bug report with
    /boot/grub/grub.cfg.new file attached.
    run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
    dpkg: error processing package linux-image-5.14.0-1032-oem (--configure):
    installed linux-image-5.14.0-1032-oem package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    grub-pc
    linux-image-5.14.0-1032-oem

    jerry@jerry-hp17cn1xxx:~$
    Comparing them with examples of previous files, the /etc/default/grub and the /etc/grub.d/* files contain no errors that I could notice. In fact, the /etc/grub.d files all have jan 11 dates, well before this debacle began.

    Clearing the dpkg cache did not fix the problem. I suspect that the problem is in the -1032-oem kernel itself.
    I uninstalled dkms and set grub to point to the -1032-oem kernel, which booted fine. And, the wifi runs at 5G and is stable.


    The make log:
    DKMS make.log for rtl8821ce-v5.5.2_34066.20200325 for kernel 5.14.0-1032-oem (x86_64)
    Thu Apr 7 13:37:49 CDT 2022
    make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.14.0-1032-oem/build M=/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build modules
    make[1]: Entering directory '/usr/src/linux-headers-5.14.0-1032-oem'
    CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_cmd.o
    CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_security.o
    CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_debug.o
    ....lots of similar lines
    CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_mp.o
    CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/hal/hal_intf.o
    /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:7310:97: error: missing binary operator before token "("
    7310 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
    | ^
    /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_mgmt_frame_register’:
    /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:7322:97: error: missing binary operator before token "("
    7322 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
    | ^
    /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:7344:97: error: missing binary operator before token "("
    7344 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
    | ^
    /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c: At top level:
    /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9650:98: error: missing binary operator before token "("
    9650 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
    | ^
    /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9653:3: error: ‘struct cfg80211_ops’ has no member named ‘mgmt_frame_register’
    9653 | .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
    | ^~~~~~~~~~~~~~~~~~~
    /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9653:25: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, u64)’ {aka ‘int (*)(struct wiphy *, struct wireless_dev *, long long unsigned int)’} from incompatible pointer type ‘void (*)(struct wiphy *, struct wireless_dev *, u16, bool)’ {aka ‘void (*)(struct wiphy *, struct wireless_dev *, short unsigned int, _Bool)’} [-Werror=incompatible-pointer-types]
    9653 | .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9653:25: note: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx_cancel_wait’)
    cc1: some warnings being treated as errors
    make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[1]: *** [Makefile:1870: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-5.14.0-1032-oem'
    make: *** [Makefile:2244: modules] Error 2
    Last edited by GreyGeek; Apr 07, 2022, 01:08 PM.
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    #2
    Caught my eye, doesn't look right on Ubuntu:
    Code:
    RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION
    If those macros were not defined, the "missing binary operator" would make sense.
    Regards, John Little

    Comment


      #3
      Originally posted by jlittle View Post
      Caught my eye, doesn't look right on Ubuntu:
      Code:
      RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION
      If those macros were not defined, the "missing binary operator" would make sense.
      Ya, I saw that too, but what can you do when its the only dkms rtl8821ce driver you can find?
      My solution was to uninstall dkms and use rtw88_* instead.
      My bandwidth dropped from 433Mbps to 200Mbps but the connection is stable.
      So, I am going to let it stand there as I prepare for my next distro move, discussed in another post.

      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #4
        I decided to follow Claydoh's advice and wait until after the first or second point release before moving to 22.04.
        So, meanwhile, I decided to clean up the debris left by the failure of the -1032-oem kernel install. I kept getting error msgs in the logs relating to lsp firmware issues and in getting the right wifi driver working and configured.

        By default, using the dkms and the thomas pino driver because it was reported that the rtl8821ce-dkms driver in the repository didn't work, the rtl8821ce kernel driver was being used, with a warning about the lps state.

        WARNING: CPU: 6 PID: 762 at /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/hal/hal_com.c:11447 rtw_lps_state_c
        hk+0x39/0x41 [8821ce]
        That driver only gave me a speed of 72Mbps, wasting the rest of my 500Mbps bandwidth, but it was stable as a rock, even though it threw tons of warnings into the logs. So many msgs in fact, that it was slowing my desktop down considerably.

        I decided to install the rtw88_8821ce driver. It allowed my bandwidth to go to 433Mbps, but it was unstable and randomly disconnecting, besides throwing a ton of error msgs into the logs about the lps state. Dorking, I found some option settings:

        options rtw88_core disable_lps_deep=1
        options rtw88_pci disable_msi=1
        options rtw88_pci disable_aspm=1
        but they did not reduce the quantity of the msgs in the logs.

        I used the blacklist option to block the install of rtl_8821ce and rtw_8821ce in /etc/modprobe.d/blacklist.conf
        #JLK
        blacklist rtl_8821ce
        blacklist rtw_8821ce
        #blacklist rtw88_8821ce
        Then I loaded rtw88_8821ce using
        sudo modprobe rtw88_8821ce
        and made it permanent by adding it to /etc/modules-load.d/modules.conf

        The last step in making all the error msgs go away was realizing that 1, y and Y in option settings are no longer synonymous.
        Changing the "1"'s to "Y"'s in the options settings shown above made all the errors disappear from the logs, vastly improving my desktop speed to its former behavior before the wifi mess was encountered.

        BTW, the rtw88_8821ce is the Realtec driver, which was supposed to be the poor one. Apparently not any more. My max speed is around 200Mbps, but it is rock solid.

        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          Originally posted by GreyGeek View Post
          BTW, the rtw88_8821ce is the Realtec driver, which was supposed to be the poor one. Apparently not any more
          And this could change back on the next kernel update
          At least it did for me, with Bluetooth on my 8821ce card. I switched between the two drivers numerous times before replacing it on my PC.

          But I did find a spare Intel wifi card that I can send to you, if it is something that you might want to try -those antenna connectors are a pain in multiple derrieres.


          Click image for larger version

Name:	20220411_091650.jpg
Views:	326
Size:	61.5 KB
ID:	662145
          Attached Files

          Comment


            #6
            This looks like the chip you are holding.
            https://www.amazon.com/Intel-Wireles...7G42J6KQ&psc=1

            For $13.23.

            Was it able to get near the 600Mbps it claims to achieve? How stable was/is it?
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment


              #7
              Originally posted by GreyGeek View Post
              This looks like the chip you are holding.
              https://www.amazon.com/Intel-Wireles...J6KQ&psc=1

              For $13.23.

              Was it able to get near the 600Mbps it claims to achieve? How stable was/is it?
              I can't recall, not sure which old/parts system it came from, or if it one I purchased individually. I will say it was stable, as I think it is identical to others I have had in laptops, with zero issues at all. I never tested speeds, but I don't recall ever having speed issues compared to other AC wifi chips.
              I will venture to say that AC wifi is quite a bit faster than 600 Mbps in capability


              BUT.... I just note that this card is only compatible with Intel 8th gen or newer - circa 2018, not sure what computer you have.
              the Intel Wireless-AC 9260 card may be a better choice, but I don't have one of those.

              I swear by Intel wifi/bluetooth, as I never have had an issue in any way, at least in recent memory, whereas realtek is the exact opposite in my own usage.

              Comment


                #8
                My HP-17cn0xxx is brand new in December with a mfg on the manuals of March 2021. 10th 11th gen.
                Last edited by GreyGeek; Apr 11, 2022, 08:00 PM.
                "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                – John F. Kennedy, February 26, 1962.

                Comment


                  #9
                  Yesterday this: Intel Wireless-AC 9560, M.2 2230, 2X2 Ac+Bt, Gigabit, No Vpro (9560.NGWG.NV) was delivered by Amazon.
                  Claydoh, it is the same as what you are holding in your png. The alternative chip recommended in the service manual is Intel Wi-Fi 6 AX201 802.11ax (2 × 2) and Bluetooth® 5 (non-vPro®), but Amazon didn't have that particular device available. Some were close, but had Vpro, or no WIFI 6, etc.

                  Anyway, I installed that 9560 chip, purged the rtw88_8821ce stuff and rebooted, then connected to my cable modem wifi. But, the purpose of this exercise was to determine if I could get my Hurricaine IPv6 tunnel working again. On the cable modem the tunnel appeared to configure as it always had, but no IPv6 connection worked.

                  I turned off the 2.4 and 5GHz radios in my cable modem, connected it to my Buffalo 600NP Wifi router with a cat6 cable and turned on the Buffalo. I got my two previously configured access points displayed and chose the 5G. Worked perfectly, but not as fast as I'd hoped. The max for 5G was only 200Mpbs. The 2.4G was 65Mbps. The rtl_8821ce gave me 433Mbps of unstable Internet connection. The rtw88_8821ce gave me 200-300Mbps of fluctuating connection because it was rapidly disconnecting and connecting. Unfortunately, while the he-ipv6 tunnel configured properly, I couldn't get firefox to work against ipv6-test.com, which failed to show the tunnel.

                  Sadly, I turned the cable modem radios back on, powered down the Buffalo, and rebooted. With cockpit I turned he-ipv6 off and miredo on. My IPv6 tunnel roared to life. It's average speed is about 1/2 of my 5G connection speed, which is 200Mbps.

                  I've got the AX201 802.11ax (2 × 2) and Bluetooth® 5 (non-vPro®) chip coming. If that doesn't work I will be permanently stuck with the miredo tunnel, because my ISP stated that they had no plans to establish an IPv6 service, after three years of telling me "it will be real soon". That little wart aside, they are still the best ISP in town.

                  "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                  – John F. Kennedy, February 26, 1962.

                  Comment


                    #10
                    This journey has come to an end.
                    To recap: I got a new HP-17cn1035bu laptop for Xmas.
                    My Hurricaine IPv6 tunnel service would establish my he-ipv6 tunnel BUT ipv6-test.com could not see it. I installed the miredo (teredo) tunnel and it gave me an 18/20 on that website. After various failed attempts to get the Hurricane tunnel to work I am stuck with the miredo tunnel. The only question is "How long with the miredo server in France remain active?" IPv6 now runs 27% of the Internet. No IPv6 and you've lost contact with that portion of the Internet.

                    This laptop's WIFI chip driver wasn't stable so I replaced it with the chip claydoh recommended. It's only stable mode was the 2.4G connection at 72Mbps.
                    The only other chip compatible with this laptop, as indicated in its service manual, is the WIFI 6E AX210 It arrived last Saturday. Unfortunately, during installation, the female "barrel" on the end of the antenna wire that connects to the male plug on the chip bent, making attachment impossible. To replace the antenna wire would cost around $40 and require the almost complete disassembly of the laptop, including the display panel. Finding a replacement barrel was beyond my dorking skills.

                    I want a WIFI connection. So, what to do? Temporarily, I used an ancient WIFI dongle I'd purchased ten years ago to get me by. It gave me a stable 72Mbps connection.

                    I have four sockets on the left edge of this laptop: a USB3, an HDMI, a USB-C and a 3.5mm female audio socket. On the right edge is one USB3 socket.
                    I have a powered USB3 hub with 7 USB3 female sockets and one charger socket which I keep plugged into the USB3 socket on the left edge. A mouse dongle is in the USB3 socket on the right edge. The USB-C port is not used. There is no ETH0 socket on this laptop, so connecting directly to the router would require a USB-to-ETH0 dongle on the cable from the router. And, I don't want to string two cat6 cables from the router to the computer bay in the living room and to the bedroom. I have no additional USB port in which to plug in a wifi dongle.

                    My solution was to get a USB-to-USB-c dongle and plug it in. Then pull the mouse dongle from the right side and plug it into the USB-to-USB-c dongle. The mouse worked.
                    I purchased a
                    "Cudy AC1300 WiFi USB 3.0 Adapter for PC, USB WiFi Dongle, 5Ghz /2.4Ghz, WiFi USB 3.0, Wireless Adapter for Desktop/Laptop, Compatible with Windows 7/8/8.1/10/11, mac OS, Linux, WU1300S"
                    from Amazon and plugged it into the USB3 port on the right side, where the mouse dongle was. I downloaded the Linux driver for it and followed the instruction for compiling it. The compile completed without problems. (cd to the src directory created when I unzipped the downloaded file, sudo make, and sudo make install). The driver, 88x2bu, was added to /etc/modules so it would load at boot.
                    lsmod | grep 88x
                    88x2bu 3190784 0
                    cfg80211 892928 1 88x2bu
                    I noticed that the mac80211 module was not called upon. My other realtek and ralinink drivers used it. The 88x2bu gives me a stable 400Mbps wifi connection for $18 so I'll take it.

                    So, my current portable configuration has two dongles, one on each side and each about 3/4" long. My boot up time is
                    ~$ systemd-analyze
                    Startup finished in 3.362s (firmware) + 3.726s (loader) + 2.810s (kernel) + 1.940s (userspace) = 11.840s
                    graphical.target reached after 1.935s in userspace

                    ~$ systemd-analyze blame
                    894ms networkd-dispatcher.service
                    547ms dev-sda3.device
                    530ms systemd-modules-load.service
                    508ms apt-daily-upgrade.service
                    209ms systemd-journal-flush.service
                    163ms systemd-resolved.service
                    157ms systemd-logind.service
                    151ms accounts-daemon.service
                    146ms udisks2.service
                    115ms systemd-timesyncd.service
                    113ms NetworkManager.service
                    108ms smartmontools.service
                    107ms systemd-sysctl.service
                    105ms apparmor.service
                    99ms upower.service
                    98ms systemd-fsck@dev-disk-by\x2duuid-C853\x2d95B5.service
                    92ms polkit.service
                    90ms systemd-udev-trigger.service
                    88ms icecast2.service
                    lines 1-19
                    Both the wifi connection and the miredo tunnel are up and active after the 1.935 sec graphical target is reached.
                    All in all, the Intel IRIS Xe gpu runs Universe Sandbox^2 and Java Minecraft seamlessly at around 100 fps, and neither stutters or lags, so I am a happy camper!

                    A side note:
                    I downloaded the latest Kubuntu 22.04 daily and burned it to a USB stick. Booting it and looking around I notice that it is essentially identical to my current Neon install.
                    So, I decided to stay with NEON.




                    Last edited by GreyGeek; Apr 27, 2022, 10:45 AM.
                    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                    – John F. Kennedy, February 26, 1962.

                    Comment

                    Working...
                    X