I have been trying to clone the Omega2LTE device after adding custom files and configurations.
I have inserted an SD card into the device I want to clone and run the dd command. However, after cloning it doesn't seem to keep any files, packages or configuration I set in the device.
My firmware is on the device I want to clone and all other devices is the same as below:
Onion-ware 0.3.3 b251
I have been trying to follow this tutorial here: https://community.onion.io/topic/4563/faq-is-it-possible-to-clone-the-firmware-running-on-an-omega2-device-and-copy-it-to-other-omega2-units?_=1695311567253
As far as custom configuration/files I have:
custom aliases in /etc/profile
custom files in the /root directory (such as adc.py, lte.py, etc)
The command I have been running is:
dd if=/dev/mtd3 of=omega100.bin
Afterward it spits out an image file and I swap the SD card to a different onion. I then run:
mtd -r write omega100.bin firmware
The device restarts and yet none of the files are in the /root and python3 is not installed, etc.
I just want to be able to flash an image to other devices while keeping python3 installed and having the custom files and configurations still set.
Go-to resource for frequently asked technical questions
No. The same firmware can be used for the through-hole Omega2 and surface mount Omega2S models.
Important: There are two versions of the firmware; one for the Omega2 and Omega2S, and one for the Omega2+ and Omega2S+:
Firmware starting with omega2-... is for the Omega2 (OM-O2) and Omega2S (OM-O2S) - both with 64MB RAM and 16MB storage
Firmware starting with omega2p-... is for the Omega2+ (OM-O2P) and Omega2S+ (OM-O2SP) - both with 128MB RAM and 32MB storage
@Electro the getUint16LittleEndian method is used for reading 16-bit integers from the Camera. It's used for reading the camera's configuration/settings. See this search for the getUint16LittleEndian method on the tau camera github repo for details of when it's used.
For your purposes of finding the closest point in the frame, you should look at the readFrame method. It will return a Frame object with distance/depth. See the related documentation entry for more info.
You can see the readFrame method in action, as well as how OpenCV is used to render pictures using the data in the example programs.