Hi ,
I have some question about firmware upgrade.
I need to build a custom image including kernel and rootfs and upgrade it on my mangOH Green board because we may need to upgarde amount of boards in the future. So I need to upgrade the whole image NOT only the apps.
I had referenced some page such as swiflash and swicwe web pages.
Env: In the VM in ~/workspace2/legato/ , repo is git://github.com/legatoproject/manifest
I enter command “make wp76xx” and it build some image like legato-squashfs.4k.ubi.cwe and legato-squashfs.2k.ubi.cwe.I check the board I think it is 4K block size, so I use cmd "swicwe -o wp76xx_4k_image.spk -c build/wp76xx/legato-squashfs.4k.ubi.cwe " to make a .spk file.ThenI use cmd “swiflash -m “WP76XX” -i wp76xx_4k_image.spk” to upgrade it into target.It shows
Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
… (…loop, and do nothing)
And if I unmount USB and enter cmd “fwupdate download wp76xx_4k_image.spk 192.168.225.1”,
it shows
root@192.168.225.1’s password:
Connecting to service …
Connecting to service …
Download started …
Download successful
But I check the fw version it is wrong.
In VM :
mangoh@mangoh-virtualbox:~/workspace2/legato$ swicwe -P wp76xx_4k_image.spk
Type Size(Exclude Header) Product Compress Version
*SPKG 3408672 Y921 0 9999999_9999999_?????
*APPL 3408272 Y921 0 17.07.0-171-g805e1bd 805e1bd mangoh-virtualbox 2017/10/26 19:48:09
USER 3407872 9X28 0 17.07.0-171-g805e1bd 805e1bd mangoh-virtualbox 2017/10/26 19:48:09
In mangOH green :
root@swi-mdm9x28:~# cm info
Device: WP7603
IMEI: 357409080004775
IMEISV:
FSN: U3734285001406
Firmware: SWI9X07Y_02.06.02.00 000000 jenkins 2017/08/05 01:02:55
Bootloader: SWI9X07Y_02.06.02.00 000000 jenkins 2017/08/05 01:02:55
And below is the part log in mangoh green
rcK: Executing run_K_scripts…
Stopping linkmon: no linkmon found; none killed
done
Stopping qmi_ip: no qmi_ip_multiclient found; none killed
Stopping netmgrd: stopped netmgrd (pid 849)
done
Stopping qmuxd: stopped qmuxd (pid 797)
done
no QCMAP_ConnectionManager found; none killed
Stopping fs-scrub-daemon: no fs-scrub-daemon found; none killed
Stopping thermal-engine: stopped thermal-engine (pid 803)
done
stopped qti (pid 1079)
no ipacm_perf found; none killed
Stopping reboot daemon: stopped reboot-daemon (pid 679)
done
Legato shutdown sequence
Stopping Legato.
DONE.
Finished Legato stop Sequence
stopping time daemon
Stopping time_services: stopped time_daemon (pid 545)
done
stopping ntpd
no ntpd found; none killed
Stopping diagrebootapp: stopped diagrebootapp (pid 535)
done
stopping DNS forwarder and DHCP server: dnsmasq… stopped /usr/bin/dnsmasq (pid 1720 1719)
done.
Deconfiguring network interfaces… no ntpd found; none killed
done.
Stopping syslogd/klogd: stopped syslogd (pid 524)
stopped klogd (pid 528)
done
Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 1041)
dropbear.
K96mount_unionfs: RO rootfs fudge allowed.
K98mount_early: Executing mount_early_user_stop…
ubidetach: error!: cannot detach mtd16
error 16 (Device or resource busy)
K98mount_early: Executing mount_early_legato_stop…
K98mount_early: Executing mount_early_userrw_stop…
rcK: Executing kill_all_proc…
rcK: Executing umount_fs_generic…
rcK: Executing print_shutdown_msg…
** SYSTEM SHUTDOWN COMPLETE **
The system is going down NOW!
Sent SIGTERM to all processes
[ 172.961467] ch_notify on a closed smd_pkt_dev id:2
[ 172.969638] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet0
[ 173.044712] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data0
[ 173.118924] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet0
[ 173.173558] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data0
[ 173.210503] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data1
[ 173.300457] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data1
[ 173.307922] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data2
[ 173.470490] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data2
[ 173.477953] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data3
[ 173.505807] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister bridge0
[ 173.540300] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data3
[ 173.547897] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data4
[ 173.560690] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister bridge0
[ 173.590596] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data4
[ 173.598063] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data5
[ 173.630540] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data5
[ 173.637998] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data6
[ 173.670228] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data6
[ 173.677795] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data7
[ 173.710226] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister rmnet_data7
Sent SIGKILL to all processesRequesting system reboot
[ 174.978174] reboot: Restarting system
[ 174.981994] Failed to disable secure wdog debug: -4
[ 174.985869] Calling SCM to disable SPMI PMI
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.2-00080
S - IMAGE_VARIANT_STRING=LAATANAZA
S - OEM_IMAGE_VERSION_STRING=jenkins
S - Boot Config, 0x000002e1
B - 1216 - PBL, Start
B - 3720 - bootable_media_detect_entry, Start
How do I upgrade the fw correctly? Is the file legato-squashfs.4k.ubi.cwe is the right image I need?
Another question, are all docs in mangOH green/sierra wireless/legato introducing firmware upgrade that guide us just upgrade the apps?If it is yes, maybe I misunderstand the meaning of fw upgrade and should open a new topic to ask how to build a image(rootfs,kernel, custom data).
Thanks,
Neil