RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
Children Display |
---|
Table of Contents |
---|
The RDKC Media Server is much more than a multi-format, multi-protocol server that delivers your media rich content across multiple screens and platforms. The RDK camera software runs on RPi-0 device. This page dedicated to bringing up and validation of RMS functionality in R-Pi Zero.
Please refer below link for RPI-0 Environment setup
Refer below link to build camera image
This page is dedicated to bring up yocto 3.1 upgradation for RDK generic camera image.
The OpenEmbedded build system should be able to run on Ubuntu 18.04 distribution/other compatible linux distribution with the following versions for Git, tar, and Python.
Note: You should also have about 50 Gbytes of free disk space for building images.
The essential packages you need for a supported Ubuntu or Debian distribution are shown in the following command:
Code Block | ||
---|---|---|
| ||
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm bmap-tools |
In order to use Yocto build system, the repo tool must be properly installed on the machine.
To install Repo make sure you have a /bin directory in your home directory and that it is included in your path
Code Block | ||||
---|---|---|---|---|
| ||||
$ mkdir ~/bin
$ PATH=~/bin:$PATH
Download the repo tool and ensure that it is executable
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo |
Note: it is also recommended to put credentials in ~/.netrc when interacting with repo.
A sample ~/.netrc file is illustrated below
Code Block | ||||
---|---|---|---|---|
| ||||
machine code.rdkcentral.com
login YOUR_USERNAME
password YOUR_PASSWORD |
Code Block | ||||
---|---|---|---|---|
| ||||
$ repo init -u "https://code.rdkcentral.com/r/manifests" -m rdkc-nosrc.xml -b yocto-dunfell-upgrade
$ repo sync
$ source meta-cmf-raspberrypi/setup-environment (Choose 11 `meta-cmf-raspberrypi/conf/machine/raspberrypi0-rdk-camera.conf`)
$ bitbake rdk-generic-camera-image
|
...
Code Block | ||||
---|---|---|---|---|
| ||||
$ bzcat ImageName.wic.bz2 | sudo dd if="Image Name" of="Device Name" bs=4M Example: sudo dd if=of=/dev/sdc bs=4M iflag=fullblock oflag=direct conv=fsync Ex: bzcat rdk-generic-camera-image_default_20200130060729.rootfs.rpi-sdimg-raspberrypi0-rdk-camera.wic.bz2 | sudo dd of=/dev/sdbsdc bs=4M iflag=fullblock oflag=direct conv=fsync |
STEP 1:
Add require SSID and PSK in /etc/wpa_supplicant.conf file in below format
network={
ssid="username"
psk="password"
}
Code Block | ||||
---|---|---|---|---|
| ||||
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="RDK"
psk="Comcast1"
}
|
STEP 2:
Reboot the Target
After Reboot don't do step 1 and 2.
Note : Step 1 & 2 is only applicable for fresh target boot-up with new image.
STEP 3:
Modify needed resolution in rms configuration file
Supported Resolution:
SD:
Width - 640 , Height - 480
Width - 720 , Height - 576
HD:
Width - 1280 , Height - 720
FULL HD :
...
Modify resolution in below configuration file
cd /usr/local/rms/bin
vi rms.conf
Code Block | ||||
---|---|---|---|---|
| ||||
RRSIP=18.224.54.11
RRSPORT=81
ROOMID=rpi0
RRSSSL=0
WIDTH=1280
HEIGHT=72 |
After resolution modification need to reboot the target.
Note: This step is not necessary,it is depends on your resolution validation.
STEP 4:
WiFi connection is must needed for RMS validation.
Check WiFi connection by using below command.
ifconfig
Code Block | ||||
---|---|---|---|---|
| ||||
root@raspberrypi0-rdk-camera:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:87 errors:0 dropped:0 overruns:0 frame:0
TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4552 (4.4 KiB) TX bytes:4552 (4.4 KiB)
wlan0 Link encap:Ethernet HWaddr B8:27:EB:2E:72:2B
inet addr:192.168.43.246 Bcast:192.168.43.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2893 (2.8 KiB) TX bytes:5887 (5.7 KiB)
|
STEP 5:
check loaded module by using below command
lsmod
Code Block | ||||
---|---|---|---|---|
| ||||
root@raspberrypi0-rdk-camera:~# lsmod
Module Size Used by
bcm2835_v4l2 40563 0
v4l2_common 4809 1 bcm2835_v4l2
videobuf2_vmalloc 6264 1 bcm2835_v4l2
videobuf2_memops 1528 1 videobuf2_vmalloc
videobuf2_v4l2 12640 1 bcm2835_v4l2
videobuf2_core 27389 2 bcm2835_v4l2,videobuf2_v4l2
videodev 154457 4 v4l2_common,videobuf2_core,bcm2835_v4l2,videobuf2_v4l2
media 23307 1 videodev
brcmfmac 258239 0
brcmutil 7590 1 brcmfmac
snd_bcm2835 21405 0
cfg80211 492836 1 brcmfmac
snd_pcm 79872 1 snd_bcm2835
rfkill 19936 3 cfg80211
snd_timer 20294 1 snd_pcm
snd 52949 3 snd_timer,snd_bcm2835,snd_pcm
lirc_rpi 6840 0
lirc_dev 7533 1 lirc_rpi
uio_pdrv_genirq 3469 0
uio 8703 1 uio_pdrv_genirq
fixed 2876 0
sch_fq_codel 9662 2
ipv6 384101 18
|
STEP 6:
check camera device there or not by using below command
ls /dev/video0
Code Block | ||||
---|---|---|---|---|
| ||||
root@raspberrypi0-rdk-camera:~# ls /dev/video0
/dev/video0 |
STEP 7:
On Bowser of PC:
http://dh-livevid-dev.comcast.com/bryan/demov3/evoplayersTest.html
Need to modify roomid as rpi0
Press "PLAY" button in WebBrowser page.
S.NO | Errors/challenges | Receipes/Repos | Updates | Change sets | Status |
---|---|---|---|---|---|
1. | Add camera manifest files | Added rdkc-nosrc and rdkc-extsrc manifest file in yocto-dunfell-upgrade branch | Merged | ||
2 | Create dunfell branch for camera component | configmgr, httpclients-utility ledmgr-camera, plugins, rms cvr, mediastreamer, thumbnail | Created yocto dunfel upgrade branch for camera specific component | Branch Created | |
3 | ERROR: ExpansionError during parsing ems_git.bb fatal: remote error: rdkc/components/opensource/ems unavailable | meta-rdk-camera/recipes-extended/ems/ems_git.bb | Moved meta-rdk-camera and meta-cmf-camera latest update upto 23Jul20 from "rdk-next" into "yocto-dunfell-upgrade" branch | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk-camera/+/42088 https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-camera/+/42090 | Merged |
4 | ERROR: ExpansionError during parsing webpacamera_git.bb | meta-rdk-camera/recipes-common/webpacamera/webpacamera_git.bb | FetchError: Fetcher failure: Unable to resolve 'yocto-dunfell-upgrade' in upstream git repository in git Specific component source codes are not available in rdkcentral. so,masked this component in rdkc.inc file. | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk/+/42095 | Merged |
5 | ERROR: ExpansionError during parsing audioserver-sample-apps.bb | meta-rdk-video/recipes-extended/audioserver/audioserver-sample-apps.bb | |||
6 | ERROR: ExpansionError during parsing ctrlm-testapp.bb | meta-rdk-video/recipes-extended/ctrlm/ctrlm-testapp.bb | |||
7 | ERROR: ExpansionError during parsing audioserver-headers.bb | meta-rdk-video/recipes-extended/audioserver/audioserver-headers.bb | |||
8 | ERROR: ExpansionError during parsing audioserver.bb | meta-rdk-video/recipes-extended/audioserver/audioserver.bb | |||
9 | ERROR: ExpansionError during parsing ctrlm-main.bb | meta-rdk-video/recipes-extended/ctrlm/ctrlm-main.bb | |||
10 | ERROR: ExpansionError during parsing ctrlm-headers.bb | meta-rdk-video/recipes-extended/ctrlm/ctrlm-headers.bb | |||
11 | ERROR: ExpansionError during parsing base64_git.bb | meta-rdk-ext/recipes-support/base64/base64_git.bb | |||
12 | ERROR: Nothing RPROVIDES 'ems' | meta-cmf-raspberrypi/recipes-core/packagegroups/packagegroup-rdk-oss-camera.bbappend | Changed ems into rms because we have recently modified this in rdk-next | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/42105 | Merged |
13 | ERROR: Nothing PROVIDES 'ffmpeg' ffmpeg was skipped: because it has a restricted license 'commercial'. Which is not whitelisted in LICENSE_FLAGS_WHITELIST | openembedded-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-libav_1.16.2.bb | Configured gstreamer1.0-libav preferred version as 1.14.1 | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk/+/42106 | Merged |
14 | ERROR: rtmessage-git-r0 do_fetch: Fetcher failure for URL: 'git://code.rdkcentral.com/r/rdkc/components/opensource/rtmessage Please set a valid SRCREV for url | meta-rdk-ext/recipes-common/rtmessage/rtmessage_git.bb | Added SRC_REV in rtmessage_git.bb | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk-ext/+/42108 | Merged |
15 | ERROR: rtmessage-git-r0 do_fetch: Fetcher failure: Unable to find file file://rtrouted.conf | meta-rdk-ext/recipes-common/rtmessage/rtmessage/ | Added rtrouted.conf file in rtmessage directory | ||
16 | ERROR: gstreamer1.0-plugins-bad-1.16.2-r0 do_patch Applying patch gstreamer1.0-plugins-bad_1.patch Hunk #1 FAILED at 101. | meta-rdk-camera/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend | Removed meta-rdk-camera/recipes-multimedia/gstreamer folder | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk-camera/+/42113 | Merged |
17 | ERROR: QA Issue: rms: The LIC_FILES_CHKSUM does not match for file://LICENSE;md5=ae6150f078ea1c81960d0595a46a293a | rdkc/components/opensource/rms | Moved rms source latest changes upto 24Jul20 from rdk-next into dunfell branch | https://code.rdkcentral.com/r/c/rdkc/components/opensource/rms/+/42114 | Merged |
18 | ERROR: bcm2835-bootfiles-20180619-r3 do_fetch: Fetcher failure for URL: 'https://github.com/raspberrypi/firmware/archive/748fb17992426bb29d99224b93cb962fefbdc833.tar.gz'. Checksum mismatch! | meta-cmf-raspberrypi/recipes-bsp/bootfiles/bcm2835-bootfiles.bbappend | Masked bcm2835-bootfiles.bbappend | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk/+/42115 | Merged |
19 | No rule to make target 'arch/arm/boot/dts/bcm2711-rpi-4-b.dtb ERROR: Task linux-raspberrypi_4.14.bb:do_compile failed with exit code '1' | meta-rdk/conf/distro/include/rdkc.inc | Upgrade linux kernel version from 4.14 to 4.19 | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk/+/42223 | Merged |
20 | ERROR: lighttpd-1.5-r0 do_compile: oe_runmake failed Makefile:1663: recipe for target 'lemon.o' failed | meta-cmf-raspberrypi/conf/machine/raspberrypi0-rdk-camera.conf | Changed lighttpd preferred version as 1.4.53 | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/42116 | Merged |
21 | configmgr : fatal error: PRO_file.h: No such file or directory | rdkc/components/opensource/configMgr | Moved configmgr source code changes upto 24Jul20 from rdk-next into dunfell branch | https://code.rdkcentral.com/r/c/rdkc/components/opensource/configMgr/+/42149 | Merged |
22 | plugins: error: 'RdkCVideoCapturer' does not name a type | rdkc/components/opensource/plugins | Moved plugins source code changes upto 27Jul20 from rdk-next into dunfell branch | https://code.rdkcentral.com/r/c/rdkc/components/opensource/plugins/+/42151 | Merged |
23 | ERROR: mediastreamer-git-r0 do_package_qa | meta-rdk-camera/recipes-multimedia/mediastreamer/mediastreamer_git.bb | Added RDEPENDS mediastreamer_git.bb file | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk-camera/+/42152 | Merged |
24 | Thumbnail : CMake Error at CMakeLists.txt:40 (ADD_SUBDIRECTORY : normal_thumbnail ) | rdkc/components/opensource/thumbnail | Moved thumnail source code changes upto 27Jul20 from rdk-next into dunfell branch | https://code.rdkcentral.com/r/c/rdkc/components/opensource/thumbnail/+/42167 | Merged |
25 | smart_thumbnail.h:53:10: fatal error: RdkCVideoCapturer.h: No such file or directory | meta-rdk-camera/recipes-multimedia/thumbnail/thumbnail_git.bb | Added plugins dependency at thumbnail receipes. | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk-camera/+/42173 | Merged |
26 | thumbnail : fatal error: opencv2/opencv.hpp: No such file or directory | meta-openembedded/meta-oe/recipes-support/opencv/opencv_4.1.0.bb | Avoid to store opencv header files under opencv4 in sysroot. | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk-ext/+/42201 | Merged |
27 | thumbnail : fatal error: mongoose.h: No such file or directory | meta-rdk-camera/recipes-multimedia/thumbnail/thumbnail_git.bb | Added mongoose dependency at thumbnail receipes | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk-camera/+/42204 | Merged |
28 | thumbnail : error: 'CV_YUV2BGR_NV12' was not declared in this scope | rdkc/components/opensource/thumbnail | Included types_c.h at normal_thumbnail.h file. | https://code.rdkcentral.com/r/c/rdkc/components/opensource/thumbnail/+/42205 | Merged |
29 | ERROR: When reparsing /mnt/home/sanil534/Savidha/RDK-C/meta-rdk/recipes-core/images/rdk-generic-camera-image.bb:do_populate_lic_deploy, the basehash value changed from 1b3e827be261ee60d5bcea3827f4ede9ff99ebbd1c9e101686fe686e5ace3268 to 22d5dc96290d6fa6a5119e634d53e99bdc17d3dd4bf52381e874719822deb742. The metadata is not deterministic and this needs to be fixed. | meta-cmf-raspberrypi/recipes-core/images/rdk-generic-camera-image.bbappend | Added BB_HASH_IGNORE_MISMATCH = "1 in rdk-generic-camera-image.bbappend file | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/42206 | Merged |
30 | ERROR: rdk-generic-camera-image-1.0-r0 do_rootfs: Taskhash mismatch 271be5777a813d0312a7a1fba331bf05f45a42cd7249ed412f5bbd966a452c21 versus 66a9d352e30c8c1bcca799a340b7051c2fd97feaf98d379678cae7da6d43afc3 for /mnt/home/sanil534/Savidha/RDK-C/meta-rdk/recipes-core/images/rdk-generic-camera-image.bb:do_rootfs | meta-cmf-raspberrypi/recipes-core/images/rdk-generic-camera-image.bbappend | Added IMAGE_NAME[vardepsexclude] = "DATETIME" in rdk-generic-camera-image.bbappend file | ||
31 | nothing provides gstreamer1.0-plugins-bad-opengl needed by packagegroup-rdk-gstreamer1-1.0-r0.all | meta-cmf-raspberrypi/recipes-core/packagegroups/packagegroup-rdk-gstreamer1.bbappend | Opengl license was whitelisted | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/42212 | Merged |
32 | ERROR: userland-20190724-r0 do_patch: Command Error:Patch 0013-Implement-triple-buffering-for-wayland.patch is already applied | meta-raspberrypi/recipes-graphics/userland/userland_git.bb | Removed morty from machine overrides and distro. | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/42248 | Merged |
33 | Bootup Issue | meta-rdk/conf/distro/include/rdkc.inc | Removed VC4graphics in camera build to avoid bootup issue | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk/+/42384 | Merged |
34 | ERROR: Nothing RPROVIDES 'faad2' | meta-cmf-raspberrypi/recipes-core/packagegroups/packagegroup-rdk-gstreamer1.bbappend | Allowed fadd2 with LICENSE_FLAGS_WHITELIST conditional check. | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/42814 | Merged |
35 | nothing provides gstreamer1.0-plugins-bad-faad needed by packagegroup-rdk-gstreamer1-1.0-r0.all | meta-cmf-raspberrypi/recipes-core/packagegroups/packagegroup-rdk-gstreamer1.bbappend | Allowed gstreamer1.0-plugins-bad-faad with LICENSE_FLAGS_WHITELIST conditional check. | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/42814 | Merged |
36 | libconfigmgr.so: undefined reference to `PRO_GetStr' | rdkc/components/opensource/configMgr | Moved Configmgr changes from rdk-next branch into yocto-dunfell-upgrade branch | https://code.rdkcentral.com/r/c/rdkc/components/opensource/configMgr/+/43630 | in-progress |
37 | ERROR: glib-2.0-native-1_2.62.6-r0 do_patch | meta-rdk-ext/recipes-core/glib-2.0 | rebase RDK patch from glib 2.62.4 to glib 2.62.6 | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk-ext/+/43124 | Merged |
S.NO | Errors/challenges | Receipes/Repos | Updates | Change sets | Status |
---|---|---|---|---|---|
1. | RDK Media Streamer validation ( RMS ) validation | meta-cmf-raspberrypi/recipes-extended/rms/ | Moved automatic bootup process changes from rdk-nect into yocto-dunfell-upgrade branch | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/42387 | Merged |
meta-cmf-raspberrypi/recipes-extended/rms | By default triggered rms and mediastreamer service without any dependency. | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/43071 | Merged | ||
2 | Normal Thumbnail validation | rdkc/devices/raspberrypi/mediastreamer | Moved needed normal thumbnail changes from rdk-next into yocto-dunfell-upgrade | https://code.rdkcentral.com/r/c/rdkc/devices/raspberrypi/mediastreamer/+/42390 | Merged |
3 | CVR validation with kvssink and AWS basic credential( Access id and secret access key) | meta-cmf-raspberrypi/recipes-multimedia/cvr | Moved cvr with kvssink validation related changes from morty into dunfell | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/42824 | Merged |
meta-rdk-ext | Moved jsmn,kvs,log4cplus and gtest receipes from morty into dunfell | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-rdk-ext/+/42825 | Merged | ||
4 | Firmware upgrade validation at yocto 3.1 camera image | meta-cmf-raspberrypi/recipes-extended/sysint | Moved firmware upgrade changes from rdk-next branch into yocto-dunfell-upgrade branch | https://code.rdkcentral.com/r/c/components/generic/rdk-oe/meta-cmf-raspberrypi/+/43480 | Merged |
S.No | Features | Supported Status | Remark |
---|---|---|---|
1 | Ethernet connection( USB Ethernet Adapter ) | NA | |
2 | WiFi Connection | NA | |
3 | RMS ( RDKC Media Server ) | NA | |
4 | CVR ( Continuous video recording ) with kvssink | NA | |
5 | Normal Thumbnail | NA | |
6 | Firmware upgrade with tftp and xconf server | NA | |
7 | Webpa | CMFSUPPORT-38 : In-progress to host the webpa-camera in xmidt-org github |
S.No | Features | User Manual |
---|---|---|
1 | RMS ( RDKC Media Server ) | RDK-C RDKC Media Server( RMS ) - Community |
2 | CVR ( Continuous video recording ) | RDK-C : Continuos Video Recording (CVR) |
3 | Normal Thumbnail | RDK-C Normal Thumbnail |
4 | Firmware upgrade with tftp and xconf server | RDK-C Firmware Upgrade with HTTP and TFTP support |
...