Versions Compared

Key

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

...

TBD - This Page is under Progress


Table of Contents
    

Build procedure to generate R-Pi image with Firmware upgrade

The build procedures procedure for broadband are as follows:

  1. repo init -u https://code.rdkcentral.com/r/manifests -b rdk-next -m rdkb-extsrc.xml
  2. repo sync -j4 --no-clone-bundle
  3. source meta-cmf-raspberrypi/setup-environment (Select option raspberrypi-rdk-broadband.conf)
  4. bitbake rdk-generic-broadband-imageimage 

Flashing the image


Info
titlesd-card size requisite

It is must to have minimal size of 8GB SD-Card for Firmware upgrade support


Command to flash the image

Generated image has to be flashed to an SD card using this command in local PC:

...

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

Creating checksum file

It is necessary to flash the stable image during upgrade. So checksum file has to be created for the image to be uploaded using below command

Info
titlemd5sum checksum creation

md5sum "<imagefile_name>.rootfs.rpi-sdimg" > imagefile_name.txt

...

After checksum file is created, place this file in tftp location along with actual image file which is expected by firmware upgrade script. Without which firmware upgrade wont be allowed by scripts

Creating Multi-Boot compatible SD-CARD if RDKB is Flashed for first time

If RDKV is flashed for the first time, please ignore below procedure in current section


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

But size of RDKB image is around 300 MB approx, but RDKV is more than 1 GB. So it is necessary to have RDKB image flashed SD card should have partition compatible to RDKB.

To make compatible, size of RDKB rootfs partition should be increased to 2 GB ( 2098 MB) from 300MB default

This resize can be achieved using gpartedui tool which should be available in host pc


Info
titlegparted tool Install and usage

sudo apt-get install gparted

https://gparted.org/display-doc.php%3Fname%3Dmoving-space-between-partitions


Please resize the rootfs partition to 2098 MB or 2GB (/dev/sdb1) accordingly from below procedure as captured in various stages

  1. Select gparted tool from menu

Image Added


2. Select the rootfs partition of format ext3 for resize/move option

Image Added


3. Resize the rootfs partition by giving new size image to 2098 MiB

Image Added


4. After resize , position stands as below

Image Added


5.After modifying size, "Apply all operations" using tick symbol in UI which displays icon as below


Image Added


6. After giving "Apply icon" position stands as below


Image Added



Test Setup Block Diagram for RPI RDKB/V Firmware upgrade


XCONF server Info:

   Web link:

       http://34.219.243.214:9093/admin

...