From 0109c3d7f2c3ae269842b6126a65323a6dd4608b Mon Sep 17 00:00:00 2001 From: Jianxun Zhang Date: Tue, 26 Jul 2016 15:26:17 -0700 Subject: 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 Signed-off-by: Tom Zanussi --- scripts/lib/wic/canned-wks/galileodisk-sd.wks | 9 +++++++++ scripts/lib/wic/canned-wks/galileodisk-usb.wks | 9 +++++++++ scripts/lib/wic/canned-wks/mkgalileodisk.wks | 9 --------- 3 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 scripts/lib/wic/canned-wks/galileodisk-sd.wks create mode 100644 scripts/lib/wic/canned-wks/galileodisk-usb.wks delete mode 100644 scripts/lib/wic/canned-wks/mkgalileodisk.wks (limited to 'scripts') diff --git a/scripts/lib/wic/canned-wks/galileodisk-sd.wks b/scripts/lib/wic/canned-wks/galileodisk-sd.wks new file mode 100644 index 00000000..e03c2f88 --- /dev/null +++ b/scripts/lib/wic/canned-wks/galileodisk-sd.wks @@ -0,0 +1,9 @@ +# 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 + +part / --source rootfs --ondisk mmcblk0 --fstype=ext3 --label platform --align 1024 + +bootloader --timeout=0 --append="console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x9000b000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5" 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 @@ +# 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" diff --git a/scripts/lib/wic/canned-wks/mkgalileodisk.wks b/scripts/lib/wic/canned-wks/mkgalileodisk.wks deleted file mode 100644 index c9835a65..00000000 --- a/scripts/lib/wic/canned-wks/mkgalileodisk.wks +++ /dev/null @@ -1,9 +0,0 @@ -# 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. - -part /boot --source bootimg-efi --sourceparams="loader=systemd-boot" --ondisk mmcblk0 --label msdos --active --align 1024 - -part / --source rootfs --ondisk mmcblk0 --fstype=ext3 --label platform --align 1024 - -bootloader --timeout=0 --append="console=ttyS1,115200n8 earlycon=uart8250,mmio32,0x9000b000,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5" -- cgit v1.2.3-54-g00ecf