mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-16 15:21:48 +00:00
doc: Stop using kconfig to make a customized efi.
Also fix some quick setup script issues. Signed-off-by: lirui34 <ruix.li@intel.com>
This commit is contained in:
parent
7b0cafa84f
commit
958ea0f11b
42
doc/faq.rst
42
doc/faq.rst
@ -49,46 +49,32 @@ For example, if the NUC's physical memory size is 32G, you may follow these step
|
|||||||
to make the new uefi ACRN hypervisor, and then deploy it onto the NUC board to boot
|
to make the new uefi ACRN hypervisor, and then deploy it onto the NUC board to boot
|
||||||
ACRN Service VM with the 32G memory size.
|
ACRN Service VM with the 32G memory size.
|
||||||
|
|
||||||
#. Modify the ``hypervisor/arch/x86/Kconfig`` from the ACRN source on host machine.
|
#. Use ``make menuconfig`` to change the ``RAM_SIZE``::
|
||||||
|
|
||||||
::
|
$ cd acrn-hypervisor
|
||||||
|
$ make menuconfig -C hypervisor BOARD=nuc7i7dnb
|
||||||
|
|
||||||
config HV_RAM_SIZE
|
#. Navigate to these items and then change the value as given below::
|
||||||
hex "Size of the RAM region used by the hypervisor"
|
|
||||||
- default 0x0b800000
|
|
||||||
+ default 0x0f000000
|
|
||||||
help
|
|
||||||
A 64-bit integer indicating the size of RAM used by the hypervisor.
|
|
||||||
It is ensured at link time that the footprint of the hypervisor
|
|
||||||
|
|
||||||
::
|
(0x0f000000) Size of the RAM region used by the hypervisor
|
||||||
|
(0x800000000) Size of the physical platform RAM
|
||||||
|
(0x800000000) Size of the Service OS (SOS) RAM
|
||||||
|
|
||||||
config PLATFORM_RAM_SIZE
|
#. Press :kbd:`S` and then :kbd:`Enter` to save the ``.config`` to the default directory:
|
||||||
hex "Size of the physical platform RAM"
|
``acrn-hypervisor/hypervisor/build/.config``
|
||||||
- default 0x400000000
|
|
||||||
+ default 0x800000000
|
|
||||||
help
|
|
||||||
A 64-bit integer indicating the size of the physical platform RAM
|
|
||||||
(MMIO not included).
|
|
||||||
|
|
||||||
::
|
#. Press :kbd:`ESC` to leave the menu.
|
||||||
|
|
||||||
config SOS_RAM_SIZE
|
#. Use these command lines to build the new efi image for KBL NUC::
|
||||||
hex "Size of the Service OS (SOS) RAM"
|
|
||||||
- default 0x400000000
|
|
||||||
+ default 0x800000000
|
|
||||||
help
|
|
||||||
A 64-bit integer indicating the size of the Service OS RAM (MMIO not
|
|
||||||
included).
|
|
||||||
|
|
||||||
#. Use ``make BOARD=nuc7i7dnb FIRMWARE=uefi hypervisor`` command to build the new
|
$ make -C hypervisor
|
||||||
efi image for KBL NUC.
|
$ make -C misc/efi-stub HV_OBJDIR=$PWD/hypervisor/build EFI_OBJDIR=$PWD/hypervisor/build
|
||||||
|
|
||||||
#. Log in to your KBL NUC (assumes all the ACRN configurations are set up), then copy
|
#. Log in to your KBL NUC (assumes all the ACRN configurations are set up), then copy
|
||||||
the new efi image into the EFI partition::
|
the new efi image into the EFI partition::
|
||||||
|
|
||||||
# mount /dev/sda1 /mnt
|
# mount /dev/sda1 /mnt
|
||||||
# scp -r <host machine IP>:<ACRN source>/build/hypervisor/acrn.efi /mnt/EFI/acrn/
|
# scp -r <host name>@<host address>:<your workspace>/acrn-hypervisor/hypervisor/build/acrn.efi /mnt/EFI/acrn/
|
||||||
# sync && umount /mnt
|
# sync && umount /mnt
|
||||||
|
|
||||||
#. Reboot KBL NUC to enjoy the ACRN with 32G memory.
|
#. Reboot KBL NUC to enjoy the ACRN with 32G memory.
|
||||||
|
@ -41,6 +41,8 @@ source /etc/os-release
|
|||||||
skip_download_uos=0
|
skip_download_uos=0
|
||||||
# switcher for disabling the reboot device
|
# switcher for disabling the reboot device
|
||||||
disable_reboot=0
|
disable_reboot=0
|
||||||
|
# set default scenario name
|
||||||
|
scenario=sdc
|
||||||
|
|
||||||
function upgrade_sos()
|
function upgrade_sos()
|
||||||
{
|
{
|
||||||
@ -51,12 +53,10 @@ function upgrade_sos()
|
|||||||
echo "Upgrading Service VM..."
|
echo "Upgrading Service VM..."
|
||||||
|
|
||||||
# get board name
|
# get board name
|
||||||
BOARD_NAME=`cat /sys/devices/virtual/dmi/id/board_name`
|
BOARD_NAME=`cat /sys/devices/virtual/dmi/id/board_name | cut -d' ' -f1`
|
||||||
BOARD_NAME=${BOARD_NAME,,}
|
BOARD_NAME=${BOARD_NAME,,}
|
||||||
[[ -z $BOARD_NAME ]] && echo "Unknown board name." && exit 1
|
[[ -z $BOARD_NAME ]] && echo "Unknown board name." && exit 1
|
||||||
echo "Board name is: $BOARD_NAME"
|
echo "Board name is: $BOARD_NAME"
|
||||||
# set default scenario name
|
|
||||||
scenario=sdc
|
|
||||||
|
|
||||||
# set up mirror and proxy url while specified with m and p options
|
# set up mirror and proxy url while specified with m and p options
|
||||||
[[ -n $mirror ]] && echo "Setting swupd mirror to: $mirror" && swupd mirror -s $mirror
|
[[ -n $mirror ]] && echo "Setting swupd mirror to: $mirror" && swupd mirror -s $mirror
|
||||||
@ -103,7 +103,7 @@ function upgrade_sos()
|
|||||||
umount /mnt && sync
|
umount /mnt && sync
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cp -a $acrn_efi_path /mnt/EFI/acrn/acrn.efi
|
cp -r $acrn_efi_path /mnt/EFI/acrn/acrn.efi
|
||||||
if [[ $? -ne 0 ]]; then echo "Failed to copy $acrn_efi_path" && exit 1; fi
|
if [[ $? -ne 0 ]]; then echo "Failed to copy $acrn_efi_path" && exit 1; fi
|
||||||
|
|
||||||
new_kernel=`ls /usr/lib/kernel/org*sos* -tl | head -n1 | awk -F'/' '{print $5}'`
|
new_kernel=`ls /usr/lib/kernel/org*sos* -tl | head -n1 | awk -F'/' '{print $5}'`
|
||||||
|
@ -99,10 +99,8 @@ Hardware Setup
|
|||||||
+----------------------+-------------------+----------------------+-----------------------------------------------------------+
|
+----------------------+-------------------+----------------------+-----------------------------------------------------------+
|
||||||
|
|
||||||
.. [1] The maximum supported memory size for ACRN is 16GB. If you are using
|
.. [1] The maximum supported memory size for ACRN is 16GB. If you are using
|
||||||
32GB memory, follow the :ref:`config_32GB_memory` instruction to modify the
|
32GB memory, follow the :ref:`config_32GB_memory` instruction to make the customized ACRN hypervisor
|
||||||
``hypervisor/arch/x86/Kconfig`` and then use ``make FIRMWARE=uefi BOARD=nuc7i7dnb
|
which is supported 32GB memory. For more detailed information about how to build ACRN
|
||||||
SCENARIO=industry hypervisor`` command to make the latest ACRN hypervisor
|
|
||||||
which is supported 32GB memory. For more detailed instruction about how to build ACRN
|
|
||||||
from the source code, refer to this :ref:`guide <getting-started-building>`.
|
from the source code, refer to this :ref:`guide <getting-started-building>`.
|
||||||
|
|
||||||
Set up the ACRN Hypervisor for industry scenario
|
Set up the ACRN Hypervisor for industry scenario
|
||||||
|
Loading…
Reference in New Issue
Block a user