...
Code Block |
---|
language | bash |
---|
theme | DJango |
---|
title | Before Execution Steps |
---|
collapse | true |
---|
|
root@RaspberryPi-Gateway:~# dmcli eRT getv Device.DeviceInfo.
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
getv from/to component(eRT.com.cisco.spvtg.ccsp.fwupgrademanager): Device.DeviceInfo.
Execution succeed.
Parameter 1 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadStatus
type: string, value: Not Started
Parameter 2 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadProtocol
type: string, value:
Parameter 3 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL
type: string, value:
Parameter 4 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload
type: string, value:
Parameter 5 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadNow
type: bool, value: false
Parameter 6 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadAndFactoryReset
type: int, value: 0
Parameter 7 name: Device.DeviceInfo.X_RDKCENTRAL-COM_xOpsDeviceMgmt.RPC.DeferFWDownloadReboot
type: uint, value: 290
|
Code Block |
---|
language | bash |
---|
theme | DJango |
---|
title | Log file |
---|
collapse | true |
---|
|
Execution Steps
Please run the below commands for FwUpgrade ManagerFwUpgrade Manager Log file ,
Code Block |
---|
language | bash |
---|
theme | DJango |
---|
title | dmcli commandsLog file |
---|
collapse | true |
---|
|
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL string "http://192.168.0.7"
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.fwupgrademanager): Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL
Execution succeed.
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload string "rdkb-generic-broadband-image_rdk-next_20210813103706.rootfs.wic"
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.fwupgrademanager): Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload
Execution succeed.
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadNow bool true
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.fwupgrademanager): Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadNow
Execution succeed.
root@RaspberryPi-Gateway:~#
cat /rdklogs/logs/FwUpgradeManagerLog.txt.0
210805-16:04:07.534093 [mod=FWUPGRADEMANAGER, lvl=INFO] [tid=872]
After daemonize before signal
210805-16:04:07.535782 [mod=FWUPGRADEMANAGER, lvl=INFO] [tid=872] Connect to bus daemon...
210805-16:04:07.536150 [mod=FWUPGRADEMANAGER, lvl=WARN] [tid=872] DBus is enabled
210805-16:04:07.549648 [mod=FWUPGRADEMANAGER, lvl=INFO] [tid=872] INFO: bus_handle: 0x 169ce08
210805-16:04:08.556185 [mod=FWUPGRADEMANAGER, lvl=WARN] [tid=872] Register empty object : com.
210805-16:04:08.556397 [mod=FWUPGRADEMANAGER, lvl=WARN] [tid=872] Register empty object : com.cisco.
210805-16:04:08.556525 [mod=FWUPGRADEMANAGER, lvl=WARN] [tid=872] Register empty object : com.cisco.spvtg.
210805-16:04:08.556656 [mod=FWUPGRADEMANAGER, lvl=WARN] [tid=872] Register empty object : com.cisco.spvtg.ccsp.
210805-16:04:08.558086 [mod=FWUPGRADEMANAGER, lvl=WARN] [tid=872] DM Library module name = CCSP Base Data Model
210805-16:04:08.558481 [mod=FWUPGRADEMANAGER, lvl=INFO] [tid=872] Download_Control_Flag is 1
210805-16:04:08.558714 [mod=FWUPGRADEMANAGER, lvl=INFO] [tid=872] Current FW Version is rdkb-generic-broadband-image_rdk-next_20210813103706
210805-16:04:08.558846 [mod=FWUPGRADEMANAGER, lvl=WARN] [tid=872] syscfg_get failed
210805-16:04:08.566939 [mod=FWUPGRADEMANAGER, lvl=WARN] [tid=872] DM Library module name = TR181_RdkFirmwareUpgradeManager
210805-16:04:08.568084 [mod=FWUPGRADEMANAGER, lvl=WARN] [tid=872] Search for empty object in 'dslhCpeCheckEmptyObject'
root@RaspberryPi-Gateway:~#
|
Execution Steps
Please run the below commands for FwUpgrade Manager,
Code Block |
---|
language | bash |
---|
theme | DJango |
---|
title | dmcli commands |
---|
collapse | true |
---|
|
root@RaspberryPi-Gateway:~# dmcli eRT setv |
Code Block |
---|
language | bash |
---|
theme | DJango |
---|
title | Get Commands |
---|
collapse | true |
---|
|
root@RaspberryPi-Gateway:/# dmcli eRT getv Device.DeviceInfo.
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
getv from/to component(eRT.com.cisco.spvtg.ccsp.fwupgrademanager): Device.DeviceInfo.
Execution succeed.
Parameter 1 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadStatus
type: string, value: Completed
Parameter 2 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadProtocol
type: string, value: HTTP
Parameter 3 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL
type: string, value: "http://192.168.0.7 "
ParameterCR component name 4 nameis: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.fwupgrademanager): Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownloadFirmwareDownloadURL
Execution succeed.
root@RaspberryPi-Gateway:~# dmcli eRT type: string, value: setv Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload string "rdkb-generic-broadband-image_rdk-next_20210813103706.rootfs.wic "
ParameterCR component name 5 nameis: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadNow
eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.fwupgrademanager): Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload
Execution succeed.
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadNow bool true
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.fwupgrademanager): Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadNow
Execution succeed.
root@RaspberryPi-Gateway:~#
|
Code Block |
---|
language | bash |
---|
theme | DJango |
---|
title | Get Commands |
---|
collapse | true |
---|
|
root@RaspberryPi-Gateway:/# dmcli eRT getv Device.DeviceInfo.
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
getv from/to component(eRT.com.cisco.spvtg.ccsp.fwupgrademanager): Device.DeviceInfo.
Execution succeed.
Parameter 1 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadStatus
type: string, value: Completed
Parameter 2 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadProtocol
type: string, value: HTTP
Parameter 3 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL
type: string, value: http://192.168.0.7
Parameter 4 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload
type: string, value: rdkb-generic-broadband-image_rdk-next_20210813103706.rootfs.wic
Parameter 5 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadNow
type: bool, value: false
Parameter 6 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadAndFactoryReset
type: int, value: 0
Parameter 7 name: Device.DeviceInfo.X_RDKCENTRAL-COM_xOpsDeviceMgmt.RPC.DeferFWDownloadReboot
type: uint, value: 290
|
The New Firmware Image is downloaded at /firmware/imagedwld and Use 'ls -lh' command to check the image size.
Code Block |
---|
language | bash |
---|
theme | DJango |
---|
title | NewFw_Imagedwld_path |
---|
collapse | true |
---|
|
root@RaspberryPi-Gateway:/firmware/imagedwld# pwd
/firmware/imagedwld
root@RaspberryPi-Gateway:/firmware/imagedwld# ls -lh rdkb-generic-broadband-image_rdk-next_20210813103706.rootfs.wic
-rw-r--r-- 1 root root 316.0M Aug 20 09:40 rdkb-generic-broadband-image_rdk-next_20210813103706.rootfs.wic
root@RaspberryPi-Gateway:/firmware/imagedwld#
|
Use 'fdisk -l' command to check the available partitions.
Code Block |
---|
language | bash |
---|
theme | DJango |
---|
title | fdisk |
---|
collapse | true |
---|
|
Device type:Boot Start bool, End value:Sectors false
ParameterSize 6 name: Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadAndFactoryReset
Id Type
/dev/mmcblk0p1 * 8192 112525 104334 type: 51M c W95 FAT32 int,(LBA)
/dev/mmcblk0p2 value: 0
Parameter 114688 9822207 79707520 name: Device.DeviceInfo.X_RDKCENTRAL-COM_xOpsDeviceMgmt.RPC.DeferFWDownloadReboot
4.6G 83 Linux
/dev/mmcblk0p3 9822208 14016512 4194305 2G 83 type:Linux
/dev/mmcblk0p4 14016513 18210817 uint,4194305 value:2G 29083 Linux
|
RPi - Board
- Flash the RDKB image supported for Firmware upgrade feature in the Rpi and verify the 2 partitions(ex. mmcblk0p1, mmcblk0p2) present under dev folder (use command ls /dev)
- Device auto-reboots and verify there are 2 more additional partitions are created (ex. mmcblk0p3, mmcblk0p4).
- Verify the image version ( cat /version.txt) displays the flashed image version
- Verify FwUpgradeManagerLog.txt file is generated in /rdklogs/logs directory.
- Verify the http download is happening by noticing the change of file size using below command : cd /firmware/imagedwld ls -lh(use this command frequently to verify the file size change)
- Once image download completed, the Rpi board will auto reboot and come up with downloaded image
- Verify the version of booted image which shows the downloaded image version
...