First commit

This commit is contained in:
Yorick Barbanneau 2021-04-20 02:40:59 +02:00
commit 43eb1eaa64
4 changed files with 174 additions and 0 deletions

64
README.md Normal file
View file

@ -0,0 +1,64 @@
u-boot for MNT Reform build script
----------------------------------
Work in progress script for building uboot for the MNT Refom 2 computer.
## Howto
To compile the script, you'll need to install some packages. On Debian :
```
apt install -y --no-install-recommends gcc-aarch64-linux-gnu \
device-tree-compiler \
make \
bc \
build-essential \
bison \
flex \
bash \
git \
ca-certificates
```
You just need to launch `make_uboot.sh`. By default, script build uboot with
sdcard support. to build it with emmc support you need to pass the `emmc`
argument:
```
./make_uboot.sh emmc
```
You can also define `UBOOT_BUILD` environment variable with `emmc` or `sdcard`
variable.
The `flash.bin` is located in the `u-boot/` directory.
## Build with docker
Build the image :
```
docker build -t reform_kernel_build .
```
Then run the container with with a directory mapped to `/output`:
```
docker run -v /home/docker/output:/output --env UBOOT_BUILD=sdcard --rm reform_kernel_build
```
You could pass the `UBOOT_BUILD` environment variable to your container do tell
`make_uboot.sh` which version to compile :
* `sdcard` or not defined if you'll install to the SDCard
* `emmc` for the internal memomry of the IMX card
Flash.bin file will be in the directory mapped to `/output` in the
container.
## Licence
This work is derivated from MNT script found [here][l_mnt_image] and licenced
under the GPLv3 Licence
[l_mnt_image]:https://source.mnt.re/reform/reform-system-image/