How to create a custom image and flash this image on Omega Onion Pro 2
-
Hello,
I am using an omega onion pro 2 and have all the installed firmware and relevant software loaded. I want to copy this image and flash to 'freeze it in time'.
I read through https://docs.onion.io/omega2-docs/manual-firmware-installation.html, but I want to flash the image onto the internal memory of the Omega Onion board using a USB ideally.
Any suggestions?
Thank you!
-
@Antony Take a look at this thread
https://community.onion.io/topic/4035/cloning-one-onion-to-another/5
-
@crispyoz I attempted to follow the instructions https://github.com/OnionIoT/source#option-a-using-the-docker-image. However it is still unclear how to include the following packages to the image: python-lite, power-dock2, and pyOnionGpio.
Thank you!
-
`~@Antony From the source directory issue the commands:
./scripts/feeds install python3-light
./scripts/feeds install power-dock2
./scripts/feeds install pyOnionGpioPython light will now be available in make menuconfig under the languages menu. powerdock is under the onion menu.
How do you work out which packages you can add to your build system? Use the command ./scripts/feeds list
to see which packages are available from the feeds configured in feeds.conf.
-
Hi @crispyoz
I keep getting the following error messages. These packages do not see available on the scripts/feeds list.
WARNING: Makefile 'package/feeds/onion/transmission-console-app/Makefile' has a dependency on 'Onion-Console', which does not exist
WARNING: Makefile 'package/feeds/onion/transmission-console-app/Makefile' has a dependency on 'transmission-daemon', which does not exist
WARNING: Makefile 'package/feeds/onion/zeromq/Makefile' has a build dependency on 'libuuid', which does not existAny thoughts?
Thank you!
-
@Antony Just ignore those warnings, they come up since you're not including onion console in your firmware. You can run ./scripts/feeds uninstall transmission-console-app which should fix them.
-
@crispyoz Other questions regarding the build:
I am having a difficult time locating rc.local in the /etc directory to edit the text file.
Can you also help me locate this file?
Thanks again!
-
@Antony Please create new topics for each issue, it assists users to search for similar issues.
To add any custom file to your build that overrides the standard configuration file(s) etc you add your file to the ./source/files directory take a look as some examples of this on your build system.