Problems installing LVGL on Dash
-
I received my Omega-Dash yesterday. I need some help getting LVGL installed.
I have installed a 64GB MicroSD card and set that as the boot device. I am trying to work through the makefile, but need to install the compiler.
I opened distfeeds.conf and did not find the 2 lines the install instructions say to uncomment, so I added them in fresh. Tried to install the compiler and got:
- satisfy_dependencies_for: Cannot satisfy the following dependencies for gcc:
-
libstdcpp6 *
- opkg_install_cmd: Cannot install package gcc.
Then I realized there were two similar lines in distfeeds.conf referencing mipsel_24kc/base and mipsel_24kc/packages, but from openwrt rather than lede. I commented the new lines I had added and uncommented the two openwrt versions. That appears to have been a step backwards, resulting in:
root@Omega-CFC4:/scripts/feeds/lv_example# opkg install gcc
Unknown package 'gcc'.
Collected errors:- opkg_install_cmd: Cannot install package gcc.
Here is distfeeds.conf as currently exists on my Onion:
#src/gz openwrt_core http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages
src/gz openwrt_base http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base
#src/gz openwrt_luci http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci
#src/gz openwrt_onion http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/onion
src/gz openwrt_packages http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages
#src/gz openwrt_routing http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing
#src/gz openwrt_telephony http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony
src/gz omega2_core http://repo.onioniot.com/omega2/packages/core
src/gz omega2_base http://repo.onioniot.com/omega2/packages/base
src/gz omega2_packages http://repo.onioniot.com/omega2/packages/packages
src/gz omega2_routing http://repo.onioniot.com/omega2/packages/routing
src/gz omega2_onion http://repo.onioniot.com/omega2/packages/onion
#src/gz reboot_base http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base
#src/gz reboot_packages http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages
-
@Ian-Smith take my advice. Don't spend any time trying to set up compiling stuff on the Dash, it's a a resource poor IoT device just as most IoT devices are. The best method for developing apps for the Dash is using the cross compiling method. Here a document link on how to do this.
https://docs.onion.io/omega2-docs/cross-compiling.html
You can also use the emulator to test your LVGL code before moving it on to the Dash.
-
@crispyoz I'll take a run at that. Thanks!
-
@Ian-Smith
Just want to say thanks to Lazar for the new guidance on cross compiling the LVGL library. Should be a great help once my new Dash arrives!
-
@Ian-Smith you're welcome! enjoy!
If you're not in the loop:
We've updated our lvgl quickstart template to include a script to quickly, easily, and reliably cross compile for the Omega2 platform. It uses Docker and the OpenWRT SDK.Learn more here: https://onion.io/omega2-dash-guide/#lvgl-template-cross-compile
-
@Lazar-Demin said in Problems installing LVGL on Dash:
@Ian-Smith you're welcome! enjoy!
If you're not in the loop:
We've updated our lvgl quickstart template to include a script to quickly, easily, and reliably cross compile for the Omega2 platform. It uses Docker and the OpenWRT SDK.Learn more here: https://onion.io/omega2-dash-guide/#lvgl-template-cross-compile
Why there is no seamless LVGL cross-compile without Docker ?
-
@arktrin I don't use the docker image, I prefer to build on my Ubuntu 20 notebook. If you run make menuconfig you can select Dash as a target. I think Onion favour docker as everything is all set up correctly OOTB, the rest of us have to make sure we have correctly configured our build system.
-
This post is deleted!
-
have attempted to determine this issue, yet I have not succeeded at this point!
-
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
-
Thanks for the update and quick reply. I'll be sure to keep an eye on this thread!