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

Android-Embedded-Porting-Note

Compile Kernel/U-Boot inside Android source tree

#After run this script clean kernel tree using:
#make clean
#make mrproper

export ARCH=arm64

Chromium Cheatsheet

date 060610092020  (mmddhhyy)

#!/bin/sh

echo "OPEN 1920x1080"
udhcpc -i eth1
date 190510092020

Configure git send-mail

Install

$ sudo apt-get install git-email

Configure git send-mail

Compile Kernel Script (GENERIC)

source /opt/fsl-imx-x11/4.19-warrior/environment-setup-cortexa9hf-neon-poky-linux-gnueabi

make imx_v7_defconfig
make zImage dtbs modules

sudo rm -r MODULES
mkdir MODULES

Note about Gpio Numbering in Common CPU

NXP i.MX8

U-Boot

gpio_n = (((port) * 32) + ((index) & 31))

Event Driven Mainloop example

static QueueHandle_t xMainQueue = NULL;

typedef struct 
{
   char id;
   unsigned int arg;
} message_t;
@Scott31393
Scott31393 / Remote-work-tools.md
Last active August 25, 2021 08:49
Remote work tools

Remote Work Tools

SSHFS

SSHFS allows you to mount a remote filesystem using SFTP. Most SSH servers support and enable this SFTP access by default, so SSHFS is very simple to use - there's nothing to do on the server-side.

Install

$ sudo apt-get install sshfs

Basic Dockerfile @alienmind01

FROM crops/poky:ubuntu-18.04
USER root

RUN apt-get install -y vim


RUN dpkg --add-architecture i386

Docker Cheatsheet @alienmind01

Dockerfile

FROM ubuntu:16.04


RUN   apt-get update && \
      apt-get -y install sudo build-essential

Setup TFTP and NFS for Linux Kernel development (Ubuntu > 18.04)

Install TFTP packages:

$ sudo apt-get install tftp-hpa tftpd-hpa

Configuration

edit the file /etc/default/tftpd-hpa as the root user, and edit the line look like this: