Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Gliffy Diagram
macroIdbe245e43-7738-4b49-b245-d822ea9d2818
displayNameFwUpgradeManager
nameFwUpgradeManager
pagePin23

TR-181 Data Model Parameters 

...

                   Please run the below commands for FwUpgrade Manager,

Using dmcli commands

                 Below steps are used to validate the FwUpgrade by using dmcli commands,

Code Block
languagebash
themeDJango
titledmcli commands
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_20210818080531.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:~# 

...

Code Block
languagebash
themeDJango
titlefdisk
collapsetrue
Device         Boot    Start      End Sectors  Size Id Type
/dev/mmcblk0p1 *        8192   112525  104334   51M  c W95 FAT32 (LBA)
/dev/mmcblk0p2        114688  9822207 9707520  4.6G 83 Linux
/dev/mmcblk0p3       9822208 14016512 4194305    2G 83 Linux
/dev/mmcblk0p4      14016513 18210817 4194305    2G 83 Linux

root@RaspberryPi-Gateway:/ df -h | grep extblock
/dev/mmcblk0p4            1.9G    246.9M      1.5G  13% /extblock
/dev/mmcblk0p1           50.8M     29.2M     21.6M  58% /extblock/bank0_linux
/dev/mmcblk0p2            4.5G     95.0M      4.2G   2% /extblock/bank0_rootfs

root@RaspberryPi-Gateway: mount | grep extblock
/dev/mmcblk0p4 on /extblock type ext4 (rw,relatime)
/dev/mmcblk0p1 on /extblock/bank0_linux type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/mmcblk0p2 on /extblock/bank0_rootfs type ext4 (rw,relatime) on /extblock/bank0_linux type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/mmcblk0p2 on /extblock/bank0_rootfs type ext4 (rw,relatime)
 

Using Webpa

               Below steps are used to validate the fwupgrade by using webpa commands,

prerequisite

               Please use the below command to check the webpa & parodus process are running successfully or not.

Code Block
languagebash
themeDJango
titlewebpa
collapsetrue
root@RaspberryPi-Gateway:~# ps aux | grep webpa
 5827 root      0:01 /usr/bin/parodus --hw-model=RPI --hw-serial-number=00000000a31b564c --hw-manufacturer=Raspberry --hw-last-reboot-reason= --fw-name=rdkb-generic-broadband-image_rdk-next_20210813103706 --boot-time=1629896069 --hw-mac=B8:27:EB:1B:56:4C --webpa-ping-time=180 --webpa-interface-used=erouter0 --webpa-url=http://54.148.37.189:8080 --webpa-backoff-max=9 --parodus-local-url=tcp://127.0.0.1:6666 --partner-id=comcast --ssl-cert-path=/etc/ssl/certs/ca-certificates.crt --force-ipv4
 5884 root      0:02 /usr/bin/webpa &
28195 root      0:00 webpa
28608 root      0:00 grep webpa
root@RaspberryPi-Gateway:~# 

Curl Commands


Code Block
languagebash
themeDJango
titlecurl - set
root@RaspberryPi-Gateway:~# curl -X PATCH http://54.148.37.189:9003/api/v2/device/mac:B8:27:EB:1B:56:4C/config -d '{"parameters": [ {"dataType": 0, "name": "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL", "value": "http://192.168.0.10"}]}' -H 'Authorization:Basic d3B1c2VyOndlYnBhQDEyMzQ1Njc4OTAK'
{"parameters":[{"name":"Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL","message":"Success"}],"statusCode":200}
root@RaspberryPi-Gateway:~#

root@RaspberryPi-Gateway:~# curl -X PATCH http://54.148.37.189:9003/api/v2/device/mac:B8:27:EB:1B:56:4C/config -d '{"parameters": [ {"dataType": 0, "name": "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload", "value": "rdkb-generic-broadband-image_rdk-next_20210818080531.rootfs.wic"}]}' -H 'Authorization:Basic d3B1c2VyOndlYnBhQDEyMzQ1Njc4OTAK'
{"parameters":[{"name":"Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload","message":"Success"}],"statusCode":200}
root@RaspberryPi-Gateway:~# 




Code Block
languagebash
themeDJango
titlecurl - Get
collapsetrue
root@RaspberryPi-Gateway:~# curl -H 'Authorization:Basic d3B1c2VyOndlYnBhQDEyMzQ1Njc4OTAK' -i http://54.148.37.189:9003/api/v2/device/mac:B8:27:EB:1B:56:4C/config?names=Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
X-Scytale-Build: 0.1.4-1
X-Scytale-Flavor: mint
X-Scytale-Region: east
X-Scytale-Server: 54.148.37.189
X-Scytale-Start-Time: 23 Jul 19 11:55 UTC
X-Talaria-Build: 0.1.3-1
X-Talaria-Flavor: mint
X-Talaria-Region: east
X-Talaria-Server: 54.148.37.189
X-Talaria-Start-Time: 22 Jul 19 09:34 UTC
X-Tr1d1um-Build: 0.1.2-1
X-Tr1d1um-Flavor: mint
X-Tr1d1um-Region: east
X-Tr1d1um-Server: 54.148.37.189
X-Tr1d1um-Start-Time: 22 Jul 19 07:07 UTC
X-Webpa-Transaction-Id: fC0LI-meLU0OIKStT94L_w
X-Xmidt-Span: "http://localhost:8080/api/v2/device/send","2021-08-25T14:03:21Z","252.811878ms"
Date: Wed, 25 Aug 2021 14:03:22 GMT
Content-Length: 181

