Gstreamer yocto build error: Callback status 59399

Building yocto with Gsreamer.

I am able to make the yocto image with gstreamer1.0 enabled and modify UBI_ROOTFS_SIZE ?= “48MiB” in ./meta-swi/meta-swi-mdm9x28/conf/machine/swi-mdm9x28.conf .

/yocto$ ls -al build_bin/tmp/deploy/images/swi-mdm9x28-wp/yocto_wp76xx.4k.cwe
-rw-r--r-- 1 user1 user1 42252832 Aug 23 15:29 build_bin/tmp/deploy/images/swi-mdm9x28-wp/yocto_wp76xx.4k.cwe

Size of the build is 42252832. But i am not able to download the firmware to the target device(WP7608). I got an error message as shown below.

Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
............DONE
Downloading the firmware
.........ERROR: Firmware Download failed. Callback status 59399DONE
ERROR: Firmware Download Failed

Please advice how to mitigate the issue.

I don’t see such issue on R13:

root@swi-mdm9x28-wp:~# cm info
Device:                        WP7609
IMEI:                          359782080100399
IMEISV:                        6
FSN:                           WA803370010610
Firmware Version:[   83.090396] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x041363c8 OPER:0x00000090
              SWI9X07Y_02.28.03.05 000000 jenkins 2019/07/08 11:[   83.107089] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x041363c8 OPER:0x00000090
04:16
Bootloader Version:            SWI9X07Y_02.28.03.05 000000 jenkins 2019/07/08 11:04:16
MCU Version:                   002.011
PRI Part Number (PN):          9908102
PRI Revision:                  001.000
Carrier PRI Name:              GENERIC
Carrier PRI Revision:          002.073_000
SKU:                           1103843
Last Reset Cause:              Reset, User Requested
Resets Count:                  Expected: 192    Unexpected: 243
root@swi-mdm9x28-wp:~# ls /tmp/yocto_wp76xx.4k.cwe
/tmp/yocto_wp76xx.4k.cwe
root@swi-mdm9x28-wp:~# ls /tmp/yocto_wp76xx.4k.cwe -l
-rw-r--r--    1 root     root      42461728 Aug 24  2021 /tmp/yocto_wp76xx.4k.cwe
root@swi-mdm9x28-wp:~# fwupdate download /tmp/yocto_wp76xx.4k.cwe
Connecting to service ...
Download started ...
Download successful
Installing & Reboot ...
rcK: Executing run_K_scripts...
Stopping linkmon: no linkmon found; none killed
done

@jyijyi I have try the same

root@swi-mdm9x28-wp:~# cm info
Device:                        WP7608
IMEI:                          352913090102177
IMEISV:                        6
FSN:                           XG814285340210
Firmware Version:              SWI9X07Y_02.28.03.03 000000 jenkins 2019/05/21 03:33:04
Bootloader Version:            SWI9X07Y_02.28.03.03 000000 jenkins 2019/05/21 03:33:04
MCU Version:                   002.011
PRI Part Number (PN):          9907762
PRI Revision:                  001.002 
Carrier PRI Name:              GENERIC
Carrier PRI Revision:          002.068_000
SKU:                           1103788
Last Reset Cause:              Reset, User Requested
Resets Count:                  Expected: 119	Unexpected: 1
root@swi-mdm9x28-wp:~# ls /tmp/yocto_wp76xx.4k.cwe -l
-rw-r--r--    1 root     root      42252832 Jan  6 12:31 /tmp/yocto_wp76xx.4k.cwe
root@swi-mdm9x28-wp:~# fwupdate download /tmp/yocto_wp76xx.4k.cwe
Connecting to service ...
Download started ...
Download successful
Installing & Reboot ...
packet_write_wait: Connection to 192.168.2.2 port 22: Broken pipe

but the firmware download was unsuccessful. Please find below cm info output after reconnection to the module.

root@swi-mdm9x28-wp:~# cm info
Device:                        WP7608
IMEI:                          352913090102177
IMEISV:                        6
FSN:                           XG814285340210
Firmware Version:              SWI9X07Y_02.28.03.03 000000 jenkins 2019/05/21 03:33:04
Bootloader Version:            SWI9X07Y_02.28.03.03 000000 jenkins 2019/05/21 03:33:04
MCU Version:                   002.011
PRI Part Number (PN):          9907762
PRI Revision:                  001.002 
Carrier PRI Name:              GENERIC
Carrier PRI Revision:          002.068_000
SKU:                           1103788
Last Reset Cause:              Reset, User Requested
Resets Count:                  Expected: 120	Unexpected: 1
root@swi-mdm9x28-wp:~#

it is because the partition for yocto image is not big enough…
You might consider to run the gstreamer in RAM.
Here is an example to run ffmpeg in RAM:

Thanks @jyijyi we will try running gstreamer in RAM.