Versions Compared

Key

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

...

The Raspberry Pi board is connected to the PC via a USB to serial converter and the logs can be checked in console or can be connected via HDMI cable to a TV and logs will be shown in the terminal

...

Increasing the rootfs partition size in SD-CARD if

...

Flashed for first time

If firmware upgrade is intended for multi-boot, it is It is necessary to have partizion size matching to  RDKB image size ( especially rootfs ). 

...

Local Apache2 server set up

Server Set-

...

up 

  1.  Install the apache2 http server in local pc
  2.  place the rpi image in document root directory.

...

Code Block
languagebash
themeDJango
titleLocal Http server Document root path
collapsetrue
keerthana@keerthana-INVALID:/var/www/html$ pwd
/var/www/html
keerthana@keerthana-INVALID:/var/www/html$ ls -lh rdkb-generic-broadband-image_rdk-next_20210813104338.rootfs.wic
-rw-r--r-- 1 root root 316M Aug 13 17:29 rdkb-generic-broadband-image_rdk-next_20210813104338.rootfs.wic
keerthana@keerthana-INVALID:/var/www/html$ 

Execution steps

       Please run the below commands for FwUpgrade Manager,

Before Executing of FwUpgrade Manager commands,

Code Block
languagebash
themeDJango
titleBefore Execution Steps
collapsetrue
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 



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

...