i did some further investigation and it seems the bootloader is automatically upgraded by the new system. see below: took a virgin p1 (was on 0.5.3 – see first “identify”, and bootloader “version 7” – see first “inspect”) and flashed it with device os / system 1.5.2. afterwards the bootloader is still “version 7”.
i power-cycled the device and yes: bootloader “version 502”
my initial factory script (including upgrading the bootloader) would not expose the “photon-xxxx” AP. only after reboot. with the system upgrading the bootloader it seems you have to reboot twice before you see the AP.
we do not care not having the AP in the factory but when the product is at the customer it should work right away. should we force a reboot in the factory (can this be done over usb?).
would appreciate someone with knowledge of how this works elaborate…
thanks
frank
MackMyra:deviceOs frank$ particle identify
Your device id is 410062001851363036373538
Your system firmware version is 0.5.3
MackMyra:deviceOs frank$ particle serial inspect
Platform: 8 - P1
Modules
Bootloader module #0 - version 7, main location, 16384 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
empty - main location, 262144 bytes max size
System module #2 - version 21, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 21
User module #1 - version 4, main location, 131072 bytes max size
UUID: 11B13BD023486339343808493C222BBD27753EB71D4290F352EE4D7A11AB9E82
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 21
User module #1 - version 4, factory location, 131072 bytes max size
UUID: 11B13BD023486339343808493C222BBD27753EB71D4290F352EE4D7A11AB9E82
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 21
MackMyra:deviceOs frank$ stty -f /dev/cu.usbmodem00000000050C1 14400
MackMyra:deviceOs frank$ particle flash --usb p1-system-part1\@1.5.2.bin
Flash success!
MackMyra:deviceOs frank$ particle flash --usb p1-system-part2\@1.5.2.bin
Flash success!
MackMyra:deviceOs frank$ particle flash --usb
application.bin factory.sh p1-system-part1@1.5.2.bin
factory.bat lib/ p1-system-part2@1.5.2.bin
factory.js p1-bootloader@1.5.2+lto.bin
MackMyra:deviceOs frank$ particle flash --usb application.bin
Flash success!
MackMyra:deviceOs frank$ particle identify
Your device id is 410062001851363036373538
Your system firmware version is 1.5.2
MackMyra:deviceOs frank$ particle serial inspect
Platform: 8 - P1
Modules
Bootloader module #0 - version 7, main location, 16384 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1512, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 207
System module #2 - version 1512, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: FAIL
System module #1 - version 1512
Bootloader module #0 - version 400
User module #1 - version 6, main location, 131072 bytes max size
UUID: C08F12006C153E35DC090857368CD2A8D2FAB510283BC76CA46710E882E3F30B
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 1512
User module #1 - version 4, factory location, 131072 bytes max size
UUID: 0A08E02C0A08AC2B0A08B42A0A08292B0A08014A024B1A6070473A2B0A08FC00
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 21
MackMyra:deviceOs frank$
after power-cycle:
MackMyra:deviceOs frank$ particle serial inspect
Platform: 8 - P1
Modules
Bootloader module #0 - version 502, main location, 16384 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1512, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 207
System module #2 - version 1512, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1512
Bootloader module #0 - version 400
User module #1 - version 6, main location, 131072 bytes max size
UUID: 0D3A802532E549FE881F39851D2220A7FD8F0F5884C306E9EBA42F16409C27FA
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 1512
User module #1 - version 4, factory location, 131072 bytes max size
UUID: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 21
MackMyra:deviceOs frank$