Commit 4a73f31b authored by Nick Elsmore's avatar Nick Elsmore

Update README

parent 6fd512c2
......@@ -35,7 +35,7 @@ Next, you'll need to create the directory on your host system where we'll be doi
mkdir -p pyra-build
```
Now we're ready to build the docker image. This will create and configure a base image of our build environment. If you're curious to see what's going on here or want to modify it, check out `Dockerfile`. Note that as long as you don't modify `Dockerfile` or `docker-entrypoint.sh`, you only have to do this once.
Now we're ready to build the docker image. This will create and configure a base image of our build environment. If you're curious to see what's going on here or want to modify it, check out `Dockerfile`. Note that as long as you don't modify `Dockerfile` or `docker-entrypoint.sh` (pulling new commits from the remote counts as modifying), you only have to do this once.
```
./build_docker.sh
......@@ -45,35 +45,36 @@ Now we're ready to build the docker image. This will create and configure a bas
### Building a PyraOS image
We're going to use multistrap to generate a PyraOS image.
Once you have the docker image built, you're ready to start using it to build a PyraOS image. Building an image consists of three steps: building U-Boot, building the rootfs from the Pyra repository (this uses the most recent stable kernel in the repo), and creating the virtual disk image.
First, sync your source repositories with the remote. This will take a fair amount of time.
```
cd /home/docker/pyra-build/multistrap
multistrap -f pyra-stretch-mate.conf
./docker_run.sh sync-manifest
```
Once complete, the output will be in `export`.
### Building the kernel
Next, build the bootloader. You must specify whether you are building for 2gb or 4gb hardware.
```
cd /home/docker/pyra-build/kernel
make letux_pyra_defconfig
make
./docker_run.sh build uboot [2gb|4gb]
```
### Building U-Boot
Next, build the rootfs.
```
cd /home/docker/pyra-build/u-boot
./docker_run.sh build rootfs
```
# For 2GB hardware
make pandora_pyra_lc15_defconfig
Finally, create the virtual disk image. Warning: This step makes use of your host machine's loopback devices.
# For 4GB hardware
make pandora_pyra_lc15_4gb_defconfig
```
./docker_run.sh build image
```
make
All binaries will be located within `pyra-build/out`. Note that the following command can be used to build everything at once, however it will build the kernel as well. The kernel built during this step is NOT the one used in the final image.
```
./docker_run.sh build-all
```
### Building PyraOS Debian packages
......@@ -83,3 +84,7 @@ Coming soon!
### Building DBPs
Coming soon!
## Contributing to PyraOS
Coming soon!
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment