[WP7605][Partition] Update each partition by executing FW update

Q1:
After updating legato Framework(ex. legato-19.02.cwe), does it change only “mtd14 lefwkro”?

Q2:
After updating legato Application(.update), does it change only “mtd16 userapp”?

Q3:
Does “mtd15 swirw” equivalent to /mnt/userrw/?

Back Ground:
I consider the case of updating each partition.
And I would like to know whether user data will be erased after updating partition.

Regarding to the following ticket, it seems that user data is saved in /mnt/userrw.
If Q1 to Q3 is all “Yes”, I don’t care my concern, that’s why I asked it.

Best Regards,

  1. yes
  2. yes
  3. yes
    root@swi-mdm9x28-wp:~# df -h | grep ‘/mnt/userrw’
    /dev/ubi4_0 8.7M 48.0K 8.1M 1% /mnt/userrw
    root@swi-mdm9x28-wp:~# more /proc/mtd
    dev: size erasesize name
    mtd0: 00280000 00040000 “sbl”
    mtd1: 00280000 00040000 “mibib”
    mtd2: 00680000 00040000 “backup”
    mtd3: 00100000 00040000 “security”
    mtd4: 00200000 00040000 “persist”
    mtd5: 01180000 00040000 “efs2”
    mtd6: 04f40000 00040000 “swifota”
    mtd7: 00180000 00040000 “tz”
    mtd8: 000c0000 00040000 “devcfg”
    mtd9: 000c0000 00040000 “rpm”
    mtd10: 02000000 00040000 “modem”
    mtd11: 00100000 00040000 “aboot”
    mtd12: 00f00000 00040000 “boot”
    mtd13: 01e00000 00040000 “system”
    mtd14: 008c0000 00040000 “lefwkro”
    mtd15: 01900000 00040000 “swirw”
    mtd16: 08300000 00040000 “userapp”
    mtd17: 03680000 00040000 “reserved”
    mtd18: 02180000 00040000 “slot_2”
    mtd19: 02180000 00040000 “slot_1”
    mtd20: 02180000 00040000 “slot_0”
    root@swi-mdm9x28-wp:~# cat /sys/class/ubi/ubi4/mtd_num
    15

Hi, jyijyi

I tested the following procedure.

(1) write legato application(.update)
$update <file.update>

(2) write kernel image v19.10
fwupdate download <kernel19.10.cwe>

(3) write kernel image v19.02
fwupdate download <kernel19.02.cwe>

After (3), legato application is erased automatically.
(Regarding to your answer, this legato application is saved in mtd16 userapp, so I think it is not erased by updating only kernel image.)

Regarding to (3), I get cwe file by executing “make wp76” to the following source code.
https://downloads.sierrawireless.com/legato/1911/legato-19.11.0.tar.bz2

Question:
Could you tell me the reason why legato application is erased by the above sequence?

can you try just upgrading with the same legato version on 19.2.0 instead of using 19.10.0 ?
you can check by “legato version” where the string will be changed if you have upgrade successfully.

Hi, jyijyi

can you try just upgrading with the same legato version on 19.2.0 instead of using 19.10.0 ?

In that case, legato application is not removed automatically.
I suspect if legato version is same before and after updating, legato application is kept.

Maybe it is because your application is not built with the new legato version.