Versions Compared

Key

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

...

Table of Contents
outlinetrue
stylenone
    

Info

This Page is under Development



Tip
titleIntroduction-Mulitboot

This page is dedicated for switching the images (broadband to video) specifically for techsummit-2019. Automation of Multiple SDCards Partitioning and Image Flash

...

           SD card size mentioned in input text file should always be in GB but with format as provided in the steps mentioned

Manual Procedure for Single SD card partitioning and image flashing

RDK- Broadband Image Flashing in SDcard Steps

1. Flash the Broadband image in SD card

Code Block
languagebash
titleImage Flashing Command
sudo dd if=<RPIimage-sdimg> of=</dev/sdc> bs=4M

Example: sudo dd if=rdk-generic-hybrid-refapp-thunder-image_default_20190829072513.rootfs.rpi-sdimg of=/dev/sdc bs=4M

...

RDK- Video Image Copying in SDcard Steps

...

Code Block
languagebash
titlevideo data extract
sudo sh extract.sh <video-image file>
For ex. sudo sh extract.sh rdk-generic-hybrid-refapp-thunder-image_default_20190924125426.rootfs.rpi-sdimg

After executing the above script, Linux kernel and RootFS of RDK-Video image would be present in the extblock directory

...

  •     Create mount directory and execute mount  for the partition 4 
Code Block
languagebash
titlevideo data extract
For ex. 
mkdir videomnt
sudo mount /dev/sdb4 videomnt

In above command, storage partition 4 will get mounted to videomnt directory
  • Copy the RDK-Video image which is present in the extblock
Code Block
languagebash
titlevideo data extract
sudo cp -r extblock/v* videomnt/

...

Code Block
languagebash
titlevideo data extract
sudo cp -r extblock/vrootfs_backup_data/* videomnt/

7. Unmount videomnt directory as below

Code Block
languagebash
titlevideo data extract
sudo umount videomnt

Switching to RDK-Video Image from RDK-Broadband 

8. Now Boot up the SD card in RPI-> it should come up with BB image in partition (P2)

...

       ssh root@<RPI-Board IP>

...

Code Block
languagebash
titleSwitching to Video Image
root@RaspberryPi-Gateway:/lib/rdk# sh bank_video_switch.sh

...

NOTE:

Ensure that while mounting the SD card in host machine it may have different device names like /dev/sdc * and /dev/sdd * .  Please check host machine accordingly while using device name.