diff options
author | Brian Woods | 2019-10-24 20:32:04 -0700 |
---|---|---|
committer | Stefano Stabellini | 2019-10-25 10:22:59 -0700 |
commit | d7b0db13a584f24730024bf6f7ca0c9e03b259b9 (patch) | |
tree | 1525671bbfcaad5e9fecdf24dd5406d8c3f823aa /README.md | |
parent | 18517a3339dc14c0bc2881708c5fe6706ee934a5 (diff) |
Add command line arguments for disk_image
Add some simple command line arguments and some dependency checking that
makes running the script outside of a container much easier.
Signed-off-by: Brian Woods <brian.woods@xilinx.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -83,6 +83,31 @@ Where:\ arbitrary command can be used, for instance -t "fatload" is valid.\ +## Stand-alone Usage: scripts/disk\_image + +The ImageBuilder script that generates a disk image file to load on a +SD or SATA drive. This creates 2 partitions: boot partition where the +boot files from working directory (-c option) are, and the dom0 ramdisk +uncompressed into the root FS partition. + +After you've generated the u-boot scripts using the uboot-script-gen +script, disk_image is run as follows: + +``` +$ sudo bash ./scripts/disk_image -c /path/to/config-file -d . \ + -w /path/to/tmp/dir \ + -o /path/to/output/disk.img +``` + +Where:\ +-c specifies the path to the config file to use\ +-d specifies the working directory (paths in the config file are relative + to it)\ +-w specifies the temporary working directory that the script uses for + building the disk image, and if not set, one is created in /tmp\ +-o specifies the output disk image file name\ + + ## Container Usage ImageBuilder comes with a Dockerfile to build a container with all the |