To get barebox, clone the Git repository and check out the version you want to use:
$ git clone git://git.pengutronix.de/git/barebox.git$ cd barebox$ git checkout v2017.02.0
The layout of the code is similar to U-Boot:
- arch: Contains code specific to each supported architecture, which includes all the major embedded architectures. SoC support is in arch/[architecture]/mach-[SoC]. Support for individual boards is in arch/[architecture]/boards.
- common: Contains core functions, including the shell.
- commands: Contains the commands that can be called from the shell.
- Documentation: Contains the templates for documentation files. To build it, type make docs. The results are put in Documentation/html.
- drivers: Contains the code ...