Jump to content

mantouboji

Members
  • Posts

    134
  • Joined

  • Last visited

Everything posted by mantouboji

  1. Orange OS uses a "-DOTT_UWE" to compile uwe5622 driver and then bypass dts and probe wifi module on-the-fly.
  2. It is very very strange. I download a OrangeOS arch image from OrangePi site, and WiFi and BT runs very well under it, kernel 6.1.31-1+ So I try to hack its dtb and use dtc to decompile to dts. there are no any wifi config in mmc1 section and no any BT config in uart1 section, and can't find any script to load uwe5622 module. ``` [oem@orange-os /]$ dmesg | grep WCN [ 8.107474] WCN: marlin_init entry! [ 8.124163] WCN: wcn config bt wake host [ 8.129076] WCN_ERR: dts node for bt_wake not found [ 8.129090] WCN: marlin2 parse_dt some para not config [ 8.160759] WCN: marlin_probe ok! [ 8.330380] WCN: start_marlin [MARLIN_WIFI] [ 8.335315] WCN: marlin power state:0, subsys: [MARLIN_WIFI] power 1 [ 8.342931] WCN: the first power on start [ 8.451796] WCN: marlin chip en dummy pull up -- need manually set GPIO [ 8.502575] WCN: marlin_get_wcn_chipid: chipid: 0x2355b001 [ 8.508119] WCN: marlin_scan_finish! [ 8.518954] WCN: then marlin start to download [ 8.525939] WCN: marlin_request_firmware from /lib/firmware/wcnmodem.bin start! [ 9.531979] WCN: combin_img 0 marlin_firmware_write finish and successful [ 9.538987] WCN: marlin_start_run read reset reg val:0x1 [ 9.544357] WCN: after do marlin_start_run reset reg val:0x0 [ 9.550242] WCN: s_marlin_bootup_time=9550241170 [ 9.556815] WCN: clock mode: TSX [ 9.564933] WCN: marlin_write_cali_data sync init_state:0xd2800000 [ 9.596012] WCN: marlin_write_cali_data sync init_state:0xf0f0f0f1 [ 9.602236] WCN: sdio_config bt_wake_host trigger:[high] [ 9.607589] WCN: sdio_config irq:[inband] [ 9.611633] WCN: sdio_config wake_host_level_duration_time:[20ms] [ 9.617742] WCN: sdio_config wake_host_data_separation:[bt/wifi reuse] [ 9.624283] WCN: marlin_send_sdio_config_to_cp sdio_config:0x80f01 (enable config) [ 9.632212] WCN: marlin_write_cali_data finish [ 9.636872] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0 [ 9.667987] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0 [ 9.704174] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0 [ 9.736081] WCN: check_cp_ready sync val:0xf0f0f0f2, prj_type val:0x0 [ 9.768248] WCN: check_cp_ready sync val:0xf0f0f0f6, prj_type val:0x0 [ 9.774765] WCN: marlin_bind_verify confuse data: 0xf330e5f961b79fa1307586c664488000 [ 9.782602] WCN: marlin_bind_verify verify data: 0xec6e0071f00c97a30cdc28fa5c1fb71a [ 9.802990] WCN: check_cp_ready sync val:0xf0f0f0f8, prj_type val:0x0 [ 9.836087] WCN: check_cp_ready sync val:0xf0f0f0ff, prj_type val:0x0 [ 9.850854] WCN: get_cp2_version entry! [ 9.890098] WCN: WCND at cmd read:WCN_VER:Platform Version:MARLIN3_19B_W21.05.3~Project Version:sc2355_marlin3_lite_ott~12-15-2021 11:26:33~ [ 9.902864] WCN: switch_cp2_log - close entry! [ 9.909156] WCN: WCND at cmd read:OK [ 9.912887] WCN: then marlin download finished and run ok [ 9.918394] WCN: start_loopcheck [ 9.968127] WCN: get_board_ant_num [one_ant] [ 10.216479] WCN: marlin power state:4, subsys: [MARLIN_BLUETOOTH] power 0 [ 10.223327] WCN: can not power off, other module is on [ 11.307156] WCN: start_marlin [MARLIN_BLUETOOTH] [ 11.311827] WCN: marlin power state:4, subsys: [MARLIN_BLUETOOTH] power 1 [ 11.318678] WCN: marlin have open, GNSS is closed [ 12.500125] WCN: start_marlin [MARLIN_BLUETOOTH] [ 12.504793] WCN: marlin power state:5, subsys: [MARLIN_BLUETOOTH] power 1 [ 12.511622] WCN: marlin have open, GNSS is closed [ 38.548440] WCN: start_marlin [MARLIN_BLUETOOTH] [ 38.553123] WCN: marlin power state:5, subsys: [MARLIN_BLUETOOTH] power 1 [ 38.560053] WCN: marlin have open, GNSS is closed ```
  3. I added these: wifi_pwrseq: wifi-pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rtc 1>; clock-names = "osc32k-out"; reset-gpios = <&pio 6 18 0>; /* PG18 */ post-power-on-delay-ms = <200>; }; btlpm:btlpm { compatible = "allwinner,sunxi-btlpm"; uart_index = <1>; bt_wake = <&pio 6 17 1 1 1 1>; bt_hostwake = <&pio 6 16 1 1 1 1>; status = "okay"; }; }; and still error: [ 7.888039] WCN: marlin_init entry! [ 7.889351] WCN: wcn config bt wake host [ 7.889636] WCN_ERR: dts node for bt_wake not found [ 7.889647] WCN: marlin2 parse_dt some para not config [ 7.889670] sdiohal:sdiohal_parse_dt adma_tx:1, adma_rx:1, pwrseq:0, irq type:data, gpio_num:0, blksize:840
  4. [ 0.063345] cryptd: max_cpu_qlen set to 1000 [ 0.705896] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear) [ 0.873638] ledtrig-cpu: registered to indicate activity on CPUs [ 2.266824] sun50i_cpufreq_nvmem: Using CPU speed bin speed0 [ 10.080694] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 408000 KHz, changing to: 480000 KHz [ 14.206388] RPC: Registered tcp transport module. [ 14.206393] RPC: Registered tcp-with-tls transport module. [ 14.206397] RPC: Registered tcp NFSv4.1 backchannel transport module.
  5. I added wifi and bt configurations into your dts and installed it , modprobe uwe5622_bsp_sdio can't work . erros is : [ 117.208119] WCN: marlin_init entry! [ 117.208732] WCN: wcn config bt wake host [ 117.208902] WCN_ERR: dts node for bt_wake not found [ 117.208908] WCN: marlin2 parse_dt some para not config [ 117.208921] sdiohal:sdiohal_parse_dt adma_tx:1, adma_rx:1, pwrseq:0, irq type:data, gpio_num:0, blksize:840 [ 117.211084] sdiohal:sdiohal_init ok [ 117.211757] WCN: marlin_probe ok! sun50i-h616-zero2-wifi.dts
  6. compiled and installed as a dtbo. but can't work. [ 7.922903] WCN: marlin_init entry! [ 7.923606] WCN: wcn config bt wake host [ 7.923937] WCN_ERR: dts node for bt_wake not found [ 7.923949] WCN: marlin2 parse_dt some para not config [ 7.923973] sdiohal:sdiohal_parse_dt adma_tx:1, adma_rx:1, pwrseq:0, irq type:data, gpio_num:0, blksize:840 [ 7.930743] sdiohal:sdiohal_init ok
  7. I plugde an USB WiFi doogle , and it works. But the onboard WiFi/BT can't be found.
  8. Zero2 running latest mantic zero2_mantic.log
  9. the new one, add bluetooth, now hciconfig can found hci0, but can't init it. sun50i-h616-orangepi-zero2.dts
  10. This is my DTS file for OrangePi Zero2, opened UART5 for attach a GPS module on GPIO. Tried to add 1wire, PPS and SPI , but can't work. maybe help someone. sun50i-h616-orangepi-zero2.dts
  11. In OrangePi Zero2 , use UART5
  12. It'true , because none to port DTS from SUNXI to mainline source. In the latest 6.0.x kernel, even all USB its stuff has lost. why?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines