Skip to content

Instantly share code, notes, and snippets.

View gustavsl's full-sized avatar

Gustavo Leal gustavsl

View GitHub Profile
#!/bin/bash
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y build-essential cmake unzip pkg-config
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install -y libxvidcore-dev libx264-dev
sudo apt-get install -y libgtk-3-dev
sudo apt-get install -y libcanberra-gtk*
sudo apt-get install -y libatlas-base-dev gfortran python3-dev
@gustavsl
gustavsl / h-board-nvd-colibri-imx6.dts
Created June 5, 2020 18:26
Overlay for H-Board v0.3 with NVD display and Colibri iMX6
/dts-v1/;
/plugin/;
#include "/device-tree-overlays/dts-arm32/imx6dl-pinfunc.h"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
/ {
compatible = "toradex,colibri-imx6dl";
fragment@0 {
target = <&i2c3>;
__overlay__ {
@gustavsl
gustavsl / aison-10.1-lvds-iris-v2.dts
Created May 14, 2020 22:27
Device Tree Overlay for Aison 10.1 LVDS display on Iris Carrier Board v2.0 and Colibri iMX6
/dts-v1/;
/plugin/;
#include "/device-tree-overlays/dts-arm32/imx6dl-pinfunc.h"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
/ {
compatible = "toradex,colibri-imx6dl";
fragment@0 {
target = <&i2c3>;
__overlay__ {
@gustavsl
gustavsl / h-board-aison-imx6.dts
Created May 14, 2020 22:01
Device Tree Overlay for Colibri iMX6 on H-Board v0.3 with Aison display
/dts-v1/;
/plugin/;
#include "/device-tree-overlays/dts-arm32/imx6dl-pinfunc.h"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
/ {
compatible = "toradex,colibri-imx6dl";
fragment@0 {
target = <&i2c3>;
__overlay__ {
@gustavsl
gustavsl / uart3-rs485.patch
Last active July 12, 2022 04:53
Patch for RS-485 on UART3 for Colibri iMX6 on H-Board with Toradex Embedded Linux BSP 2.8.6
diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi
index 23770786ab77..9009bb85a93e 100644
--- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi
@@ -756,7 +756,7 @@
};
pinctrl_uart1_ctrl: uart1-ctrlgrp { /* Additional DTR, DSR, DCD */
fsl,pins = <
- MX6QDL_PAD_EIM_D23__UART1_DCD_B 0x1b0b0
+ //MX6QDL_PAD_EIM_D23__UART1_DCD_B 0x1b0b0
@gustavsl
gustavsl / h-board-nvd-imx7.dts
Last active January 3, 2022 19:23
Device Tree Overlay for H-Board v0.3 with NVD display
/dts-v1/;
/plugin/;
#include "/device-tree-overlays/dts-arm32/imx7d-pinfunc.h"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
/ {
compatible = "toradex,colibri-imx7";
fragment@0 {
target = <&i2c4>;
__overlay__ {
@gustavsl
gustavsl / h-board-aison-imx7.dts
Last active June 16, 2020 14:47
Device Tree Overlay for H-Board v0.3 with Aison display
/dts-v1/;
/plugin/;
#include "/device-tree-overlays/dts-arm32/imx7d-pinfunc.h"
#include "/device-tree-overlays/include/dt-bindings/gpio/gpio.h"
#include "/device-tree-overlays/include/dt-bindings/interrupt-controller/irq.h"
/ {
compatible = "toradex,colibri-imx7";
fragment@0 {
target = <&i2c4>;
__overlay__ {
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_wget=y
CT_CONFIGURE_has_curl=y
CT_CONFIGURE_has_make_3_81_or_newer=y
CT_CONFIGURE_has_libtool_2_4_or_newer=y
CT_CONFIGURE_has_libtoolize_2_4_or_newer=y
@gustavsl
gustavsl / linux_arm_32v7.config
Created February 25, 2019 16:11
crosstool-ng v1.24.0 config for Linux armv7 toolchain
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_wget=y
CT_CONFIGURE_has_curl=y
CT_CONFIGURE_has_make_3_81_or_newer=y
CT_CONFIGURE_has_libtool_2_4_or_newer=y
CT_CONFIGURE_has_libtoolize_2_4_or_newer=y
@gustavsl
gustavsl / build_opencv.sh
Created September 25, 2018 18:50
Build and install OpenCV 3.4.2 on the Apalis TK1/Jetson TK1
#!/bin/bash
echo "This script will build and install OpenCV 3.4.2 with CUDA support on the TK1"
echo "Installing dependencies..."
sudo apt-get update
sudo apt-get install -y \
cmake \
libglew-dev \
libtiff5-dev \