RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Table of Contents outline true style none
Info |
---|
This Page is under Development |
Tip | ||
---|---|---|
| ||
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
1. Flash the Broadband image in SD card
Code Block | ||||
---|---|---|---|---|
| ||||
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 |
...
...
Code Block | ||||
---|---|---|---|---|
| ||||
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
...
Code Block | ||||
---|---|---|---|---|
| ||||
For ex.
mkdir videomnt
sudo mount /dev/sdb4 videomnt
In above command, storage partition 4 will get mounted to videomnt directory |
Code Block | ||||
---|---|---|---|---|
| ||||
sudo cp -r extblock/v* videomnt/ |
...
Code Block | ||||
---|---|---|---|---|
| ||||
sudo cp -r extblock/vrootfs_backup_data/* videomnt/ |
7. Unmount videomnt directory as below
Code Block | ||||
---|---|---|---|---|
| ||||
sudo umount videomnt |
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 | ||||
---|---|---|---|---|
| ||||
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.