Skip to content

eerimoq/monolinux

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 

Monolinux

Create embedded Linux systems with a single statically linked executable, because smaller is better!

Monolinux is primarily targeting the C programming language.

Features:

Creating a project

A minimal Monolinux project's file tree looks like below. Add needed software packages to the 3pp folder.

my-project/
├── 3pp/
│   ├── arm-linux-musleabi-cross.tgz  - a toolchain (if needed)
│   ├── linux/                        - the linux kernel
│   └── monolinux/                    - this repository as a submodule
├── app/                              - your application
│   ├── main.c
│   └── Makefile
├── LICENSE
├── Makefile
└── setup.sh                          - development environment setup script

Here are more example projects:

Tips and tricks

See man procfs for details of the following commands.

$ cat /proc/devices
$ cat /proc/meminfo
$ cat /proc/modules
$ cat /proc/net/arp
$ cat /proc/net/dev
$ cat /proc/net/protocols
$ cat /proc/net/route
$ cat /proc/uptime
$ cat /proc/version
$ cat /proc/mounts

Disk commands.

$ ls /sys/block
$ mount /dev/sda1 /mnt/disk ext4
$ ls /mnt/disk
$ cat /mnt/disk/README

Configuration.

# DNS.
$ cat /etc/resolv.conf

Device tree.

$ cat /sys/firmware/devicetree/base/...

About

Create embedded Linux systems with a single statically linked executable.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published