{"parameters":[{"name":"Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL","value":"http://192.168.0.10","dataType":0,"parameterCount":1,"message":"Success"}],"statusCode":200}

root@RaspberryPi-Gateway:~# curl -H 'Authorization:Basic d3B1c2VyOndlYnBhQDEyMzQ1Njc4OTAK' -i http://54.148.37.189:9003/api/v2/device/mac:B8:27:EB:1B:56:4C/config?names=Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload   
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
X-Scytale-Build: 0.1.4-1
X-Scytale-Flavor: mint
X-Scytale-Region: east
X-Scytale-Server: 54.148.37.189
X-Scytale-Start-Time: 23 Jul 19 11:55 UTC
X-Talaria-Build: 0.1.3-1
X-Talaria-Flavor: mint
X-Talaria-Region: east
X-Talaria-Server: 54.148.37.189
X-Talaria-Start-Time: 22 Jul 19 09:34 UTC
X-Tr1d1um-Build: 0.1.2-1
X-Tr1d1um-Flavor: mint
X-Tr1d1um-Region: east
X-Tr1d1um-Server: 54.148.37.189
X-Tr1d1um-Start-Time: 22 Jul 19 07:07 UTC
X-Webpa-Transaction-Id: jpdlC7t-S8vMwLjENt1niA
X-Xmidt-Span: "http://localhost:8080/api/v2/device/send","2021-08-25T14:06:59Z","254.980233ms"
Date: Wed, 25 Aug 2021 14:06:59 GMT
Content-Length: 224

{"parameters":[{"name":"Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload","value":"rdkb-generic-broadband-image_rdk-next_20210818080531.rootfs.wic","dataType":0,"parameterCount":1,"message":"Success"}],"statusCode":200}

root@RaspberryPi-Gateway:~# curl -H 'Authorization:Basic d3B1c2VyOndlYnBhQDEyMzQ1Njc4OTAK' -i http://54.148.37.189:9003/api/v2/device/mac:B8:27:EB:1B:56:4C/config?names=Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadProtocol
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
X-Scytale-Build: 0.1.4-1
X-Scytale-Flavor: mint
X-Scytale-Region: east
X-Scytale-Server: 54.148.37.189
X-Scytale-Start-Time: 23 Jul 19 11:55 UTC
X-Talaria-Build: 0.1.3-1
X-Talaria-Flavor: mint
X-Talaria-Region: east
X-Talaria-Server: 54.148.37.189
X-Talaria-Start-Time: 22 Jul 19 09:34 UTC
X-Tr1d1um-Build: 0.1.2-1
X-Tr1d1um-Flavor: mint
X-Tr1d1um-Region: east
X-Tr1d1um-Server: 54.148.37.189
X-Tr1d1um-Start-Time: 22 Jul 19 07:07 UTC
X-Webpa-Transaction-Id: MS7xPwO8ZsClcJpUSkqxjQ
X-Xmidt-Span: "http://localhost:8080/api/v2/device/send","2021-08-25T14:10:13Z","253.576482ms"
Date: Wed, 25 Aug 2021 14:10:13 GMT
Content-Length: 171

{"parameters":[{"name":"Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadProtocol","value":"HTTP","dataType":0,"parameterCount":1,"message":"Success"}],"statusCode":200}

 



RPi - Board

  1. 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)
  2. Device auto-reboots and verify there are 2 more additional partitions are created (ex. mmcblk0p3, mmcblk0p4).
  3. Verify the image version ( cat /version.txt) displays the flashed image version
  4. Verify FwUpgradeManagerLog.txt file is generated in /rdklogs/logs directory.
  5. 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)
  6. Once image download completed, the Rpi board will auto reboot and come up with downloaded image
  7.  Verify the version of booted image which shows the downloaded image version

...

Code Block
languagebash
themeDJango
titleversion txt
collapsetrue
root@RaspberryPi-Gateway:~# cat /version.txt 
imagename:rdkb-generic-broadband-image_rdk-next_20210818080531
BRANCH=rdk-next
YOCTO_VERSION=dunfell
VERSION=4.08.18.21
SPIN=0
BUILD_TIME="2021-08-18 08:05:31"
Generated on Wed Aug 18  08:05:31 UTC 2021
root@RaspberryPi-Gateway:~# 


Limitation