Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modprobe: ERROR: could not insert 'rtl8822be': Exec format error in UBUNTU 18.04.1 #408

Open
ray26 opened this issue Sep 30, 2018 · 14 comments

Comments

Projects
None yet
4 participants
@ray26
Copy link

commented Sep 30, 2018

ray@ray:~/rtlwifi_new$ sudo make install make -C /lib/modules/4.15.0-34-generic/build M=/home/ray/rtlwifi_new modules make[1]: 进入目录“/usr/src/linux-headers-4.15.0-34-generic” Building modules, stage 2. MODPOST 19 modules make[1]: 离开目录“/usr/src/linux-headers-4.15.0-34-generic” Making backups Install rtlwifi SUCCESS ray@ray:~/rtlwifi_new$ sudo modprobe -r rtl8822be ray@ray:~/rtlwifi_new$ sudo modprobe rtl8822be modprobe: ERROR: could not insert 'rtl8822be': Exec format error
I have seen others' issues , my step was followed by the README ,but it still occurs

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Sep 30, 2018

You need to look at the output of dmesg to see the exact reason. The most common is not having turned off secure boot. With this repo, it is not possible to sign the module, thus if your kernel demands it, loading will fail.

@ray26

This comment has been minimized.

Copy link
Author

commented Sep 30, 2018

I have already closed the.security boot . How can i lool at the output of the dmesg

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Sep 30, 2018

man dmesg

@ray26

This comment has been minimized.

Copy link
Author

commented Oct 1, 2018

I have got exports duplicate symbol rtl_phydm_get_ops_pointer (owned by r8822be)

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Oct 1, 2018

That error is happening because your kernel already includes a driver for the RTL8822BE. You should not need to run one from this repo, which is for older kernels that do not include r8822be. Do you have a reason to use this driver, or are you following some prescription?

@ray26

This comment has been minimized.

Copy link
Author

commented Oct 1, 2018

I have seen my Netwok cotronller was Realtek Semiconductor Co., Ltd. Device b822 , i don't know wheather it is the same with r8822be.
In my settings , It was said that the system can't find the network cotronller

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Oct 1, 2018

Who said?

@ray26

This comment has been minimized.

Copy link
Author

commented Oct 1, 2018

My system

@ray26

This comment has been minimized.

Copy link
Author

commented Oct 1, 2018

With ifconfig
enp0s20f0u2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.42.190 netmask 255.255.255.0 broadcast 192.168.42.255
inet6 fe80::ff79:5c1:5471:6a16 prefixlen 64 scopeid 0x20
ether 0a:06:a1:f1:b4:9c txqueuelen 1000 (以太网)
RX packets 418823 bytes 607102969 (607.1 MB)
RX errors 6 dropped 0 overruns 0 frame 6
TX packets 237662 bytes 29633122 (29.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp8s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 8c:16:45:f1:24:db txqueuelen 1000 (以太网)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (本地环回)
RX packets 3701 bytes 323929 (323.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3701 bytes 323929 (323.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Oct 1, 2018

On your system, type the command "dmesg | grep 8822". In addition, post the output of "lspci -nn".

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Oct 1, 2018

I learned a little more. If you have r8822be installed, then trying to load rtl8822be from tthis repo causes the duplicate symbol. If you want to use this repo, then you need to blacklist r8822be.

@Swithun53

This comment has been minimized.

Copy link

commented Oct 2, 2018

May I insert my two cents worth? I had the same problem in Linux Mint 19. It was resolved by rolling back the kernel. Thanks for all your hard work.

@lwfinger

This comment has been minimized.

Copy link
Owner

commented Oct 2, 2018

That works, but it is the wrong fix. By doing that, you are giving up all the other changes/fixes in the kernel. Besides, if your kernel is new enough to contain r8822be, then there is not need for this repo and you do not have to fool around with an out-of-kernel driver.

To all the owners of RTL8822BE/CE devices: The Realtek group has written an entirely new driver for these devices. It has finished the first round of reviews. Assuming all goes well, it will be part of kernel 4.21. When it is ready, there will be a new branch here.

@pardaloupa

This comment has been minimized.

Copy link

commented Oct 3, 2018

Hello @lwfinger

I have some issues with the RTL8822BE/CE Bluetooth driver on my new Thinkpad A485 on Arch Linux with the latest kernel 4.18.

Although the WiFi works out of the box the Bluetooth does not turn on at all. Any idea if it is related to Kernel fixes/changes or? I am happy to see that a new driver is being worked on, hopefully it will resolve all the issues.

Please have a look at these posts (Lenovo forums & Arch forums) for some more background information.

Thank you for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.