Skip to content

Instantly share code, notes, and snippets.

View Scott31393's full-sized avatar
🤙

Tommaso Merciai Scott31393

🤙
  • Avnet SILICA
  • Florence, Italy
View GitHub Profile

Bitbake Cheatsheet

Verbose as possible

bitbake -vDDD your-recipe

List recipes

bitbake -s
@Scott31393
Scott31393 / Embedded-Linux-Test-Tool-Cheatsheet.md
Last active April 3, 2024 11:21
Embedded-Linux-Test-Tool-Cheatsheet.md

Linux Test Tool Cheatsheet

Compile Main test Tool (Using Yocto)

Append these lines into:

conf/local.conf

BB_NUMBER_THREADS = "5"
@Scott31393
Scott31393 / Build-Yocto-fs-for-i.MX8MP-support-Etnaviv+Mesa-Mainline-Kernel.md
Last active March 20, 2024 22:22
Build Yocto fs for i.MX8MP support Etnaviv + Mesa Mainline Kernel

Build Yocto Filesystem for i.MX8MP with support for Etnaviv + Mesa using Mainline Kernel

Introduction

Steps to build the following software for i.MX8MP EVK:

 - yocto: scarthgap (master) 5.0
 - linux: Linux Kernel 6.8-rc2, media-stage master
 - driver: new upstream drv alvium-csi2.c
 - mesa: Mesa 24.0.2 using etnaviv driver
@Scott31393
Scott31393 / Cross-Compile-Libcamera-with-Yocto-SDK.md
Last active March 20, 2024 22:20
Cross Compile libcamera using Yocto sdk

Cross Compile Libcamera Using Yocto SDK

This try was done using imx8mp-evk, using fsl Yocto bsp master branch.

Get Yocto Sources

cd fsl-community-bsp
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master
repo sync
@Scott31393
Scott31393 / win10-iot-enterprise-arm.md
Last active March 7, 2024 11:52
win10-iot-enterprise-arm.md

Win10 iot Enterprise Arm Cheatsheet - zNXP

Set Preferred Video Output

# set LVDS Display
reg ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v Display0Interface /t REG_DWORD /d 0x4 /f"

# set HDMI display
reg ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v Display1Interface /t REG_DWORD /d 0x1 /f"
@Scott31393
Scott31393 / linux_media_notes.md
Last active December 15, 2023 16:07
Linux Media Subsystem Notes
@Scott31393
Scott31393 / Rauc-Yocto-Integration-Tips.md
Last active December 15, 2023 09:58
Rauc-Yocto-Integration-Tips.md

Rauc Yocto Integration Tips

Create .ext4 fs Images and Boot.img

core-image-minimal.bbappend

do_image_complete() {
    # Create etc.ext4 part
    dd if=/dev/zero of="${WORKDIR}/etc.ext4" bs=1M count=${ETC_PART_SIZE_MB};
    mke2fs -d ${IMAGE_ROOTFS}/etc -t ext4 -L etc_image ${WORKDIR}/etc.ext4;
 cp -rf ${WORKDIR}/etc.ext4 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.etc.ext4;

Linux Tips Cheatsheet

Create User and add to main group

$ sudo useradd -d <folder> <username>
$ sudo usermod -a -G <main-group> <username>
$ sudo passwd <username>
$ su <username>
@Scott31393
Scott31393 / rs485_ioctl_test.c
Last active December 12, 2023 16:49 — forked from amarburg/rs485_ioctl_test.c
A quick test function to demonstrate the Linux serial / RS485 ioctls().
/*
* Test program Linux RS485-mode ioctls.
* Build:
* - source /opt/fsl-imx-xwayland/5.15-kirkstone/environment-setup-armv8a-poky-linux
* - $CC -o test-rs485 rs485_ioctl_test.c
* Usage:
* - ./test-rs485 /dev/ttymxc2
*/
#include <stdlib.h>