Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from edhay/master
Added Support for Building LUV PXE Boot Image
- Loading branch information
Showing
8 changed files
with
662 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Instructions for running tests using PXE Boot | ||
|
||
Note: Before following the steps below, please read: | ||
https://github.com/intel/luv-yocto/wiki/Send--LUV-test-results-to-an-HTTP-server | ||
|
||
|
||
1. Following a successful build, the PXE Boot Package is generated at<br/> | ||
<work_dir>/arm-enterprise-acs/luv/build/tmp/deploy/images/qemuarm64/PXEBOOT.tar.gz | ||
|
||
2. ftp PXEBOOT.tar.gz to the your tftp-server root directory<br/> | ||
|
||
3. In your tftp-server root directory, unzip and untar PXEBOOT.tar.gz<br/> | ||
|
||
gunzip -cf PXEBOOT.tar.gz | tar xvf - | ||
|
||
This will generate the following file structure<br/> | ||
- grub-efi-bootaa64.efi | ||
- modify_luv_params_efi.py | ||
- EFI/BOOT/sbsa/ShellSbsa.efi | ||
|
||
4. Run command<br/> | ||
|
||
./modify_luv_params_efi.py -f grub-efi-bootaa64.efi -n <Console Log Server IP>,64001 -u http://<Apache Server IP>/cgi-bin/upload.php -p \<PXE Server IP\> | ||
|
||
Note: \<PXE Server IP\> is same as tftp server IP<br/> | ||
|
||
4. In your DHCP configuration, set <br/> | ||
dhcp-boot=grub-efi-bootaa64.efi | ||
|
||
5. Invoke PXE Boot<br/> | ||
|
||
|
||
Note:<br/> | ||
-The results of SBSA Tests are be dispalyed on the console<br/> | ||
-The results of linux tests will be uploaded to http://\<Apache Server IP\><br/> | ||
-Currently, SCT tests are not supported in PXE boot<br/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
diff --git a/meta-luv/classes/luv-efi.bbclass b/meta-luv/classes/luv-efi.bbclass | ||
index 6e72d4813f..e5b83b2199 100644 | ||
--- a/meta-luv/classes/luv-efi.bbclass | ||
+++ b/meta-luv/classes/luv-efi.bbclass | ||
@@ -310,7 +310,11 @@ python build_efi_cfg() { | ||
|
||
if re.search("aarch64", target): | ||
cfgfile.write('menuentry \'sbbr/sbsa\' {\n') | ||
- cfgfile.write('chainloader /EFI/BOOT/Shell.efi\n') | ||
+ cfgfile.write('set oldroot=$root\n') | ||
+ cfgfile.write('set root=(tftp,${PXE_IMAGE_SERVER})\n') | ||
+ cfgfile.write('chainloader EFI/BOOT/sbsa/ShellSbsa.efi\n') | ||
+ cfgfile.write('set root=$oldroot\n') | ||
+ cfgfile.write('boot\n') | ||
cfgfile.write('}\n') | ||
|
||
cfgfile.close() | ||
@@ -357,6 +361,10 @@ python build_luv_cfg() { | ||
comment = 'Add test suites if needed, to run reboot tests in LUV' | ||
name = 'LUVCFG_reboot_tests' | ||
luvcfg.write(insert_var(name, comment, d)) | ||
+ | ||
+ comment = 'The IP Address of the Server where the image of PXE boot is stored' | ||
+ name = 'PXE_image_server' | ||
+ luvcfg.write(insert_var(name, comment, d)) | ||
|
||
luvcfg.write('\n#####################################################\n') | ||
luvcfg.write('## User should not modify any parameter below this ##\n') | ||
diff --git a/meta-luv/recipes-core/images/luv-image.inc b/meta-luv/recipes-core/images/luv-image.inc | ||
index 62b55d1d26..93bdd50bbe 100644 | ||
--- a/meta-luv/recipes-core/images/luv-image.inc | ||
+++ b/meta-luv/recipes-core/images/luv-image.inc | ||
@@ -36,6 +36,8 @@ LUVCFG_tests_append_x86-64 = "bits,chipsec,ndctl'" | ||
LUVCFG_tests_append_aarch64 = "'" | ||
LUVCFG_reboot_tests = "LUV_REBOOT_TESTS=none" | ||
LUVCFG_bits_can_run = "LUV_BITS_CAN_RUN='true'" | ||
+PXE_image_server = "PXE_IMAGE_SERVER=none" | ||
+ | ||
|
||
# Path to splash screen image | ||
FILESEXTRAPATHS_append := "${THISDIR}/luv-live-image:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.