diff options
author | Jianxun Zhang <jianxun.zhang@linux.intel.com> | 2016-07-26 15:26:17 -0700 |
---|---|---|
committer | Tom Zanussi <tom.zanussi@linux.intel.com> | 2016-07-28 12:09:25 -0500 |
commit | 0109c3d7f2c3ae269842b6126a65323a6dd4608b (patch) | |
tree | 11f37728d7383ae959917b9dd0e99a26e6109d1a | |
parent | 7d00922e1cd3caabb8046e68a6107b9f4f3f1d34 (diff) | |
download | meta-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-- | README | 23 | ||||
-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.wks | 9 |
3 files changed, 26 insertions, 12 deletions
@@ -211,9 +211,10 @@ the downloaded BSP layer or from the meta-intel git repository, you'll | |||
211 | find the bootable image in the build/tmp/deploy/images/xxx directory, | 211 | find the bootable image in the build/tmp/deploy/images/xxx directory, |
212 | where again 'xxx' refers to the machine name used in the build. | 212 | where again 'xxx' refers to the machine name used in the build. |
213 | 213 | ||
214 | The Galileo board boots off of an SD card that has a special disk | 214 | The Galileo board can boot off of either an SD card or USB storage |
215 | layout. The 'wic' tool can be used to create an SD card adhering to | 215 | media that has a special disk layout. The 'wic' tool can be used to |
216 | that format via the following steps. | 216 | create directly bootable images for either of the two formats via the |
217 | following steps. | ||
217 | 218 | ||
218 | If you haven't already, you need to build parted-native. (You will get | 219 | If you haven't already, you need to build parted-native. (You will get |
219 | an error message when running the wic script if you haven't.) | 220 | an 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.) | |||
223 | Use the wic script to create an SD card image: | 224 | Use 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 | ||
229 | Assuming you want to boot the 'core-image-minimal' image: | 231 | Assuming 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 | ||
233 | If successful, the wic script generates the image and prints its location: | 235 | If 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 | ||
239 | Write the output image to an SD Card | 241 | Write 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 | ||
243 | Insert the SD Card into the reference platform and power on. | 245 | Insert the SD Card into the reference platform and power on. |
244 | 246 | ||
247 | To create a direct-boot image for USB storage media, simply specify | ||
248 | galileodisk-usb instead of galileodisk-sd in the "wic create ..." | ||
249 | command, then write the output image to USB storage media and boot it. | ||
245 | 250 | ||
246 | III. Technical Miscellany | 251 | III. 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 | ||
5 | part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk mmcblk0 --label msdos --active --align 1024 | 5 | part /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 | |||
5 | part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk sda --label msdos --active --align 1024 | ||
6 | |||
7 | part / --source rootfs --ondisk sda --fstype=ext3 --label platform --align 1024 | ||
8 | |||
9 | bootloader --timeout=0 --append="rootwait console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x9000b000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5" | ||