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
############################################################################## | |
# 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 |
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
/* | |
* 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 |