Compiler WP7702 error

how about not adding gsteamer

Hi @jyijyi ,

I will try to remove gstreamer.

BTW I want to know which version support “swiflash -m wp76xx -r -f”

I also want to know can I use R16 modem FW + R13 linux distribution ?

R12 should support that command:

Of course FW R16 should use the corresponding R16 yocto source

Hi @jyijyi ,

I want to fix “ERROR=Flash write failed: Image size out of range”

I want to use ULPM and it only support in R13 and R16 but R13 and R16 image are too large how to do solve it ?

BTW if I remove gstreamer I don’t know that how to take picture or you have another method to take picture.

Or I can use R9 deconfig in R16 or R13 to build ?

I don’t need wifi BT audio,
I just want to the function
1 . Take picture
2. connect to network
3. use curl

How can I disable all the WIFI BT function in order to reduce the image size?

Do you really try to build the R13 yocto and add gstreamer ?
how big is the image?

If it is still too big, you can try removing the “gstreamer1.0-plugins-good” plugin and see if it already works for you:

IMAGE_INSTALL_append = " gstreamer1.0"
IMAGE_INSTALL_append = " gstreamer1.0-plugins-base"
#IMAGE_INSTALL_append = " gstreamer1.0-plugins-good"

I don’t know if you can remove those WIFI and bluetooth stuff, you can make some test to verify

If gstreamer still does not work, you might need to try other application like ffmpeg:

Hi @jyijyi ,

I remove gstreamer-good then the image size is 38MB, but I use gstreamer in shell I got WARNING and it cannot create file.

WARNING: erroneous pipeline: no element "v4l2src"

I want to follow your steps to install ffmpeg but I got error.

1. download the yocto source and go to ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc

2.add the following line:
IMAGE_INSTALL_append = " ffmpeg"

3.go to ./meta-swi/meta-swi-mdm9x28/conf/machine/swi-mdm9x28.conf
change UBI_ROOTFS_SIZE ?= “48MiB”

4. Make the yocto image and download to the module

My step

