29 | | == Disk Images == |
30 | | Gateworks releases disk images that can be easily flashed using the U-Boot Bootloader (see [wiki:newport#serial-ethernet here]). These disk images contain a partition table so they are tailored to the specific eMMC device on the boards they are intended for. Additionally they are configured for a small partition size to keep flash programming time at a minimum. This requires resizing the rootfs partition be resized in order to take advantage of the remaining flash space. |
31 | | |
32 | | The script used to create these images can be found on !GitHub [https://github.com/Gateworks/images-newport/raw/master/mkimage here] and an example usage is: |
33 | | {{{#!bash |
34 | | sudo ./mkimage xenial-newport 7264 1536 firmware-newport.img xenial-newport.tar.xz linux-newport.tar.xz |
35 | | }}} |
36 | | * The user partition of the 8GiB eMMC used on Newport is 7264MB |
37 | | * We need around 1536MB of partition space for the extracted kernel and root filesystem |
38 | | |
39 | | To flash this compressed disk image to a board see [wiki:newport#serial-ethernet here] |
40 | | |
41 | | To install the kernel and root filesystem on a removable block storage device see [wiki:linux/blockdev]. |
| 29 | == Building a Bootable Disk Images == |
| 30 | You will want to build your own Ubuntu disk image if you want control over any of the following: |
| 31 | * contents of root filesystem (packages and configuration) (see [#debootstrap debootsrap below) |
| 32 | * configuration of the Linux kernel (see [wiki:newport/bsp#kernel newport/bsp/kernel]) |
| 33 | |
| 34 | See [wiki:newport/boot#disk-images newpowrt/boot/disk-images] for detailed instructions. |