Last edited one month ago

OpenSTLinux directory structure: Difference between revisions


Latest revision as of 14:10, 30 June 2025


This article aims at presenting, as example, the directory structure of the Linux root file system available on STM32 board.

All files and directories are located under the root directory (/), in compliance with the File system Hierarchy Standard.

This root directory corresponds to the Linux root file system (rootfs partition), as defined in Flash partitions. Note also that the user file system (userfs partition), the boot file system (bootfs partition) and the vendor file system (vendorfs partition) can be accessed through the /usr/local mounting point, through the /boot mounting point, and through the /vendor mounting point respectively.

Template:InfoTemplate:UpdateNeededForNewRelease

The directories are shown in green, while the files are in black.

/                            Template:Highlight
├── bin                      Template:Highlight
│   └── [...]
├── boot                     Template:Highlight
├── dev                      Template:Highlight
├── etc                      Template:Highlight
├── home                     Template:Highlight
├── lib                      Template:Highlight
│   ├── modules
│   │   └── 6.6.78          Template:Highlight
│   │       ├── kernel       Template:Highlight
│   │       │   └── [...]
│   │       ├── modules.dep  Template:Highlight
│   │       └── [...]
│   └── [...]
├── lost+found
├── media                    Template:Highlight
├── mnt                      Template:Highlight
├── proc                     Template:Highlight
├── root                     Template:Highlight
├── run                      Template:Highlight
├── sbin                     Template:Highlight
├── sys                      Template:Highlight
├── tmp                      Template:Highlight
├── usr                      Template:Highlight
│   ├── bin                  Template:Highlight
│   ├── lib                  Template:Highlight
│   ├── local                Template:Highlight
│   ├── sbin                 Template:Highlight
│   ├── share                Template:Highlight
│   └── [...]
├── var                      Template:Highlight
└── vendor                   Template:Highlight
  • Boot file system mounting point
/boot    Template:Highlight
├── stm32<soc>-dk[*].dtb    Template:Highlight
├── stm32<soc>-ev[*].dtb    Template:Highlight
├── [...]
├── uImage                  Template:Highlight
└── [...]
  • User file system mounting point
/usr/local    Template:Highlight
├── Cube-[M4|M33]-examples    Template:Highlight
│   ├── STM32MP<soc>-DK       Template:Highlight
│   │   ├── Applications
│   │   │   ├── <Applications Name>
│   │   |   |    ├── <Application Name>                      Template:Highlight
│   │   │   |    |    ├── <script name>.sh                   Template:Highlight
│   │   │   |    |    ├── lib
│   │   │   |    |    │   └── firmware
│   │   │   |    |    │       └── <Application Name>.elf     Template:Highlight
│   │   │   |    |    └── README                             Template:Highlight
│   │   │   │    └── [...]                                   Template:Highlight
│   │   │   └── [...]                                        Template:Highlight
│   │   ├── Demonstrations
│   │   │   ├── AI_Character_Recognition                     Template:Highlight
│   │   │        └── lib
│   │   │            └── firmware
│   │   │                └── AI_Character_Recognition.elf    Template:Highlight
.   .   .
.   .   .
.   .   .
├── Linux-A7-examples    Template:Highlight
│   ├── GPIO             Template:Highlight
│   │   ├── buttons
│   │   │   ├── button_gpio_exti.sh    Template:Highlight
│   │   |   └── README.md              Template:Highlight
│   │   └── leds                       Template:Highlight
│   │       └── [...]
│   └── [...]                          Template:Highlight
├── demo                               Template:Highlight
│   └── [...]
├── lost+found
└── weston-start-at-startup
    └── start_up_demo_launcher.sh      Template:Highlight
  • Vendor file system mounting point
/vendor    Template:Highlight
├── [*].so    Template:Highlight
└── [...]