https://github.com/comcast/rdk-on-raspberrypi
Documentation for running RDK profiles ( Video, broadband, Camera ) on Raspberrypi boards
https://github.com/comcast/rdk-on-raspberrypi
Last synced: over 1 year ago
JSON representation
Documentation for running RDK profiles ( Video, broadband, Camera ) on Raspberrypi boards
- Host: GitHub
- URL: https://github.com/comcast/rdk-on-raspberrypi
- Owner: Comcast
- License: apache-2.0
- Created: 2016-03-30T20:16:22.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2020-09-14T18:09:16.000Z (almost 6 years ago)
- Last Synced: 2025-01-14T15:24:57.112Z (over 1 year ago)
- Size: 21.5 KB
- Stars: 15
- Watchers: 22
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# rdk-on-raspberrypi
Documentation for running RDK profiles ( Video, broadband, Camera ) on Raspberrypi boards
Setting up workspace
```shell
mkdir rpi-yocto
git clone git://git.yoctoproject.org/poky
git clone git://git.openembedded.org/meta-openembedded
git clone git://git.yoctoproject.org/meta-raspberrypi
git clone git://github.com/WebPlatformForEmbedded/meta-wpe
git clone git://github.com/96boards/meta-96boards
source poky/oe-init-build-env rpi-ml-build
bitbake-layers add-layer ../meta-openembedded/meta-oe
bitbake-layers add-layer ../meta-openembedded/meta-multimedia
bitbake-layers add-layer ../meta-openembedded/meta-python
bitbake-layers add-layer ../meta-openembedded/meta-networking
bitbake-layers add-layer ../meta-raspberrypi
bitbake-layers add-layer ../meta-96boards
bitbake-layers add-layer ../meta-wpe
```
Edit conf/local.conf
Set Machine
```shell
MACHINE = "raspberrypi3"
```
you can use raspberrypi2 as well if you own raspberrypi2 machine.
Ignore QT
```shell
BBMASK = "recipes-qt"
```
Remove X11 from distro features
```shell
DISTRO_FEATURES_remove_rpi = "x11"
```
Build WPE with Westeros Compositor
```shell
bitbake wpe-westeros-image
```
For westeros-wpe-image to runtime test. Here are steps, please document them publicly so folks using this image
Can try them out. These are validated on RaspberryPI3
```shell
sudo dd if=tmp/deploy/images/raspberrypi3/westeros-wpe-image-raspberrypi3.rpi-sdimg of=/dev/sdX
```
where X is the letter a,b,c which your box would have mounted the uSD card on you can check that with dmesg | tail -10
when you insert the card into your computer.
Once booted login as ‘root’ it has no password
Run
```shell
export XDG_RUNTIME_DIR=/tmp
export WAYLAND_DISPLAY=wayland-0
/usr/bin/WPELauncher
```
This should result in WPE launched on screen and you can try to play a video manually
Or you can launch a video like
```shell
/usr/bin/WPELauncher https://www.youtube.com/tv#/watch/video/control?v=-YGDyPAwQz0&resume
```
which will play one video automatically
Second test is to run big bunny video launch it like
```shell
gst-launch-1.0 souphttpsrc location="http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_720p_h264.mov" ! typefind ! qtdemux name=demux demux. ! queue ! h264parse ! omxh264dec ! glimagesink demux. ! queue ! faad ! autoaudiosink
```
Resize SD-Card
Add in local.conf
```shell
CORE_IMAGE_EXTRA_INSTALL_append = " 96boards-tools "
```
and build the image again and flash it to SD-Card then run the following after firstboot.
```shell
parted /dev/mmcblk0 resizepart 2 100%
resize2fs -p /dev/mmcblk0p2
reboot
```
With systemd if dhcp does not work then you have to set /etc/resolv.conf symlink correctly.
```shell
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
```