Hi,
We are trying to deploy a number of Omega Onion 2 Pro devices out to the field (which could end up becoming quite a large number in the future). We'd like to make the setup process as streamlined as possible. We need:
-Bundled Python 3, with some python pip modules
-Custom scripts configured to start on boot
-Ability to carry out further updates of our software offline from a usb stick (we have a working script for this but again, it needs bundling in and setting up for the first time)
At the moment this is configurable manually by installing python and creating some init files to start the scripts custom scripts on boot. Ideally though we'd be able to just replicate it on other Onion devices without having to do loads of manual setting up.
When I've done this using Raspberry Pis and similar devices before, I've been able to automate this process very easily by just cloning the disk images onto different sd cards or internal MMC storage. This doesn't seem to be possible for the Onion.
I've also tried building the Onion firmware from source and trying to add files to the "files" folder to be included, but this doesn't seem to work correctly. If this could work, it could be quite a good solution as it would mean python could be added very easily from the menuconfig. However when I try to build it, I only get a omega2...sysupgrade.bin file, rather than the omega2...factory.bin file that I need to do a flash of the firmware from uboot. I've tried changing various options but can't get it to generate the factory.bin file and there are no warnings or anything that would cause it not to do that. Does anyone have any ideas how to fix this issue? And does making a firmware image with custom software shipped with it sound like a good solution to automating installation? Or is there a better idea? The devices in the field will not always have internet access so being able to set them up offline is desirable.
Josh