aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/canned-wks
diff options
context:
space:
mode:
authorJianxun Zhang <jianxun.zhang@linux.intel.com>2016-07-26 15:26:17 -0700
committerTom Zanussi <tom.zanussi@linux.intel.com>2016-07-28 12:09:25 -0500
commit0109c3d7f2c3ae269842b6126a65323a6dd4608b (patch)
tree11f37728d7383ae959917b9dd0e99a26e6109d1a /scripts/lib/wic/canned-wks
parent7d00922e1cd3caabb8046e68a6107b9f4f3f1d34 (diff)
downloadmeta-intel-0109c3d7f2c3ae269842b6126a65323a6dd4608b.zip
meta-intel-0109c3d7f2c3ae269842b6126a65323a6dd4608b.tar.gz
meta-intel-0109c3d7f2c3ae269842b6126a65323a6dd4608b.tar.bz2
quark: Support direct-boot image for USB storage media
Add a new wks file for quark based on the existing mkgalileodisk.wks with necessary changes. () specify sda for partitions and rootwait for USB in new wks. () Rename the original wks file and amend its description () Update README accordingly Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic/canned-wks')
-rw-r--r--scripts/lib/wic/canned-wks/galileodisk-sd.wks (renamed from scripts/lib/wic/canned-wks/mkgalileodisk.wks)6
-rw-r--r--scripts/lib/wic/canned-wks/galileodisk-usb.wks9
2 files changed, 12 insertions, 3 deletions
diff --git a/scripts/lib/wic/canned-wks/mkgalileodisk.wks b/scripts/lib/wic/canned-wks/galileodisk-sd.wks
index c9835a6..e03c2f8 100644
--- a/scripts/lib/wic/canned-wks/mkgalileodisk.wks
+++ b/scripts/lib/wic/canned-wks/galileodisk-sd.wks
@@ -1,6 +1,6 @@
-# short-description: Create an Galileo Gen 1/2 disk image
-# long-description: Creates a partitioned EFI disk image for Intel Galileo Gen 1/2,
-# that the user can directly dd to boot media.
+# short-description: Create a Galileo Gen 1/2 disk image (SD card)
+# long-description: Creates a partitioned EFI disk image for Intel Galileo Gen 1/2
+# boards that the user can directly dd to an SD card and boot.
part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk mmcblk0 --label msdos --active --align 1024
diff --git a/scripts/lib/wic/canned-wks/galileodisk-usb.wks b/scripts/lib/wic/canned-wks/galileodisk-usb.wks
new file mode 100644
index 0000000..b721c95
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/galileodisk-usb.wks
@@ -0,0 +1,9 @@
+# short-description: Create a Galileo Gen 1/2 disk image (USB storage)
+# long-description: Creates a partitioned EFI disk image for Intel Galileo Gen 1/2
+# that the user can directly dd to USB storage media and boot.
+
+part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk sda --label msdos --active --align 1024
+
+part / --source rootfs --ondisk sda --fstype=ext3 --label platform --align 1024
+
+bootloader --timeout=0 --append="rootwait console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x9000b000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5"