Preparing an image for VIA Epia boards
Credits for the GRUB2 setup go to [1]; in the end it's actually a bit
simpler.
[1] http://lists.busybox.net/pipermail/buildroot/2014-April/095234.html
Change-Id: I47a30be4a62f32d09c5c329809e2f958d05d6c64
diff --git a/board/czechlight/epia/genimage.cfg b/board/czechlight/epia/genimage.cfg
new file mode 100644
index 0000000..a84794f
--- /dev/null
+++ b/board/czechlight/epia/genimage.cfg
@@ -0,0 +1,20 @@
+image hdimage.img {
+ hdimage {
+ align = 1M
+ }
+ partition mbr {
+ in-partition-table = "no"
+ image = "boot.img"
+ offset = 0
+ size = 512
+ }
+ partition grub {
+ in-partition-table = "no"
+ image = "grub.img"
+ offset = 512
+ }
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ }
+}