[One (M8) Q&A, Help & Troubleshooting] Knightofrepublic:
Partial success

More update i compiled the kernel from scratch by using make mrproper and got partial success note that cfg80211 works halfway after that it got botched again on the other hand ath.ko is giving less errors and renesus-usbhs.ko insmoded fine(first compiled module that did so,so i think i have to compile some more modules to make it work,but cant figure out which One

u0_a136@htc_m8:/ $ su

root@htc_m8:/ # cd /system/lib/modules/

root@htc_m8:/system/lib/modules # ls

a8293.ko

adsprpc.ko

af9013.ko

ansi_cprng.ko

atbm8830.ko

ath.ko

ath9k.ko

ath9k_common.ko

ath9k_htc.ko

ath9k_hw.ko

au8522.ko

bcm3510.ko

caif.ko

caif_socket.ko

caif_usb.ko

carl9170.ko

cdc-wdm.ko

cfg80211.ko

chnl_net.ko

commkm.ko

crc-itu-t.ko

cx22700.ko

cx22702.ko

cx24110.ko

cx24113.ko

cx24116.ko

cx24123.ko

cxd2820r.ko

dib0070.ko

dib0090.ko

dib3000mb.ko

dib3000mc.ko

dib7000m.ko

dib7000p.ko

dib8000.ko

dib9000.ko

dibx000_common.ko

dm-crypt.ko

dma_test.ko

drxd.ko

drxk.ko

ds3000.ko

dvb-core.ko

dvb-pll.ko

ec100.ko

ecryptfs.ko

eeprom_93cx6.ko

evbug.ko

gspca_main.ko

hd29l2.ko

isl6405.ko

isl6421.ko

isl6423.ko

it913x-fe.ko

itd1000.ko

ix2505v.ko

kineto_gan.ko

ks8851.ko

l64781.ko

lgdt3305.ko

lgdt330x.ko

lgs8gl5.ko

lgs8gxx.ko

lib80211.ko

libphy.ko

lnbp21.ko

lnbp22.ko

m88rs2000.ko

mac80211.ko

mac80211_hwsim.ko

max2165.ko

mb86a16.ko

mb86a20s.ko

mc44s803.ko

mcDrvModule.ko

mcKernelApi.ko

moc_crypto.ko

moc_crypto.ko.3.4.10

moc_crypto.ko.sig.3.4.10

moc_platform_mod.ko

moc_platform_mod.ko.3.4.10

modules.dep.bb

mpq-adapter.ko

mpq-dmx-hw-plugin.ko

msm-buspm-dev.ko

msm72k_udc.ko

msm_rmnet.ko

mt2060.ko

mt2063.ko

mt20xx.ko

mt2131.ko

mt2266.ko

mt312.ko

mt352.ko

mvpkm.ko

mxl5005s.ko

mxl5007t.ko

nxt200x.ko

nxt6000.ko

oektestkm.ko

of_mdio.ko

or51132.ko

or51211.ko

pronto

pvtcpkm.ko

qcrypto.ko

qt1010.ko

radio-iris-transport.ko

renesas_usbhs.ko

reset_modem.ko

rt2500usb.ko

rt2800lib.ko

rt2800usb.ko

rt2x00lib.ko

rt2x00usb.ko

rt73usb.ko

rtl2830.ko

rtl8187.ko

s5h1409.ko

s5h1411.ko

s5h1420.ko

s5h1432.ko

s921.ko

scsi_wait_scan.ko

si21xx.ko

sp8870.ko

sp887x.ko

spidev.ko

stb0899.ko

stb6000.ko

stb6100.ko

stv0288.ko

stv0297.ko

stv0299.ko

stv0367.ko

stv0900.ko

stv090x.ko

stv6110.ko

stv6110x.ko

tcp_htcp.ko

tda10021.ko

tda10023.ko

tda10048.ko

tda1004x.ko

tda10071.ko

tda10086.ko

tda18212.ko

tda18218.ko

tda18271.ko

tda18271c2dd.ko

tda665x.ko

tda8083.ko

tda8261.ko

tda826x.ko

tda827x.ko

tda8290.ko

tda9887.ko

tea5761.ko

tea5767.ko

texfat.ko

tspp.ko

tua6100.ko

tuner-simple.ko

tuner-types.ko

tuner-xc2028.ko

uas.ko

uio_pdrv.ko

uio_pdrv_genirq.ko

ums-realtek.ko

usbip-core.ko

usbip-host.ko

ves1820.ko

ves1x93.ko

vhci-hcd.ko

wlan.ko

xc4000.ko

xc5000.ko

zl10036.ko

zl10039.ko

zl10353.ko

root@htc_m8:/system/lib/modules # insmod cfg80211.ko

insmod: init_module 'cfg80211.ko' failed (Invalid argument)

255|root@htc_m8:/system/lib/modules # dmesg | grep -i 80211

<6>[ 834.764491] c2 7571 cfg80211: Calling CRDA to update world regulatory domain

<6>[ 834.764631] c2 7571 cfg80211: World regulatory domain updated:

<6>[ 834.764638] c2 7571 cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

<6>[ 834.764647] c2 7571 cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

<6>[ 834.764654] c2 7571 cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

<6>[ 834.764662] c2 7571 cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

<6>[ 834.764669] c2 7571 cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)

