Skip to content

Instantly share code, notes, and snippets.

@nmenon
nmenon / create-mem_map.py
Last active May 12, 2022 05:59
Ridiculous memory map creator
#!/usr/bin/env python3
import argparse
import humanize
def args_auto_int(x):
return int(x, 0)
- 00:40:31 [INFO] Starting target session
- 00:40:38 [INFO] Connected to am654x-evm via serial
- 00:40:38 [INFO] Host: #check prompt
- 00:40:41 [ERROR] On command: #check prompt waiting for #check prompt.+?(?-mix:((?-mix:login:)|[Pp]assword)) >>> error: execution expired
- 00:40:41 [INFO] Target:
#check prompt
root@am65xx-evm:/test#
- 00:40:41 [INFO] Host: #check prompt
- 00:40:42 [INFO] Target:
#check prompt
Layer guidelines
================
These guidelines apply to TI public OE/Yocto layers that are used by TI CoreSDK,
specifically meta-ti BSP layer and meta-arago and its sublayers for Arago Distro
and Apps. These may or may not apply to downstream product-specific layers.
# This is the DNS Server settings hosting DNS Cache for the rest of the home network.
# File on rpi /etc/unbound/unbound.conf.d/unbound_00_srv.conf
# Variant of http://blog.thestateofme.com/2018/04/04/howto-secure-your-dns-with-a-raspberry-pi-unbound-and-cloudflare-1-1-1-1/
# Assuming that you have a Raspberry pi (3 or 4) with wifi (or prefer it to be ethernet) -> ethernet is setup as a staic IP.
# OS used here is raspbian buster https://www.raspberrypi.org/downloads/ on uSD card
server:
# Hookup on all interfaces (both wifi and ethernet - depends on what is actually connected)..
interface: 0.0.0.0
@nmenon
nmenon / crustified_badcode.c
Created August 4, 2018 00:14
sp_arith modifies function referencef
struct my_struct params_struct = {
.priority = 255,
.arg = (u32) & my_func,
};
void test_function(void)
{
external_func = &my_func;
}