Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62698C433F5 for ; Tue, 17 May 2022 05:51:10 +0000 (UTC) Subject: yocto linux with dual boot for dual images #yocto #grub To: yocto@lists.yoctoproject.org From: ben.s.doron@gmail.com X-Originating-Location: Ashdod, Southern District, IL (212.235.98.140) X-Originating-Platform: Windows Chrome 101 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 16 May 2022 22:51:04 -0700 Message-ID: Content-Type: multipart/alternative; boundary="iXB7twfWT46ntAYHG8L6" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 17 May 2022 05:51:10 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/57116 --iXB7twfWT46ntAYHG8L6 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable have two yocoto images and i need to make a dual boot for them. I make two = partitions in dev/mmcblk1 called mmcblk1p1 & mmcblk1p2. I install first ima= ge in mmcblk1p1 & the second image in mmcblk1p2 with dd commannd. I add a title and menu with grub.cfg but no success to boot to the second i= mage. Also try to boot from the grub shell with the following commands but no suc= cess grub> ls grub> (hd0) (hd0,gpt2) (hd0,gpt1) grub> set root=3D(hd0,gpt2) grub> linux (hd0,gpt2)/vmlinuz=20 grub> initrd (hd0,gpt2)/initrd grub> boot Also try with the parted command to set on the boot flag to specific image = but no success. --iXB7twfWT46ntAYHG8L6 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

 have two yocoto images and i need to make a dual b= oot for them. I make two partitions in dev/mmcblk1 called mmcblk1p1 & m= mcblk1p2. I install first image in mmcblk1p1 & the second image in mmcb= lk1p2 with dd commannd.

I add a title and menu with grub.cfg but no success to b= oot to the second image.

Also try to boot from the grub shell with the following = commands but no success

g=
rub> ls
grub> (hd0) (hd0,gpt2) (hd0,gpt1)
grub> set root=3D(hd0,gpt2)
grub> linux (hd0,gpt2)/vmlinuz=20
grub> initrd (hd0,gpt2)/initrd
grub> boot

= Also try with the parted command to set on the boot flag to specific image = but no success.

--iXB7twfWT46ntAYHG8L6--