<6>[ 834.764677] c2 7571 cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)

<6>[ 834.764684] c2 7571 cfg80211: (5490000 KHz - 5710000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)

<6>[ 834.764691] c2 7571 cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (300 mBi, 2000 mBm)

<6>[ 834.764698] c2 7571 cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)

<6>[ 834.843137] c0 244 cfg80211: Calling CRDA for country: IN

<6>[ 834.843389] c0 244 cfg80211: Regulatory domain changed to country: IN

<6>[ 834.843402] c0 244 cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

<6>[ 834.843416] c0 244 cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)

<6>[ 834.843429] c0 244 cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)

<6>[ 834.843441] c0 244 cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm)

<6>[ 834.843454] c0 244 cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm)

<6>[ 902.816721] c3 8655 cfg80211: disagrees about version of symbol skb_copy_bits

<4>[ 902.816739] c3 8655 cfg80211: Unknown symbol skb_copy_bits (err -22)

<6>[ 902.816759] c3 8655 cfg80211: disagrees about version of symbol skb_put

<4>[ 902.816771] c3 8655 cfg80211: Unknown symbol skb_put (err -22)

<6>[ 902.816805] c3 8655 cfg80211: disagrees about version of symbol consume_skb

<4>[ 902.816817] c3 8655 cfg80211: Unknown symbol consume_skb (err -22)

<6>[ 902.816852] c3 8655 cfg80211: disagrees about version of symbol genl_register_mc_group

<4>[ 902.816865] c3 8655 cfg80211: Unknown symbol genl_register_mc_group (err -22)

<6>[ 902.816891] c3 8655 cfg80211: disagrees about version of symbol genlmsg_put

<4>[ 902.816903] c3 8655 cfg80211: Unknown symbol genlmsg_put (err -22)

<6>[ 902.816936] c3 8655 cfg80211: disagrees about version of symbol genlmsg_multicast_allns

<4>[ 902.816948] c3 8655 cfg80211: Unknown symbol genlmsg_multicast_allns (err -22)

<6>[ 902.816989] c3 8655 cfg80211: disagrees about version of symbol netdev_err

<4>[ 902.817001] c3 8655 cfg80211: Unknown symbol netdev_err (err -22)

<6>[ 902.817020] c3 8655 cfg80211: disagrees about version of symbol pskb_expand_head

<4>[ 902.817032] c3 8655 cfg80211: Unknown symbol pskb_expand_head (err -22)

<6>[ 902.817050] c3 8655 cfg80211: disagrees about version of symbol kfree_skb

<4>[ 902.817062] c3 8655 cfg80211: Unknown symbol kfree_skb (err -22)

<6>[ 902.817105] c3 8655 cfg80211: disagrees about version of symbol netlink_broadcast

<4>[ 902.817117] c3 8655 cfg80211: Unknown symbol netlink_broadcast (err -22)

<6>[ 902.817133] c3 8655 cfg80211: disagrees about version of symbol net_ns_type_operations

<4>[ 902.817145] c3 8655 cfg80211: Unknown symbol net_ns_type_operations (err -22)

<6>[ 902.817157] c3 8655 cfg80211: disagrees about version of symbol __alloc_skb

<4>[ 902.817168] c3 8655 cfg80211: Unknown symbol __alloc_skb (err -22)

<6>[ 902.817205] c3 8655 cfg80211: disagrees about version of symbol __dev_get_by_index

