Skip to content

Instantly share code, notes, and snippets.

/*
* This file is a demonstration of the fact that, in POSIX, exclusive access
* to a file is dropped once all file descriptors that point to its "open file
* description" are closed.
*
* To compile:
* CC excl.c -o excl
*
* To run:
* ./excl <SERIAL DEVICE> both # both fds are closed; no error thrown
@Pavlos1
Pavlos1 / nuttx_poc.sh
Created February 14, 2024 15:50
Ox64 proof of concept: boot NuttX from flash
##############################################################################
# In this document, we outline the steps required to make a standalone flash
# image for the Ox64 that boots NuttX. We will be using the OpenBouffalo
# buildroot overlay to help us with this, but we will not be building the
# Linux kernel or rootfs.
##############################################################################
# We are using a patched OpenBouffalo overlay so that NuttX is loaded at
# 0x50200000 instead of 0x50000000. If you wish, you can build your own
# NuttX image whose memory map starts at 0x50000000, and then continue following