Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • qs2g22/meta-marfb
1 result
Show changes
Commits on Source (4)
do_deploy:append() {
echo "dtoverlay=uart1" >> $CONFIG
echo "dtoverlay=dwc2" >> $CONFIG
echo "dtoverlay=vc4-kms-v3d" >> $CONFIG
echo "dtoverlay=ov5647,media-controller=0" >> $CONFIG
echo "dtoverlay=vc4-kms-v3d,cma-256" >> $CONFIG
echo "dtoverlay=ov5647,media-controller=1" >> $CONFIG
# echo "dtoverlay=uart0" >> $CONFIG
}
......
......@@ -26,6 +26,11 @@ mountfs() {
mount -o ro /dev/mmcblk0p1 /boot
}
rwrootfs() {
log_to_kernel "remounting r/w root filesystems"
mount -o rw,remount /
}
gp23hi() {
log_to_kernel "setting gpio 23 to high"
/usr/bin/gpioset -c 0 23=1 &
......@@ -41,8 +46,7 @@ level_one() {
level_two() {
mountfs
gp23hi
rwrootfs
log_to_kernel "adding modules to linux kernel"
log_to_kernel "to be added: bcm2835-codec, bcm2835-isp, bcm2835-v4l2, bcm2835-unicam, ov5647, i2c-mux-pinctrl, i2c-bcm2835, uio, fixed"
modprobe bcm2835-codec # minors 0-4
......@@ -54,9 +58,10 @@ level_two() {
modprobe i2c-bcm2835
modprobe uio
modprobe fixed
udevd --daemon
udevadm trigger
gp23hi
crit_to_kernel "host is up and ready"
log_to_kernel "getting teletypes on ttyS0"
/sbin/getty -L 115200 ttyS0 vt100
}
......@@ -72,9 +77,12 @@ level_six() {
runlevel=$1
if [ -z "$runlevel" ]; then
warn_to_kernel "cannot read runlevel from argument"
crit_to_kernel "cannot read runlevel from argument"
warn_to_kernel "please edit cmdline.txt in bootfs"
warn_to_kernel "usage: init=/usr/sbin/fastinit RUNLEVEL"
crit_to_kernel "triggering kernel panic (c) using sysrq"
mount -t proc proc /proc
echo c > /proc/sysrq-trigger
else
case $runlevel in
0)
......@@ -100,8 +108,11 @@ else
level_six
;;
*)
warn_to_kernel "Runlevel $runlevel not implemented"
crit_to_kernel "Runlevel $runlevel not implemented"
warn_to_kernel "usage: /usr/sbin/fastinit RUNLEVEL"
crit_to_kernel "triggering kernel panic (c) using sysrq"
mount -t proc proc /proc
echo c > /proc/sysrq-trigger
;;
esac
fi
......
SUMMARY = "A small image just capable of allowing a device to boot."
SUMMARY = "An image just capable of the MAR project."
IMAGE_INSTALL = "packagegroup-core-boot \
packagegroup-base-extended \
......@@ -14,6 +14,16 @@ IMAGE_INSTALL = "packagegroup-core-boot \
libv4l \
media-ctl \
opencv \
ffmpeg \
libcamera \
libcamera-dev \
libcamera-apps \
gstreamer1.0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-plugins-good-rpicamsrc \
${CORE_IMAGE_EXTRA_INSTALL}"
COMPATIBLE_MACHINE = "^rpi$"
......
SUMMARY = "Linux libcamera framework"
SECTION = "libs"
LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
LIC_FILES_CHKSUM = "\
file://LICENSES/GPL-2.0-or-later.txt;md5=fed54355545ffd980b814dab4a3b312c \
file://LICENSES/LGPL-2.1-or-later.txt;md5=2a4f4fd2128ea2f65047ee63fbca9f68 \
"
SRC_URI = "git://git.libcamera.org/libcamera/libcamera.git;protocol=https;branch=master"
SRCREV = "aee16c06913422a0ac84ee3217f87a9795e3c2d9"
PE = "1"
S = "${WORKDIR}/git"
DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls chrpath-native libevent libyaml"
DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}"
PACKAGES =+ "${PN}-gst"
PACKAGECONFIG ??= ""
PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base"
LIBCAMERA_PIPELINES ??= "auto"
EXTRA_OEMESON = " \
-Dpipelines=${LIBCAMERA_PIPELINES} \
-Dv4l2=true \
-Dcam=enabled \
-Dlc-compliance=disabled \
-Dtest=false \
-Ddocumentation=disabled \
"
RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland qt', 'qtwayland', '', d)}"
inherit meson pkgconfig python3native
do_configure:prepend() {
sed -i -e 's|py_compile=True,||' ${S}/utils/ipc/mojo/public/tools/mojom/mojom/generate/template_expander.py
}
do_install:append() {
chrpath -d ${D}${libdir}/libcamera.so
chrpath -d ${D}${libexecdir}/libcamera/v4l2-compat.so
}
do_package:append() {
bb.build.exec_func("do_package_recalculate_ipa_signatures", d)
}
do_package_recalculate_ipa_signatures() {
local modules
for module in $(find ${PKGD}/usr/lib/libcamera -name "*.so.sign"); do
module="${module%.sign}"
if [ -f "${module}" ] ; then
modules="${modules} ${module}"
fi
done
${S}/src/ipa/ipa-sign-install.sh ${B}/src/ipa-priv-key.pem "${modules}"
}
FILES:${PN} += " ${libexecdir}/libcamera/v4l2-compat.so"
FILES:${PN}-gst = "${libdir}/gstreamer-1.0"
# libcamera-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get access to
# both 32 and 64 bit file APIs.
GLIBC_64BIT_TIME_FLAGS = ""