RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Please refer the below link for host environment set-up & flashing procedure for yocto build ,
Dunfell :
RPI 3B/3B+ Model Reference Platform
Morty:
To build, follow below instructions
$ mkdir <workspace dir> $ cd <workspace dir> $ repo init -u https://code.rdkcentral.com/r/manifests -b dunfell -m rdkb-extsrc.xml $ repo sync -j`nproc` --no-clone-bundle
$ mkdir <workspace dir> $ cd <workspace dir> $ repo init -u https://code.rdkcentral.com/r/manifests -b rdk-next -m rdkb-extsrc.xml $ repo sync -j`nproc` --no-clone-bundle
FwUpgradeManager generic changes,
Note : The above bug fixes changes are temporary given as instructions. This is not required once the change is gets merged into the appropriate repo.
$ MACHINE=raspberrypi-rdk-broadband source meta-cmf-raspberrypi/setup-environment $ bitbake rdk-generic-broadband-image
Following diagram depicts the flow of control among the components,
S.NO | DM | Value | Description |
---|---|---|---|
1 | Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL | http://192.168.0.8 | Value should be local/public http server url |
2 | Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadProtocol | http | Value should be auto-generated based on above parameter Input |
3 | Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload | rdkb-generic-broadband-image_rdk-next_20210525055548.rootfs.wic | Value should be Firmware Image Name . Note: This API does not reboot the device. |
4 | Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadStatus | Completed | Returns the current state of the Firmware Download operation. |
5 | Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadNow | True | Downloads and upgrades the firmware. The firmware is updated in the passive bank and marks it as active. Reboots the device and the device boots up with the active bank and updated firmware. |
sd-card size requisite
It is must to have minimal size of 8GB SD-Card for Firmware upgrade support
Generated image has to be flashed to an SD card using this command in local PC:
|
Ex:
|
The SD card is inserted to the Raspberry Pi board and booted to check for containers created.
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
If firmware upgrade is intended for multi-boot, it is necessary to have partizion size matching to RDKB image size ( especially rootfs ).
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 gparted ui tool which should be available in host pc
gparted 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
2. Select the rootfs partition of format ext3 for resize/move option
3. Resize the rootfs partition by giving new size image to 2098 MiB
4. After resize , position stands as below
5.After modifying size, "Apply all operations" using tick symbol in UI which displays icon as below
6. After giving "Apply icon" position stands as below
7. After resizing is completed
8. After applying close size increased to 2 GB can be seen
Verify that rpi image file is present in the http folder. Here , document root directory as "/var/www/html"