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

VIMRC

filetype plugin indent on
syntax on
set title
set tabstop=8
set softtabstop=8
set shiftwidth=8
set noexpandtab
@Scott31393
Scott31393 / muttrc files.md
Last active May 24, 2022 09:19
muttrc files

Mutt Configuration

Install offlineimap

Install

$ sudo apt-get install offlineimap
@Scott31393
Scott31393 / Linux Kernel Develop Workflow Setup.md
Last active November 23, 2022 09:30
Linux Kernel Develop Workflow Setup

Linux Kernel/ U-Boot Develop Workflow

Gitconfig Setup

Configure gmail less secure app

Setup gitconfig

file = ~/.gitconfig

@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

@Scott31393
Scott31393 / FreeRTOS_AWS_OTA_Configuration_Steps.md
Last active October 27, 2022 15:52
FreeRTOS AWS OTA Configuration Steps

FreeRTOS AWS OTA Configuration Steps

Create IAM User (This is uses instead of using the ROOT User)

  1. Search and navigate to IAM page
  2. Choose User then Add User
  3. Select the name "My_OTA_User" for example
  4. For access type Select whatever you like (we can use Paragmmatic access)
  5. Select attach existence policy and search for and select the following
  • AmazonFreeRTOSFullAccess

Note about Gpio Numbering in Common CPU

NXP i.MX8

U-Boot

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

Resize GPT Partition cmdline/yocto

Cmdline using sgdisk

sgdisk -e /dev/mmcblk2
sgdisk -d 6 -n 6:3008462:0 -c 6:home -u 6:8A98FF9D-DE45-4A5E-90E9-49982B5A72A3 -t 6:0700 /dev/mmcblk2

All in a script

#!/bin/sh

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:

Basic Dockerfile @alienmind01

FROM crops/poky:ubuntu-18.04
USER root

RUN apt-get install -y vim


RUN dpkg --add-architecture i386

Event Driven Mainloop example

static QueueHandle_t xMainQueue = NULL;

typedef struct 
{
   char id;
   unsigned int arg;
} message_t;