summaryrefslogtreecommitdiffstats
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
parent7d00922e1cd3caabb8046e68a6107b9f4f3f1d34 (diff)
downloadmeta-intel-0109c3d7f2c3ae269842b6126a65323a6dd4608b.tar.gz
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>
-rw-r--r--README23
-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
3 files changed, 26 insertions, 12 deletions
diff --git a/README b/README
index d2098a9a..772ac4ed 100644
--- a/README
+++ b/README
@@ -211,9 +211,10 @@ the downloaded BSP layer or from the meta-intel git repository, you'll
211find the bootable image in the build/tmp/deploy/images/xxx directory, 211find the bootable image in the build/tmp/deploy/images/xxx directory,
212where again 'xxx' refers to the machine name used in the build. 212where again 'xxx' refers to the machine name used in the build.
213 213
214The Galileo board boots off of an SD card that has a special disk 214The Galileo board can boot off of either an SD card or USB storage
215layout. The 'wic' tool can be used to create an SD card adhering to 215media that has a special disk layout. The 'wic' tool can be used to
216that format via the following steps. 216create directly bootable images for either of the two formats via the
217following steps.
217 218
218If you haven't already, you need to build parted-native. (You will get 219If you haven't already, you need to build parted-native. (You will get
219an error message when running the wic script if you haven't.) 220an error message when running the wic script if you haven't.)
@@ -223,25 +224,29 @@ an error message when running the wic script if you haven't.)
223Use the wic script to create an SD card image: 224Use the wic script to create an SD card image:
224 225
225 $ wic list images 226 $ wic list images
226 mkgalileodisk Create an Galileo Gen 1/2 disk image 227 galileodisk-sd Create an Galileo Gen 1/2 disk image (SD card)
227 mkgummidisk Create an EFI disk image 228 galileodisk-usb Create an Galileo Gen 1/2 disk image (USB Storage)
229 mkgummidisk Create an EFI disk image
228 230
229Assuming you want to boot the 'core-image-minimal' image: 231Assuming you want to boot the 'core-image-minimal' image for SD card media:
230 232
231 $ wic create mkgalileodisk -e core-image-minimal 233 $ wic create galileodisk-sd -e core-image-minimal
232 234
233If successful, the wic script generates the image and prints its location: 235If successful, the wic script generates the image and prints its location:
234 236
235 Info: The new image(s) can be found here: 237 Info: The new image(s) can be found here:
236 /var/tmp/wic/build/mkgalileodisk-201604211444-mmcblk0.direct 238 /var/tmp/wic/build/galileodisk-sd-201604211444-mmcblk0.direct
237 ... 239 ...
238 240
239Write the output image to an SD Card 241Write the output image to an SD Card
240 242
241 $ sudo dd if=/path/to/image/mkgalileodisk-*-mmcblk0.direct of=/dev/your_sd_dev 243 $ sudo dd if=/path/to/image/galileodisk-sd-*-mmcblk0.direct of=/dev/your_sd_dev
242 244
243Insert the SD Card into the reference platform and power on. 245Insert the SD Card into the reference platform and power on.
244 246
247To create a direct-boot image for USB storage media, simply specify
248galileodisk-usb instead of galileodisk-sd in the "wic create ..."
249command, then write the output image to USB storage media and boot it.
245 250
246III. Technical Miscellany 251III. Technical Miscellany
247========================= 252=========================
diff --git a/scripts/lib/wic/canned-wks/mkgalileodisk.wks b/scripts/lib/wic/canned-wks/galileodisk-sd.wks
index c9835a65..e03c2f88 100644
--- a/scripts/lib/wic/canned-wks/mkgalileodisk.wks
+++ b/scripts/lib/wic/canned-wks/galileodisk-sd.wks
@@ -1,6 +1,6 @@
1# short-description: Create an Galileo Gen 1/2 disk image 1# short-description: Create a Galileo Gen 1/2 disk image (SD card)
2# long-description: Creates a partitioned EFI disk image for Intel Galileo Gen 1/2, 2# long-description: Creates a partitioned EFI disk image for Intel Galileo Gen 1/2
3# that the user can directly dd to boot media. 3# boards that the user can directly dd to an SD card and boot.
4 4
5part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk mmcblk0 --label msdos --active --align 1024 5part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk mmcblk0 --label msdos --active --align 1024
6 6
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 00000000..b721c951
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/galileodisk-usb.wks
@@ -0,0 +1,9 @@
1# short-description: Create a Galileo Gen 1/2 disk image (USB storage)
2# long-description: Creates a partitioned EFI disk image for Intel Galileo Gen 1/2
3# that the user can directly dd to USB storage media and boot.
4
5part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk sda --label msdos --active --align 1024
6
7part / --source rootfs --ondisk sda --fstype=ext3 --label platform --align 1024
8
9bootloader --timeout=0 --append="rootwait console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x9000b000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5"