ArgusR, AMS1117 is too low power for Omega2+. Please use something in TO220 case - LF33, LM317, etc.
I am using LF33, it's cold. I installed it to small radiator, but it is unneeded by fact.
Posts made by Pavel Negrobov
-
RE: Omega 2+ Temperature
-
RE: Change port of OnionOS webserver
After any reconfiguration web-server you should restart it using command /etc/init.d/uhttpd restart
Config files don't reload automatically. -
RE: Upgrade to OpenWRT 21.02 coming soon?
Hi, guys. How to enable ethernet and WiFi on this firmware?
root@Omega-3079:~# service network reload [ 1255.006885] rt3050-esw 10110000.esw: link changed 0x00 root@Omega-3079:~# [ 1259.065375] rt3050-esw 10110000.esw: link changed 0x01 root@Omega-3079:~# /etc/init.d/network reload [ 1308.682476] rt3050-esw 10110000.esw: link changed 0x00 root@Omega-3079:~# [ 1312.364129] rt3050-esw 10110000.esw: link changed 0x01 root@Omega-3079:~# ifconfig ..... eth0 Link encap:Ethernet HWaddr 40:A3:6B:C1:30:7A UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13104 errors:0 dropped:1 overruns:0 frame:0 TX packets:413 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1496552 (1.4 MiB) TX bytes:42273 (41.2 KiB) Interrupt:5 root@Omega-3079:~# wifisetup --help /bin/ash: wifisetup: not found
-
RE: CMake on Omega2+
@Modest-Polykarpovich Thanks, I'll try your manual.
Happy New Year! -
CMake on Omega2+
Hi guys!
I need cmake build system on Omega2+, but I can't found ready cmake package, on OpenWRT repo also.
Then a tried to build cmake on omega, but compilation failed at last, link stage:/usr/bin/ld: cannot find -ldl /usr/bin/ld: cannot find -lrt collect2: error: ld returned 1 exit status make: *** [Makefile:2: cmake] Error 1 --------------------------------------------- Error when bootstrapping CMake: Problem while running make
How to build cmake or where to obtain ready package?
Or where find these libraries (libdl and librt)?Thanks.
PS.
Build process required a lot of memory, I use 1GB swap on SD card. -
RE: Omega2+ treats files as dirs on USB drive. Why?
@crispyoz I will do this later when I will finish my python soft, I need to check chdir to russian named dirs and read files.
-
RE: Omega2+ treats files as dirs on USB drive. Why?
Mounting USB drive with shortname=mixed option fixes this bug
/bin/mount -o codepage=1251,iocharset=utf8,shortname=mixed /dev/sda1 /mnt/sda1
Problem solved.
-
RE: Omega2+ treats files as dirs on USB drive. Why?
Some experiments show that this bug present only on FAT32 disks.
On exFAT and NTFS all good - женщина.bmp -- file, not a directory. -
Omega2+ treats files as dirs on USB drive. Why?
Hi guys.
I have a USB flash with files with russian names. This is from windows:24.04.2020 14:22 39 576 966 женщина.bmp 24.10.2020 19:56 6 912 054 winpe.bmp 22.01.2021 19:30 3 448 960 Vis - Песня_про_нечисть.mp3 28.01.2021 15:03 165 623 tela_tst.psd 07.03.2020 19:03 205 406 pacan_mini_layers.psd 17.11.2020 12:53 231 080 angelsmal.bmp 13.06.2021 09:16 <DIR> В_Цой 13.06.2021 09:16 <DIR> Dir1 13.06.2021 09:16 <DIR> asdf
Note that женщина.bmp is file.
Same USB flash in omega2:root@Omega-3079:~# ls -l /mnt/sda1 drwxr-xr-x 2 root root 4096 Jun 13 09:16 Dir1 -rwxr-xr-x 1 root root 3448960 Jan 22 19:30 Vis - Песня_про_нечисть.mp3 -rwxr-xr-x 1 root root 231080 Nov 17 2020 angelsmal.bmp drwxr-xr-x 2 root root 4096 Jun 13 09:16 asdf -rwxr-xr-x 1 root root 205406 Mar 7 2020 pacan_mini_layers.psd -rwxr-xr-x 1 root root 165623 Jan 28 15:03 tela_tst.psd -rwxr-xr-x 1 root root 6912054 Oct 24 2020 winpe.bmp drwxr-xr-x 2 root root 4096 Jun 13 09:16 В_Цой drwxr-xr-x 0 root root 39576966 Apr 24 2020 женщина.bmp root@Omega-3079:~# cd /mnt/sda1/женщина.bmp root@Omega-3079:/mnt/sda1/женщина.bmp# root@Omega-3079:/mnt/sda1/женщина.bmp# ls -l root@Omega-3079:/mnt/sda1/женщина.bmp# root@Omega-3079:~# cat /mnt/sda1/женщина.bmp cat: read error: Is a directory
As you can see 'женщина.bmp' - directory, not a file!
Why? How to avoid this? -
RE: [RESOLVED] How to mount USB flash with russian filenames
The problem seems to be fixed
# opkg install kmod-nls-cp1251 # umount /mnt/sda1 # mount -o codepage=1251,iocharset=utf-8 /dev/sda1 /mnt/sda1 root@Omega-3079:/# ls -l /mnt/sda1 -rwxr-xr-x 1 root root 48128 Jan 1 2000 1.BMP -rwxr-xr-x 1 root root 3659904 Jul 26 2003 Boyarskiy-dressirovshik.mp3 drwxr-xr-x 2 root root 4096 Jun 13 09:16 Dir1 drwxr-xr-x 2 root root 4096 May 15 18:03 System Volume Information -rwxr-xr-x 1 root root 3448960 Jan 22 19:30 Vis - Песня_про_нечисть.mp3 -rwxr-xr-x 1 root root 231080 Nov 17 2020 angelsmal.bmp drwxr-xr-x 2 root root 4096 Jun 13 09:16 asdf -rwxr-xr-x 1 root root 9699509 Jun 5 07:49 omega2.bin -rwxr-xr-x 1 root root 205406 Mar 7 2020 pacan_mini_layers.psd -rwxr-xr-x 1 root root 165623 Jan 28 15:03 tela_tst.psd -rwxr-xr-x 1 root root 6912054 Oct 24 2020 winpe.bmp drwxr-xr-x 2 root root 4096 Jun 13 09:16 В_Цой drwxr-xr-x 2 root root 4096 Jun 13 09:16 Кричевский drwxr-xr-x 0 root root 39576966 Apr 24 2020 женщина.bmp
No errors occured.
-
[RESOLVED] How to mount USB flash with russian filenames
Hi, guys!
I need to use USB flash contain russian filenames (written in Windows). Default mounts:# cat /proc/mounts | grep sda1 /dev/sda1 /mnt/sda1 exfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,namecase=0,errors=remount-ro 0 0
ls command gives errors:
root@Omega-3079:~# ls -l /mnt/sda1 [ 196.830841] convert_uni_to_ch: fail to use nls [ 196.835429] convert_uni_to_ch: fail to use nls [ 196.840048] convert_uni_to_ch: fail to use nls [ 196.844596] convert_uni_to_ch: fail to use nls [ 196.849103] convert_uni_to_ch: fail to use nls [ 196.853686] convert_uni_to_ch: fail to use nls [ 196.858262] convert_uni_to_ch: fail to use nls [ 196.862905] ------------[ cut here ]------------ [ 196.867630] WARNING: CPU: 0 PID: 1933 at mm/page_alloc.c:3877 __alloc_pages_nodemask+0x144/0xa6c [ 196.876643] Modules linked in: pppoe ppp_async option w1_therm w1_gpio uvcvideo usb_wwan snd_usb_audio pppox ppp_generic pl2303 nf_conntrack_ipv6 lzo iptable_nat 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 xt_FLOWOFFLOAD 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 pwm_mediatek_ramips nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack lzo_decompress lzo_compress iptable_mangle [ 196.948432] iptable_filter ip_tables hwmon hidp hid_generic hci_uart crc_ccitt cdc_acm btusb btintel bnep bluetooth p44_ledchain snd_soc_simple_card snd_soc_simple_card_utils snd_soc_ralink_i2s snd_soc_wm8960 videobuf2_vmalloc videobuf2_memops videobuf2_core hid v4l2_common videodev evdev snd_soc_core mt_wifi ralink_gdma virt_dma 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 nfs msdos snd_pcm_dmaengine snd_compress snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep snd soundcore vfat fat ntfs lockd sunrpc grace configfs autofs4 nls_utf8 nls_iso8859_1 nls_cp437 regmap_spi regmap_i2c dma_shared_buffer ecdh_generic kpp ecb cmac crypto_acompress mmc_block [ 197.020602] usb_storage sdhci_pltfm sdhci mtk_sd mmc_core leds_gpio ohci_platform ohci_hcd ledtrig_transient ehci_platform sd_mod scsi_mod ehci_hcd gpio_button_hotplug ext4 jbd2 mbcache exfat usbcore nls_base usb_common crc16 aead crypto_null cryptomgr crc32c_generic crypto_hash [ 197.045860] CPU: 0 PID: 1933 Comm: ls Not tainted 4.14.81 #0 [ 197.051594] Stack : 804f36a0 803c7314 00000000 00000000 80432564 8677bb0c 85c3a95c 8048da07 [ 197.060111] 8042e24c 0000078d 804f36a0 00000f25 8677bdc8 00000001 8677bac0 96825141 [ 197.068612] 00000000 00000000 804f0000 00000127 00000000 736c203a 746f4e20 69617420 [ 197.077146] 72632072 000000c0 00000000 63323363 80000000 00000000 8008fcf0 80436c4c [ 197.085687] 00000009 00000f25 8677bdc8 00000000 00000003 80202c18 001b711f 001b70df [ 197.094199] ... [ 197.096682] Call Trace: [ 197.099190] [<8000e624>] show_stack+0x74/0x104 [ 197.103732] [<80025700>] __warn+0x110/0x118 [ 197.107981] [<8002579c>] warn_slowpath_null+0x1c/0x30 [ 197.113126] [<8008fcf0>] __alloc_pages_nodemask+0x144/0xa6c [ 197.118795] [<800a7be0>] kmalloc_order+0x20/0x54 [ 197.123621] [<8702aa18>] exfat_time_fat2unix+0x518/0x608 [exfat] [ 197.129768] ---[ end trace 847ff43f74ec7c41 ]--- ls: /mnt/sda1/ж[ 197.138321] convert_uni_to_ch: fail to use nls енщина.bmp[ 197.144033] convert_uni_to_ch: fail to use nls [ 197.149920] convert_uni_to_ch: fail to use nls [ 197.155839] convert_uni_to_ch: fail to use nls [ 197.161672] convert_uni_to_ch: fail to use nls [ 197.166272] convert_uni_to_ch: fail to use nls [ 197.170774] convert_uni_to_ch: fail to use nls [ 197.175301] convert_uni_to_ch: fail to use nls [ 197.179841] convert_uni_to_ch: fail to use nls [ 197.184378] convert_uni_to_ch: fail to use nls [ 197.188880] convert_uni_to_ch: fail to use nls [ 197.193441] convert_uni_to_ch: fail to use nls [ 197.203598] convert_uni_to_ch: fail to use nls [ 197.208148] convert_uni_to_ch: fail to use nls [ 197.212700] convert_uni_to_ch: fail to use nls [ 197.217213] convert_uni_to_ch: fail to use nls -rwxr-xr-x 1 root root 48128 Jan 1 2000 1.BMP -rwxr-xr-x 1 root root 3659904 Jul 26 2003 Boyarskiy-dressirovshik.mp3 drwxr-xr-x 2 root root 4096 Jun 13 09:16 Dir1 drwxr-xr-x 2 root root 4096 May 15 18:03 System Volume Information -rwxr-xr-x 1 root root 3448960 Jan 22 19:30 Vis - Песня_про_нечисть.mp3 -rwxr-xr-x 1 root root 231080 Nov 17 2020 angelsmal.bmp drwxr-xr-x 2 root root 4096 Jun 13 09:16 asdf -rwxr-xr-x 1 root root 9699509 Jun 5 07:49 omega2.bin -rwxr-xr-x 1 root root 205406 Mar 7 2020 pacan_mini_layers.psd -rwxr-xr-x 1 root root 165623 Jan 28 15:03 tela_tst.psd -rwxr-xr-x 1 root root 6912054 Oct 24 2020 winpe.bmp drwxr-xr-x 2 root root 4096 Jun 13 09:16 В_Цой drwxr-xr-x 2 root root 4096 Jun 13 09:16 Кричевский root@Omega-3079:~#
Filename, which produces error is '/mnt/sda1/женщина.bmp'. If I read USB flash directory in python, this file also "absent". OSError, IOError does not happens.
Centos7 mounts the same flash with parameters:
/dev/sdb1 /run/media/pavel/FLASH8 vfat rw,nosuid,nodev,relatime,uid=1000,gid=1000, fmask=0022,dmask=0022,codepage=437,iocharset=ascii, shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0
I tried this:
~# mount -o codepage=cp437,nls=ascii /dev/sda1 /mnt/sda1 [ 3295.091098] ntfs: (device sda1): parse_options(): Unrecognized mount option codepage. [ 3295.163115] ntfs: (device sda1): parse_options(): NLS character set ascii not found. mount: mounting /dev/sda1 on /mnt/sda1 failed: Invalid argument
But Omega's Linux does not understand this .
How I should mount USB flash to avoid these errors?
Firmware is latest 0.3.3 b251
-
RE: Some WiFi and ethernet connection questions (or bugs?)
@crispyoz said in Some WiFi and ethernet connection questions (or bugs?):
I have a of workaround you could use if you can't reboot. Stop the wifi using the command wifi down. Unload the wifi module: rmmod mt_wireless, reload it: insmod mt_wireless then restart wifi using: wifi up. That works but it's a bit rough.
My omega does not have mt_wireless kernel module, but have mt_wifi:
root@Omega-3079:/# lsmod | grep mt_wireless root@Omega-3079:/# lsmod | grep mt_wi mt_wifi 1360203 2
And this sequence seems works correctly:
/usr/bin/wifisetup add -ssid ZyXEL_GIGA_III -encr psk2 -password invalid_pass /usr/bin/wifisetup remove -ssid ZyXEL_GIGA_III /sbin/wifi down rmmod mt_wifi insmod mt_wifi /sbin/wifi up /usr/bin/wifisetup add -ssid ZyXEL_GIGA_III -encr psk2 -password valid_pass
I will add these commands to my program and check again.
Thank you.
-
RE: Some WiFi and ethernet connection questions (or bugs?)
@crispyoz said in Some WiFi and ethernet connection questions (or bugs?):
When you use wifisetup command and pass an incorrect password, then the wifi cannot be resolved unless you reboot and fix the password. Correct?
Assuming my understanding is correct, I think the solution is to:
- delete the wifi setup with the incorrrect password (wifisetup remove -ssid <ssid name>)
- add the wifi setup with the correct password
Yes, you understood correctly. My Omega does not connect after error in password. Full log:
root@Omega-3079:/# /usr/bin/wifisetup remove -ssid ZyXEL_GIGA_III > ERROR: specified ssid not in the database root@Omega-3079:/# /usr/bin/wifisetup add -ssid ZyXEL_GIGA_III -encr psk2 -passw ord invalid_pass > Restarting wifimanager for changes to take effect root@Omega-3079:/# [ 1247.493061] br-wlan: port 1(ra0) entered disabled state [ 1248.191816] device ra0 left promiscuous mode [ 1248.196286] br-wlan: port 1(ra0) entered disabled state [ 1248.340734] IPv6: ADDRCONF(NETDEV_UP): br-wlan: link is not ready [ 1248.841519] [ 1248.841519] _ _____ ___ ___ _________ ___ ____ [ 1248.841519] | | /| / / _ | / _ \/ _ \ / ___/ __ \/ _ \/ __/ V1.1 [ 1248.841519] | |/ |/ / __ |/ , _/ ___/ / /__/ /_/ / , _/ _/ [ 1248.841519] |__/|__/_/ |_/_/|_/_/ \___/\____/_/|_/___/ [ 1248.841519] Onion Enhanced MT7688 WiFi Driver [ 1248.841519] [ 1249.068727] DMA Scheduler Mode=0(LMAC) [ 1249.072559] efuse_probe: efuse = 10000012 [ 1249.076678] 1. Phy Mode = 14 [ 1249.257467] 2. Phy Mode = 14 [ 1249.260481] 3. Phy Mode = 14 [ 1249.263731] WTBL Segment 1 info: [ 1249.267095] MemBaseAddr/FID:0x28000/0 [ 1249.271034] EntrySize/Cnt:32/128 [ 1249.274481] WTBL Segment 2 info: [ 1249.277838] MemBaseAddr/FID:0x40000/0 [ 1249.281739] EntrySize/Cnt:64/128 [ 1249.285184] WTBL Segment 3 info: [ 1249.288542] MemBaseAddr/FID:0x42000/64 [ 1249.292529] EntrySize/Cnt:64/128 [ 1249.295973] WTBL Segment 4 info: [ 1249.299372] MemBaseAddr/FID:0x44000/128 [ 1249.303433] EntrySize/Cnt:32/128 [ 1260.177537] IPv6: ADDRCONF(NETDEV_UP): ra0: link is not ready [ 1260.183483] IPv6: ADDRCONF(NETDEV_CHANGE): ra0: link becomes ready [ 1263.815527] br-wlan: port 1(ra0) entered blocking state [ 1263.821011] br-wlan: port 1(ra0) entered disabled state [ 1263.826667] device ra0 entered promiscuous mode [ 1263.831505] br-wlan: port 1(ra0) entered blocking state [ 1263.836807] br-wlan: port 1(ra0) entered forwarding state [ 1263.843278] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready [ 1265.964111] Interface apcli0 link up! (WPA2PSK AES) [ 1277.004408] Interface apcli0 link up! (WPA2PSK AES) [ 1288.586478] Interface apcli0 link up! (WPA2PSK AES) [ 1292.844728] Interface apcli0 link up! (WPA2PSK AES) [ 1303.884935] Interface apcli0 link up! (WPA2PSK AES) [ 1315.170444] Interface apcli0 link up! (WPA2PSK AES) root@Omega-3079:/# [ 1319.565373] Interface apcli0 link up! (WPA2PSK AES) root@Omega-3079:/# /usr/bin/wifisetup remove -ssid ZyXEL_GIGA_III > Removing 'ZyXEL_GIGA_III' network from database > Restarting wifimanager for changes to take effect root@Omega-3079:/# [ 1326.895390] br-wlan: port 1(ra0) entered disabled state [ 1327.593785] device ra0 left promiscuous mode [ 1327.598253] br-wlan: port 1(ra0) entered disabled state [ 1327.653822] IPv6: ADDRCONF(NETDEV_UP): br-wlan: link is not ready [ 1328.084832] [ 1328.084832] _ _____ ___ ___ _________ ___ ____ [ 1328.084832] | | /| / / _ | / _ \/ _ \ / ___/ __ \/ _ \/ __/ V1.1 [ 1328.084832] | |/ |/ / __ |/ , _/ ___/ / /__/ /_/ / , _/ _/ [ 1328.084832] |__/|__/_/ |_/_/|_/_/ \___/\____/_/|_/___/ [ 1328.084832] Onion Enhanced MT7688 WiFi Driver [ 1328.084832] [ 1328.250937] DMA Scheduler Mode=0(LMAC) [ 1328.254768] efuse_probe: efuse = 10000012 [ 1328.258890] 1. Phy Mode = 14 [ 1328.469874] 2. Phy Mode = 14 [ 1328.472897] 3. Phy Mode = 14 [ 1328.476178] WTBL Segment 1 info: [ 1328.479544] MemBaseAddr/FID:0x28000/0 [ 1328.483474] EntrySize/Cnt:32/128 [ 1328.486920] WTBL Segment 2 info: [ 1328.490277] MemBaseAddr/FID:0x40000/0 [ 1328.494177] EntrySize/Cnt:64/128 [ 1328.497622] WTBL Segment 3 info: [ 1328.501030] MemBaseAddr/FID:0x42000/64 [ 1328.505003] EntrySize/Cnt:64/128 [ 1328.508447] WTBL Segment 4 info: [ 1328.511823] MemBaseAddr/FID:0x44000/128 [ 1328.515883] EntrySize/Cnt:32/128 [ 1338.779613] IPv6: ADDRCONF(NETDEV_UP): ra0: link is not ready [ 1338.785563] IPv6: ADDRCONF(NETDEV_CHANGE): ra0: link becomes ready [ 1342.354505] br-wlan: port 1(ra0) entered blocking state [ 1342.359935] br-wlan: port 1(ra0) entered disabled state [ 1342.365747] device ra0 entered promiscuous mode [ 1342.370515] br-wlan: port 1(ra0) entered blocking state [ 1342.375880] br-wlan: port 1(ra0) entered forwarding state [ 1342.382738] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready root@Omega-3079:/# root@Omega-3079:/# /usr/bin/wifisetup add -ssid ZyXEL_GIGA_III -encr psk2 -passw ord valid_pass > Restarting wifimanager for changes to take effect root@Omega-3079:/# [ 1384.014316] br-wlan: port 1(ra0) entered disabled state [ 1384.058642] device ra0 left promiscuous mode [ 1384.063173] br-wlan: port 1(ra0) entered disabled state [ 1384.106877] IPv6: ADDRCONF(NETDEV_UP): br-wlan: link is not ready [ 1384.509325] [ 1384.509325] _ _____ ___ ___ _________ ___ ____ [ 1384.509325] | | /| / / _ | / _ \/ _ \ / ___/ __ \/ _ \/ __/ V1.1 [ 1384.509325] | |/ |/ / __ |/ , _/ ___/ / /__/ /_/ / , _/ _/ [ 1384.509325] |__/|__/_/ |_/_/|_/_/ \___/\____/_/|_/___/ [ 1384.509325] Onion Enhanced MT7688 WiFi Driver [ 1384.509325] [ 1384.696150] DMA Scheduler Mode=0(LMAC) [ 1384.699982] efuse_probe: efuse = 10000012 [ 1384.704178] 1. Phy Mode = 14 [ 1384.900014] 2. Phy Mode = 14 [ 1384.903027] 3. Phy Mode = 14 [ 1384.906536] WTBL Segment 1 info: [ 1384.909907] MemBaseAddr/FID:0x28000/0 [ 1384.913848] EntrySize/Cnt:32/128 [ 1384.917294] WTBL Segment 2 info: [ 1384.920651] MemBaseAddr/FID:0x40000/0 [ 1384.924549] EntrySize/Cnt:64/128 [ 1384.927993] WTBL Segment 3 info: [ 1384.931351] MemBaseAddr/FID:0x42000/64 [ 1384.935341] EntrySize/Cnt:64/128 [ 1384.938785] WTBL Segment 4 info: [ 1384.942155] MemBaseAddr/FID:0x44000/128 [ 1384.946215] EntrySize/Cnt:32/128 [ 1395.820885] IPv6: ADDRCONF(NETDEV_UP): ra0: link is not ready [ 1395.832836] IPv6: ADDRCONF(NETDEV_CHANGE): ra0: link becomes ready [ 1399.445630] br-wlan: port 1(ra0) entered blocking state [ 1399.450945] br-wlan: port 1(ra0) entered disabled state [ 1399.456685] device ra0 entered promiscuous mode [ 1399.461449] br-wlan: port 1(ra0) entered blocking state [ 1399.466798] br-wlan: port 1(ra0) entered forwarding state [ 1399.474263] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready root@Omega-3079:/# root@Omega-3079:/# ifconfig apcli0 apcli0 Link encap:Ethernet HWaddr 40:A3:6B:C1:30:7A inet6 addr: fe80::42a3:6bff:fec1:307a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
As you can see message "Interface apcli0 link up! (WPA2PSK AES)" is absent after wifisetup add.
After reboot:.............................. [ 29.625770] WTBL Segment 4 info: [ 29.629128] MemBaseAddr/FID:0x44000/128 [ 29.633204] EntrySize/Cnt:32/128 [ 46.757195] br-wlan: port 1(ra0) entered blocking state [ 46.762509] br-wlan: port 1(ra0) entered disabled state [ 46.768266] device ra0 entered promiscuous mode [ 46.773029] br-wlan: port 1(ra0) entered blocking state [ 46.778380] br-wlan: port 1(ra0) entered forwarding state [ 46.785637] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready [ 49.059676] Interface apcli0 link up! (WPA2PSK AES) BusyBox v1.28.3 () built-in shell (ash) ____ _ ____ / __ \___ (_)__ ___ / __ \__ _ ___ ___ ____ _ / /_/ / _ \/ / _ \/ _ \ / /_/ / ' \/ -_) _ `/ _ `/ \____/_//_/_/\___/_//_/ \____/_/_/_/\__/\_, /\_,_/ W H A T W I L L Y O U I N V E N T ? /___/ ----------------------------------------------------- Ω-ware: 0.3.3 b247 ----------------------------------------------------- root@Omega-3079:/# [ 71.680434] random: crng init done root@Omega-3079:/# ifconfig apcli0 apcli0 Link encap:Ethernet HWaddr 40:A3:6B:C1:30:7A inet addr:192.168.1.43 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::42a3:6bff:fec1:307a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:1 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) root@Omega-3079:/#
"Interface apcli0 link up! (WPA2PSK AES)" present.
-
RE: Some WiFi and ethernet connection questions (or bugs?)
@crispyoz said in Some WiFi and ethernet connection questions (or bugs?):
@Pavel-Negrobov Issue one will result if your password is too short for the requirement of psk2, you need at least 8 characters.
If you screw up your network and then fix it but it still won't come up, use the command service network restart this restarts all your network related stuff and would usually sort out these types of things.
1st question ok, I understood, thanks.
2nd - 'service network restart' command does not helps
I checked it many times. -
RE: Ethernet connection check issue Omega2+
Thanks to all
# [ 1019.154853] rt3050-esw 10110000.esw: link changed 0x00 # swconfig dev switch0 port 0 get link port:0 link:down # [ 1047.063981] rt3050-esw 10110000.esw: link changed 0x01 # swconfig dev switch0 port 0 get link port:0 link:up speed:100baseT full-duplex
This work fine.
-
RE: Some WiFi and ethernet connection questions (or bugs?)
I moved ethernet question to another topic, but I can't to edit my start post above
-
Ethernet connection check issue Omega2+
Hello, guys!
I have found some strange with Omega2+ ethernet link.At start ethernet cable is disconnected. ubus utility confirms this:
# /bin/ubus call network.interface.wan status { "up": false, "pending": true, "available": true, "autostart": true, "dynamic": false, "proto": "dhcp", "device": "eth0", "data": { } }
After ethernet cable connect:
'''[ 763.914064] rt3050-esw 10110000.esw: link changed 0x01
/bin/ubus call network.interface.wan status
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 7,
"l3_device": "eth0",
"proto": "dhcp",
"device": "eth0",
"updated": [
"addresses",
"routes",
"data"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "192.168.1.40",
"mask": 24
..........All good. Now I disconnect cable and call utility to check network state: # [ 854.682436] rt3050-esw 10110000.esw: link changed 0x00 # [ 937.070589] rt3050-esw 10110000.esw: link changed 0x00 # /bin/ubus call network.interface.wan status { "up": true, "pending": false, "available": true, "autostart": true, "dynamic": false, "uptime": 295, "l3_device": "eth0", "proto": "dhcp", "device": "eth0", "updated": [ "addresses", "routes", "data" ], "metric": 0, "dns_metric": 0, "delegation": true, "ipv4-address": [ { "address": "192.168.1.40", "mask": 24 } ], ............... # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 40:A3:6B:C1:30:7B inet addr:192.168.1.40 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::42a3:6bff:fec1:307b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1101 errors:0 dropped:1 overruns:0 frame:0 TX packets:306 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:166652 (162.7 KiB) TX bytes:84785 (82.7 KiB) Interrupt:5 Utilities says that I have ethernet connection, but this is wrong!!! As I can see ethernet kernel driver works correctly, utility fails. After reboot all ok. How I can to monitor ethernet connection on-the-fly? Thanks
-
Some WiFi and ethernet connection questions (or bugs?)
Hi, guys!
I faced a some problems with WiFi/ethernet connections on Omega2+, last firmware 0.3.3 b247.- Bug (?) in wifisetup script:
# /usr/bin/wifisetup add -ssid ZyXEL_GIGA_III -encr psk2 -passw ord xxx sh: ERROR:: unknown operand sh: ERROR:: unknown operand # echo $? 0
What does it mean??? Looks like a bug.
2. WiFi driver/subsystem stops work after attempt to connect with invalid password:# /usr/bin/wifisetup add -ssid ZyXEL_GIGA_III -encr psk2 -password invalid_pass > Restarting wifimanager for changes to take effect ............ [ 1987.620052] Interface apcli0 link up! (WPA2PSK AES) [ 1998.658235] Interface apcli0 link up! (WPA2PSK AES) [ 2010.239352] Interface apcli0 link up! (WPA2PSK AES) [ 2014.338038] Interface apcli0 link up! (WPA2PSK AES) [ 2025.378702] Interface apcli0 link up! (WPA2PSK AES) # /usr/bin/wifisetup remove -ssid ZyXEL_GIGA_III/usr/bin/wifisetup remove -ssid ZyXEL_GIGA_III > Removing 'ZyXEL_GIGA_III' network from database > Restarting wifimanager for changes to take effect ............ [ 2046.224967] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready # /usr/bin/wifisetup add -ssid ZyXEL_GIGA_III -encr psk2 -passw ord redhat5469 > Restarting wifimanager for changes to take effect ............ [ 2208.623498] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready # /bin/ubus call network.interface.wwan status { "up": false, "pending": true, "available": true, "autostart": true, "dynamic": false, "proto": "dhcp", "device": "apcli0", "data": { } }
After reboot Omega correctly connects to AP. How to force connection and avoid this reboot?
I also tried# /bin/ubus call network.wireless up # wifi
This does not helps.
3. Ethernet cable is disconnected. ubus utility confirms this:# /bin/ubus call network.interface.wan status { "up": false, "pending": true, "available": true, "autostart": true, "dynamic": false, "proto": "dhcp", "device": "eth0", "data": { } }
After ethernet cable connect:
# [ 763.914064] rt3050-esw 10110000.esw: link changed 0x01 # /bin/ubus call network.interface.wan status { "up": true, "pending": false, "available": true, "autostart": true, "dynamic": false, "uptime": 7, "l3_device": "eth0", "proto": "dhcp", "device": "eth0", "updated": [ "addresses", "routes", "data" ], "metric": 0, "dns_metric": 0, "delegation": true, "ipv4-address": [ { "address": "192.168.1.40", "mask": 24 ..........
All good. Now I disconnect cable and call utility to check network state:
# [ 854.682436] rt3050-esw 10110000.esw: link changed 0x00 # [ 937.070589] rt3050-esw 10110000.esw: link changed 0x00 # /bin/ubus call network.interface.wan status { "up": true, "pending": false, "available": true, "autostart": true, "dynamic": false, "uptime": 295, "l3_device": "eth0", "proto": "dhcp", "device": "eth0", "updated": [ "addresses", "routes", "data" ], "metric": 0, "dns_metric": 0, "delegation": true, "ipv4-address": [ { "address": "192.168.1.40", "mask": 24 } ], ............... # ifconfig eth0 eth0 Link encap:Ethernet HWaddr 40:A3:6B:C1:30:7B inet addr:192.168.1.40 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::42a3:6bff:fec1:307b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1101 errors:0 dropped:1 overruns:0 frame:0 TX packets:306 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:166652 (162.7 KiB) TX bytes:84785 (82.7 KiB) Interrupt:5
Utility says that I have ethernet connection, but this is wrong!!!
As I can see ethernet kernel driver works correctly, utility fails. After reboot all ok.
How I can to monitor ethernet connection on-the-fly?Thanks.
-
RE: Wifi connection is in "pending" state. What does it mean?
@crispyoz I will try this command when "pending" happens again.
Thank you