This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# go to kernel source: tmp/work/machine/linux-imx | |
make ARCH=arm defconfig KBUILD_DEFCONFIG=imx_v6_v7_defconfig | |
# build selected devicetree blob from sources in arch/arm/boot/dts | |
make ARCH=arm my_device.dtb | |
# dtb file will be in arch/arm/boot/dts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i2c2: i2c@f8024000 { | |
status = "okay"; | |
id: eeprom@50 { | |
compatible = "microchip,24c02"; /* actually it's a 24AA025E48 */ | |
pagesize = <16>; | |
read-only; | |
reg = <0x50>; | |
#address-cells = <1>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt -y install rpd-plym-splash | |
#reload browser from CLI | |
DISPLAY=:0 xdotool search --onlyvisible --class chromium windowfocus key ctrl+r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo wget http://downloads.fars-robotics.net/wifi-drivers/install-wifi -O /usr/bin/install-wifi | |
sudo chmod +x /usr/bin/install-wifi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static uint16_t adc_lowpass_filt(uint16_t _new_val, uint8_t _filter_pow) | |
{ | |
static uint16_t filt_val; | |
static uint32_t sum; | |
sum = sum - filt_val + _new_val; | |
filt_val = (sum >> _filter_pow); | |
return filt_val; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile for ESP8266 projects | |
# | |
# Thanks to: | |
# - zarya | |
# - Jeroen Domburg (Sprite_tm) | |
# - Christian Klippel (mamalala) | |
# - Tommie Gannert (tommie) | |
# | |
# Changelog: | |
# - 2014-10-06: Changed the variables to include the header file directory |