@crispyoz @Lnx-Prof Sorry for "shotgunning" this thread, it simply had the exact same message in its title than the error I was receiving, I though creating a new post with a nearly identical title would be even worst than resurrecting a 5 month old thread.
Anyway, I came with the simple workaround of using Python instead of node, it required some extra effort but in the end it worked just fine. I didn't knew about cross compiling and a quick search led me to finding what it is, how to do it for node packages, and even found an already cross-compiled repo of the package I was having issues with.
I'll leave those here in case someone else finds this thread having the same issues I had.
This repo contains binaries targeted for the omega2 for the serialport library in case you're trying to interface with an arduino via serial: https://github.com/sdesalas/node-serialport-omega2
And here's a post about how to cross-compile for an npm module on Omega2:
Sorry again about necro-ing this topic and thanks for the help!
EDIT**: The previous link on how to cross-compile didn't worked for me, but there are instructions in the official onion website:
Thanks! I just experienced this problem. I was about to post a new topic, but your solution saved me. I did opkg install zoneinfo-europe.
It was weird. My code was working fine, then suddenly stopped. I wonder if it was to do with the timezone change to BST here in the UK at the weekend?
Another dead link on https://docs.onion.io/omega2-docs/cross-compiling.html
in the sentence "Our guide is loosely based on LEDE’s own build system installation instructions, check their instructions out if something is unclear."
@asyxcv, you should compile it manualy, next link will be usefull: How to compile C/C++ native applications
You are trying to use old manuals about LEDE.
Another way your project has also special manifest for the OpenWRT system (see snapcast/openWrt/Makefile.openwrt) it needs to make .ipk-files (packages) for the opkg util. But this file is old and needs to be fixed. And last: making your own packages for opkg is very difficult task for masters. More infirmations about it you can get from OpenWRT official documents, community and examples.
@Akash614 if you need a definitive answer you would need to give more specific details. @UFD is quite correct, the main issue would be that of capacity. The Pi has more RAM and a faster CPU, but if you don't require these then the Omega may well be suitable.
From your initial question:
Onion has UARTs available
Onion can run a database (I use SQLite3 on an sdcard)
You can run a web server, in fact I run 2 different web servers on my devices
So it comes down to capacity and performance.
@Adam-Jimerson OpenWrt uses procd and the source code provides no mechanism for setting a workinf directory. I've used 2 methods to achieve a default directory.
Use a script as your init.d command, in that script change to the required working directory before executing the actual binary.
These days I added code to my daemon to set a working directory via uci configuration or command line parameter.
I prefer option 2 but it takes more work.
Thank you, crispyoz, and gyorgy farkas, I had verified the wifi was working and also serial communications. The problem was ytring to update firmware or install console, always errored out or just sat there with progress indicator circling regardless of time spent, without any download of software or installing happening. With your help and hints, I succeeded in updating oupgrade, and then updating firmware, and installing console. The problem was in the oupgrade file origionally installed. Again thanks, everything working as it should now.
@crispyoz I was already at a point of unable to duplicate. Turns out I did some of the same actions you did, so between us I think we've figured this out to the extent it needs to be figured out. Have a great day!
@unique1984 said in DS 1307 RTC Simple Bash Client:
echo -e "<date> Show the date [YYYYMMDDHHMMSS] from RTC"
can you help me it's not working for me?
I got the output is
i am using isl12026 datasheet
instead of your address value place i used 0x20 is this currect?
REGCONTROL=$(i2cget -y 0 0x20 0x07)
YEAR=$(i2cget -y 0 0x20 0x06)
MONTH=$(i2cget -y 0 0x20 0x05)
DATE=$(i2cget -y 0 0x20 0x04)
DAYOFWEEK=$(i2cget -y 0 0x20 0x03) # day of week 1-7 monday-sunday
HOUR=$(i2cget -y 0 0x20 0x02)
MINUTE=$(i2cget -y 0 0x20 0x01)
SECOND=$(i2cget -y 0 0x20 0x00)
i got the below output. can u please help me solve this problem.
Official Onion Omega2 Documentation Updating the Bootloader
I'm afraiid - using this method - you can flash (update/restore) Omega2's UBoot with a well working UBoot.
Is the internal flash accessible over the SPI pins?
You have an Omega2S+ module on a Development Board where the SPI pins of the modul's on-board flash are exposed to MOSI, MISO, CLK, CS0.
So - in this case - the answer is (most probably) YES.
Looks like your connection to Community was lost, please wait while we try to reconnect.