55 | | [=#disk-images] |
56 | | == Installing Compressed Disk OS Images |
57 | | Gateworks releases compressed disk images for various Linux based operating systems that can be easily flashed using the U-Boot Bootloader. These disk images contain a partition table so they are tailored to the specific device size they are intended for. Additionally they are commonly configured for a small partition size to keep flash programming time at a minimum. This requires resizing the rootfs filesystem in order to take advantage of the remaining flash space. |
58 | | |
59 | | You can install a compressed disk image using the methods described in [wiki:venice/firmware#firmware-update venice/firmware-update]. For example in the bootloader: |
60 | | {{{#!bash |
61 | | setenv dev 2 # emmc device; use mmc list to see all mmc devs |
62 | | tftpboot ${loadaddr} firmware.img.gz && gzwrite mmc ${dev} ${loadaddr} ${filesize} |
63 | | }}} |
64 | | |
65 | | If you are interested in creating a compressed disk image with a custom root filesystem directory/tarball with a kernel and bootscript you can following along the process used in the in the [https://github.com/Gateworks/bsp-venice/blob/master/Makefile Venice BSP makefile] |
66 | | |
67 | | If you created a filesystem that did not stretch to the partition it was installed on (as we create a minimally sized filesystem image to fit within the eMMC device for faster programming) you will want to resize it after booting to Linux. This is a one time operation after flashing a compressed disk image and can be done using the 'growpart_once' script that we install on the Ubuntu Root filesystems found in the script [https://github.com/Gateworks/ubuntu-rootfs/blob/master/ubuntu-rootfs.sh here] (search for growpart_once) |
68 | | |
69 | | To install the kernel and root filesystem on a removable block storage device see [wiki:linux/blockdev]. |
70 | | |
71 | | |