<4>[ 902.817217] c3 8655 cfg80211: Unknown symbol __dev_get_by_index (err -22)

<6>[ 902.817236] c3 8655 cfg80211: disagrees about version of symbol init_net

<4>[ 902.817248] c3 8655 cfg80211: Unknown symbol init_net (err -22)

<6>[ 902.817260] c3 8655 cfg80211: disagrees about version of symbol skb_pull

<4>[ 902.817271] c3 8655 cfg80211: Unknown symbol skb_pull (err -22)

<6>[ 902.817298] c3 8655 cfg80211: disagrees about version of symbol genl_register_family_with_ops

<4>[ 902.817310] c3 8655 cfg80211: Unknown symbol genl_register_family_with_ops (err -22)

<6>[ 902.817343] c3 8655 cfg80211: disagrees about version of symbol netlink_unicast

<4>[ 902.817355] c3 8655 cfg80211: Unknown symbol netlink_unicast (err -22)

<6>[ 902.817368] c3 8655 cfg80211: disagrees about version of symbol dev_get_by_index

<4>[ 902.817380] c3 8655 cfg80211: Unknown symbol dev_get_by_index (err -22)

<6>[ 902.817393] c3 8655 cfg80211: disagrees about version of symbol dev_close

<4>[ 902.817404] c3 8655 cfg80211: Unknown symbol dev_close (err -22)

<6>[ 902.817425] c3 8655 cfg80211: disagrees about version of symbol skb_push

<4>[ 902.817436] c3 8655 cfg80211: Unknown symbol skb_push (err -22)

<6>[ 902.817459] c3 8655 cfg80211: disagrees about version of symbol wireless_send_event

<4>[ 902.817471] c3 8655 cfg80211: Unknown symbol wireless_send_event (err -22)

<6>[ 902.817483] c3 8655 cfg80211: disagrees about version of symbol nla_put

<4>[ 902.817494] c3 8655 cfg80211: Unknown symbol nla_put (err -22)

<6>[ 902.817523] c3 8655 cfg80211: disagrees about version of symbol unregister_pernet_device

<4>[ 902.817535] c3 8655 cfg80211: Unknown symbol unregister_pernet_device (err -22)

<6>[ 902.817623] c3 8655 cfg80211: disagrees about version of symbol ethtool_op_get_link

<4>[ 902.817636] c3 8655 cfg80211: Unknown symbol ethtool_op_get_link (err -22)

<6>[ 902.817667] c3 8655 cfg80211: disagrees about version of symbol dev_alloc_skb

<4>[ 902.817679] c3 8655 cfg80211: Unknown symbol dev_alloc_skb (err -22)

<6>[ 902.817705] c3 8655 cfg80211: disagrees about version of symbol __pskb_pull_tail

<4>[ 902.817718] c3 8655 cfg80211: Unknown symbol __pskb_pull_tail (err -22)

<6>[ 902.817732] c3 8655 cfg80211: disagrees about version of symbol skb_trim

<4>[ 902.817744] c3 8655 cfg80211: Unknown symbol skb_trim (err -22)

<6>[ 902.817763] c3 8655 cfg80211: disagrees about version of symbol __put_net

<4>[ 902.817775] c3 8655 cfg80211: Unknown symbol __put_net (err -22)

<6>[ 902.817796] c3 8655 cfg80211: disagrees about version of symbol get_net_ns_by_pid

<4>[ 902.817808] c3 8655 cfg80211: Unknown symbol get_net_ns_by_pid (err -22)

<6>[ 902.817857] c3 8655 cfg80211: disagrees about version of symbol kobject_uevent

<4>[ 902.817869] c3 8655 cfg80211: Unknown symbol kobject_uevent (err -22)

<6>[ 902.817881] c3 8655 cfg80211: disagrees about version of symbol dev_change_net_namespace

<4>[ 902.817894] c3 8655 cfg80211: Unknown symbol dev_change_net_namespace (err -22)

<6>[ 902.817914] c3 8655 cfg80211: disagrees about version of symbol genl_unregister_family

<4>[ 902.817927] c3 8655 cfg80211: Unknown symbol genl_unregister_family (err -22)

<6>[ 902.817952] c3 8655 cfg80211: disagrees about version of symbol register_pernet_device

<4>[ 902.817965] c3 8655 cfg80211: Unknown symbol register_pernet_device (err -22)

root@htc_m8:/system/lib/modules #