It seems sync
does the trick.... but I'm not sure if that's the only and shortest way.
Posts made by opti-gregor
-
RE: Filesystem: root mounted in wrong place (help)
-
Filesystem: root mounted in wrong place (help)
Hi. I have noticed that many times when I boot Omega2s+ for first time, the filesystem isn't as it should be.
df-h
commands gives me:Filesystem 1K-blocks Used Available Use% Mounted on /dev/root 6144 6144 0 100% /rom tmpfs 62824 1420 61404 2% /tmp tmpfs 62824 11316 51508 18% /tmp/root overlayfs:/tmp/root 62824 11316 51508 18% / tmpfs 512 0 512 0% /dev /dev/mtdblock6 24960 5240 19720 21% /rom/overlay /dev/mmcblk0p1 3805184 7296 3797888 0% /tmp/run/mountd/mmcblk0p1
instead of
Filesystem Size Used Available Use% Mounted on /dev/root 6.0M 6.0M 0 100% /rom tmpfs 61.4M 1.4M 60.0M 2% /tmp /dev/mtdblock6 24.4M 5.2M 19.2M 21% /overlay overlayfs:/overlay 24.4M 5.2M 19.2M 21% / tmpfs 512.0K 0 512.0K 0% /dev /dev/mmcblk0p1 3.6G 7.1M 3.6G 0% /tmp/run/mountd/mmcblk0p1
It mounts overlayfs:
overlayfs:/tmp/root
to/
insteadoverlayfs:/overlay
to/
Why is this happening and how to fix it? I have also connected SD card to Omega (on dev board) while turning it on, so I can later copy my files to Omega that I'm currently setting up.
I've lost many hours putting files on omega, to then later on figure out they were put on RAM instead flash, and therefore they doesn't exixt anymore.
It usualy helps if I put some files to root folder or do update and then reboot, but that is very time consuming, especially if you have a hundred Omegas to setup.
-
RE: Omega2S - WiFi not working
I now stumbled upon similar case, if not the same with another board. I was able to connect access point of Omega2S and open putty to run commands. After I have run command
wifisetup
and select option 1, link with omega broke, and I think it also rebooted. I'm not sure about all circumstances, as I didn't connect via serial port.Then I made conection with O2S again and check
ifconfig
.I noticed that there is suspecious eth0.1 interface. So I decided to run command
ifconfig eth0.1 down
to disable that interface.
Then I tried to runwifisetup
and this time it was succesful! I managed to finish instalation of all needed software and it works like a charm.I can't check if it's the same with one that I had problems with, as it is not on it's board anymore, but for this one it worked.
-
RE: [resolved] Newer 02+ fails to flash from USB - ERROR: CTL:TIMEOUT
@cas How Have you managed to do that. I have same problem with CTL:TIMEOUT X no matter what USB flash I use. I have also added 22ohm resistor to D+ and D- but no difference.
-
RE: Omega2S - WiFi not working
@György-Farkas said in Omega2S - WiFi not working:
I'm afraid it is not possible with disabled AP on Omega2:
It is possible, because I'm already sucessfuly doing it and it keeps WifiClient on.
ifconfig ra0 down
andifconfig ra0 up
to disable and enable AP.I guess there was something wrong internaly in my Omega2S.
-
RE: Omega2S - WiFi not working
I have tried
firstboot -y
procedure before but there was no difference. Only thing I didn't checked is md5 value. There are also other Omega2S running in the roorm, but I didn't managed even to put this fault one to connect to network and AP wasn't working anyway. Other omegas also have different host names and I have disabled AP on them so they are only connected to router.Anyhow I have now somehow managed to unsolder Omega2S and put new one there. The new one is now working perfectly.
So to answer your questions, I use custom PCB where O2S had been soldered on, and as I have checked I haven't noticed any short.
-
RE: Omega2S - WiFi not working
Well have updated firmware with this procedure: https://docs.onion.io/omega2-docs/manual-firmware-installation.html
So I copied last version of FW to usb and then connect usb with O2S and copy FW to /tmp/ and then I ransysupgrade<FIRMWARE FILE NAME>
I have also tried to install firmware by pressing Reset button and then selecting option 2, but I was unsucessfull, as once it showed
ERROR: CTL:TIMEOUT X BBB_reset usb_control_msg: request: 0xFF, requesttype: 0x21 value 0x0 index 0x0 length 0x0
and other time it started to do an infinite loop with messages
------------[ cut here ]------------
-
RE: Omega2S - WiFi not working
Well after initial wifi failure I updated firmware from http://repo.onion.io/omega2/images/
So it is O2 image. I don't know if there is any separate repository for O2S. If there is, please let me know.
EDIT: I found this on this forum: "Actually, Omega2S's firmware is the same as for the Omega2 and Omega2S+ has the same firmware as Omega2S+."
-
Omega2S - WiFi not working
Hi.
I have a problem with wifi on my Omega2S board. I've successfully got 2 boards up and running, but the third one, when I connected it for the first time, I noticed I couldn't find Omega access point to connect to. Therefore I connected it to serial port to see what is going on.When I ran wifisetup and try to scan Wifi networks, I got an error: Scan Failed, try again. And then it seems the wifi driver just reset.
root@Omega-80F3:/# wifisetup Onion Omega Wifi Setup Select from the following: 1) Scan for Wifi networks 2) Type network info q) Exit Selection: 1 Scanning for wifi networks... > ERROR: Scan failed, try again > ERROR: specified ssid not in the database root@Omega-80F3:/# [ 245.730908] br-wlan: port 1(ra0) entered disabled state [ 246.398478] device ra0 left promiscuous mode [ 246.402932] br-wlan: port 1(ra0) entered disabled state [ 246.457492] IPv6: ADDRCONF(NETDEV_UP): br-wlan: link is not ready [ 246.819311] [ 246.819311] _ _____ ___ ___ _________ ___ ____ [ 246.819311] | | /| / / _ | / _ \/ _ \ / ___/ __ \/ _ \/ __/ V1.0 [ 246.819311] | |/ |/ / __ |/ , _/ ___/ / /__/ /_/ / , _/ _/ [ 246.819311] |__/|__/_/ |_/_/|_/_/ \___/\____/_/|_/___/ [ 246.819311] Onion Enhanced MT7688 WiFi Driver [ 246.819311] [ 246.986960] DMA Scheduler Mode=0(LMAC) [ 246.990795] efuse_probe: efuse = 10000012 [ 246.994920] 1. Phy Mode = 14 [ 247.181818] 2. Phy Mode = 14 [ 247.184794] 3. Phy Mode = 14 [ 247.188288] WTBL Segment 1 info: [ 247.191654] MemBaseAddr/FID:0x28000/0 [ 247.195558] EntrySize/Cnt:32/128 [ 247.199075] WTBL Segment 2 info: [ 247.202440] MemBaseAddr/FID:0x40000/0 [ 247.206345] EntrySize/Cnt:64/128 [ 247.209790] WTBL Segment 3 info: [ 247.213149] MemBaseAddr/FID:0x42000/64 [ 247.217138] EntrySize/Cnt:64/128 [ 247.220585] WTBL Segment 4 info: [ 247.223945] MemBaseAddr/FID:0x44000/128 [ 247.228021] EntrySize/Cnt:32/128 [ 255.048594] device ra0 entered promiscuous mode [ 255.053340] br-wlan: port 1(ra0) entered forwarding state [ 255.058926] br-wlan: port 1(ra0) entered forwarding state [ 255.065977] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready [ 257.055693] br-wlan: port 1(ra0) entered forwarding state
Then I read there could be problem with firmware, so I loaded lastest Omega image to usb and hook it to the board. I performed the update, but wifi still doesnt work.
root@Omega-80F3:/# wifisetup Onion Omega Wifi Setup Select from the following: 1) Scan for Wifi networks 2) Type network info q) Exit Selection: 1 Scanning for wifi networks... > ERROR: Scan failed, try again > ERROR: specified ssid not in the database root@Omega-80F3:/# [ 114.002972] br-wlan: port 1(ra0) entered disabled state [ 114.021346] device ra0 left promiscuous mode [ 114.025856] br-wlan: port 1(ra0) entered disabled state [ 114.065930] IPv6: ADDRCONF(NETDEV_UP): br-wlan: link is not ready [ 114.878368] device ra0 entered promiscuous mode [ 115.004451] br-wlan: port 1(ra0) entered forwarding state [ 115.009977] br-wlan: port 1(ra0) entered forwarding state [ 115.022620] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready [ 117.004291] br-wlan: port 1(ra0) entered forwarding state
I don't know what could couse this behaviour.
Here is some dmesg from startup:
[ 25.577922] [ 25.577922] _ _____ ___ ___ _________ ___ ____ [ 25.577922] | | /| / / _ | / _ \/ _ \ / ___/ __ \/ _ \/ __/ V1.0 [ 25.577922] | |/ |/ / __ |/ , _/ ___/ / /__/ /_/ / , _/ _/ [ 25.577922] |__/|__/_/ |_/_/|_/_/ \___/\____/_/|_/___/ [ 25.577922] Onion Enhanced MT7688 WiFi Driver [ 25.577922] [ 25.928211] DMA Scheduler Mode=0(LMAC) [ 25.932046] efuse_probe: efuse = 10000012 [ 25.936219] 1. Phy Mode = 14 [ 26.131293] 2. Phy Mode = 14 [ 26.134344] 3. Phy Mode = 14 [ 26.145357] WTBL Segment 1 info: [ 26.148737] MemBaseAddr/FID:0x28000/0 [ 26.152624] EntrySize/Cnt:32/128 [ 26.156123] WTBL Segment 2 info: [ 26.159483] MemBaseAddr/FID:0x40000/0 [ 26.163368] EntrySize/Cnt:64/128 [ 26.166825] WTBL Segment 3 info: [ 26.170185] MemBaseAddr/FID:0x42000/64 [ 26.174157] EntrySize/Cnt:64/128 [ 26.177615] WTBL Segment 4 info: [ 26.180975] MemBaseAddr/FID:0x44000/128 [ 26.185051] EntrySize/Cnt:32/128 [ 33.467718] device ra0 entered promiscuous mode [ 33.472458] br-wlan: port 1(ra0) entered forwarding state [ 33.478048] br-wlan: port 1(ra0) entered forwarding state [ 33.484852] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready [ 35.474303] br-wlan: port 1(ra0) entered forwarding state [ 40.810360] device ra0 left promiscuous mode [ 40.815004] br-wlan: port 1(ra0) entered disabled state [ 41.329955] IPv6: ADDRCONF(NETDEV_UP): br-wlan: link is not ready [ 42.754153] device ra0 entered promiscuous mode [ 42.844328] br-wlan: port 1(ra0) entered forwarding state [ 42.849886] br-wlan: port 1(ra0) entered forwarding state [ 42.871965] IPv6: ADDRCONF(NETDEV_CHANGE): br-wlan: link becomes ready [ 44.844284] br-wlan: port 1(ra0) entered forwarding state [ 54.088901] random: nonblocking pool is initialized
After FW update, version is as following:
Onion Omega2 UBoot Version: 4.3.0.3
Image Name: MIPS LEDE Linux-4.4.74
Board: Onion Omega2 APSoC DRAM: 64 MB
?-ware: 0.2.2 b201I have noticed also this:
find flash: W25Q128BV *** Warning - bad CRC, using default environment
How to solve this issue with wifi?
-
RE: GPIO state on bootup
@György-Farkas Well I have tried pull down resistors, but the problem is that those pins aren't floating from the beginning, as probably the internal multiplexer does something before loading the kernel. As shown on logic analyser graph pins actually go high for around 7 sec and have 1us pulses every 25us or so, which are then detected by 74hc595. DPIO 11 doesn't have those pulses, but stays high (output state) till you don't run a scriptwhere you set the output to low on other side others - 17, 16, 15 go to floating state after that.
I then decided I will go with i2c port expander for more safe and predictable operation. MCP23008 is quiet handy as they are used in relay dock and have libraries written for it.
-
GPIO state on bootup
Hi guys.
I have connected my Omega2(+) to 74HC595 shift register, and I noticed strange behaviour during bootup sequence. There is a lot of noice for certain amunt of time on those pins, and some end up high and some low. I would need those pins to stay low till I call them to change in program. How this could be acheived and which pins to choose for output.
I have capured behavior on logic analyser:
Pins that I currently use are GPIO11, 17 and 16.Thank you for your advice.
-
Serial command line authentication
Hi.
Does anybody knows how to setup authentication when connecting to command line via serial interface. I would like to protect data or at least make it difficult to someone with phisical access to device to get it.
Thanks.
-
RE: Cannot built cross compilation toolchain
Try this on VirtualBox: (already compiled toolchain)
https://community.onion.io/topic/2115/onion-omega-2-cross-compiler/2But if you want to add some libraries, there could be some difficulties to re-make it, for example I had to download files manually to dl directory, because they werent downloading through make command.
-
RE: Programming simple C/C++ executables for Omega from PC
Does anyone knows how to add separate libraries like curl, without using "make" comand, as it never ends and causes errors.
-
RE: Programming simple C/C++ executables for Omega from PC
I have found a simple way how to do it. Someone have made VirualBox image with all neccesarry tools needed:
https://community.onion.io/topic/2115/onion-omega-2-cross-compiler/2 -
Programming simple C/C++ executables for Omega from PC
Hi guys.
I would like to write some programs for Omega2 in C or C++ since it has not enough flash memory to install Node.js and js modules properly. Therefore I would like to code my program in C/C++. I have been browsing through forum and stumbled upon cross-compilation. As I understand it, it is actually ment to compile kernel, which I don't need. Also when I was following steps on the tutorial of cross-compilation, when I ran command 'make', there was an error "yynyyyyynyyyyynyyn..."
So is there some nice tutorial how to set up comiler enviroment on VMware - Ubuntu, so I could compile some C++ program that would work on Omega2.
Thanks a lot.