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
@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 / 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>
@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;
@Scott31393
Scott31393 / linux_media_notes.md
Last active December 15, 2023 16:07
Linux Media Subsystem Notes
@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"

Dockerfile - Build Android 11 (Rockchip)

Dockerfile:

FROM ubuntu:bionic

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update -y && apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
@Scott31393
Scott31393 / U-Boot Driver Coding Cheatsheet.md
Last active April 15, 2022 14:24
U-Boot Drivers Coding Cheatsheet.md

U-Boot Coding Cheatsheet

Enable Debug log

define DEBUG before any include in the .c file

#define DEBUG
#undef CONFIG_LOGLEVEL
#define CONFIG_LOGLEVEL 7
@Scott31393
Scott31393 / patchwork-setup-guide.md
Last active December 18, 2021 11:24
patchwork setup guide

muttrc entry for List-id

ignore *
unignore From: Date: To: Cc: Subject: Reply-To: List-ID: Message-ID: In-Reply-To:
hdr_order From: Date: To: Cc: Subject: Reply-To: List-ID: Message-ID: In-Reply-To: