commit | 1eb9cec8f89d22e451f3fb3fc840e2394c714cd5 | [log] [tgz] |
---|---|---|
author | June Tate-Gans <jtgans@google.com> | Fri Feb 23 15:03:09 2018 -0800 |
committer | June Tate-Gans <jtgans@google.com> | Fri Feb 23 15:03:09 2018 -0800 |
tree | 697e89e81c27a6332cc078b199461a591f4e20c6 | |
parent | 69b22f4e428ef39c4e65d5be21cde39c6f6910f5 [diff] |
everything: Overlay, resizing, and rootfs building Adds in base /etc files to the overlay, a sources.list file that matches upstream Debian, and sets up a skeleton homedir for the enterprise user. Adds in a resize_image.sh script to ensure the sdcard image has the correct size to accommodate the rootfs. Adjusts the Makefile to build the rootfs inside a directory first, then rsync it to a generated sdcard image based upon the source image provided to the Makefile. Change-Id: Ia8c095141254bb114d8a9b3b6f82c19f5f3037f0
From an existing boot filesystem provided by the i.MXn Yocto Linux tree, this makefile and related scripts will create an sdcard.img file which will boot into Debian proper.
This set of scripts currently has the ability to apply a simple overlay to the generated rootfs before creating the sdcard image.
First, install any required packages for the scripts to do their jobs by doing the following at a shell prompt:
host:~/Projects/imx-debian$ make prereqs
This will call out to apt-get
to install any required packages. Once this is done, a simple
host:~/Projects/imx-debian$ make
Will suffice to build the sdcard.img file.
The make mount
target will happily open up the generated sdcard.img file and mount it in the mount
subdirectory. To unmount simply make unmount
.