Versions Compared

Key

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

...

Firmware Upgrade validation Procedure

TFTP Server Setup

STEP 1:

Install xinetd and tftpd-hpa application in your local PC to setup tftp server by using below command
TFTP Server Installation Step

...

sudo apt-get install xinetd
sudo apt-get install tftpd-hpa

Either TFTP/ HTTP server can be used to download the image, depends on the requirement.


STEP 1STEP 2:

Create a .tar file and place the image files.

...

  • zImage--4.14.22-r0-turris-20200629035029.bin
  • rdkb-generic-broadband-image_default_20200629035029.rootfs.tar.gz

tar -cvf <imagefile_name>.tar <path-of-rdkb*.rootfs.tar.gz> <path-of-zImage*.bin>

For Ex:
tar -cvf rdkb-generic-broadband-image_default_20200629035029.tar /home/kaviya/rdkb-generic-broadband-image_default_20200629035029.rootfs.tar.gz /home/kaviya/zImage--4.14.22-r0-turris-20200629035029.bin


STEP 32:

Create checksum file for the upgrading image.
md5sum checksum creation

md5sum "<imagefile_name>.tar" > imagefile_name.txt
 
For Ex:
md5sum "rdkb-generic-broadband-image_default_20200629035029.tar" > rdkb-generic-broadband-image_default_20200629035029.txt

TFTP Server Setup

STEP 1:

Install xinetd and tftpd-hpa application in your local PC to setup tftp server by using below command
TFTP Server Installation Step

sudo apt-get install xinetd
sudo apt-get install tftpd-hpa


STEP 2:

Create new folder for example "tftp" in your PC home directory and place the checksum file and upgrading image file (the .tar file generated).


STEP 43:

Check for tftp file in /etc/xinetd.d/ directory. If not, then create tftp file under this /etc/xinetd.d/ directory and add below content.

...

service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = -c -v -s /home/xyz/tftp ( upgrading file and checksum file  maintained in this directory )
disable         = no
}


STEP 54:

Verify /etc/default/tftpd-hpa file content

...

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


STEP 65:

Start tftp server and xinetd server

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

HTTP Server Setup

STEP 1:

Ensure the http server in running in the local PC. If not, then activate or install it (For Example, Lighttpd)

STEP 2:

Once the server is running, place the necessary files in the below path.

Path of the image file to be placed: /var/www/html

This directory should contain the image file and the checksum file:

For Ex:
rdkb-generic-broadband-image_default_20200629035029.tar

rdkb-generic-broadband-image_default_20200629035029.txt

XCONF Server Setup

XConf URL

...