Skip to content

Instantly share code, notes, and snippets.

@guillaumekh
guillaumekh / 0001-Disable-addition-of-simple-framebuffer-by-U-boot.patch
Created January 20, 2020 17:23
0001-Disable-addition-of-simple-framebuffer-by-U-boot.patch
From 50f05ab10e9590f22cd07382821a7a7721825b36 Mon Sep 17 00:00:00 2001
From: Amr Bekhit <amrbekhit@gmail.com>
Date: Mon, 7 Oct 2019 12:16:03 +0300
Subject: [PATCH] Disable addition of simple-framebuffer by U-boot
In order to enable HDMI support for the Raspberry Pi, U-boot adds a
simple-framebuffer node to the device tree. However, this then prevents
the kernel from being able to correctly initialise the HDMI (which results
in a corrupted terminal), which subsequently prevents the camera from working.
Disabling HDMI support in U-boot resolves this issue. The U-boot console is
@guillaumekh
guillaumekh / index.js
Last active August 3, 2017 11:25
abort node lambda on retry
var lastReqId;
exports.handler = function ( event, context ) {
if ( lastReqId == context.awsRequestId ) {
return context.succeed(); // abort
} else {
lastReqId = context.awsRequestId; // keep request id for next invokation
};
$ sudo tcptraceroute fabric.io
Selected device en1, address 192.168.240.63, port 56706 for outgoing packets
Tracing the path to fabric.io (54.243.148.240) on TCP port 80 (http), 30 hops max
1 192.168.240.1 1.894 ms 0.639 ms 0.622 ms
2 192.168.1.1 1.249 ms 0.987 ms 1.106 ms
3 80.10.123.41 1.572 ms 2.385 ms 1.581 ms
4 10.125.132.10 1.630 ms 1.933 ms 1.913 ms
5 ae41-0.niidf101.paris.francetelecom.net (193.252.159.42) 1.822 ms 2.392 ms 2.255 ms
6 193.252.137.10 2.486 ms 6.704 ms 7.975 ms
7 81.52.200.191 10.440 ms 6.015 ms 7.940 ms
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--enable-static \
--disable-shared \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--bindir="$HOME/bin" \
--disable-doc \
--enable-nonfree \