We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

Wifi not working after building customized image



  • We followed the steps on https://onion.io/2bt-cross-compiling-c-programs-part-1/ and customized the kernel by adding the huawei_cdc_ncm driver. We ran 'scripts/feeds update' & 'scripts/feeds install ralink-wifi-mt76x8' . Then ran 'make menuconfig' and selected Onion -> Ralink -> ralink-wifi-mt76x8.

    But when we run the new kernel, we got the error message 'ra0(ralink) interface type not supported'.

    Then we modify /etc/config/wireless to use the mac80211 driver instead:

    config wifi-device 'radio0'
    option type 'mac80211'
    option hwmode '11g'
    option channel '1'
    option path 'platform/10300000.wmac'
    option htmode 'HT20'
    option disabled '0'

    config wifi-iface
    option device 'radio0'
    option network 'wlan'
    option mode 'ap'
    option encryption 'psk2'
    option ssid 'mySSID'
    option key 'myPassword"

    We ran 'wifi'. There were no errors, but we still could not see the Omega broadcasting the SSID. We also tried rebooting the system, but the wifi is still not working.

    Any help is appreciated.



  • hi,

    wifi works only with onion omega firmware.
    Even with onion source or LEDE/Openwrt, no wifi is possible on self build image.
    And there is no answers here, never.



  • @aobs
    Actually, ralink-wifi-mt76x8 does not work with mac80211. Please see below the official configuration from the Omega's firmware and the build system:

    config wifi-device 'ra0'
            option type 'ralink'
            option mode '9'
            option channel 'auto'
            option txpower '100'
            option ht '20'
            option country 'US'
            option disabled '0' 
    
    config wifi-iface
            option device 'ra0'
            option network 'wlan'
            option mode 'ap'
            option encryption 'psk2'
            option key '12345678'
            option ApCliEncrypType 'AES'
            option ssid 'Omega-XXXX'
            option ApCliAuthMode 'WPA2PSK'
            option ApCliSsid 'SSID'
            option ApCliPassWord 'PASSWORD'
            option ApCliEnable '1'
    

    Please use this as a format for your own configuration.



  • @Pavel-Metrokhin

    I'm in the process of rolling my own firmware and want to avoid bricking my Omega2 (or at least prolong the time until I have to learn to unbrick it!). From what you've said, is it correct that by following @aobs instructions and using your wireless config I would have a firmware that has functional wifi which I could then start tweaking?

    The reason I ask is that a lot of comments here seem to suggest that it's not possible to have wifi working in custom firmware.

    Thanks a lot!



  • I look forward to Pavel Metrokhin's reply !

    I would like too to build my own firmware.



  • @Pavel-Metrokhin I modified /etc/config/wireless to your setting, but still does not work. Whether using my old or this new setting, running 'ip addr' only shows

    1: lo: <LOOPBACK,UP,,LOWER_UP> ......
    ......
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> .....
    ......
    3: br-wlan: <BROADCAST,MULTICAST,UP,LOWER_UP> .....
    ......
    4: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> .....
    .....

    The ra0 device does not show up.



  • @Pavel-Metrokhin I suspect the ralink-wifi-mt76x8 module is not in the customized image. Can you let me know where the ralink-wifi-mt76x8 is located? I cannot find the module under '/lib/modules/4.4.74'. Is the name 'mt76x8.ko' same as that in the OnionIoT/OpenWRT-Packages?



  • Only the binary is available for this mt76x8 driver and it is actually compiled for 4.4.46 Kernel version. On the current firmware (b160), the mt76x8 is located under the /lib/modules/4.4.46.

    As you can see in the package makefile the install deirectory is based on $(LINUX_VERSION) variable. I would suggest trying your luck with modifying this installation path.



  • @Pavel-Metrokhin
    I don't know about anyone else, but when I try and incorporate this 4.4.46 binary into a new kernel compilation, I can't get past the kernel bug that results:

    [   18.453764] Kernel bug detected[#1]:
    [   18.457418] CPU: 0 PID: 1118 Comm: ifconfig Tainted: G        W       4.4.74 #0
    [   18.464833] task: 87da8a10 ti: 8727a000 task.ti: 8727a000
    [   18.470304] $ 0   : 00000000 00000001 00000001 0000ff00
    [   18.475622] $ 4   : 872ea16c 00000000 00000000 00000001
    [   18.480931] $ 8   : 00000001 872ea1ac 00000000 353d7974
    [   18.486242] $12   : ffffffdf 00000058 00000000 00000041
    [   18.491552] $16   : 810e5d40 0000016c 80430000 c045a7dc
    [   18.496861] $20   : 8721d880 c0455000 87283480 00000001
    [   18.502171] $24   : 00000000 800206c4
    [   18.507480] $28   : 8727a000 8727baf8 00000001 877680a0
    [   18.512793] Hi    : 00000000
    [   18.515712] Lo    : 00000000
    [   18.518661] epc   : 800206d0 r4k_dma_cache_wback_inv+0xc/0xc8
    [   18.524907] ra    : 877680a0 linux_pci_map_single+0x88/0xb4 [mt76x8]
    [   18.531347] Status: 1100e402 KERNEL EXL
    [   18.535336] Cause : 10800034 (ExcCode 0d)
    [   18.539399] PrId  : 00019655 (MIPS 24KEc)
    [   18.543459] Modules linked in: pppoe ppp_async option iptable_nat w1_therm w1_gpio uvcvideo usb_wwan snd_usb_audio pppox ppp_generic pl2303 nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ftdi_sio cp210x ch341 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG wire videobuf2_v4l2 usbserial usblp usbhid ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda uinput spidev snd_usbmidi_lib slhc rfcomm nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables hidp hid_generic hci_uart crc_ccitt cdc_acm btusb btintel bnep bluetooth snd_soc_simple_card snd_soc_ralink_i2s snd_soc_wm8960 videobuf2_vmalloc videobuf2_memops videobuf2_core hid v4l2_common videodev evdev snd_soc_core ralink_gdma virt_dma mt76x8 ralink_eeprom_api ledtrig_oneshot ledtrig_morse ledtrig_heartbeat ledtrig_gpio ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables msdos snd_pcm_dmaengine snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore vfat fat ntfs configfs autofs4 nls_utf8 nls_iso8859_1 nls_cp437 regmap_i2c dma_shared_buffer ecb cmac mmc_block usb_storage sdhci_pltfm sdhci mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ledtrig_transient ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache exfat usbcore nls_base usb_common crc16 cryptomgr aead crypto_null crc32c_generic crypto_hash
    [   18.693561] Process ifconfig (pid: 1118, threadinfo=8727a000, task=87da8a10, tls=77159d48)
    [   18.701935] Stack : 87fb4000 8727bbcc 87776640 87fb5000 87268000 877680a0 00000000 877244dc
              87fb4000 00000001 a7678000 c0455000 c052ef54 8773a56c c045cd95 87268000
              c0455000 87fb4000 0000ff00 c045c128 87776710 00000001 872ea16c 00000000
              00000001 00000001 00000000 872ea16c 87fb4000 8721d880 00000000 c0455000
              8721d880 c052ef50 c0535000 c052ef6c c052ef7c 87739884 00000000 87762934
              ...
    [   18.738062] Call Trace:
    [   18.740562] [<800206d0>] r4k_dma_cache_wback_inv+0xc/0xc8
    [   18.746412] [<877680a0>] linux_pci_map_single+0x88/0xb4 [mt76x8]
    [   18.753251] [<8773a56c>] AndesMTPciKickOutCmdMsg+0x104/0x238 [mt76x8]
    [   18.760531] [<87739884>] AndesSendCmdMsg+0x1b4/0xd98 [mt76x8]
    [   18.767109] [<87739cc4>] AndesSendCmdMsg+0x5f4/0xd98 [mt76x8]
    [   18.773302]
    [   18.774811]
    Code: 27bdffe8  2ca20001  afbf0014 <00020336> 3c02803c  24426060  8c430008  7c630440  10600013
    [   18.785007] ---[ end trace 4dc81609bcbaa4f1 ]---
    [   18.793193] Fatal exception: panic in 5 seconds
    [   19.684891] Kernel bug detected[#2]:
    [   19.688724] CPU: 0 PID: 1121 Comm: RtmpCmdQTask Tainted: G      D W       4.4.74 #0
    [   19.696491] task: 87da9928 ti: 8728e000 task.ti: 8728e000
    [   19.701961] $ 0   : 00000000 80410000 00000001 0000ff00
    [   19.707273] $ 4   : 872ea04c 00000000 00000000 00000001
    [   19.712581] $ 8   : 00000001 872ea088 00000000 00000000
    [   19.717889] $12   : 00000000 c04567ac 00000000 00000000
    [   19.723197] $16   : 810e5d40 0000004c 80430000 c045a7dc
    [   19.728509] $20   : 8728c400 c0455000 872836c0 00000001
    [   19.733819] $24   : 00000000 800206c4
    [   19.739130] $28   : 8728e000 8728fce8 00000000 877680a0
    [   19.744444] Hi    : 00000000
    [   19.747361] Lo    : 00000000
    [   19.750311] epc   : 800206d0 r4k_dma_cache_wback_inv+0xc/0xc8
    [   19.756536] ra    : 877680a0 linux_pci_map_single+0x88/0xb4 [mt76x8]
    [   19.762976] Status: 1100e402 KERNEL EXL
    [   19.766966] Cause : 10800034 (ExcCode 0d)
    [   19.771029] PrId  : 00019655 (MIPS 24KEc)
    [   19.775089] Modules linked in: pppoe ppp_async option iptable_nat w1_therm w1_gpio uvcvideo usb_wwan snd_usb_audio pppox ppp_generic pl2303 nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ftdi_sio cp210x ch341 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG wire videobuf2_v4l2 usbserial usblp usbhid ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda uinput spidev snd_usbmidi_lib slhc rfcomm nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables hidp hid_generic hci_uart crc_ccitt cdc_acm btusb btintel bnep bluetooth snd_soc_simple_card snd_soc_ralink_i2s snd_soc_wm8960 videobuf2_vmalloc videobuf2_memops videobuf2_core hid v4l2_common videodev evdev snd_soc_core ralink_gdma virt_dma mt76x8 ralink_eeprom_api ledtrig_oneshot ledtrig_morse ledtrig_heartbeat ledtrig_gpio ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables msdos snd_pcm_dmaengine snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore vfat fat ntfs configfs autofs4 nls_utf8 nls_iso8859_1 nls_cp437 regmap_i2c dma_shared_buffer ecb cmac mmc_block usb_storage sdhci_pltfm sdhci mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ledtrig_transient ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache exfat usbcore nls_base usb_common crc16 cryptomgr aead crypto_null crc32c_generic crypto_hash
    [   19.925191] Process RtmpCmdQTask (pid: 1121, threadinfo=8728e000, task=87da9928, tls=00000000)
    [   19.933916] Stack : efd78db7 8cb96eff b3fffde1 7f7fb7dd 5dfff5f5 877680a0 feffecff d5ef7bb2
              9575fff7 6db33fcf a7678000 c0455000 c052ef54 8773a56c 6fafb736 eb8e7fdf
              dbdfd184 58df9fd6 0000ff00 dd7fdf4f 4f7b97be 00000001 872ea04c 00000000
              00000001 00000001 00000000 872ea04c ffd7ff87 8728c400 00000000 c0455000
              8728c400 c052ef50 c0535000 c052ef6c c052ef7c 87739884 00000000 87762934
              ...
    [   19.970047] Call Trace:
    [   19.972548] [<800206d0>] r4k_dma_cache_wback_inv+0xc/0xc8
    [   19.978400] [<877680a0>] linux_pci_map_single+0x88/0xb4 [mt76x8]
    [   19.985239] [<8773a56c>] AndesMTPciKickOutCmdMsg+0x104/0x238 [mt76x8]
    [   19.992520] [<87739884>] AndesSendCmdMsg+0x1b4/0xd98 [mt76x8]
    [   19.999096] [<8773d588>] CmdSlotTimeSet+0xb4/0xd8 [mt76x8]
    [   20.005409] [<87741014>] MtAsicSetSlotTime+0x20/0x2c [mt76x8]
    [   20.011983] [<8772a6d0>] CMDHandler+0x1b4/0x224 [mt76x8]
    [   20.018116] [<87766bc4>] RTPCICmdThread+0xb4/0x198 [mt76x8]
    [   20.024143] [<8003bfb8>] kthread+0xd8/0xec
    [   20.028303] [<80004478>] ret_from_kernel_thread+0x14/0x1c
    [   20.033773]
    [   20.035278]
    Code: 27bdffe8  2ca20001  afbf0014 <00020336> 3c02803c  24426060  8c430008  7c630440  10600013
    [   20.045467] ---[ end trace 4dc81609bcbaa4f2 ]---
    [   20.052711] Fatal exception: panic in 5 seconds
    [   23.804645] Kernel panic - not syncing: Fatal exception
    [   23.812718] Rebooting in 3 seconds..
    

    Are you at Onion able to get past this problem in your build environment?
    If you are, I would sure like some pointers on how you are doing it.



  • @cas If you look at https://github.com/OnionIoT/source, you can read in the description:

    "Due to incompatibilities with recent kernel updates, building a firmware with the Ralink APSoC WiFi SoftAP driver will cause a kernel panic during boot".

    The official firmware runs on 4.4.46 and I bet that reason for that is WiFi kernel module. You can try to go back with LEDE to 4.4.46 or try to use open source driver (mt76?). I'd rather recommend going with closed source driver (open source driver seems to be buggy). To be precise, you can take a look on commits to kernel-version.mk (https://github.com/OnionIoT/source/commits/lede-17.01/include/kernel-version.mk). The 4.4.46 was introduced with b786a5ffc39539d55cf74ebd43edde9051b4682d (https://github.com/OnionIoT/source/commit/b786a5ffc39539d55cf74ebd43edde9051b4682d#diff-9e2e0c0e43d2d4ab7bf91e5fdd11cf2a). However, I didn't build this kernel yet so I am not sure if you will face other problems.



  • @Arek-Z
    There's more to it than that, unfortunately. This is from a build at that checkout:

    [   12.126013] random: jshn: uninitialized urandom read (4 bytes read, 31 bits of entropy available)
    [   18.620904] Kernel bug detected[#1]:
    [   18.624557] CPU: 0 PID: 1126 Comm: ifconfig Tainted: G        W       4.4.46 #0
    [   18.631971] task: 87d21420 ti: 872a0000 task.ti: 872a0000
    [   18.637442] $ 0   : 00000000 00000001 00000001 0000ff00
    [   18.642761] $ 4   : 8730216c 00000000 00000000 00000001
    [   18.648071] $ 8   : 00000001 873021ac 00000000 00000000
    [   18.653381] $12   : 00000001 00080008 00000000 00000041
    [   18.658690] $16   : 810e6040 0000016c 80420000 c047d7dc
    [   18.664002] $20   : 87270200 c0478000 87280540 00000001
    [   18.669314] $24   : 00000000 80020694
    [   18.674626] $28   : 872a0000 872a1af8 00000001 870680a0
    [   18.679938] Hi    : 00000000
    [   18.682854] Lo    : 00000000
    [   18.685802] epc   : 800206a0 r4k_dma_cache_wback_inv+0xc/0xc8
    [   18.692041] ra    : 870680a0 linux_pci_map_single+0x88/0xb4 [mt76x8]
    [   18.698482] Status: 1100e402 KERNEL EXL
    [   18.702472] Cause : 10800034 (ExcCode 0d)
    [   18.706535] PrId  : 00019655 (MIPS 24KEc)
    [   18.710595] Modules linked in: pppoe ppp_async option iptable_nat w1_therm w1_gpio uvcvideo usb_wwan snd_usb_audio pppox ppp_generic pl2303 nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ftdi_sio cp210x ch341 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG wire videobuf2_v4l2 usbserial usblp usbhid ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda uinput spidev snd_usbmidi_lib slhc rfcomm nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables hidp hid_generic hci_uart crc_ccitt cdc_acm btusb btintel bnep bluetooth snd_soc_simple_card snd_soc_ralink_i2s snd_soc_wm8960 videobuf2_vmalloc videobuf2_memops videobuf2_core hid v4l2_common videodev evdev snd_soc_core ralink_gdma virt_dma i2c_dev mt76x8 ralink_eeprom_api ledtrig_oneshot ledtrig_heartbeat ledtrig_gpio ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables msdos snd_pcm_dmaengine snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore vfat fat ntfs configfs autofs4 nls_utf8 nls_iso8859_1 nls_cp437 regmap_spi regmap_mmio regmap_i2c i2c_core regmap_core lzo_decompress lzo_compress dma_shared_buffer ecb cmac mmc_block usb_storage sdhci_pltfm sdhci mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ledtrig_transient ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache exfat usbcore nls_base usb_common crc16 cryptomgr aead crypto_null crc32c_generic crypto_hash
    [   18.866524] Process ifconfig (pid: 1126, threadinfo=872a0000, task=87d21420, tls=7750fd48)
    [   18.874896] Stack : 87f96000 872a1bcc 87076640 87f92000 870fb800 870680a0 00000000 870244dc
              87f96000 00000001 a70cd000 c0478000 c0551f54 8703a56c c047fd95 870fb800
              c0478000 87f96000 0000ff00 c047f128 87076710 00000001 8730216c 00000000
              00000001 00000001 00000000 8730216c 87f96000 87270200 00000000 c0478000
              87270200 c0551f50 c0558000 c0551f6c c0551f7c 87039884 00000000 87062934
              ...
    [   18.911028] Call Trace:
    [   18.913528] [<800206a0>] r4k_dma_cache_wback_inv+0xc/0xc8
    [   18.919379] [<870680a0>] linux_pci_map_single+0x88/0xb4 [mt76x8]
    [   18.926217] [<8703a56c>] AndesMTPciKickOutCmdMsg+0x104/0x238 [mt76x8]
    [   18.933496] [<87039884>] AndesSendCmdMsg+0x1b4/0xd98 [mt76x8]
    [   18.940072] [<87039cc4>] AndesSendCmdMsg+0x5f4/0xd98 [mt76x8]
    [   18.946265]
    [   18.947774]
    Code: 27bdffe8  2ca20001  afbf0014 <00020336> 3c02803b  24424060  8c430008  7c630440  10600013
    [   18.957966] ---[ end trace 8fb37b093b9c9a63 ]---
    [   18.966147] Fatal exception: panic in 5 seconds
    [   19.860568] Kernel bug detected[#2]:
    [   19.864403] CPU: 0 PID: 1127 Comm: RtmpCmdQTask Tainted: G      D W       4.4.46 #0
    [   19.872170] task: 87d22338 ti: 8727c000 task.ti: 8727c000
    [   19.877640] $ 0   : 00000000 80400000 00000001 0000ff00
    [   19.882957] $ 4   : 8730204c 00000000 00000000 00000001
    [   19.888267] $ 8   : 00000001 87302088 00000000 00000020
    [   19.893577] $12   : 00000040 00000008 00000000 00000001
    [   19.898885] $16   : 810e6040 0000004c 80420000 c047d7dc
    [   19.904196] $20   : 8724a100 c0478000 872806c0 00000001
    [   19.909507] $24   : 00000000 80020694
    [   19.914819] $28   : 8727c000 8727dce8 00000000 870680a0
    [   19.920130] Hi    : 00000000
    [   19.923046] Lo    : 00000000
    [   19.925994] epc   : 800206a0 r4k_dma_cache_wback_inv+0xc/0xc8
    [   19.932222] ra    : 870680a0 linux_pci_map_single+0x88/0xb4 [mt76x8]
    [   19.938663] Status: 1100e402 KERNEL EXL
    [   19.942653] Cause : 10800034 (ExcCode 0d)
    [   19.946716] PrId  : 00019655 (MIPS 24KEc)
    [   19.950775] Modules linked in: pppoe ppp_async option iptable_nat w1_therm w1_gpio uvcvideo usb_wwan snd_usb_audio pppox ppp_generic pl2303 nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE ftdi_sio cp210x ch341 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG wire videobuf2_v4l2 usbserial usblp usbhid ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda uinput spidev snd_usbmidi_lib slhc rfcomm nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables hidp hid_generic hci_uart crc_ccitt cdc_acm btusb btintel bnep bluetooth snd_soc_simple_card snd_soc_ralink_i2s snd_soc_wm8960 videobuf2_vmalloc videobuf2_memops videobuf2_core hid v4l2_common videodev evdev snd_soc_core ralink_gdma virt_dma i2c_dev mt76x8 ralink_eeprom_api ledtrig_oneshot ledtrig_heartbeat ledtrig_gpio ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables msdos snd_pcm_dmaengine snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd input_core soundcore vfat fat ntfs configfs autofs4 nls_utf8 nls_iso8859_1 nls_cp437 regmap_spi regmap_mmio regmap_i2c i2c_core regmap_core lzo_decompress lzo_compress dma_shared_buffer ecb cmac mmc_block usb_storage sdhci_pltfm sdhci mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ledtrig_transient ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache exfat usbcore nls_base usb_common crc16 cryptomgr aead crypto_null crc32c_generic crypto_hash
    [   20.106715] Process RtmpCmdQTask (pid: 1127, threadinfo=8727c000, task=87d22338, tls=00000000)
    [   20.115439] Stack : 02020200 80086720 ffffffe4 871c3b60 87e8c980 870680a0 00000000 00000000
              871c3b60 00000000 a70cd000 c0478000 c0551f54 8703a56c 00000000 87271d20
              00000000 803b8a00 0000ff00 803b84c0 00000000 00000001 8730204c 00000000
              00000001 00000001 00000000 8730204c 00040008 8724a100 00000000 c0478000
              8724a100 c0551f50 c0558000 c0551f6c c0551f7c 87039884 00000000 87062934
              ...
    [   20.151567] Call Trace:
    [   20.154067] [<800206a0>] r4k_dma_cache_wback_inv+0xc/0xc8
    [   20.159918] [<870680a0>] linux_pci_map_single+0x88/0xb4 [mt76x8]
    [   20.166754] [<8703a56c>] AndesMTPciKickOutCmdMsg+0x104/0x238 [mt76x8]
    [   20.174035] [<87039884>] AndesSendCmdMsg+0x1b4/0xd98 [mt76x8]
    [   20.180610] [<8703d588>] CmdSlotTimeSet+0xb4/0xd8 [mt76x8]
    [   20.186923] [<87041014>] MtAsicSetSlotTime+0x20/0x2c [mt76x8]
    [   20.193496] [<8702a6d0>] CMDHandler+0x1b4/0x224 [mt76x8]
    [   20.199627] [<87066bc4>] RTPCICmdThread+0xb4/0x198 [mt76x8]
    [   20.205654] [<8003bf48>] kthread+0xd8/0xec
    [   20.209814] [<80004478>] ret_from_kernel_thread+0x14/0x1c
    [   20.215283]
    [   20.216791]
    Code: 27bdffe8  2ca20001  afbf0014 <00020336> 3c02803b  24424060  8c430008  7c630440  10600013
    [   20.226988] ---[ end trace 8fb37b093b9c9a64 ]---
    [   20.234243] Fatal exception: panic in 5 seconds
    [   23.971901] Kernel panic - not syncing: Fatal exception
    [   23.979971] Rebooting in 3 seconds..
    

    I'm curious as to whether the OP @aobs has achieved any success with this?
    And same for @Pavel-Metrokhin & @onion



  • According to Onion, they will roll out a new WiFi driver in April.



  • @aobs said on 27 Mar 2018, 06:50

    According to Onion, they will roll out a new WiFi driver in April.

    Really?
    For Omega2(+)? But in which year / decade / century / ... ? 😉
    Please let us know, where did you read this?



  • Next month. From their staff by email directly. At least, this is what they told me.



  • They are indeed very close (15h ago):
    https://github.com/OnionIoT/OpenWRT-Packages/commit/1b4280a7b51bc835de22288edd142dfaf7084c2c

    @EDIT
    Actually, they are done with it:

    @Maximilian-Gerhardt said in Omega2 current defects:

    OnionIoT has released a new firmware version b176 in https://onion.io/2bt-march-27-2018/ in which it is stated that:

    • a new WiFi driver "WiFi Warp Core" has been released, which fixes problems with:
      • general WiFi performance
      • Automatic Network Switching
      • Automatic Network Encryption Detection in wifisetup
      • Support for Hidden SSIDs
    • SPI Improvements
      • maximum transfer sizes increased to 4096 bytes
      • MSB corruption fixed for "some" devices ("We’ve observed that some SPI devices still show data corruption but others do not")
      • new python-spidev package for writing user-space programs with SPI (apparently different from old pyOnionSpi)

    Will re-test and recompile older programs to see how much it improved. Main post updated.





  • hi,

    I just build my own firmware and wifi is working !

    ( I just have to manually select Coreutils to make the wifi drivers appears in onion/wifi )



  • Hi Stephane
    can you explain your steps to succeed your image.



  • @Stephane-Foloppe
    hello stephane , could you please write a brief explanation on how you build your image ?



  • @Stephane-Foloppe hi, I'm trying to build my own image (from https://github.com/OnionIoT/source) with wifi-warp-core.

    I simply copied the folder wifi-warp-core from https://github.com/OnionIoT/OpenWRT-Packages to source/package/onion.

    After doing this, Onion > WiFi > wifi-warp-core* appears in menuconfig, but when I enable it I get the following error:

     Collected errors:
     * satisfy_dependencies_for: Cannot satisfy the following dependencies for wifi-warp-core:
     * 	coreutils-base64 * 
     * opkg_install_cmd: Cannot install package wifi-warp-core.
    package/Makefile:60: recipe for target 'package/install' failed
    

    I tried enabling coreutils-base64 by enabling Base system > busybox > Coreutils (after enabling Customize busybox options) > base64 in menuconfig but nothing changed...

    Could anyone tell me what I'm doing wrong?



  • Re: Wifi not working after building customized image

    I have successfully built the customised image. The steps are pretty straight forward. I am using Docker on my MAC. Just follow the steps on Cross-Compiling C & C++ Programs: Part 1 - Setting Up the Build System to pull the latest source from the repository. If you do not have Docker, just follow the steps to install & set up Docker and create a container.

    Run the image. After the container is up, you should be at ~/source. If not, just ensure you are at ~/source.

    Run

     make menuconfig
    

    Select Onion -> WiFi, you should see "wifi-warp-core" there.

    It should be automatically selected already. If it is not, just click "Y" to include this in the kernel.

    If you need other libraries, drivers, modules, etc., just select those in the config menu.

    There is a problem with compiling mosquito if libwebsockets is selected under Libraries, I disable

     Network -> mosquito-ssl -> libwebsocket support
    

    Save & Exit the config menu.

    Usually, I will run

     scripts/feeds update -a
    

    If the packages I require are not there, I run

     scripts/feeds install package_name
    

    To compile the customised image, run

     make V=s
    

    If you encounter a problem with compiling MicroPython and you are not using it, just unselect it in the config menu.



Looks like your connection to Community was lost, please wait while we try to reconnect.