@Modest-Polykarpovich said in [GUIDE] Install OpenWrt 18.06 on Onion Omega2 Pro:
I don't see real feature to change OnionOS, I hoped to see OpenWRT 19.07.
The main reason I changed to OpenWrt is that the Onion WiFi firmware is unable to connect to my upstream WiFi, because its SSID is + (a plus sign).
I am now running OpenWrt 19.07 on my unit. The installation procedure is the same.
However, it's no longer possible to install any Onion specific software on 19.07. I want that battery indicator!
B: https://github.com/OnionIoT/Omega2/blob/master/Schematics/Omega2S-Reference-Schematic.pdf, that details the schematic for Ethernet, Section 10/100 WAN port, Option 2. Four resistors and 5 capacitors are required.
Don't worry about the 49.9R; I used 150 Ω with 100nF caps and it works.
1: Prepare and Ethernet connection that make use of the TX+/-, RX+/- available on the Expansion dock using [B]
Here is the image:
2: Use the web-recovery method.
Doesn't necessarily have to use 192.168.8.8 as mentioned in [A]. If you are on network 192.168.10.x, you can configure Omega2+ to use,say, 192.168.10.18 by choosing option ": Start command line mode" at boot loader and changing the env
Omega2 # printenv
Omega2 # setenv ipaddr 192.168.10.18
Omega2 # printenv
ipaddr=192.168.10.18 (if the previous entry was wrong, say, <setenv ipaddr=192.168.10.18>, it wouldn't have the ipaddr line when you do printenv again)
Omega2 # saveenv
Saving Environment to SPI Flash...
Omega2 # reset (while holding the the RESET button pressed)
At the bootloader choose option 0 as in [A] and proceed with web-recovery, in this case point browser to http://192.168.10.18
Firmware for the Omega2 Dash is built using Onion's fork of the OpenWRT source repo.
Differences from the regular Omega2/Omega2+ firmware include:
Includes kernel driver for the ILI9341 TFT driver. This enables the /dev/fb0 framebuffer device.
Includes the omega2-dash-base software package
I think I'm closer to the answer. It seems to lie in the register AGPIO_CFG at address 0x1000003C. It switches the GPIOs 14 through 29 between the digital pins and the analog ethernet counterparts. Would this modification to AGPIO be done in the DTSI file, some bootloader/kernel parameter or do I need to make a patch to something somewhere?
I'm aware I could use something like devmem to directly set this register from userspace but I assume there is something a bit cleaner?
Well, the only thing left to do was to change the USB, and apparently that was enough. But It start very fast and I didn't have the chance to start (selecting option 2) with USB.
But I'll be back. Now is time to remember when I use OpenWrt in arduino Yún (remove brain spidy-webs). I know that my Onion2 has me great surprises to be able to implement my project of IoT in the cloud.
Thanks guys !!!
@jmztaylor Well that's good news. I suspect your USB key probably has an issue if you cannot mount it. You could likely fix it so you could mount it by running chkdsk on a windows machine or using dostools on a *nix machine.
I just add those comments for future readers of this thread, but the core issue you were having would be as I detailed above.