1.  download ffmpeg_6.0.bb (https://git.yoctoproject.org/poky/plain/meta/recipes-multimedia/ffmpeg/ffmpeg_6.0.bb)
2. create ffmpeg folder in ./meta-openembedded/meta-multimedia/recipes-multimedia/
3. put ffmpeg_6.0.bb into ffmpge
4. modify ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc to add 
IMAGE_INSTALL_append = " ffmpeg"
5. make

I got error

Build image of minimal rootfs (for swi-mdm9x28).
WARNING: Layer swi should set LAYERSERIES_COMPAT_swi in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-mdm9xxx should set LAYERSERIES_COMPAT_swi-mdm9xxx in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-mdm9x28 should set LAYERSERIES_COMPAT_swi-mdm9x28 in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-mdm9xxx-bin should set LAYERSERIES_COMPAT_swi-mdm9xxx-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-bin should set LAYERSERIES_COMPAT_swi-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-wp-bin should set LAYERSERIES_COMPAT_swi-wp-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-extras-mach should set LAYERSERIES_COMPAT_swi-extras-mach in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-mdm9xxx-bin should set LAYERSERIES_COMPAT_swi-mdm9xxx-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-bin should set LAYERSERIES_COMPAT_swi-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-wp-bin should set LAYERSERIES_COMPAT_swi-wp-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-extras should set LAYERSERIES_COMPAT_swi-extras in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi should set LAYERSERIES_COMPAT_swi in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-mdm9xxx should set LAYERSERIES_COMPAT_swi-mdm9xxx in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-mdm9x28 should set LAYERSERIES_COMPAT_swi-mdm9x28 in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-mdm9xxx-bin should set LAYERSERIES_COMPAT_swi-mdm9xxx-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-bin should set LAYERSERIES_COMPAT_swi-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-wp-bin should set LAYERSERIES_COMPAT_swi-wp-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-extras-mach should set LAYERSERIES_COMPAT_swi-extras-mach in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-mdm9xxx-bin should set LAYERSERIES_COMPAT_swi-mdm9xxx-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-bin should set LAYERSERIES_COMPAT_swi-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-wp-bin should set LAYERSERIES_COMPAT_swi-wp-bin in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer swi-extras should set LAYERSERIES_COMPAT_swi-extras in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 3017 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:01
Parsing of 2129 .bb files complete (2127 cached, 2 parsed). 3019 targets, 336 skipped, 0 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_swi-mdm9xxx-bin '^/home/test/workspace/yocto/meta-swi/../meta-swi-extras/meta-swi-mdm9xxx-bin/'
WARNING: No bb files matched BBFILE_PATTERN_swi-mdm9xxx-bin '^/home/test/workspace/yocto/meta-swi/../meta-swi-extras/meta-swi-mdm9xxx-bin/'
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'libarchiveffmpeg' (but /home/test/workspace/yocto/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'libarchiveffmpeg' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libarchiveffmpeg']
ERROR: Required build target 'mdm9x28-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['mdm9x28-image-minimal', 'libarchiveffmpeg']

Summary: There were 24 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Makefile:255: recipe for target 'image_bin' failed
make: *** [image_bin] Error 1

Do I miss something ?

Do you try to build the R13 yocto and add gstreamer ?
how big is the image for adding the three gstreamer plugin?

IMAGE_INSTALL_append = " gstreamer1.0"
IMAGE_INSTALL_append = " gstreamer1.0-plugins-base"
IMAGE_INSTALL_append = " gstreamer1.0-plugins-good"

Yes It size is too big 41MB.

I think if I can remove 1 or 2 package then the size will be enough.

Do you know where I can modify config to remove unnecessary package?

no, i don’t know, you need to make some test on “mdm9607_defconfig” and “swi-mdm9x28.conf”

For ffmpeg, you don’t need to add extra bb file, but you need to modify ./build_bin/conf/local.conf

Hi @jyijyi ,

You mean my step

1. modify ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc to add 
IMAGE_INSTALL_append = " ffmpeg"
2. add LICENSE_FLAGS_WHITELIST=“commercial” in ./build_bin/conf/local.conf

No need to download any source ?

yes, it should be able to compile but of course the yocto image will be big, you need to run the ffmpeg in RAM

Hi @jyijyi ,

I want to know the residual space for rootfs if my image is 38MB.

why don’t you just download to module to test?

Hi @jyijyi ,

OK, I disable WIFI and BT tools, then the image size will be 38.8MB in R13 and 39.4MB in R16

Do you know where can I disable audio tools?

BTW I checked /home free size

/dev/ubi3_0             107036      1540    100660   2% /mnt/flash
/dev/ubiblock2_0          5120      5120         0 100% /mnt/legato
/dev/ubi4_0               8860        68      8276   1% /mnt/userrw
overlay                 107036      1540    100660   2% /etc
overlay                 107036      1540    100660   2% /data
overlay                 107036      1540    100660   2% /lib/firmware
/dev/mapper/rt           26880     26880         0 100% /usr/share/zoneinfo/localtime
/dev/ubi3_0             107036      1540    100660   2% /home
/dev/ubiblock1_0         25344     25344         0 100% /firmware
/dev/ubi3_0             107036      1540    100660   2% /legato
tmpfs                    78064        32     78032   0% /etc/ld.so.conf
tmpfs                    78064        32     78032   0% /etc/ld.so.cache
tmpfs                    78064        32     78032   0% /etc/hosts
cgroupsRoot              79392         0     79392   0% /sys/fs/cgroup
/dev/ubi3_0             107036      1540    100660   2% /legato/systems/current

It looks like there’s room for “/home”.

how do you modify?
Are you modifying swi-mdm9x28.conf?
Can it download to module?

Hi @jyijyi ,

I modify defconfig and mdm9x28-image.inc

I only try download R13 image.
R16 didn’t try yet.

Can it be downloaded to module?

Hi @jyijyi ,

Yes, R13 image can download to module.

Good.

can you paste your defconfig and mdm9x28-image.inc?
I wanna try in R16

Hi @jyijyi ,

Here is my config, I didn’t try it in R16.

config.zip (6.9 KB)

You can try it then tell me the result.
Thanks.