Skip to content

Instantly share code, notes, and snippets.

View vinnyt's full-sized avatar
🎸
Doing what I do.

Vincent Toms vinnyt

🎸
Doing what I do.
View GitHub Profile
@vinnyt
vinnyt / How-To.md
Created July 26, 2021 19:03 — forked from martin-niklasson/How-To.md
How to make an up-to-date OpenWRT image for loading onto a Raspberry Pi Compute Module 4 with a DFRobot Router Carrier Board.

The background is that the default OpenWRT image for Raspberry Pi lacks drivers for the LAN port (RTL8111) on the DFRobot board. DFRobot provide an image, but that one is made from a quite old daily snapshot of OpenWRT which is not entirely stable. Also, it is better to know how to fish than be given a fish.

DFRobot's page about the router board:
https://wiki.dfrobot.com/Compute_Module_4_IoT_Router_Board_Mini_SKU_DFR0767

OpenWRT main page:
https://openwrt.org/

You are expected to have some general knowledge on Linux and OpenWRT. The instructions for flashing the resulting firmware image are presented on DFRobot's page.

Keybase proof

I hereby claim:

  • I am vinnyt on github.
  • I am vinnyt (https://keybase.io/vinnyt) on keybase.
  • I have a public key ASD6tzR-Tf5RdRgiDFL8agOh0SvJ4nUC1uX1MUd8zMQETwo

To claim this, I am signing this object:

@vinnyt
vinnyt / lru_cache.c
Last active August 29, 2015 14:01 — forked from jehiah/lru_cache.c
#include <string.h>
#include <uthash.h>
// this is an example of how to do a LRU cache in C using uthash
// http://uthash.sourceforge.net/
// by Jehiah Czebotar 2011 - jehiah@gmail.com
// this code is in the public domain http://unlicense.org/
#define MAX_CACHE_SIZE 100000