* [PATCH 0/2] fix #11044: wic should support multiple boot labels such as boot and install targets
@ 2017-02-23 14:33 Ed Bartosh
2017-02-23 14:33 ` [PATCH 1/2] wic: bootimg-pcbios: add support for syslinux vesamenu Ed Bartosh
2017-02-23 14:33 ` [PATCH 2/2] wic: add more targets to directdisk syslinux config Ed Bartosh
0 siblings, 2 replies; 3+ messages in thread
From: Ed Bartosh @ 2017-02-23 14:33 UTC (permalink / raw)
To: openembedded-core
Hi,
This patchset provides an example of multi-target syslinux config.
It utilizes --configfile bootloader option instead of "traditional" way to
hardcode all configuration details in wic plugin code.
This approach is a preferable way to configure bootloaders in wic. It should
be used for all wic pluins in future.
The following changes since commit 5d96bc6d1af89dda11f3266548fe1547152c86e1:
image_types_wic: fix expansion error (2017-02-22 15:41:33 +0200)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib ed/wic/wip
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wic/wip
Ed Bartosh (2):
wic: bootimg-pcbios: add support for syslinux vesamenu
wic: add more targets to directdisk syslinux config
.../canned-wks/directdisk-bootloader-config.cfg | 28 +++++++++++++++++-----
scripts/lib/wic/plugins/source/bootimg-pcbios.py | 20 ++++++++++------
2 files changed, 35 insertions(+), 13 deletions(-)
--
Regards,
Ed
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] wic: bootimg-pcbios: add support for syslinux vesamenu
2017-02-23 14:33 [PATCH 0/2] fix #11044: wic should support multiple boot labels such as boot and install targets Ed Bartosh
@ 2017-02-23 14:33 ` Ed Bartosh
2017-02-23 14:33 ` [PATCH 2/2] wic: add more targets to directdisk syslinux config Ed Bartosh
1 sibling, 0 replies; 3+ messages in thread
From: Ed Bartosh @ 2017-02-23 14:33 UTC (permalink / raw)
To: openembedded-core
Installed vesamenu.c32 and its dependencies to support
vesamenu ui in syslinux config.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
scripts/lib/wic/plugins/source/bootimg-pcbios.py | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py
index bbc9f47..bd03eaa 100644
--- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py
+++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py
@@ -160,13 +160,19 @@ class BootimgPcbiosPlugin(SourcePlugin):
hdddir = "%s/hdd/boot" % cr_workdir
- install_cmd = "install -m 0644 %s/bzImage %s/vmlinuz" \
- % (staging_kernel_dir, hdddir)
- exec_cmd(install_cmd)
-
- install_cmd = "install -m 444 %s/syslinux/ldlinux.sys %s/ldlinux.sys" \
- % (bootimg_dir, hdddir)
- exec_cmd(install_cmd)
+ cmds = ("install -m 0644 %s/bzImage %s/vmlinuz" %
+ (staging_kernel_dir, hdddir),
+ "install -m 444 %s/syslinux/ldlinux.sys %s/ldlinux.sys" %
+ (bootimg_dir, hdddir),
+ "install -m 0644 %s/syslinux/vesamenu.c32 %s/vesamenu.c32" %
+ (bootimg_dir, hdddir),
+ "install -m 444 %s/syslinux/libcom32.c32 %s/libcom32.c32" %
+ (bootimg_dir, hdddir),
+ "install -m 444 %s/syslinux/libutil.c32 %s/libutil.c32" %
+ (bootimg_dir, hdddir))
+
+ for install_cmd in cmds:
+ exec_cmd(install_cmd)
du_cmd = "du -bks %s" % hdddir
out = exec_cmd(du_cmd)
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] wic: add more targets to directdisk syslinux config
2017-02-23 14:33 [PATCH 0/2] fix #11044: wic should support multiple boot labels such as boot and install targets Ed Bartosh
2017-02-23 14:33 ` [PATCH 1/2] wic: bootimg-pcbios: add support for syslinux vesamenu Ed Bartosh
@ 2017-02-23 14:33 ` Ed Bartosh
1 sibling, 0 replies; 3+ messages in thread
From: Ed Bartosh @ 2017-02-23 14:33 UTC (permalink / raw)
To: openembedded-core
Added 3 new targets to directdisk-bootloader-config.cfg to
match hddimg syslinux config.
This is a preparation for dropping hddimg in favor of wic.
[YOCTO #11044]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
.../canned-wks/directdisk-bootloader-config.cfg | 28 +++++++++++++++++-----
1 file changed, 22 insertions(+), 6 deletions(-)
diff --git a/scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg b/scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg
index a16bd6a..d5a07d2 100644
--- a/scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg
+++ b/scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg
@@ -1,11 +1,27 @@
# This is an example configuration file for syslinux.
-PROMPT 0
-TIMEOUT 10
-
+TIMEOUT 50
ALLOWOPTIONS 1
SERIAL 0 115200
+PROMPT 0
+
+UI vesamenu.c32
+menu title Select boot options
+menu tabmsg Press [Tab] to edit, [Return] to select
+
+DEFAULT Graphics console boot
+
+LABEL Graphics console boot
+KERNEL /vmlinuz
+APPEND label=boot root=/dev/sda2 rootwait
+
+LABEL Serial console boot
+KERNEL /vmlinuz
+APPEND label=boot root=/dev/sda2 rootwait console=ttyS0,115200
+
+LABEL Graphics console install
+KERNEL /vmlinuz
+APPEND label=install root=/dev/sda2 rootwait
-DEFAULT boot
-LABEL boot
+LABEL Serial console install
KERNEL /vmlinuz
-APPEND label=boot root=/dev/sda2 rootwait rootfstype=ext4 video=vesafb vga=0x318 console=tty0
+APPEND label=install root=/dev/sda2 rootwait console=ttyS0,115200
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-23 14:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-23 14:33 [PATCH 0/2] fix #11044: wic should support multiple boot labels such as boot and install targets Ed Bartosh
2017-02-23 14:33 ` [PATCH 1/2] wic: bootimg-pcbios: add support for syslinux vesamenu Ed Bartosh
2017-02-23 14:33 ` [PATCH 2/2] wic: add more targets to directdisk syslinux config Ed Bartosh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox