aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Stabellini2019-08-01 14:56:29 -0700
committerStefano Stabellini2019-08-01 14:57:24 -0700
commit04292e2578ea0deb08d59b28e50d7bfe5ded01e1 (patch)
tree5bf0fb28ca7075bc357d98c4736555df2643e9d8
parent4f647f9fd6c8c44cafa3d2ac8fd5a1d09505333c (diff)
Update README file
Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
-rw-r--r--README.md41
1 files changed, 38 insertions, 3 deletions
diff --git a/README.md b/README.md
index becc052..141e768 100644
--- a/README.md
+++ b/README.md
@@ -8,10 +8,45 @@ $ cd imagebuilder
$ docker build --force-rm --file Dockerfile.image -t imagebuilder .
```
-## `/imagebuilder_run`
+## `/imagebuilder_sd` or `/imagebuilder_tftp`
+
+### TFTP
+
+Run the following command to generate a uboot script to tftp all the
+necessary binaries automatically:
+
+```
+$ docker run --rm --privileged=true -ti -v /tmp:/tmp -v /dev:/dev imagebuilder /imagebuilder_tftp
+```
+
+The generated files are in `/tmp/output`. At the u-boot prompt run:
+
+```
+tftpb 0xc00000 boot.scr; source 0xc00000
+```
+
+If you are using QEMU, you also need to manually setup the ip address.
+Run this command instead:
```
-$ docker run --rm --privileged=true -ti -v /tmp:/tmp -v /dev:/dev imagebuilder /imagebuilder_run
+setenv serverip 192.168.76.2; tftpb 0xc00000 boot.scr; source 0xc00000
```
-The generated files are in `/tmp/output`
+### SATA
+
+Run the following command to generate an image to be written on disk:
+
+```
+$ docker run --rm --privileged=true -ti -v /tmp:/tmp -v /dev:/dev imagebuilder /imagebuilder_sd
+```
+
+The generated image is `/tmp/img/zynqmp.img`. Proceed to dd it to a
+disk, or pass the file as an argument to QEMU (describing how to use
+QEMU to emulate a SATA disk is out of scope for this document).
+
+At the u-boot prompt you can boot automatically with the following
+command:
+
+```
+scsi scan; load scsi 0:1 0xc00000 boot.scr; source 0xc00000
+```