WhyCan Forum(哇酷论坛)

人过留名,雁过留声,感谢各位朋友不离不弃地支持。 QQ: 516333132, 微信: whycan_cn (哇酷网/挖坑网/填坑网) admin@whycan.cn

您尚未登录。

#1 2019-12-31 17:43:41

ma6254
会员
注册时间: 2019-11-03
累计积分: 17

修改linux内核文件导致的version不一致问题

_20191231163747.png
我修改了tds,屏蔽了设备树里的mmc1,然后再编译
当尝试加载r8723be的ko文件时,发生了错误
应该是makefile里根据git的commit生成了新的kernel-release
该如何操作修改,让r8723bs.ko的modinfo跟commit走,或者修改内核强制release version为licheepi-zero+

# ls
r8723bs.ko
# insmod ./
.ash_history  .config/      r8723bs.ko
# insmod ./r8723bs.ko
[  320.810509] r8723bs: version magic '4.14.14-licheepi-zero+ SMP mod_unload ARMv7 p2v8 ' should be '4.14.14-gcda44c14-dirty SMP mod_unload ARMv7 p2v8 '
insmod: ERROR: could not insert module ./r8723bs.ko: Invalid module format
# uname -a
Linux buildroot 4.14.14-gcda44c14-dirty #3 SMP Sat Dec 28 13:57:47 CST 2019 armv7l GNU/Linux
# ^C
# modinfo ./
.ash_history  .config/      r8723bs.ko
# modinfo ./r8723bs.ko
filename:       /root/./r8723bs.ko
version:        v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     A187F58F9C9DFAB18974255
alias:          sdio:c*v024CdB723*
alias:          sdio:c*v024Cd0626*
alias:          sdio:c*v024Cd0623*
alias:          sdio:c*v024Cd0523*
alias:          acpi*:OBDA8723:*
depends:
staging:        Y
intree:         Y
name:           r8723bs
vermagic:       4.14.14-licheepi-zero+ SMP mod_unload ARMv7 p2v8
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_usb_rxagg_mode:int
parm:           rtw_btcoex_enable:Enable BT co-existence mechanism (int)
parm:           rtw_ant_num:Antenna number setting (int)
parm:           rtw_qos_opt_enable:int
parm:           ifname:The default name to allocate for first interface (charp)
parm:           rtw_initmac:charp
parm:           rtw_channel_plan:int
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_wmm_enable:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_busy_thresh:int
parm:           rtw_ht_enable:int
parm:           rtw_bw_mode:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_ampdu_amsdu:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_rf_config:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_enusbss:int
parm:           rtw_hwpdn_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_mc2u_disable:int
parm:           rtw_80211d:Enable 802.11d mechanism (int)
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm:           rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm:           rtw_tx_pwr_lmt_enable:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_phy_file_path:The path of phy parameter (charp)
parm:           rtw_load_phy_file:PHY File Bit Map (int)
parm:           rtw_decrypt_phy_file:Enable Decrypt PHY File (int)
#

离线

#2 2019-12-31 17:57:10

cityf
会员
注册时间: 2017-11-03
累计积分: 181

Re: 修改linux内核文件导致的version不一致问题

搞定了吗?

离线

#3 2019-12-31 17:59:09

ma6254
会员
注册时间: 2019-11-03
累计积分: 17

Re: 修改linux内核文件导致的version不一致问题

cityf 说:

搞定了吗?

没搞定

离线

#4 2019-12-31 18:02:17

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 8,837

Re: 修改linux内核文件导致的version不一致问题

一般不存在这个问题,你先到本站搜 modules_install,安装到指定目录,然后在控制台执行 modprobe r8723 就没问题了。

离线

页脚