Module Partitioning

I have a module that’s partitioned as 20 different MTD devices. How do I format a CWE to re-partition and increase the size of MTD 13, UBI device 0, and UBI volume 0_0 in order to increase the size of the root filesystem?

MTD devices being populated at boot:

[ 0.478822] msm_nand_bam_init: msm_nand_bam_init: BAM device registered: bam_handle 0xdde0c800
[ 0.479065] sps:BAM 0x07984000 (va:0xe0bc0000) enabled: ver:0x19, number of pipes:7
[ 0.481695] msm_nand_parse_smem_ptable: Parsing partition table info from SMEM
[ 0.481736] msm_nand_parse_smem_ptable: SMEM partition table found: ver: 4 len: 20
[ 0.481761] msm_nand_version_check: nand_major:1, nand_minor:5, qpic_major:1, qpic_minor:5
[ 0.481798] msm_nand_scan: NAND Id: 0x2690ac98 Buswidth: 8Bits Density: 512 MByte
[ 0.481808] msm_nand_scan: pagesize: 4096 Erasesize: 262144 oobsize: 256 (in Bytes)
[ 0.481816] msm_nand_scan: BCH ECC: 8 Bit
[ 0.481830] msm_nand_scan: CFG0: 0x290409c0, CFG1: 0x08045d5c
[ 0.481830] RAWCFG0: 0x2b8401c0, RAWCFG1: 0x0005055d
[ 0.481830] ECCBUFCFG: 0x00000203, ECCBCHCFG: 0x42040d10
[ 0.481830] RAWECCCFG: 0x42000d11, BAD BLOCK BYTE: 0x00000175
[ 0.481849] Creating 20 MTD partitions on “7980000.nand”:
[ 0.481870] 0x000000000000-0x000000280000 : “sbl”
[ 0.482563] 0x000000280000-0x000000500000 : “mibib”
[ 0.483161] 0x000000500000-0x000001b80000 : “efs2”
[ 0.483744] 0x000001b80000-0x000001c80000 : “tz”
[ 0.484359] 0x000001c80000-0x000001d40000 : “rpm”
[ 0.484979] 0x000001d40000-0x000001e40000 : “aboot”
[ 0.485529] 0x000001e40000-0x000002880000 : “boot”
[ 0.486087] 0x000002880000-0x000002900000 : “scrub”
[ 0.486660] 0x000002900000-0x000006fc0000 : “modem”
[ 0.487248] 0x000006fc0000-0x000007140000 : “misc”
[ 0.487842] 0x000007140000-0x000007bc0000 : “recovery”
[ 0.488440] 0x000007bc0000-0x000007c80000 : “fota_none”
[ 0.489057] 0x000007c80000-0x000009340000 : “recoveryfs”
[ 0.489663] 0x000009340000-0x000011bc0000 : “system”
[ 0.490322] 0x000011bc0000-0x000012b40000 : “pad1”
[ 0.490902] 0x000012b40000-0x000013f80000 : “userrw”
[ 0.491474] 0x000013f80000-0x000017a40000 : “hdata”
[ 0.492061] 0x000017a40000-0x00001f000000 : “fota”
[ 0.492671] 0x00001f000000-0x00001f8c0000 : “cust”

lsmtd:

DEVICE MAJ:MIN NAME TYPE SIZE
mtd0 90:0 sbl nand 2.5M
mtd1 90:2 mibib nand 2.5M
mtd2 90:4 efs2 nand 22.5M
mtd3 90:6 tz nand 1M
mtd4 90:8 rpm nand 768K
mtd5 90:10 aboot nand 1M
mtd6 90:12 boot nand 10.3M
mtd7 90:14 scrub nand 512K
mtd8 90:16 modem nand 70.8M
└─ubi1 239:0 68.5M
└─ubi1_0 239:1 modem dynamic 57.9M
mtd9 90:18 misc nand 1.5M
mtd10 90:20 recovery nand 10.5M
mtd11 90:22 fota_none nand 768K
mtd12 90:24 recoveryfs nand 22.8M
mtd13 90:26 system nand 136.5M
└─ubi0 240:0 132.2M
├─ubi0_0 240:1 rootfs dynamic 90.1M
├─ubi0_1 240:2 usrfs dynamic 29.3M
└─ubi0_2 240:3 cachefs dynamic 2.1M
mtd14 90:28 pad1 nand 15.5M
mtd15 90:30 userrw nand 20.3M
└─ubi2 238:0 19.6M
└─ubi2_0 238:1 userrw dynamic 8.9M
mtd16 90:32 hdata nand 58.8M
└─ubi3 237:0 56.9M
└─ubi3_0 237:1 hdata dynamic 50.1M
mtd17 90:34 fota nand 117.8M
mtd18 90:36 cust nand 8.8M
mtd19 90:38 persist nand 7.3M
└─ubi4 236:0 7M
└─ubi4_0 236:1 persist dynamic 4.1M

Hi @jla2040, if you’re using WP76 modems, currently it is not possible. A new AT command is being added to allow customers to resize partitions. Timeline is a few months, depending on which carrier you’re planning to release with. New firmware cannot be used commercially until it is certified with carriers.
In the meantime, please reach out to your distributor or Sierra support person and we can certainly work out a solution for you. Thanks.

Are there any updates on that? We’d also like to change the size of lefwkro on our wp76 devices.

Thanks

1 Like

I’m in the same position of needing to repartition a WP7607. This is necessary to accommodate the gstreamer packages and a couple others. I’m running Release 17 Generic, but the AT!APPPARTCHG? command just returns error

Has there been any movement on this issue in the past year?

(EDIT: oops…didn’t realize this was a zombie thread. Should I open a new one?)

You need to contact distributor to get a tool to resize partition

You might see this to check whether you can have more space for rootfs