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
12 files changed
tree: 697e89e81c27a6332cc078b199461a591f4e20c6
  1. overlay/
  2. tools/
  3. .gitignore
  4. Makefile
  5. partmap.txt
  6. README.md
README.md

i.MXn Debian Root Generator

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.

Building

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.

Examining the results

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.