Skip to content

Instantly share code, notes, and snippets.

View kapare's full-sized avatar

Kevyn-Alexandre Paré kapare

View GitHub Profile
@kapare
kapare / serial-cli.ino
Last active January 18, 2021 14:41
Serial command line - cli
// https://www.norwegiancreations.com/2018/02/creating-a-command-line-interface-in-arduinos-serial-monitor/
// Used with: cu -l /dev/ttyACM0 -s 115200
// FIXME issue with carriage return: If type command and wait it's working otherwise fail with enter
// To fix the issue with the enter is to replace \n -> \n\r
// Serial.readStringUntil('\n\r');
#define LINE_BUF_SIZE 128 //Maximum input string length
#define ARG_BUF_SIZE 64 //Maximum argument string length
#define MAX_NUM_ARGS 8 //Maximum number of arguments

Create Yocto custom distro for NUC.

Here a summary of Yocot Project Mega-Manual adapted for the NUC.

mkdir nuc
cd nuc
git clone git://git.yoctoproject.org/poky
cd poky
git checkout -b jethro origin/jethro
git clone git://git.yoctoproject.org/meta-intel
#!/usr/bin/env ipython
nb=0
nb+=1
print nb
!pwd
!ls
def Test(test):
global nb
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by powertop configure 2.5, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ /home/knight/rogue_nightly_build/build_utils/yocto/src/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/powertop/2.5-r0/powertop-2.5/configure --build=x86_64-linux --host=arm-poky-linux-gnueabi --target=arm-poky-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/powertop --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/knight/rogue_nightly_build/build_utils/yocto/src/build/tmp/sysroots/overo --enable-nls
## --------- ##
## Platform. ##
DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing python function autotools_copy_aclocals
DEBUG: Python function autotools_copy_aclocals finished
DEBUG: Executing shell function do_configure
automake (GNU automake) 1.14
Copyright (C) 2013 Free Software Foundation, Inc.
DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing python function autotools_copy_aclocals
DEBUG: Python function autotools_copy_aclocals finished
DEBUG: Executing shell function do_configure
automake (GNU automake) 1.14
Copyright (C) 2013 Free Software Foundation, Inc.