Hi David, please take a look at reserved GPIOs that affect system boot-up:
https://docs.onion.io/omega2-docs/using-gpios.html#important-special-gpios
Pavel Metrokhin
@Pavel Metrokhin
Best posts made by Pavel Metrokhin
-
RE: Omega don't start with a matrix
-
RE: Auto-negotiation support?!
@Stefan-s As @Douglas-Kryder said, you need to modify your
/etc/opkg/distfeeds.conf
file and uncomment the following repo:src/gz reboot_base http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base
Afterwards, you can issue the following to install the
ethtool
package:opkg update opkg install ethtool
And there you have it!
-
RE: New omega2 boots with Omega-0000 AP and wont let me connect
Hey guys!
The very easy fix to this problem is to issue a
updateHostname
and your Omega will obtain its proper AP!
Happy hacking! -
RE: From "Cross-Compiling for the Omega" I cannot successfully build the gpioRead example
On the other hand, if you are not using our Docker Image, you will have to run
make menuconfig
in the build system to selectlibugpio
package to be compiled and then compile it by runningmake
.In General you will need to have the external library, for instance
libugpio
, to be compiled by the Build system before it can be dynamically linked to code that you are trying to cross compile. Above all, I strongly recommend basing your BUild system on our GitHub source repo since it is preconfigured to include the Onion software repo and to build all the libraries that are included on the Omega.
Latest posts made by Pavel Metrokhin
-
RE: From "Cross-Compiling for the Omega" I cannot successfully build the gpioRead example
@Tim-DeBenedictis @James-Tate it's possible that you guys are overwriting the .config file with the scripts/feeds script. Please review the earlier post where the overwriting problem is described: http://community.onion.io/topic/2755/wifi-not-working-after-building-customized-image/30
-
RE: Access Point settings page broken
@Aj-Blosser It seems that you are running not on the latest firmware and that is why you cannot setup an AP from the console. I recommend you to update your firmware to the latest and perform the AP settings again from the console. It will work, please see the picture below, I used the same name as you've provided and as you can see it works!
Happy Hacking -
RE: Add Support for HTTPs and SSL on Omega2
@peterh-peterh @peanut Here is the procedure on how to enable HTTPs for uhttpd and generate self-signed certificate.
- From your command line issue the following commands:
opkg update opkg install px5g-standalone libustream-openssl
- Restart the uhttpd service:
/etc/init.d/uhttpd restart
- When you restart
uhttpd
service, it generatesRSA
private key and selfsigned certificate, here is the output that I've got after restarting uhttpd:
# /etc/init.d/uhttpd restart 4+0 records in 4+0 records out Generating RSA private key, 2048 bit long modulus Generating selfsigned certificate with subject 'C=ZZ,ST=Somewhere,L=Unknown,O=LEDEd1d8b179,CN=LEDE,' and validity 20180417162546-20200416162546
- Now you can navigate to your browser and type:
https://192.168.3.1
orhttps://omega-XXXX.local
( where XXXX are the last digits of your MAC address). Here is my screenshot:
Enjoy and Happy Hacking
-
RE: C/C++ libs and so on Omega Onion 2+
@Unbioctian take a look at
/usr/lib
where the library shared objects are kept and/usr/include
where the header files are kept. You'd notice some library objects do not have corresponded header files. Thei2c
C library is available for you and is calledlibonioni2c
. The source code can be found in our GitHub repo. For more info on compiling C/C++ on the Omega please refer to our official documentation and i2c C Library -
RE: Bootloader for Omega2S and Omega2S+
@Arek-Z Thanks for sharing this great solution!
-
RE: Wifi not working after building customized image
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), themt76x8
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.
-
RE: Bootloader for Omega2S and Omega2S+
There is actually a simplier way to flash the bootloader: by using the Bootloader web recovery mode. Please follow the instructions provided in our docs on how to flash the firmware via web recovery mode but when you get to the 192.168.8.8, you'll be presented with the page where you need to load the firmware or load a UBoot file.
You'll want to clickuBoot Update
and load the bootloader binary. This will start the bootloader installation process. You can get the officail Omega2 binaries from our us.If you flash a broken bootloader, you need to physically desolder and reprogram the flash memory.
If you modify the bootloader and/or make any physical modifications (e.g. remove the flash and etc), Onion Corporation is not responsible for any damage to your device and the warranty will be voided. Proceed at your own risk.
-
RE: From "Cross-Compiling for the Omega" I cannot successfully build the gpioRead example
To change the documentation, we welcome pull requests to our Onion-Docs repo on GitHub to make changes that will benefit our entire community. Docs.onion.io is generated form this repo.
Also, if you want to make any additions or changes to conent on our website (e.g. 2 Bullet Tuesday) please send us an email or let us know in the community -
RE: Wifi Scan
@Fabian-Nydegger-0 You can scan the WiFi networks using a single ubus command:
ubus call onion wifi-scan "{'device':'ra0'}"
The
wifisetup
(notsetup wizard
as you mentioned) gets you through the process of connecting to available AP's. Also,wifisetup
utility is an open source program that you can take a look in Our GitHub Repo -
RE: From "Cross-Compiling for the Omega" I cannot successfully build the gpioRead example
@Andrew-Moore said in From "Cross-Compiling for the Omega" I cannot successfully build the gpioRead example:
the instructions did not say to wget the Makefile and it was not preselected in the .config
It was never mentioned that you have to
wget
the makefile. If you followed this example, you are cloning the GitHub repo to your build system that already containsmakefile
,xComile.sh
and the source code. The tutorial guides you through every step from building the source image and cross-compiling the program.