Rootfs update from cwe image



i have built cwe image and i update my mango red using fwupdate utility.
is fwupdate is support rootfs update i dont see it is updates the rootfs.


fwupdate tool only supports CWE/SPK file.


thanks for help!!!
please explain how to burn rootfs to the target?
another utility?
below you can see image i have built
need i add rootfs to the CWE?
/work/work/legato/yocto/build_bin/tmp/deploy/images/swi-mdm9x28-wp $ swicwe -c yocto_wp76xx.4k.cwe
input image type is APPL
Parsing input file yocto_wp76xx.4k.cwe
Type Size(Exclude Header) Product Compress Version
*APPL 30136464 Y921 0 Wed Jan 9 15:21:20 IST 2019
SYST 20971520 9X28 0 Wed Jan 9 15:21:20 IST 2019
APPS 9164144 9X28 0 3.18.44 20181223150058
3.18.44 20181223161852
3.18.44 20181224154520
3.18.44 201812201/09/19
Parsed image is Legato/Linux
Concatenating images

CWE Header Generator 3.01. Copyright Sierra Wireless, Inc., 2012
Output CWE Header File /tmp/temp.mbn.hdr
Image size 0x1cbda20, crc32 0x905c0cd0


When you say rootfs, are you referring to system partition?
If yes, you can put your file in yocto cwe and update according.


i put my bash scripts to my yocto custom level via append file

FILESEXTRAPATHS_prepend := "{THISDIR}/initscripts:" SRC_URI += "file://" do_install_append() { install -m 0755 {WORKDIR}/ {D}{sysconfdir}/init.d
update-rc.d -r ${D} start 99 S .
and see file is created in

when i do fwupdate i dont see my script on rootfs
what the problem here ?
it seems its not updated properly?!?


How about putting your script to /usr/bin folder?
You might refer to a post here:


but etc/init.d is not readonly i can copy file via ssh


How about putting your script to /usr/bin folder?


I just tried to put a file in /usr/bin and /etc/init.d, no problem is found for WP76 FW R9.
Below is part of my .bb file:

do_install() {
	     install -d ${D}${bindir}
	     install -m 0755 helloworld ${D}${bindir}
		 install -d ${D}${sysconfdir}/init.d
 		install -m 0755 helloworld ${D}${sysconfdir}/init.d/helloworld123

INSANE_SKIP_${PN} = "ldflags"


i did in my bb like this below: and its not extract file to the file system
may be problem update-rc.d not working by some reason in sierra yocto

do_install_append() {
install -m 0755 {WORKDIR}/ {D}${sysconfdir}/init.d

update-rc.d -r ${D} start 99 S .


maybe you can try my bb file and see if it can copy the file to /etc/init.d.


to my function i added path to /usr/bin and its works
itsa very strange it not working with init.d and rcS.d the problem in sierra software update!!!
i have tryed both sweflash and fwupdate the same result
do_install_append() {
install -d {D}{bindir}
install -m 0755 {WORKDIR}/ {D}{bindir} install -m 0755 {WORKDIR}/ {D}{sysconfdir}/init.d
update-rc.d -r ${D} start 99 S .


Do you mean you cannot put file to /etc/init.d folder?


i see during update prints
realpath: /etc/rcS.d/ No such file or directory
/etc/init.d/rcS: line 118: /etc/rcS.d/ not found