Greetings, Trying to make build BPI-M2U-bsp.
Having trouble with drivers for AP6212 & FT5x_ts. Ubuntu: 16.04.01 clean rootfs.
Any ideas?
firmware and nvram.txt and config.txt are in /lib/firmware/ap6212 folder. Builded modules from BPI-M2U-bsp. build.sh
Kernel is configured by …bpi_defconfig and in there everything looks OK for bcmdhd, everything is enabled.
Using pack script and PhoenixCard to create image:
What am I missing?
Fex Conf for WIFI:
[wlan]
wlan_used = 1
compatible = "allwinner,sunxi-wlan"
clocks = "outa"
;pinctrl-names = "default"
;bt_clk_gpio = port:PI12<4><0><0><0>
wlan_power = "vcc-wifi"
wlan_io_regulator = "vcc-io-wifi"
wlan_busnum = 1
wlan_regon = port:PG10<1><1><1><0>
wlan_hostwake = port:ower0<0><default><default><default>
;--------------------------------------------------------------------------------
;bt configuration
;clocks: 32k clk
;bt_power: bt power
;wlan_io_regulator: the power of bt io
;bt_rst_n: bt function enable io
;status: okay
;--------------------------------------------------------------------------------
[bt]
bt_used = 1
compatible = "allwinner,sunxi-bt"
clocks = "outa"
pinctrl-names = "default"
clock_io = port:PI12<4><0><0><0>
bt_power = "vcc-wifi-2"
bt_io_regulator = "vcc-io-wifi"
bt_rst_n = port:PH12<1><1><1><0>
;--------------------------------------------------------------------------------
;btlpm configuration
;uart_index: uart0, uart1 or uart3
;bt_wake: host wake-up bluetooth device
;bt_wak_host: bt device wake-up host
;status: okay
;--------------------------------------------------------------------------------
[btlpm]
btlpm_used = 0
compatible = "allwinner,sunxi-btlpm"
uart_index = 3
bt_wake = port:PG11<1><1><1><0>
bt_host_wake = port:power1<0><default><default><default>
[sdc1]
sdc1_used = 1
bus-width = 4
sdc1_clk = port:PG00<4><1><3><default>
sdc1_cmd = port:PG01<4><1><3><default>
sdc1_d0 = port:PG02<4><1><3><default>
sdc1_d1 = port:PG03<4><1><3><default>
sdc1_d2 = port:PG04<4><1><3><default>
sdc1_d3 = port:PG05<4><1><3><default>
;sunxi-power-save-mode =
sd-uhs-sdr50 =
sd-uhs-ddr50 =
sd-uhs-sdr104 =
cap-sdio-irq =
keep-power-in-suspend =
ignore-pm-notify =
max-frequency = 150000000
modprobe: ERROR: could not inser 'bcmdhd': No such device
Output from dmesg:
sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1104.440892] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 1104.448462] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 1104.455539] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1104.457998] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1104.459804] sunxi-mmc sdc1: smc 2 p1 err, cmd 8, RTO !!
[ 1104.466951] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 8 width 1 timing LEGACY(SDR12) dt B
[ 1104.475998] sdio_read_cis: 2 callbacks suppressed
[ 1104.476006] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1104.477514] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1104.479021] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1104.481736] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1104.574418] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 8 width 1 timing SD-HS(SDR25) dt B
[ 1104.574584] sunxi-mmc sdc1: sdc set ios: clk 50000000Hz bm PP pm ON vdd 8 width 1 timing SD-HS(SDR25) dt B
[ 1104.574826] sunxi-mmc sdc1: sdc set ios: clk 50000000Hz bm PP pm ON vdd 8 width 4 timing SD-HS(SDR25) dt B
[ 1104.578045] mmc2: new high speed SDIO card at address 0001
[ 1104.740104] wifi_platform_bus_enumerate device present 1
[ 1104.740143] sunxi-wlan wlan: bus_index: 1
[ 1104.740148] ======== Card detection to detect SDIO card! ========
[ 1106.740160] failed to power up DHD generic adapter, 3 retry left
[ 1106.756976] wifi_platform_set_power = 0
[ 1106.757002] ======== PULL WL_REG_ON LOW! ========
[ 1106.757466] wifi_platform_bus_enumerate device present 0
[ 1106.757502] sunxi-wlan wlan: bus_index: 1
[ 1106.757514] ======== Card detection to remove SDIO card! ========
[ 1106.757781] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1106.766349] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1106.774815] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1106.783234] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1106.791851] dummy_sdmmc: probe of mmc2:0001:1 failed with error -123
[ 1106.791970] dummy_sdmmc: probe of mmc2:0001:2 failed with error -123
[ 1106.792599] wifi_platform_set_power = 1
[ 1106.792613] ======== PULL WL_REG_ON HIGH! ========
[ 1106.793026] mmc2: card 0001 removed
[ 1106.793044] sunxi-wlan wlan: check wlan wlan_power voltage: 3300000
[ 1106.793516] sunxi-wlan wlan: check wlan io_regulator voltage: 2700000
[ 1106.793560] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 1106.794668] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1106.810064] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1106.830875] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 1106.838636] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 1106.845514] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1106.847966] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1106.849841] sunxi-mmc sdc1: smc 2 p1 err, cmd 8, RTO !!
[ 1106.857076] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 8 width 1 timing LEGACY(SDR12) dt B
[ 1106.866230] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1106.867753] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1106.869276] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1106.872013] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1106.958769] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 8 width 1 timing SD-HS(SDR25) dt B
[ 1106.958915] sunxi-mmc sdc1: sdc set ios: clk 50000000Hz bm PP pm ON vdd 8 width 1 timing SD-HS(SDR25) dt B
[ 1106.959131] sunxi-mmc sdc1: sdc set ios: clk 50000000Hz bm PP pm ON vdd 8 width 4 timing SD-HS(SDR25) dt B
[ 1106.962376] mmc2: new high speed SDIO card at address 0001
[ 1107.110249] wifi_platform_bus_enumerate device present 1
[ 1107.110287] sunxi-wlan wlan: bus_index: 1
[ 1107.110299] ======== Card detection to detect SDIO card! ========
[ 1109.110345] failed to power up DHD generic adapter, 2 retry left
[ 1109.127198] wifi_platform_set_power = 0
[ 1109.127228] ======== PULL WL_REG_ON LOW! ========
[ 1109.127685] wifi_platform_bus_enumerate device present 0
[ 1109.127721] sunxi-wlan wlan: bus_index: 1
[ 1109.127734] ======== Card detection to remove SDIO card! ========
[ 1109.127997] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1109.136595] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1109.145018] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1109.153462] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1109.161902] dummy_sdmmc: probe of mmc2:0001:1 failed with error -123
[ 1109.162007] dummy_sdmmc: probe of mmc2:0001:2 failed with error -123
[ 1109.162429] wifi_platform_set_power = 1
[ 1109.162442] ======== PULL WL_REG_ON HIGH! ========
[ 1109.162840] sunxi-wlan wlan: check wlan wlan_power voltage: 3300000
[ 1109.163286] sunxi-wlan wlan: check wlan io_regulator voltage: 2700000
[ 1109.163354] mmc2: card 0001 removed
[ 1109.163578] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 1109.164643] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1109.180212] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1109.200928] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 1109.208689] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 1109.215566] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1109.218019] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1109.219916] sunxi-mmc sdc1: smc 2 p1 err, cmd 8, RTO !!
[ 1109.227149] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 8 width 1 timing LEGACY(SDR12) dt B
[ 1109.236383] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1109.237911] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1109.328978] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 8 width 1 timing SD-HS(SDR25) dt B
[ 1109.329141] sunxi-mmc sdc1: sdc set ios: clk 50000000Hz bm PP pm ON vdd 8 width 1 timing SD-HS(SDR25) dt B
[ 1109.329368] sunxi-mmc sdc1: sdc set ios: clk 50000000Hz bm PP pm ON vdd 8 width 4 timing SD-HS(SDR25) dt B
[ 1109.333419] mmc2: new high speed SDIO card at address 0001
[ 1109.480220] wifi_platform_bus_enumerate device present 1
[ 1109.480271] sunxi-wlan wlan: bus_index: 1
[ 1109.480300] ======== Card detection to detect SDIO card! ========
[ 1111.480159] failed to power up DHD generic adapter, 1 retry left
[ 1111.497066] wifi_platform_set_power = 0
[ 1111.497093] ======== PULL WL_REG_ON LOW! ========
[ 1111.497523] wifi_platform_bus_enumerate device present 0
[ 1111.497560] sunxi-wlan wlan: bus_index: 1
[ 1111.497572] ======== Card detection to remove SDIO card! ========
[ 1111.497811] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1111.506313] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1111.514638] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1111.522410] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1111.530267] dummy_sdmmc: probe of mmc2:0001:1 failed with error -123
[ 1111.530364] dummy_sdmmc: probe of mmc2:0001:2 failed with error -123
[ 1111.531112] wifi_platform_set_power = 1
[ 1111.531127] ======== PULL WL_REG_ON HIGH! ========
[ 1111.531362] mmc2: card 0001 removed
[ 1111.531628] sunxi-wlan wlan: check wlan wlan_power voltage: 3300000
[ 1111.531854] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 1111.532104] sunxi-wlan wlan: check wlan io_regulator voltage: 2700000
[ 1111.533160] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1111.550130] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1111.570860] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 1111.578481] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 1111.585445] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1111.587900] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1111.589706] sunxi-mmc sdc1: smc 2 p1 err, cmd 8, RTO !!
[ 1111.596815] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 8 width 1 timing LEGACY(SDR12) dt B
[ 1111.605852] sdio_read_cis: 2 callbacks suppressed
[ 1111.605861] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1111.607368] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1111.608876] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1111.611595] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1111.698010] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 8 width 1 timing SD-HS(SDR25) dt B
[ 1111.698117] sunxi-mmc sdc1: sdc set ios: clk 50000000Hz bm PP pm ON vdd 8 width 1 timing SD-HS(SDR25) dt B
[ 1111.698324] sunxi-mmc sdc1: sdc set ios: clk 50000000Hz bm PP pm ON vdd 8 width 4 timing SD-HS(SDR25) dt B
[ 1111.701703] mmc2: new high speed SDIO card at address 0001
[ 1111.870115] wifi_platform_bus_enumerate device present 1
[ 1111.870152] sunxi-wlan wlan: bus_index: 1
[ 1111.870165] ======== Card detection to detect SDIO card! ========
[ 1113.870167] failed to power up DHD generic adapter, 0 retry left
[ 1113.886987] wifi_platform_set_power = 0
[ 1113.887014] ======== PULL WL_REG_ON LOW! ========
[ 1113.887437] wifi_platform_bus_enumerate device present 0
[ 1113.887473] sunxi-wlan wlan: bus_index: 1
[ 1113.887485] ======== Card detection to remove SDIO card! ========
[ 1113.887549] failed to power up DHD generic adapter, max retry reached**
[ 1113.887592] unregister wifi platform drivers
[ 1113.887605] wifi_platform_bus_enumerate device present 0
[ 1113.887623] sunxi-wlan wlan: bus_index: 1
[ 1113.887634] ======== Card detection to remove SDIO card! ========
[ 1113.887649] dhd_module_init: Failed to load the driver, try cnt 0
[ 1113.887700] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1113.896203] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1113.904632] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1113.912878] sunxi-mmc sdc1: smc 2 p1 err, cmd 7, RTO !!
[ 1113.921255] dhd_module_init: Failed to load driver max retry reached**
[ 1113.921274] dhd_module_init: Exit err=-19
[ 1113.923230] mmc2: card 0001 removed
[ 1113.923744] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 1113.925758] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1113.940073] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1113.960868] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 1113.968678] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 1113.975545] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1113.977990] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1113.979869] sunxi-mmc sdc1: smc 2 p1 err, cmd 8, RTO !!
[ 1113.987439] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[ 1113.995006] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[ 1114.002556] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[ 1114.010065] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[ 1114.017457] sunxi-mmc sdc1: smc 2 p1 err, cmd 55, RTO !!
[ 1114.025208] sunxi-mmc sdc1: smc 2 p1 err, cmd 55, RTO !!
[ 1114.034690] sunxi-mmc sdc1: smc 2 p1 err, cmd 55, RTO !!
[ 1114.043018] sunxi-mmc sdc1: smc 2 p1 err, cmd 55, RTO !!
[ 1114.049723] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm OD pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1114.050715] sunxi-mmc sdc1: smc 2 p1 err, cmd 1, RTO !!
[ 1114.058386] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 1179.052733] ft5x_ts: Unknown symbol input_set_power_enable (err 0)
[ 1179.052792] ft5x_ts: Unknown symbol input_init_platform_resource (err 0)
[ 1179.052812] ft5x_ts: Unknown symbol input_request_int (err 0)
[ 1179.052847] ft5x_ts: Unknown symbol input_fetch_sysconfig_para (err 0)
[ 1179.052898] ft5x_ts: Unknown symbol input_set_int_enable (err 0)
[ 1179.052965] ft5x_ts: Unknown symbol input_free_platform_resource (err 0)
[ 1179.053089] ft5x_ts: Unknown symbol input_free_int (err 0)