@akhileshthorat Is it possible to change the location of the buffer file?
If so, put it in /tmp - this partition is actually run on (half of) the Omega's RAM, so it will be very fast to access and will have quite a bit of space, 64MB on the Omega2+/2S+
@luz very interesting. Thank you for the contribution.
I did the same thing. But with a different logic.
Run the "master" board
every minute she try, by wifi, to connect to an omega-... connect on ssh (with key accept by default yes) without sshpass.
After a successful connection ssh she inject a script that downloads the .bin from a repository on the LAN and starts the sysupgrade.
I tested it with 100pz in 2 houres, all automatic. I can create many masters... and do everything faster.
But my version is sh + python script
Onion Omega2+ is the best! €€€
Half Duplex SPI Transactions
If you're looking to do a half-duplex SPI transaction (where Chip-Select is held active between blocks), check out the xfer3 function in the python-spidev module.
In the python-spidev module readme
An example of usage in a community thread
If you absolutely need full-duplex SPI
The Omega2 family does not support full-duplex transactions on the hardware SPI bus, but you can make a software (bit-bang) instance of an SPI bus that will support full-duplex.
More info on software-based SPI buses in this FAQ post.
After having the auto-provisioning up and running I still have a small imperfection in play.
Whenever mtd -r write <IMAGE-NAME>.bin firmware finishes it does not do the -r because it complains about not being able to [e]rase a block. ...it exits with 1
Writing from 20211027-pan35-blusser-9-5.bin to firmware ...
[e]Failed to erase block
mtd verify doesn't end well either.
After a reboot the omega seems to be running my custom firmware happily, so I dont worry too much yet, but it keeps nagging
I have followed the instructions closely, also tried a couple of times more to make a new .bin file using the dd method.
This is how that runs:
root@Pandora3-74F3:/mnt/mmcblk0# dd if=/dev/mtd3 of=20211108-pan35-blusser-9-5.bin
64896+0 records in
64896+0 records out
Any idea where i should look?