Skip to content
Snippets Groups Projects
Commit 942fa9f6 authored by orphee.antoniad's avatar orphee.antoniad
Browse files

Add a shell script to rootfs to stream one frame from camera

parent 0d4a48e6
Branches
No related tags found
No related merge requests found
...@@ -2,5 +2,5 @@ PETALINUX_VER=2020.2 ...@@ -2,5 +2,5 @@ PETALINUX_VER=2020.2
VALIDATE_HW_CHKSUM=1 VALIDATE_HW_CHKSUM=1
HARDWARE_CHECKSUM=6c31bbdb75a850f24b76171de480c2fd HARDWARE_CHECKSUM=6c31bbdb75a850f24b76171de480c2fd
YOCTO_SDK=5ff8fc5f85d1566b314bb73eaa378212 YOCTO_SDK=5ff8fc5f85d1566b314bb73eaa378212
RFSCONFIG_CHKSUM=73a7b476af699308716d5ab0c11a867f RFSCONFIG_CHKSUM=234f2f09c23647961a2fbda891ad049b
HARDWARE_PATH=/home/scalpuser/Desktop/scalp/scalp_firmware/designs/vivado/scalp_mipi/2020.2/lin64/scalp_mipi/scalp_mipi.xsa HARDWARE_PATH=/home/scalpuser/Desktop/scalp/scalp_firmware/designs/vivado/scalp_mipi/2020.2/lin64/scalp_mipi/scalp_mipi.xsa
...@@ -256,4 +256,6 @@ CONFIG_YOCTO_NETWORK_SSTATE_FEEDS_URL="http://petalinux.xilinx.com/sswreleases/r ...@@ -256,4 +256,6 @@ CONFIG_YOCTO_NETWORK_SSTATE_FEEDS_URL="http://petalinux.xilinx.com/sswreleases/r
# User Layers # User Layers
# #
CONFIG_USER_LAYER_0="" CONFIG_USER_LAYER_0=""
CONFIG_SUBSYSTEM_BOOTARGS_GENERATED="console=ttyPS0,115200 earlycon" CONFIG_SUBSYSTEM_BOOTARGS_GENERATED="console=ttyPS0,115200 earlycon"
...@@ -4026,6 +4026,7 @@ CONFIG_bitstream-conf=y ...@@ -4026,6 +4026,7 @@ CONFIG_bitstream-conf=y
CONFIG_bitstream-init=y CONFIG_bitstream-init=y
# CONFIG_gpio-demo is not set # CONFIG_gpio-demo is not set
CONFIG_i2c1-test=y CONFIG_i2c1-test=y
CONFIG_pcam5c-stream=y
# CONFIG_peekpoke is not set # CONFIG_peekpoke is not set
CONFIG_rgbleds-ctrl=y CONFIG_rgbleds-ctrl=y
CONFIG_sja1105-conf=y CONFIG_sja1105-conf=y
......
...@@ -9,3 +9,4 @@ CONFIG_bitstream-init ...@@ -9,3 +9,4 @@ CONFIG_bitstream-init
CONFIG_bitstream-conf CONFIG_bitstream-conf
CONFIG_rgbleds-ctrl CONFIG_rgbleds-ctrl
CONFIG_i2c1-test CONFIG_i2c1-test
CONFIG_pcam5c-stream
# Load the PetaLinux SDK main gdbinit script
source plnx_gdbinit
PetaLinux User Application Template
===================================
This directory contains a PetaLinux user application created from a template.
You can easily import any already built application or script by copying
it into this directory, and editing the automatically generated Makefile
as described below.
Modify the "install:" target in Makefile to use $(TARGETINST) to install your
prebuilt application or script to the host copy of the target file system
referring to the comments of the "install:" target.
Before building the application, you will need to enable the application
from PetaLinux menuconfig by running:
"petalinux-config -c rootfs"
You will see your application in the "apps --->" submenu.
To install your prebuilt application or script to the target file system
copy on the host, simply run the command.
"petalinux-build -c rootfs/pcam5c-stream"
You will also need to rebuild PetaLinux bootable images so that the images
is updated with the updated target filesystem copy, run this command:
"petalinux-build -c rootfs"
You can also run one PetaLinux command to install the application to the
target filesystem host copy and update the bootable images as follows:
"petalinux-build"
#!/bin/sh
media-ctl -d /dev/media0 -V '"ov5640 1-003c":0 [fmt:UYVY/'640x480'@1/'30' field:none]'
media-ctl -d /dev/media0 -V '"43c20000.mipi_csi2_rx_subsystem":0 [fmt:UYVY/'640x480' field:none]'
v4l2-ctl -d /dev/video0 --set-fmt-video=width=640,height=480,pixelformat=UYVY
v4l2-ctl -d /dev/video0 --stream-mmap --stream-count=1 --stream-to=test.raw
#
# This file is the pcam5c-stream recipe.
#
SUMMARY = "Simple pcam5c-stream application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://pcam5c-stream \
"
S = "${WORKDIR}"
do_install() {
install -d ${D}/${bindir}
install -m 0755 ${S}/pcam5c-stream ${D}/${bindir}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment