|
Downoaded android source code for orange pi win from orange pi website. Wifi was disabled in the compiled image. Then I editted the sys_config.fex file by changing pin number and supply voltage for wifi. Now, I can add bcmdhd.ko file by "insmod bcmdhd.ko" .
"lsmod" is giving the added module. but I gets some error
But if I search wifi, board gets restart after addidng bcmdhd.ko
output of insmod bcmdhd.ko
<
[ 88.752654] dhd_module_init: in
[ 88.756511] ======== bcm_wlan_set_plat_data ========
[ 88.762900] host_oob_irq: 8
[ 88.766380] host_oob_irq_flags=16516
[ 88.771042] dhd_wifi_platform_load: Enter
[ 88.776674] Power-up adapter 'DHD generic adapter'
[ 88.782176] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[ 88.789849] dummy_sdmmc: probe of mmc1:0001:1 failed with error -110
[ 88.797980] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[ 88.805654] dummy_sdmmc: probe of mmc1:0001:2 failed with error -110
[ 88.814530] wifi_platform_set_power = 1
[ 88.819513] ======== PULL WL_REG_ON HIGH! ========
[ 88.826551] sunxi-wlan wlan.25: check wlan wlan_power voltage: 3600000
[ 88.835590] sunxi-wlan wlan.25: check wlan io_regulator voltage: 3300000
[ 88.924265] CPU1: Booted secondary processor
[ 88.929004] CPU1: update cpu_power 1968128
[ 89.166746] wifi_platform_bus_enumerate device present 1
[ 89.172625] sunxi-wlan wlan.25: bus_index: 1
[ 89.178049] ======== Card detection to detect SDIO card! ========
[ 89.184848] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[ 89.192607] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[ 89.199347] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[ 89.208301] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[ 89.216116] mmc1: card 0001 removed
[ 89.220630] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 89.233835] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 89.245125] sunxi-mmc 1c10000.sdmmc: no vqmmc,Check if there is regulator
[ 89.265128] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 89.295446] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[ 89.302920] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[ 89.310235] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 89.324356] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 89.337992] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 8, RTO !!
[ 89.345532] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 16 width 1 timing LEGACY(SDR12) dt B
[ 89.366361] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 89.374823] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 89.382307] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 89.391472] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 89.486971] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 16 width 1 timing SD-HS(SDR25) dt B
[ 89.498856] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 50000000Hz bm PP pm ON vdd 16 width 1 timing SD-HS(SDR25) dt B
[ 89.513395] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 50000000Hz bm PP pm ON vdd 16 width 4 timing SD-HS(SDR25) dt B
[ 89.527157] mmc1: new high speed SDIO card at address 0001
[ 89.552794] bcmsdh_register: register client driver
[ 89.558618] bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
[ 89.564240] bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
[ 89.569473] bus num (host idx)=1, slot num (rca)=1
[ 89.575867] found adapter info 'DHD generic adapter'
[ 89.581632] dhdsdio_probe : no mutex held. set lock
[ 89.588112] F1 signature read @0x18000000=0x1541a9a6
[ 89.595320] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x1 pkg:0x4
[ 89.603200] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[ 89.611342] dhd_conf_set_chiprev: chip=0xa9a6, chiprev=1
[ 89.617312] dhd_conf_set_conf_path_by_nv_path: config_path=/system/vendor/modules/config.txt
[ 89.626751] dhd_conf_read_config: Ignore config file /system/vendor/modules/config.txt
[ 89.640253] wl_create_event_handler(): thread:wl_event_handler:2de4 started
[ 89.647943] tsk Enter, tsk = 0xffffffc0182219c0
[ 89.654562] dhd_attach(): thread:dhd_watchdog_thread:2de8 started
[ 89.661420] dhd_dpc_thread: set dpc_cpucore 0 from config.txt
[ 89.667745] dhd_attach(): thread:dhd_dpc:2de9 started
[ 89.674246] dhd_attach(): thread:dhd_rxf:2dec started
[ 89.679852] dhd_deferred_work_init: work queue initialized
[ 89.687638] dhdsdio_probe_init: set use_rxchain 1 from config.txt
[ 89.700434] Dongle Host Driver, version 1.201.59.3 (r506368)
[ 89.700434] Compiled in drivers/net/wireless/bcmdhd on Dec 21 2017 at 18:01:16
[ 89.724072] Register interface [wlan0] MAC: e0:76:d0:de:58:84
[ 89.724072]
[ 89.732603] dhd_prot_ioctl : bus is down. we have nothing to do
[ 89.741179] bcmsdh_oob_intr_unregister: Enter
[ 89.746103] bcmsdh_oob_intr_unregister: irq is not registered
[ 89.753235] dhd_txglom_enable: enable 0
[ 89.758012] dhd_bus_devreset: WLAN OFF DONE
[ 89.762754] wifi_platform_set_power = 0
[ 89.767830] ======== PULL WL_REG_ON LOW! ========
[ 89.773863] dhdsdio_probe : the lock is released.
[ 89.780047] dhd_module_init: Exit err=0
shell@tulip-t1:/system/vendor/modules # [ 90.518513] CPU1: shutdown
[ 90.521490] psci: CPU1 killed.
[ 98.567459] CPU1: Booted secondary processor
[ 98.572196] CPU1: update cpu_power 1968128
[ 98.701063] CPU Budget hotplug: cluster0 min:0 max:4
[ 98.713184] CPU Budget hotplug: cluster0 min:0 max:4
[ 100.140706] CPU1: shutdown
[ 100.143727] psci: CPU1 killed.
[ 103.487692] CPU1: Booted secondary processor
[ 103.492485] CPU1: update cpu_power 1968128
[ 105.060676] CPU1: shutdown
[ 105.063871] psci: CPU1 killed.
[ 119.482749] [dramfreq] 336000KHz->672000KHz start
[ 119.535906] [dramfreq] [cpu0] elapsed:17us
[ 119.540393] [dramfreq] 336000KHz->672000KHz ok
[ 121.156641] [dramfreq] 672000KHz->336000KHz start
[ 121.193319] [dramfreq] [cpu0] elapsed:24us
[ 121.198261] [dramfreq] 672000KHz->336000KHz ok
But I can see the module.....
output of "lsmod"
bcmdhd 622958 0 - Live 0x0000000000000000
rtl_btlpm 5060 0 - Live 0x0000000000000000
cdc_ether 5238 0 - Live 0x0000000000000000
rtl8150 9423 0 - Live 0x0000000000000000
mcs7830 6517 0 - Live 0x0000000000000000
qf9700 6907 0 - Live 0x0000000000000000
asix 21652 0 - Live 0x0000000000000000
usbnet 26248 4 cdc_ether,mcs7830,qf9700,asix, Live 0x0000000000000000
vfe_v4l2 779480 0 - Live 0x0000000000000000
gc2155 19952 0 - Live 0x0000000000000000
gc2035 19147 0 - Live 0x0000000000000000
gc0328c 17046 0 - Live 0x0000000000000000
vfe_io 42679 4 vfe_v4l2,gc2155,gc2035,gc0328c, Live 0x0000000000000000
videobuf2_dma_contig 9997 1 vfe_v4l2, Live 0x0000000000000000
videobuf2_memops 2691 1 videobuf2_dma_contig, Live 0x0000000000000000
videobuf2_core 31877 1 vfe_v4l2, Live 0x0000000000000000
sw_device 20114 0 - Live 0x0000000000000000
sunxi_keyboard 6722 0 - Live 0x0000000000000000
sunxi_schw 14297 0 - Live 0x0000000000000000 (O)
mali 212885 21 - Live 0x0000000000000000 (O)
hdmi 37597 0 - Live 0x0000000000000000
sunxi_tr 10599 2 - Live 0x0000000000000000
disp 1080324 7 hdmi, Live 0x0000000000000000
nand 346609 0 - Live 0x0000000000000000 (O)
|
|