efibootmgr -c -l "\EFI\acrn\acrn.efi" -d /dev/mmcblk0 -p 1 -L "ACRN Hypervisor" -u "bootloader=\EFI\org.clearlinux\bootloaderx64.efi uart=bdf@0:18.1 vuart=ttyS1@irq5"
添加一个叫"ACRN Hypervisor 1"的标签启动项,绑定为分区/dev/mmcblk0p1,-u是添加的参数。
clear@clr-sos-guest ~ $ efibootmgr --verbose
BootCurrent: 000F
Timeout: 1 seconds
BootOrder: 000F,0007,0001,0000,0004,0002,0006,0005,0009,000A,0008,000C,000D,0010
Boot0000 Linux bootloader VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0001 UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012)..BO
Boot0002 Linux bootloader VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004 Linux bootloader VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0005 Linux bootloader VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0006 Linux bootloader VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0007* ACRN Hypervisor 1 HD(1,GPT,845ff8ab-b172-46fc-9004-7fcfe4bc4e49,0x22,0x47847)/File(\EFI\ACRN\ACRN.EFI)b.o.o.t.l.o.a.d.e.r.=.\.E.F.I.\.o.r.g...c.l.e.a.r.l.i.n.u.x.\.b.o.o.t.l.o.a.d.e.r.x.6.4...e.f.i. .u.a.r.t.=.b.d.f.@.0.:.1.8...1. .v.u.a.r.t.=.t.t.y.S.1.@.i.r.q.5.
Boot0008 ACRN Hypervisor VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)b.o.o.t.l.o.a.d.e.r.=.\.E.F.I.\.o.r.g...c.l.e.a.r.l.i.n.u.x.\.b.o.o.t.l.o.a.d.e.r.x.6.4...e.f.i. .u.a.r.t.=.m.m.i.o.@.0.x.9.1.5.2.4.0.0.0.
Boot0009 Linux bootloader VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot000A ACRN Hypervisor VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)b.o.o.t.l.o.a.d.e.r.=.\.E.F.I.\.o.r.g...c.l.e.a.r.l.i.n.u.x.\.b.o.o.t.l.o.a.d.e.r.x.6.4...e.f.i. .u.a.r.t.=.m.m.i.o.@.0.x.9.1.5.2.4.0.0.0.
Boot000C Linux bootloader VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot000D Linux bootloader VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot000F* UEFI OS HD(1,GPT,845ff8ab-b172-46fc-9004-7fcfe4bc4e49,0x22,0x47847)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0010 UEFI: Built-in EFI Shell VenMedia(5023b95c-db26-429b-a648-bd47664c8012)..BO
带*的,就是当前用的,用的000F选项,然后0007。
启动项中的项 在loader/entries的.conf中的title名字,linux就是将要的启动的内核文件,root就是kernel放的分区。
比如 /dev/mmcblk0p1。
clear@clr-sos-guest /mnt/loader/entries $ cat acrn.conf
title The ACRN Service OS
linux /EFI/org.clearlinux/kernel-org.clearlinux.iot-lts2018-sos.4.19.36-47
options console=tty0 console=ttyS0 root=PARTUUID=845ff8ab-b172-46fc-9004-7fcfe4bc4e49 rw rootwait ignore_loglevel no_timer_check consoleblank=0 i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x01010F i915.domain_plane_owners=0x011111110000 i915.enable_gvt=1 i915.enable_guc=0 hvlog=2M@0x1FE00000
clear@clr-sos-guest /mnt/loader/entries $ cat Clear-linux-native-5.0.10-743.conf
title Clear Linux OS
linux /EFI/org.clearlinux/kernel-org.clearlinux.native.5.0.10-743
options root=PARTUUID=8c19028d-ffdf-4c0c-8433-501ce8fcf928 quiet console=tty0 console=ttyS0,115200n8 init=/usr/bin/initra-desktop initcall_debug tsc=reliable no_timer_check noreplace-smp kvm-intel.nested=1 rootfstype=ext4,btrfs,xfs intel_iommu=igfx_off cryptomgr.notests rcupdate.rcu_expedited=1 rcu_nocbs=0-64 rw
efibootmgr -o 0007,000F
删除第0013选项
efibootmgr -b 0013 -B
BIOS—>acrn.efi---->bootloader—>kernel
sos
用户:root
密码:Fw59165992