Combine u-boot and openwrt in the same single file and flash it to the onion board
-
@mohamedkallel We recommend against using a flash programmer to write complete images to the flash.
@Lazar-Demin said in SPI Flash Image generation:
We recommend against using a flash programmer to write complete images to the flash.
For one thing, the factory (aka art) partition holds wifi radio configuration and MAC addresses that are programmed at the factory and are unique to each device.
If the factory partition is overwritten, you will need to boot the device (either into the bootloader or Linux) to, at minimum, write unique MAC addresses to the factory partition.
If you're already booting into Linux, then it makes sense to use the sysupgrade command to install a firmware image as @JeffZhou mentioned above.
This process will only update the firmware and kernel partitions, leaving the bootloader and factory partitions as they are.
As a second option, in case this isn't helpful since you need to "clone" the firmware setup of a device, we recommend looking at this FAQ post: 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
It doesn't overwrite the factory partition, but there are other trade-offs.
-
thank you for your feedback
I checked the default radio configuration and it's the same for all device.
Do you mean the SSID name?
-
@mohamedkallel the
factory
partition holds wifi radio configuration and MAC addresses that are programmed at the factory and are unique to each device.This is not the same as the linux networking and wireless configuration in
/etc/config
in the linux filesystem
-
@Lazar-Demin Could you please let me know what could be the radio config that the factory partition hold? could you please provide example or link
thank you
-
@mohamedkallel have you looked at using uci default scripts configure each individual device?
-
@crispyoz as @Lazar-Demin said it's not about the uci config. it's a config that was put in the factory partition (mtd2) like the Mac address.
-
@Lazar-Demin
I made a comparison between the mtd2 partitions of 2 boards. and here what I found:the difference in the lines 0000000 and 0000020 and 0000030 are about the Mac addresses.
but the difference in line 0000050 is not clear for me. could be this related to the radio ?
-
@mohamedkallel I don't understand why you'd want to change the MAC address, hence my question re UCI.
-
@crispyoz the idea is to generate final binary that contains all partitions (uboot, factory, firmware...) in order to flash it to all my devices in the factory production phase.
there is unique params for each device that are stored in mtd2 partition(factory partition). these params are:- Mac Addresses
- WiFi radio calibration data
I want to change these params in my production process before flashing each device
uci-default will not help me in such process
-
@mohamedkallel the wifi radio calibration stored in the factory partition is unique to each device. It's done in the factory as part of QA testing with the help of an RF calibration machine. We do not recommend changing these values.
Hence we do not recommend using a flash programmer to write complete images to the flash.