Versions Compared

Key

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

...

vi /etc/default/tftpd-hpa
tftp-hpa File Content

# /etc/default/tftpd-hpa
 
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/home/xyz/tftphome" ( Give upgrading file and checksum file maintained directory )
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"


STEP 6:

Start tftp server and xinetd server

sudo service tftpd-hpa restart
sudo /etc/init.d/xinetd restart

XCONF Server Setup

XConf URL

Enter XConf server wiki page with below URL to create Environment,Model,Mac list,Firmware config,Firmware rule and Download Location Round Robin Filter.
XConf URL

http://35.155.171.121:9093/admin/ux

Create Environments

STEP 1:

...

Provide the UpdateFirmware Curl command in the Rpi board

root@raspberrypi-rdk-hybrid:~# curl --data-binary '{"jsonrpc":"2.0","id":"3","method":"org.rdk.System.1.updateFirmware","params":{}}' -H 'con
ent-type:text/plain;' http://localhost:9998/jsonrpc


RPI-Board

  1. Flash the RDKV 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. Verify System Service plugin is activated in controller UI as: http://<ip_address_pi_board>:9998
  3. Provide the updateFirmware curl command on the pi board ex: root@raspberrypi-rdk-hybrid:~# curl --data-binary '{"jsonrpc":"2.0","id":"3","method":"org.rdk.System.1.updateFirmware","params":{}}' -H 'content-type:text/plain;' http://localhost:9998/jsonrpc
  4. Device auto-reboots and verify there are 2 more additional partitions are created (ex. mmcblk0p3, mmcblk0p4).
  5. After the board gets auto-reboots for creation of 2 more additional partitions (ex. mmcblk0p3, mmcblk0p4).Again  activate the  System Service plugin  in controller UI as: http://<ip_address_pi_board>:9998
  6. Provide the updateFirmware curl command on the pi board ex: root@raspberrypi-rdk-hybrid:~# curl --data-binary '{"jsonrpc":"2.0","id":"3","method":"org.rdk.System.1.updateFirmware","params":{}}' -H 'content-type:text/plain;' http://localhost:9998/jsonrpc
  7. Open /etc/include.properties file and verify the CLOUDURL parameter where XConf Server URL is configured
  8. Verify the image version ( cat /version.txt) displays the flashed image version
  9. Open /opt/logs/swupdate.log to verify the communication from RPI board with XConf Server and the download status
  10. Verify the tftp download is happening by noticing the change of file size using below command: ls /extblock/tftpimage/imagedwnldls  -sh  (use this command frequently to verify the file size change)
  11. Once image download completed, the Rpi board will auto reboot and come up with downloaded image
  12.  Verify the version of booted image which shows the downloaded image version

...